bin/autoresolve: Let members resolve their branches

This commit is contained in:
Johannes Meyer 2021-07-06 15:50:07 +02:00
parent 79d676c0cb
commit 6e563b6128
1 changed files with 3 additions and 1 deletions

View File

@ -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)