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

Function getCreatePRPrompt

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

Source from the content-addressed store, hash-verified

439 * @returns The create PR prompt
440 */
441export const getCreatePRPrompt = (gitProvider: Provider): string => {
442 const providerName = getProviderName(gitProvider);
443 const pr = getPR(gitProvider === "gitlab");
444 const prShort = getPRShort(gitProvider === "gitlab");
445
446 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.`;
447};
448
449/**
450 * Generate a create new branch prompt

Callers 4

handleCreatePrFunction · 0.90
handlePrClickFunction · 0.90
onCreatePRFunction · 0.90

Calls 3

getProviderNameFunction · 0.85
getPRFunction · 0.85
getPRShortFunction · 0.85

Tested by

no test coverage detected