MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / getCreatePRPrompt

Function getCreatePRPrompt

src/utils/utils.ts:484–490  ·  view source on GitHub ↗
(gitProvider: Provider)

Source from the content-addressed store, hash-verified

482 * @returns The create PR prompt
483 */
484export const getCreatePRPrompt = (gitProvider: Provider): string => {
485 const providerName = getProviderName(gitProvider);
486 const pr = getPR(gitProvider === "gitlab");
487 const prShort = getPRShort(gitProvider === "gitlab");
488
489 return `Please push the changes to ${providerName} and open a ${pr}. If you're on a default branch (e.g., main, master, deploy), create a new branch with a descriptive name otherwise use the current branch. If a ${pr} template exists in the repository, please follow it when creating the ${prShort} description.`;
490};
491
492/**
493 * Generate a push to existing PR prompt

Callers 2

handlePrClickFunction · 0.90
onCreatePRFunction · 0.90

Calls 3

getProviderNameFunction · 0.85
getPRFunction · 0.85
getPRShortFunction · 0.85

Tested by

no test coverage detected