Skip to content

fix(ci): filter out non-approval reviews in dual-approval check#160

Open
privilegedescalation-engineer[bot] wants to merge 1 commit intomainfrom
shareable
Open

fix(ci): filter out non-approval reviews in dual-approval check#160
privilegedescalation-engineer[bot] wants to merge 1 commit intomainfrom
shareable

Conversation

@privilegedescalation-engineer
Copy link
Copy Markdown
Contributor

Summary

The dual-approval-check.yaml workflow was treating COMMENTED reviews (e.g. greptile bot) as rejection votes, causing false failures on PRs where the only greptile action was a comment.

Fix

Changed the approval check logic to only count reviews where state == "APPROVED". Filters out COMMENTED and CHANGES_REQUESTED.

Before: uses last review state (can be COMMENTED)
After: counts only APPROVED reviews

Impact

Fixes false failures on headlamp-kube-vip-plugin, headlamp-polaris-plugin, and any plugin repo where greptile or other non-approval bots leave comments.

Per PRI-826 cleanup.

cc @cpfarhood

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant