[GH-ISSUE #4473] [Issue] Restore automatic staging approval for organization members #2431

Closed
opened 2026-10-21 05:48:09 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4473

Originally assigned to: @SpicyMarinara on GitHub.

Problem

The native staging Code Owner review ruleset added after #4468 does not mark Pasta-Devs organization members' pull requests as approved. It only offers members a merge-time ruleset bypass, so member PRs such as #4472 remain in REVIEW_REQUIRED state and developers must bypass protections manually.

Expected behavior

  • Pull requests to staging from active Pasta-Devs organization Members or Owners receive a successful Owner approval for outside contributors status automatically.
  • Pull requests from anyone outside the organization require a current approval from SpicyMarinara.
  • The membership lookup fails closed when the configured organization-members token is missing or invalid.
  • Review refreshes are evaluated by trusted base/default-branch code, not code from an untrusted pull request.
  • Existing main restrictions remain unchanged: only SpicyMarinara may promote staging or submit an allowed same-repository hotfix.

Reproduction

Open a PR to staging as an active Pasta-Devs member. All checks can pass, but GitHub reports REVIEW_REQUIRED until the author explicitly bypasses the staging review ruleset.

Originally created by @SpicyMarinara on GitHub (Aug 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4473 Originally assigned to: @SpicyMarinara on GitHub. ## Problem The native staging Code Owner review ruleset added after #4468 does not mark Pasta-Devs organization members' pull requests as approved. It only offers members a merge-time ruleset bypass, so member PRs such as #4472 remain in `REVIEW_REQUIRED` state and developers must bypass protections manually. ## Expected behavior - Pull requests to `staging` from active Pasta-Devs organization Members or Owners receive a successful `Owner approval for outside contributors` status automatically. - Pull requests from anyone outside the organization require a current approval from `SpicyMarinara`. - The membership lookup fails closed when the configured organization-members token is missing or invalid. - Review refreshes are evaluated by trusted base/default-branch code, not code from an untrusted pull request. - Existing `main` restrictions remain unchanged: only `SpicyMarinara` may promote `staging` or submit an allowed same-repository hotfix. ## Reproduction Open a PR to `staging` as an active Pasta-Devs member. All checks can pass, but GitHub reports `REVIEW_REQUIRED` until the author explicitly bypasses the staging review ruleset.
bsakaguchi 2026-10-21 05:48:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2431
No description provided.