From caa56c98bbab87d44589bcd28ada55f7fd5cea6b Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 3 Feb 2021 14:12:47 +0100 Subject: [PATCH] distgit/pagure: block pushing to master Signed-off-by: Pierre-Yves Chibon --- roles/distgit/pagure/templates/pagure_shared.cfg | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/roles/distgit/pagure/templates/pagure_shared.cfg b/roles/distgit/pagure/templates/pagure_shared.cfg index 5554572476..7470de979d 100644 --- a/roles/distgit/pagure/templates/pagure_shared.cfg +++ b/roles/distgit/pagure/templates/pagure_shared.cfg @@ -70,12 +70,8 @@ ACL_BLOCK_UNSPECIFIED = False ACL_PROTECTED_NAMESPACES = ['rpms', 'modules', 'container'] RCM_GROUP = 'relenggroup' RCM_BRANCHES = ['refs/heads/f[0-9]+', 'refs/tags/.*', 'refs/heads/.*'] -# Pushing to c* stuff is never allowed -{% if env == "staging" %} +# Pushing to c* stuff and master is never allowed BLACKLIST_RES = ['refs/heads/c[0-9]+.*', 'refs/heads/master'] -{% else %} -BLACKLIST_RES = ['refs/heads/c[0-9]+.*'] -{% endif %} # 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',