internal/source: support git.glasklar.is URLs
Fixes #69638
Change-Id: I9b595bcc98d2d92895ad3d626981aa551ce75d07
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/609535
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Bypass: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/internal/source/source.go b/internal/source/source.go
index 111b7fd..8c3d340 100644
--- a/internal/source/source.go
+++ b/internal/source/source.go
@@ -668,6 +668,10 @@
templates: gitlabURLTemplates,
},
{
+ pattern: `^(?P<repo>git\.glasklar\.is/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)`,
+ templates: gitlabURLTemplates,
+ },
+ {
pattern: `^(?P<repo>gitea\.com/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)(\.git|$)`,
templates: giteaURLTemplates,
transformCommit: giteaTransformCommit,