fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

Use modern GitLab URLs (#409)

+4 -2
+4 -2
gitindex/index.go
··· 145 145 repo.FileURLTemplate = u.String() + "/{{.Path}}?at={{.Version}}" 146 146 repo.LineFragmentTemplate = "#{{.LineNumber}}" 147 147 case "gitlab": 148 - repo.CommitURLTemplate = u.String() + "/commit/{{.Version}}" 149 - repo.FileURLTemplate = u.String() + "/blob/{{.Version}}/{{.Path}}" 148 + // https://gitlab.com/gitlab-org/omnibus-gitlab/-/commit/b152c864303dae0e55377a1e2c53c9592380ffed 149 + // https://gitlab.com/gitlab-org/omnibus-gitlab/-/blob/aad04155b3f6fc50ede88aedaee7fc624d481149/files/gitlab-config-template/gitlab.rb.template 150 + repo.CommitURLTemplate = u.String() + "/-/commit/{{.Version}}" 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)