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:
Ian Wienand 2021-10-04 17:00:24 +11:00
parent c80c6eeda9
commit f673eda549
2 changed files with 21 additions and 0 deletions

View 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

View File

@ -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"