From 6e563b61287f9c02478bed959d5f5a435c9cf8cf Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 6 Jul 2021 15:50:07 +0200 Subject: [PATCH] bin/autoresolve: Let members resolve their branches --- bin/autoresolve | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/autoresolve b/bin/autoresolve index 08ca17730..e1d2d9169 100755 --- a/bin/autoresolve +++ b/bin/autoresolve @@ -20,6 +20,7 @@ query (\$number: Int!) { maintainerCanModify headRefName headRepository { + nameWithOwner sshUrl } comments(first: 100) { @@ -129,10 +130,11 @@ if [ -n "$PULL_REQUEST_NO" ]; then echo "Attempting to resolve pull request #$PR_NUMBER..." PR_ID=$(read_json_var "$PULL_REQUEST" .id) + PR_REPO_NAME=$(read_json_var "$PULL_REQUEST" .headRepository.nameWithOwner) # If the author disabled maintainer edits, tell him this once PR_IS_ACCESSIBLE=$(read_json_var "$PULL_REQUEST" .maintainerCanModify) - if [[ "$PR_IS_ACCESSIBLE" == "false" ]]; then + if [[ "$PR_REPO_NAME" != "Icinga/L10n" && "$PR_IS_ACCESSIBLE" == "false" ]]; then ICINGABOT_COMMENTED=false TOTAL_COMMENTS=$(read_json_var "$PULL_REQUEST" .comments.totalCount)