Skip to content

feat(agent-approval-check): support merge queue (merge_group) - #54

Merged
falcorocks merged 1 commit into
mainfrom
falcorocks/agent-approval-merge-queue
Aug 11, 2026
Merged

feat(agent-approval-check): support merge queue (merge_group)#54
falcorocks merged 1 commit into
mainfrom
falcorocks/agent-approval-merge-queue

Conversation

@falcorocks

Copy link
Copy Markdown
Collaborator

Summary

Makes the agent-approval-check action compatible with GitHub merge queues.

When the required status check's workflow only listens for pull_request* events, merge-group commits never emit the check, and queued pull requests are dropped after the merge-queue check timeout. This adds handling for the merge_group event: the action posts a success status on the merge-group head commit.

This is safe because a pull request can only enter the merge queue after branch protection (including this check on the pull-request head) has already passed, so the approval requirement was enforced before the merge-group commit was created.

Consumer change

Workflows on merge-queue branches must add the merge_group trigger (and include github.event.merge_group.head_ref in the concurrency group). See the README.

Testing

  • python3 -m unittest discover -s actions/agent-approval-check -p 'test_*.py' -v (23 passing)

Handle the merge_group event by posting a success status on the merge-group
head commit. A required status check must also report on merge-group commits
or queued pull requests are dropped after the merge-queue check timeout. A pull
request can only enter the queue after branch protection (including this check
on the PR head) already passed, so the approval requirement was enforced before
the merge-group commit was created.
@falcorocks
falcorocks requested review from a team as code owners August 11, 2026 13:37
@falcorocks falcorocks self-assigned this Aug 11, 2026
@falcorocks
falcorocks merged commit df4af72 into main Aug 11, 2026
1 check passed
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