diff --git a/scripts/merge-pr.sh b/scripts/merge-pr.sh index d18e6f6b7c..d69b83a043 100755 --- a/scripts/merge-pr.sh +++ b/scripts/merge-pr.sh @@ -53,7 +53,9 @@ get_pr_info() { if [[ $(echo "$pr_info" | jq -r .state) == closed ]]; then fatal "PR $pr is closed, will not merge" fi - if [[ $(echo "$pr_info" | jq -r .maintainer_can_modify) == true ]]; then + if [[ ($(echo "$pr_info" | jq -r .maintainer_can_modify) == true) ||\ + ($(echo "$pr_info" | jq -r .author_association) == MEMBER) ||\ + ($(echo "$pr_info" | jq -r .author_association) == OWNER)]]; then RW_PR_REPO=1 else warn "PR does not allow 'edits from maintainers', so it will be kept open"