gerrit: add its actions.config file
This file used to be managed by puppet-gerrit and it seems we missed converting it to Ansible. Add it with the contents from the server. Change-Id: I10a10166446941d2676ae9181fc74b5a1408c5ed
This commit is contained in:
parent
c80c6eeda9
commit
f673eda549
12
playbooks/roles/gerrit/files/its/actions.config
Normal file
12
playbooks/roles/gerrit/files/its/actions.config
Normal file
@ -0,0 +1,12 @@
|
||||
[rule "comment-on-status-update"]
|
||||
action = add-standard-comment
|
||||
event-type = patchset-created,change-abandoned,change-restored,change-merged
|
||||
[rule "change_abandoned"]
|
||||
action = set-status TODO
|
||||
event-type = change-abandoned
|
||||
[rule "change_in_progress"]
|
||||
action = set-status REVIEW
|
||||
event-type = patchset-created,change-restored
|
||||
[rule "change_merged"]
|
||||
action = set-status MERGED
|
||||
event-type = change-merged
|
@ -55,6 +55,7 @@
|
||||
- cache
|
||||
- db
|
||||
- etc
|
||||
- etc/its
|
||||
- git
|
||||
- hooks
|
||||
- index
|
||||
@ -206,6 +207,14 @@
|
||||
- change-abandoned
|
||||
- patchset-created
|
||||
|
||||
- name: Write ITS plugin configuration file
|
||||
copy:
|
||||
src: its/actions.config
|
||||
dest: '{{ gerrit_site_dir }}/etc/its/actions.config'
|
||||
owner: '{{ gerrit_user_name }}'
|
||||
group: '{{ gerrit_user_name }}'
|
||||
mode: 0644
|
||||
|
||||
- name: Write manage-projects script
|
||||
template:
|
||||
src: "manage-projects.j2"
|
||||
|
Loading…
Reference in New Issue
Block a user