aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Détrez <gregoire@mullvad.net>2024-08-29 13:25:42 +0200
committerJonathan Amsterdam <jba@google.com>2024-10-01 19:13:39 +0000
commitd90bbc5a8476bea456d69331f69c314cf9c57c05 (patch)
treef5eb637cea78ac6f3812390c1f42c8422b425656
parente87f2996afaa10346757d867b760f33bac42be6b (diff)
downloadgo-x-pkgsite-d90bbc5a8476bea456d69331f69c314cf9c57c05.tar.xz
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>
-rw-r--r--internal/source/source.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/source/source.go b/internal/source/source.go
index 111b7fdd..8c3d340c 100644
--- a/internal/source/source.go
+++ b/internal/source/source.go
@@ -668,6 +668,10 @@ var patterns = []struct {
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,