diff --git a/internal/source/source.go b/internal/source/source.go index e66ef4dad..bcc7e94a8 100644 --- a/internal/source/source.go +++ b/internal/source/source.go @@ -638,6 +638,11 @@ var patterns = []struct { pattern: `^(?Pgithub\.com/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)`, templates: githubURLTemplates, }, + { + // Assume that any site beginning with "github." works like github.com. + pattern: `^(?Pgithub\.[a-z0-9A-Z.-]+/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)(\.git|$)`, + templates: githubURLTemplates, + }, { pattern: `^(?Pbitbucket\.org/[a-z0-9A-Z_.\-]+/[a-z0-9A-Z_.\-]+)`, templates: bitbucketURLTemplates,