[Feature] Inherit access for project from another project
Add possibility to inherit access for project from another project
Change-Id: Id3e1de8fb00687190221f8f0a4db7b6c5386f2dd
diff --git a/README.rst b/README.rst
index f0758b2..7e7db07 100644
--- a/README.rst
+++ b/README.rst
@@ -152,6 +152,7 @@
actions:
- name: pushSignedTag
group: openstack-salt-release
+ inherit_access: All-Projects
require_change_id: true
require_agreement: true
merge_content: true
diff --git a/gerrit/files/project.config b/gerrit/files/project.config
index 701c24b..18716c7 100644
--- a/gerrit/files/project.config
+++ b/gerrit/files/project.config
@@ -24,6 +24,13 @@
streamEvents = group Non-Interactive Users
#}
+{%- if project.inherit_access is defined %}
+
+[access]
+ inheritFrom = {{ project.inherit_access }}
+
+{%- endif %}
+
{%- for access_name, access in project.access.items() %}
[access "{{ access_name }}"]