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:
parent
57ae9420b5
commit
d731413fc5
1 changed files with 17 additions and 0 deletions
|
@ -77,6 +77,21 @@ ACL_BLOCK_UNSPECIFIED = False
|
||||||
ACL_PROTECTED_NAMESPACES = ['rpms', 'modules', 'container']
|
ACL_PROTECTED_NAMESPACES = ['rpms', 'modules', 'container']
|
||||||
RCM_GROUP = 'relenggroup'
|
RCM_GROUP = 'relenggroup'
|
||||||
RCM_BRANCHES = ['refs/heads/f[0-9]+', 'refs/tags/.*', 'refs/heads/.*']
|
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
|
# Pushing to c* stuff and master is never allowed
|
||||||
BLACKLIST_RES = ['refs/heads/c[0-9]+.*', 'refs/heads/master']
|
BLACKLIST_RES = ['refs/heads/c[0-9]+.*', 'refs/heads/master']
|
||||||
# Pushing to (f|epel|el|olpc)(num+) that is not previously approved
|
# 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/epel[0-9]+',
|
||||||
'refs/heads/el[0-9]+',
|
'refs/heads/el[0-9]+',
|
||||||
'refs/heads/olpc[0-9]+']
|
'refs/heads/olpc[0-9]+']
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
PDC_BRANCH_OVERRIDES = {"rpms": {"refs/heads/main": "refs/heads/rawhide"}}
|
PDC_BRANCH_OVERRIDES = {"rpms": {"refs/heads/main": "refs/heads/rawhide"}}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue