We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b54cf5d commit 83c3b3fCopy full SHA for 83c3b3f
1 file changed
tools/actions/commit-queue.sh
@@ -47,7 +47,7 @@ for pr in "$@"; do
47
48
# Skip PR if it has only one approval and was created less than 7 days ago
49
pr_meta=$(gh pr view "$pr" --json reviews,createdAt)
50
- approvals=$(echo "$pr_meta" | jq '[.reviews[] | select(.state == "APPROVED")] | unique_by(.author.login) | length')
+ approvals=$(echo "$pr_meta" | jq '[.reviews[] | select(.state == "APPROVED" and .authorAssociation == "MEMBER")] | unique_by(.author.login) | length')
51
created_at=$(echo "$pr_meta" | jq -r '.createdAt')
52
created_epoch=$(date -d "$created_at" +%s)
53
seven_days_ago=$(date -d "7 days ago" +%s)
0 commit comments