internal/source: support codeberg
GitHub-Last-Rev:
GitHub-Pull-Request: golang/pkgsite#44
TryBot-Result: kokoro
Run-TryBot: Joel Sing
@@ -698,6 +698,11 @@ var patterns = []struct {
templates: giteaURLTemplates,
transformCommit: giteaTransformCommit,
},
+ {
+ pattern: `^(?P<repo>codeberg\.org/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)(\.git|$)`,
+ templates: giteaURLTemplates,
+ transformCommit: giteaTransformCommit,
+ },
{
pattern: `^(?P<repo>gogs\.[a-z0-9A-Z.-]+/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)(\.git|$)`,
// Gogs uses the same basic structure as Gitea, but omits the type of
