Enable pushing to master branches for modules

https://pagure.io/releng/issue/10139

Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
This commit is contained in:
Mohan Boddu 2022-03-08 11:57:57 -05:00 committed by mohanboddu
parent 57ae9420b5
commit d731413fc5

View file

@ -77,6 +77,21 @@ ACL_BLOCK_UNSPECIFIED = False
ACL_PROTECTED_NAMESPACES = ['rpms', 'modules', 'container']
RCM_GROUP = 'relenggroup'
RCM_BRANCHES = ['refs/heads/f[0-9]+', 'refs/tags/.*', 'refs/heads/.*']
{% if env == 'staging' %}
# Pushing to c* stuff and master is never allowed
BLACKLIST_RES = ['refs/heads/c[0-9]+.*']
# Pushing to (f|epel|el|olpc)(num+) that is not previously approved
# (supported branches, ie: configured and active in PDC) is not allowed.
UNSPECIFIED_BLACKLIST_RES = ['refs/heads/main',
'refs/heads/rawhide',
'refs/heads/f[0-9]+',
'refs/heads/epel[0-9]+',
'refs/heads/el[0-9]+',
'refs/heads/olpc[0-9]+',
# master branch is used only for modules
# See https://pagure.io/releng/issue/10139#comment-741194
'refs/heads/master']
{% else %}
# Pushing to c* stuff and master is never allowed
BLACKLIST_RES = ['refs/heads/c[0-9]+.*', 'refs/heads/master']
# Pushing to (f|epel|el|olpc)(num+) that is not previously approved
@ -87,6 +102,8 @@ UNSPECIFIED_BLACKLIST_RES = ['refs/heads/main',
'refs/heads/epel[0-9]+',
'refs/heads/el[0-9]+',
'refs/heads/olpc[0-9]+']
{% endif %}
PDC_BRANCH_OVERRIDES = {"rpms": {"refs/heads/main": "refs/heads/rawhide"}}