Add Platform Bitbucket (#1886)

This commit is contained in:
Tilo Brueckner authored and GitHub committed 2025-06-04 19:46:01 -05:00
1 parent 722ce8213a
commit 20f9a1d4eb
4 files changed
+45

No files matched your search

+4
View File
@@ -14,6 +14,7 @@ const (
GitLabPlatform
AzureDevOpsPlatform
GiteaPlatform
BitbucketPlatform
// TODO: Add others.
)
@@ -25,6 +26,7 @@ func (p Platform) String() string {
"gitlab",
"azuredevops",
"gitea",
"bitbucket",
}[p]
}
@@ -42,6 +44,8 @@ func PlatformFromString(s string) (Platform, error) {
return AzureDevOpsPlatform, nil
case "gitea":
return GiteaPlatform, nil
case "bitbucket":
return BitbucketPlatform, nil
default:
return UnknownPlatform, fmt.Errorf("invalid scm platform value: %s", s)
}