feat: integrate with codeberg

This commit is contained in:
Andrea Lamparelli 2023-08-18 13:05:22 +02:00
parent eecbff34b7
commit 11c521f02d
11 changed files with 72 additions and 25 deletions

View file

@ -16,6 +16,8 @@ export const inferGitClient = (prUrl: string): GitClientType => {
return GitClientType.GITHUB;
} else if (stdPrUrl.includes(GitClientType.GITLAB.toString())) {
return GitClientType.GITLAB;
} else if (stdPrUrl.includes(GitClientType.CODEBERG.toString())) {
return GitClientType.CODEBERG;
}
throw new Error(`Remote git service not recognized from pr url: ${prUrl}`);