Skip to content

ci: sync bot approval with assignee approval#328

Merged
ksroda-sa merged 3 commits into
mainfrom
assignee-approval-sync
Jul 24, 2026
Merged

ci: sync bot approval with assignee approval#328
ksroda-sa merged 3 commits into
mainfrom
assignee-approval-sync

Conversation

@ksroda-sa

@ksroda-sa ksroda-sa commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a workflow that mirrors an assignee's PR approval as a second approval from github-actions[bot]:

  • When a non-author assignee's latest review is an approval, the bot approves the PR.
  • If the assignee's approval is dismissed or superseded, the bot's approval is dismissed too.

Dependabot PRs are excluded — they're already handled by dependabot-auto-merge.yml.

Notes

  • Triggers only once merged to main (pull_request/pull_request_review run from the base branch).
  • Counts toward required approvals only if branch protection accepts github-actions[bot] reviews (same setup as acp).

🤖 Generated with Claude Code

Mirror a non-author assignee's approval as a second (bot) approval,
and dismiss it if the assignee approval is no longer active.
Ported from the acp repo, minus the Slack failure notification.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new GitHub Actions workflow that keeps a github-actions[bot] review in sync with the PR assignee’s latest review state, so assignee approval can count as a second approval (and be dismissed when the assignee approval is no longer active). This fits into the repo’s existing PR automation alongside the existing Dependabot auto-merge workflow.

Changes:

  • Introduces assignee-approval-sync.yml to approve PRs via github-actions[bot] when a non-author assignee has an active approval.
  • Dismisses the bot’s approval when the assignee’s latest review is no longer APPROVED.
  • Skips Dependabot PRs and PRs from forks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/assignee-approval-sync.yml
Comment thread .github/workflows/assignee-approval-sync.yml
@ksroda-sa
ksroda-sa merged commit e81f264 into main Jul 24, 2026
19 checks passed
@ksroda-sa
ksroda-sa deleted the assignee-approval-sync branch July 24, 2026 10:05
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.

4 participants