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