[PR #4468] [MERGED] fix(ci): use native staging approval gates #6391

Closed
opened 2026-10-23 04:09:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4468
Author: @SpicyMarinara
Created: 8/2/2026
Status: ✅ Merged
Merged: 8/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/stabilize-required-pr-checks


📝 Commits (5)

  • 305f7f6 fix(ci): stabilize required PR checks
  • d38367c fix(ci): use native owner review gate
  • 0d172fa test(ci): harden triage topology checks
  • 289f898 test(ci): require trusted triage structure
  • 83dd067 test(ci): validate exact exemption step

📊 Changes

4 files changed (+85 additions, -132 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+3 -0)
📝 .github/workflows/pull-request-triage.yml (+11 -112)
📝 scripts/regressions/open-issues.regression.ts (+2 -20)
➕ scripts/validate-pr-triage.mjs (+69 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors require a current Code Owner approval from SpicyMarinara; the Pasta-Devs Developers team has the staging pull-request bypass for internal work.

Linked issue

Closes #4467

Why this change

Review submissions reran the whole pull-request triage workflow, producing skipped and cancelled copies of required status contexts. The attempted workflow-only split also placed approval authorization in a PR-controlled pull_request_review workflow, which is not a trustworthy security boundary.

What changed

  • Keep workflow triage on trusted pull_request_target lifecycle events only.
  • Remove the custom owner-approval status and enforce outside-contributor approval with GitHub's native staging Code Owner ruleset.
  • Keep the Pasta-Devs Developers team as the native ruleset bypass; its membership currently matches the organization membership.
  • Make the trusted-contributor template exemption an explicit successful step instead of a skipped required job.
  • Add a topology regression that rejects a PR-controlled review gate and verifies the SpicyMarinara CODEOWNERS rule.
  • Run the topology regression in pull-request CI.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

pnpm check, pnpm regression:issues, focused topology validation, whitespace checks, and YAML syntax checks pass locally. The native Staging owner review for outside contributors ruleset is active, requires one current Code Owner approval, dismisses stale approvals, and grants only the Developers team the pull-request bypass. The obsolete Owner approval for outside contributors status was removed from the staging quality ruleset. Docker-based Actionlint was unavailable because the local Docker daemon is stopped; GitHub Actions remains the final workflow-semantic check.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Not applicable; this changes GitHub Actions workflow topology and repository ruleset enforcement only.

Summary by CodeRabbit

  • Bug Fixes

    • Improved pull request triage automation by simplifying event handling and applying validation consistently.
    • Added checks for required workflow behavior, trusted-contributor exemptions, ownership configuration, and removal of deprecated approval steps.
  • Tests

    • Integrated pull request triage validation into project checks and regression testing to catch configuration issues earlier.
    • Added coverage for workflow triggers, approval handling, ownership settings, and deprecated configuration removal.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4468 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/2/2026 **Status:** ✅ Merged **Merged:** 8/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/stabilize-required-pr-checks` --- ### 📝 Commits (5) - [`305f7f6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/305f7f68eda04d9300163061640e588fa131466e) fix(ci): stabilize required PR checks - [`d38367c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d38367cfbaa821d6aaf6a9b39aa36b1ae199992f) fix(ci): use native owner review gate - [`0d172fa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0d172fa6ac65e193609aa6cb1df47a923dd5fe7b) test(ci): harden triage topology checks - [`289f898`](https://github.com/Pasta-Devs/Marinara-Engine/commit/289f89824714ba1788dc30342aabab55b37538b3) test(ci): require trusted triage structure - [`83dd067`](https://github.com/Pasta-Devs/Marinara-Engine/commit/83dd0672aa36751eb257bf495c37ae40806a8569) test(ci): validate exact exemption step ### 📊 Changes **4 files changed** (+85 additions, -132 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) 📝 `.github/workflows/pull-request-triage.yml` (+11 -112) 📝 `scripts/regressions/open-issues.regression.ts` (+2 -20) ➕ `scripts/validate-pr-triage.mjs` (+69 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors require a current Code Owner approval from `SpicyMarinara`; the Pasta-Devs `Developers` team has the staging pull-request bypass for internal work. ## Linked issue Closes #4467 ## Why this change Review submissions reran the whole pull-request triage workflow, producing skipped and cancelled copies of required status contexts. The attempted workflow-only split also placed approval authorization in a PR-controlled `pull_request_review` workflow, which is not a trustworthy security boundary. ## What changed - Keep workflow triage on trusted `pull_request_target` lifecycle events only. - Remove the custom owner-approval status and enforce outside-contributor approval with GitHub's native staging Code Owner ruleset. - Keep the Pasta-Devs `Developers` team as the native ruleset bypass; its membership currently matches the organization membership. - Make the trusted-contributor template exemption an explicit successful step instead of a skipped required job. - Add a topology regression that rejects a PR-controlled review gate and verifies the `SpicyMarinara` CODEOWNERS rule. - Run the topology regression in pull-request CI. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes `pnpm check`, `pnpm regression:issues`, focused topology validation, whitespace checks, and YAML syntax checks pass locally. The native `Staging owner review for outside contributors` ruleset is active, requires one current Code Owner approval, dismisses stale approvals, and grants only the `Developers` team the pull-request bypass. The obsolete `Owner approval for outside contributors` status was removed from the staging quality ruleset. Docker-based Actionlint was unavailable because the local Docker daemon is stopped; GitHub Actions remains the final workflow-semantic check. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Not applicable; this changes GitHub Actions workflow topology and repository ruleset enforcement only. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved pull request triage automation by simplifying event handling and applying validation consistently. * Added checks for required workflow behavior, trusted-contributor exemptions, ownership configuration, and removal of deprecated approval steps. * **Tests** * Integrated pull request triage validation into project checks and regression testing to catch configuration issues earlier. * Added coverage for workflow triggers, approval handling, ownership settings, and deprecated configuration removal. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:09:59 +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#6391
No description provided.