[Fix](CI)After Approve, even comments should be considered as mergeable (#21264)
This commit is contained in:
4
.github/workflows/pr-approve-status.yml
vendored
4
.github/workflows/pr-approve-status.yml
vendored
@ -43,9 +43,7 @@ jobs:
|
||||
approves=()
|
||||
reviewers_unique=()
|
||||
for ((i=${#reviewers[@]}-1;i>=0;i--)); do
|
||||
# shellcheck disable=SC2076
|
||||
# shellcheck disable=SC2199
|
||||
if [[ ! "${reviewers_unique[@]}" =~ "${reviewers[$i]}" ]]; then
|
||||
if ! echo "${reviewers_unique[@]}" | grep -q -w "${reviewers[$i]}" && [ "${statuses[$i]}" != "COMMENTED" ]; then
|
||||
reviewers_unique+=( "${reviewers[$i]}" )
|
||||
if [ "${statuses[$i]}" == "APPROVED" ]; then
|
||||
approves+=( "${reviewers[$i]}" )
|
||||
|
||||
Reference in New Issue
Block a user