From 98ea6b11fc3c80120e72fb15916dcb31d8ceeebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Wed, 11 Aug 2021 15:16:56 +0200 Subject: [PATCH] distgit: Add pull_request_close ACL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently it's not possible to create token with pull_request_close ACL for user (see https://pagure.io/pagure-dist-git/issue/144). This commit will allow users to add pull_request_close ACL to their token. The user is still validated if it has the permission, so adding this ACL to user token doesn't allow user to use API to close any PR currently opened in dist-git. Thanks @pingou for helping me with this. Signed-off-by: Michal Konečný --- roles/distgit/pagure/templates/pagure.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/distgit/pagure/templates/pagure.cfg b/roles/distgit/pagure/templates/pagure.cfg index 7847c9de7f..a5047ad624 100644 --- a/roles/distgit/pagure/templates/pagure.cfg +++ b/roles/distgit/pagure/templates/pagure.cfg @@ -269,6 +269,7 @@ CROSS_PROJECT_ACLS = [ 'fork_project', 'modify_project', 'pull_request_create', + 'pull_request_close', 'pull_request_comment', 'pull_request_merge', 'pull_request_flag',