Skip to content

Commit cf03b82

Browse files
authored
Merge pull request #235829 from Homebrew/fix-replacement-creation
workflows/create-replacement-pr: fix review requests
2 parents ca540ee + b8b6870 commit cf03b82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/create-replacement-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ jobs:
9090
"repos/$GITHUB_REPOSITORY/pulls/$PR/reviews"
9191
)"
9292
93-
reviewers="$(jq --compact-output '[.[].user.login]' <<< "$review_data")"
93+
reviewer_filter='[map(select(.author_association == "MEMBER")).[].user.login] | unique'
94+
reviewers="$(jq --compact-output "$reviewer_filter" <<< "$review_data")"
9495
approved="$(jq --raw-output 'any(.[].state; .== "APPROVED")' <<< "$review_data")"
9596
9697
# See https://github.com/octokit/octokit.net/issues/1763 for possible `mergeable_state` values.

0 commit comments

Comments
 (0)