Skip to content

fix: allow Elastic org members to trigger docs review on fork PRs - #6538

Merged
theletterf merged 2 commits into
mainfrom
fix/fork-pr-org-member-trigger
May 17, 2026
Merged

fix: allow Elastic org members to trigger docs review on fork PRs#6538
theletterf merged 2 commits into
mainfrom
fix/fork-pr-org-member-trigger

Conversation

@theletterf

Copy link
Copy Markdown
Member

Summary

The same-repo guard introduced in #6484 (SEC-043) unconditionally blocked fork PRs from triggering the docs review, even when the actor was an Elastic org member. This caused confusion (see #6537) where a repo member checking the box on a fork PR was silently ignored.

Change: the guard now calls checkMembershipForUser before short-circuiting. Org members can trigger reviews on fork PRs; non-members are still blocked.

fork PR + non-member → blocked (unchanged)
fork PR + org member → allowed (new)
same-repo PR         → unchanged

The companion change in the canonical template is in elastic/oblt-aw#896.

Test plan

  • Fork PR: org member checks the box → evaluate-trigger passes, docs review runs
  • Fork PR: fork contributor checks the box → evaluate-trigger short-circuits, no review
  • Same-repo PR: unchanged behavior

🤖 Generated with Claude Code

Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com

theletterf and others added 2 commits May 13, 2026 19:36
The same-repo guard unconditionally blocked fork PRs from triggering
the docs review, even when a repo member checked the box. Now the guard
checks org membership first and only short-circuits for non-members.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@theletterf
theletterf requested review from a team as code owners May 17, 2026 14:03
@theletterf
theletterf requested a review from technige May 17, 2026 14:03
@theletterf
theletterf merged commit 3999fbd into main May 17, 2026
7 checks passed
@theletterf
theletterf deleted the fix/fork-pr-org-member-trigger branch May 17, 2026 14:04
@github-actions

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

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