alpha
Login
or
Join now
boltless.me
/
zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
fork of https://github.com/sourcegraph/zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Use modern GitLab URLs (#409)
author
Tobias Gruetzmacher
committer
GitHub
date
3 years ago
(Aug 18, 2022, 9:44 AM +0100)
commit
26bbd7bc
26bbd7bcbb07ad767d8fc1069b6c7ef40460bc0c
parent
c9182fcd
c9182fcd2a2eac3bd0546e78efabb6ba224c852b
+4
-2
1 changed file
Expand all
Collapse all
Unified
Split
gitindex
index.go
+4
-2
gitindex/index.go
Reviewed
···
145
145
repo.FileURLTemplate = u.String() + "/{{.Path}}?at={{.Version}}"
146
146
repo.LineFragmentTemplate = "#{{.LineNumber}}"
147
147
case "gitlab":
148
148
-
repo.CommitURLTemplate = u.String() + "/commit/{{.Version}}"
149
149
-
repo.FileURLTemplate = u.String() + "/blob/{{.Version}}/{{.Path}}"
148
148
+
// https://gitlab.com/gitlab-org/omnibus-gitlab/-/commit/b152c864303dae0e55377a1e2c53c9592380ffed
149
149
+
// https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/aad04155b3f6fc50ede88aedaee7fc624d481149/files/gitlab-config-template/gitlab.rb.template
150
150
+
repo.CommitURLTemplate = u.String() + "/-/commit/{{.Version}}"
151
151
+
repo.FileURLTemplate = u.String() + "/-/blob/{{.Version}}/{{.Path}}"
150
152
repo.LineFragmentTemplate = "#L{{.LineNumber}}"
151
153
default:
152
154
return fmt.Errorf("URL scheme type %q unknown", typ)