(gitProvider: Provider)
| 439 | * @returns The create PR prompt |
| 440 | */ |
| 441 | export 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 |
no test coverage detected