Skip to content

Conversation

@j2fw
Copy link
Contributor

@j2fw j2fw commented Oct 28, 2025

Description:

Updates the pr-approval-check workflow with some different logic:

  • On error: log, exit early, and submit a human-readable status
  • Don't iterate over child teams -- github does this for us
  • Listen for review dismissal events
  • Fix approval logic
    • Go over all pages of reviews
    • Only accept the latest submitted review per reviewer, since reviewers may dismiss or request changes
    • If anyone in product-eng requests changes, the check fails until they dismiss/approve

🗒️ Note: we may need to update github token privileges

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@CLAassistant
Copy link

CLAassistant commented Oct 28, 2025

CLA assistant check
All committers have signed the CLA.

@j2fw j2fw force-pushed the jw/check-product-eng-approval-update branch from 8e13834 to 77fa7d1 Compare October 29, 2025 07:49
@j2fw j2fw changed the title pr-approval-check: remove subteam slugs and simplify implementation pr-approval-check: refactor and fix pagination Oct 29, 2025
@j2fw j2fw changed the title pr-approval-check: refactor and fix pagination pr-approval-check: refactor, fix pagination, fix approval logic Oct 29, 2025
@j2fw j2fw force-pushed the jw/check-product-eng-approval-update branch from c1a9c26 to fa6ad1b Compare October 29, 2025 12:21
@j2fw j2fw marked this pull request as ready for review October 29, 2025 19:57
@j2fw j2fw requested a review from a team as a code owner October 29, 2025 19:57
@j2fw j2fw merged commit f0df738 into cursor/require-product-eng-approval-for-prs-f38f Oct 29, 2025
11 of 13 checks passed
@j2fw j2fw deleted the jw/check-product-eng-approval-update branch October 29, 2025 20:11
dustin-decker added a commit that referenced this pull request Oct 30, 2025
* feat: Add PR approval check for product-eng team

Co-authored-by: dustin <[email protected]>

* Checkpoint before follow-up message

Co-authored-by: dustin <[email protected]>

* Refactor: Expand PR approval to include child teams

Co-authored-by: dustin <[email protected]>

* poke

* pr-approval-check: refactor, fix pagination, fix approval logic (#4519)

* Update README.md

* use secret

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Jeff W <[email protected]>
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.

5 participants