aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDenis Efremov <efremov@ispras.ru>2022-06-09 11:42:32 +0400
committerGrigory Bazilevich <g.bazilevich@ispras.ru>2026-03-12 11:30:09 +0300
commitce7ca56d0cf9d696d890aaac09b7152c95464a16 (patch)
tree1b77d1214851b5bc39ec42a6ae1760fc38f9744f /pkg
parent003a9f8308ef65d541d25d8467154ed44386d306 (diff)
pkg/vcs: show proper link to LVC syzkaller
Signed-off-by: Denis Efremov <efremov@ispras.ru>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/vcs/vcs.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkg/vcs/vcs.go b/pkg/vcs/vcs.go
index 42a344e56..f94272fe5 100644
--- a/pkg/vcs/vcs.go
+++ b/pkg/vcs/vcs.go
@@ -360,7 +360,7 @@ var commitPrefixes = []string{
"net-backports:",
}
-const SyzkallerRepo = "https://github.com/google/syzkaller"
+const SyzkallerRepo = "https://lvc-gitlab.intra.ispras.ru/lvc/syzkaller"
const HEAD = "HEAD"
@@ -396,6 +396,17 @@ func link(url, hash, file string, line, typ int) string {
if strings.HasPrefix(url, "https://github.com/") {
return linkGithub(url, hash, file, line, typ)
}
+ if strings.HasPrefix(url, "https://lvc-gitlab.intra.ispras.ru/") {
+ url = strings.TrimSuffix(url, ".git")
+ switch typ {
+ case 1:
+ return url + "/-/tree/" + hash
+ case 2:
+ return url + "/-/commits/" + hash
+ default:
+ return url + "/-/commit/" + hash
+ }
+ }
if strings.HasPrefix(url, "https://git.kernel.org/pub/scm/") ||
strings.HasPrefix(url, "git://git.kernel.org/pub/scm/") {
return linkKernelOrg(url, hash, file, line, typ)