[PR #4474] [MERGED] fix(ci): restore automatic member approval status #6394

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

📋 Pull Request Information

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

Base: staging ← Head: agent/restore-member-approval-status


📝 Commits (3)

  • 5fc0fef fix(ci): restore member approval status
  • 6923c0b fix(ci): harden approval review refresh
  • 206afa7 Merge remote-tracking branch 'origin/staging' into agent/restore-member-approval-status

📊 Changes

7 files changed (+522 additions, -6 deletions)

View changed files

➕ .github/workflows/owner-approval-review-signal.yml (+15 -0)
➕ .github/workflows/owner-approval-review.yml (+73 -0)
📝 .github/workflows/pull-request-checks.yml (+3 -0)
📝 .github/workflows/pull-request-triage.yml (+29 -0)
➕ scripts/evaluate-owner-approval.mjs (+153 -0)
➕ scripts/test-owner-approval.mjs (+186 -0)
📝 scripts/validate-pr-triage.mjs (+63 -6)

📄 Description

Linked issue

Closes #4473

Why this change

The native staging Code Owner rule leaves Pasta-Devs members in a review-required state and only offers a manual ruleset bypass. Member and owner pull requests should receive a successful status automatically, while outside contributors should still require SpicyMarinara's approval.

What changed

  • Publish a token-backed Owner approval for outside contributors commit status from trusted staging code.
  • Treat active Pasta-Devs member and admin organization roles as internal contributors.
  • Fail closed for missing or invalid membership credentials and for outside contributors without a current SpicyMarinara approval.
  • Refresh the status after review activity through a permissionless signal and a trusted default-branch evaluator.
  • Add topology validation and evaluator regression coverage.
  • Restore the existing status as a required staging quality gate and disable the conflicting native staging Code Owner rule.

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 version:check, pnpm guard:installer-artifacts, the policy topology validator, and evaluator regression cases were run locally.
  • The staging quality ruleset now requires Owner approval for outside contributors; the native staging Code Owner ruleset is disabled.
  • PR #4472 changed from REVIEW_REQUIRED to no review requirement. Its only remaining merge state at verification time was BEHIND.
  • Manually verify an outside contributor remains blocked until SpicyMarinara approves the current head commit.
  • Promote the trusted review evaluator to the default branch before relying on review-event refreshes.

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] <paths> follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Not applicable; CI policy only.

Summary by CodeRabbit

  • New Features
    • Added automated owner-approval checks for pull requests targeting staging.
    • Approval status now reflects contributor membership and current review approvals.
    • Added review-event handling and follow-up evaluation workflows.
  • Bug Fixes
    • Ensured approvals are matched to the latest pull-request commit.
    • Added safe handling for missing, invalid, or unavailable membership information.
  • Tests
    • Added automated coverage for approval outcomes, token handling, and error scenarios.
    • Expanded validation of workflow permissions, trusted revisions, and status reporting.

🔄 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/4474 **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/restore-member-approval-status` --- ### 📝 Commits (3) - [`5fc0fef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5fc0fef280f04a69ac05729a26b83dc7805ec3b9) fix(ci): restore member approval status - [`6923c0b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6923c0b1201addcf5d6770f034e7483cf80066c6) fix(ci): harden approval review refresh - [`206afa7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/206afa7a6b4a355238184bc8529d2993415dc805) Merge remote-tracking branch 'origin/staging' into agent/restore-member-approval-status ### 📊 Changes **7 files changed** (+522 additions, -6 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/owner-approval-review-signal.yml` (+15 -0) ➕ `.github/workflows/owner-approval-review.yml` (+73 -0) 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) 📝 `.github/workflows/pull-request-triage.yml` (+29 -0) ➕ `scripts/evaluate-owner-approval.mjs` (+153 -0) ➕ `scripts/test-owner-approval.mjs` (+186 -0) 📝 `scripts/validate-pr-triage.mjs` (+63 -6) </details> ### 📄 Description ## Linked issue Closes #4473 ## Why this change The native staging Code Owner rule leaves Pasta-Devs members in a review-required state and only offers a manual ruleset bypass. Member and owner pull requests should receive a successful status automatically, while outside contributors should still require SpicyMarinara's approval. ## What changed - Publish a token-backed `Owner approval for outside contributors` commit status from trusted staging code. - Treat active Pasta-Devs `member` and `admin` organization roles as internal contributors. - Fail closed for missing or invalid membership credentials and for outside contributors without a current SpicyMarinara approval. - Refresh the status after review activity through a permissionless signal and a trusted default-branch evaluator. - Add topology validation and evaluator regression coverage. - Restore the existing status as a required staging quality gate and disable the conflicting native staging Code Owner rule. ## 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 version:check`, `pnpm guard:installer-artifacts`, the policy topology validator, and evaluator regression cases were run locally. - The staging quality ruleset now requires `Owner approval for outside contributors`; the native staging Code Owner ruleset is disabled. - PR #4472 changed from `REVIEW_REQUIRED` to no review requirement. Its only remaining merge state at verification time was `BEHIND`. - Manually verify an outside contributor remains blocked until SpicyMarinara approves the current head commit. - Promote the trusted review evaluator to the default branch before relying on review-event refreshes. ## 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] <paths>` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Not applicable; CI policy only. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added automated owner-approval checks for pull requests targeting staging. * Approval status now reflects contributor membership and current review approvals. * Added review-event handling and follow-up evaluation workflows. * **Bug Fixes** * Ensured approvals are matched to the latest pull-request commit. * Added safe handling for missing, invalid, or unavailable membership information. * **Tests** * Added automated coverage for approval outcomes, token handling, and error scenarios. * Expanded validation of workflow permissions, trusted revisions, and status reporting. <!-- 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:10:00 +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#6394
No description provided.