Merge "Use Gitea for Gerrit's code browser URLs"
This commit is contained in:
commit
3b4e1bd4ed
2
playbooks/roles/gerrit/files/gitiles.config
Normal file
2
playbooks/roles/gerrit/files/gitiles.config
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[gerrit]
|
||||||
|
noWebLinks = true
|
@ -215,6 +215,14 @@
|
|||||||
group: '{{ gerrit_user_name }}'
|
group: '{{ gerrit_user_name }}'
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Write Gitiles plugin configuration file
|
||||||
|
copy:
|
||||||
|
src: gitiles.config
|
||||||
|
dest: '{{ gerrit_site_dir }}/etc/gitiles.config'
|
||||||
|
owner: '{{ gerrit_user_name }}'
|
||||||
|
group: '{{ gerrit_user_name }}'
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: Write manage-projects script
|
- name: Write manage-projects script
|
||||||
template:
|
template:
|
||||||
src: "manage-projects.j2"
|
src: "manage-projects.j2"
|
||||||
|
@ -133,13 +133,19 @@
|
|||||||
system = Storyboard
|
system = Storyboard
|
||||||
[plugin "javamelody"]
|
[plugin "javamelody"]
|
||||||
allowTopMenu = false
|
allowTopMenu = false
|
||||||
# Gerrit upstream hardcodes a .git extension for cgit.
|
# Custom code browser linking for Gitea.
|
||||||
# The cgit settings below are the same just without the
|
|
||||||
# .git extension.
|
|
||||||
[gitweb]
|
[gitweb]
|
||||||
type = gitweb
|
branch = "${project}/src/branch/${branch}"
|
||||||
cgi = /usr/share/gitweb/gitweb.cgi
|
file = "${project}/src/commit/${hash}/${file}"
|
||||||
revision = "?p=${project}.git;a=commitdiff;h=${commit}"
|
filehistory = "${project}/commits/branch/${branch}/${file}"
|
||||||
|
linkname = gitea
|
||||||
|
project = "${project}"
|
||||||
|
revision = "${project}/commit/${commit}"
|
||||||
|
roottree = "${project}/src/commit/${commit}"
|
||||||
|
type = custom
|
||||||
|
urlEncode = false
|
||||||
|
tag = "${project}/src/tag/${tag}"
|
||||||
|
url = "https://opendev.org/"
|
||||||
[index]
|
[index]
|
||||||
type = LUCENE
|
type = LUCENE
|
||||||
threads = 8
|
threads = 8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user