distgit/pagure:Prevent creating main or rawhide without having it in PDC

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-02-03 14:31:33 +01:00
parent caa56c98bb
commit c625bdc1a7

View file

@ -74,7 +74,8 @@ RCM_BRANCHES = ['refs/heads/f[0-9]+', 'refs/tags/.*', 'refs/heads/.*']
BLACKLIST_RES = ['refs/heads/c[0-9]+.*', 'refs/heads/master']
# 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 = ['master',
UNSPECIFIED_BLACKLIST_RES = ['refs/heads/main',
'refs/heads/rawhide',
'refs/heads/f[0-9]+',
'refs/heads/epel[0-9]+',
'refs/heads/el[0-9]+',