Skip to content

Commit

Permalink
bin/autoresolve: Let members resolve their branches
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Jul 6, 2021
1 parent 79d676c commit 6e563b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/autoresolve
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ query (\$number: Int!) {
maintainerCanModify
headRefName
headRepository {
nameWithOwner
sshUrl
}
comments(first: 100) {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6e563b6

Please sign in to comment.