Skip to content

fix(workflows): skip maintainer gate for maintainer-authored PRs#12

Merged
imran-siddique merged 1 commit into
mainfrom
fix/gate-skip-maintainer-author
Jun 12, 2026
Merged

fix(workflows): skip maintainer gate for maintainer-authored PRs#12
imran-siddique merged 1 commit into
mainfrom
fix/gate-skip-maintainer-author

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

The gate skips when author_association is MEMBER or OWNER, but GitHub only reports MEMBER when the author's org membership is public, so a maintainer with private membership gets CONTRIBUTOR and the gate demands an approval the author cannot give (authors cannot approve their own PRs). This adds an explicit skip when the PR author is in MAINTAINERS, keeping the association skip for public members; confirmed live on cmcp#291, where the gate failed while all tests passed.

Note: this PR is itself gate-blocked by the bug it fixes. Approve and re-run the gate, or admin-merge.

Generated with Claude Code

author_association only reports MEMBER for public org membership; with
private membership a maintainer's own PR could never clear the gate
(authors cannot approve their own PRs). Skip when the PR author is in
MAINTAINERS.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@imran-siddique imran-siddique merged commit 0cd0d16 into main Jun 12, 2026
4 of 5 checks 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