[PR #4564] [MERGED] fix(ci): stabilize required checks for organization members #6425

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

📋 Pull Request Information

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

Base: main ← Head: hotfix/ci-required-checks


📝 Commits (3)

  • 74b745d fix(ci): stabilize required checks for members (#4562)
  • 6625923 fix(ci): harden owner approval status
  • 72c8561 test(ci): cover dismissed owner approval

📊 Changes

7 files changed (+639 additions, -103 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 (+6 -0)
📝 .github/workflows/pull-request-triage.yml (+26 -103)
➕ scripts/evaluate-owner-approval.mjs (+171 -0)
➕ scripts/test-owner-approval.mjs (+218 -0)
➕ scripts/validate-pr-triage.mjs (+130 -0)

📄 Description

Why this change

Active Pasta-Devs members can be blocked from merging otherwise-ready pull requests because the workflow currently active from main publishes required jobs as SKIPPED. GitHub still requires successful Branch policy check and Pull Request template check contexts, so organization membership is recognized correctly while the merge remains blocked.

pull_request_target and review-triggered workflow topology must live on the default branch before it can protect staging PRs reliably. This hotfix carries only the already-tested CI correction from staging, without promoting unrelated staging work.

What changed

  • Keep required branch-policy and template jobs present for trusted contributors.
  • Publish the staging owner-approval result through a trusted base-side status evaluator.
  • Separate untrusted review signaling from the workflow that reads organization membership and writes commit statuses.
  • Add topology and evaluator regression scripts to the pull-request validation job.

Validation

Automated evidence already run locally:

  • node scripts/validate-pr-triage.mjs
  • node scripts/test-owner-approval.mjs

Manual verification for the maintainer:

  • Confirm a Pasta-Devs member PR receives successful required triage contexts.
  • Confirm an outside contributor still requires current SpicyMarinara approval.
  • Confirm a new owner review refreshes the approval status for the current head.

Fixes #4562

Summary by CodeRabbit

  • New Features

    • Added automated owner-approval evaluation for staging pull requests.
    • Approval checks now account for contributor membership and current-commit reviews.
    • Evaluation results are published as pull-request status checks.
  • Bug Fixes

    • Improved handling of closed pull requests, stale approvals, missing data, and temporary service failures.
  • Tests

    • Added coverage for approval outcomes, API errors, retries, and status reporting.
    • Added validation for pull-request workflow configuration and required repository settings.

🔄 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/4564 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/4/2026 **Status:** ✅ Merged **Merged:** 8/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `hotfix/ci-required-checks` --- ### 📝 Commits (3) - [`74b745d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/74b745d92d7c6e0913dce433d7c80aec82ed3d14) fix(ci): stabilize required checks for members (#4562) - [`6625923`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6625923f59ac339626c1873fe53643ac1e915383) fix(ci): harden owner approval status - [`72c8561`](https://github.com/Pasta-Devs/Marinara-Engine/commit/72c85616f7715452050c7dc8086921e5bc7f0369) test(ci): cover dismissed owner approval ### 📊 Changes **7 files changed** (+639 additions, -103 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` (+6 -0) 📝 `.github/workflows/pull-request-triage.yml` (+26 -103) ➕ `scripts/evaluate-owner-approval.mjs` (+171 -0) ➕ `scripts/test-owner-approval.mjs` (+218 -0) ➕ `scripts/validate-pr-triage.mjs` (+130 -0) </details> ### 📄 Description ## Why this change Active Pasta-Devs members can be blocked from merging otherwise-ready pull requests because the workflow currently active from `main` publishes required jobs as `SKIPPED`. GitHub still requires successful `Branch policy check` and `Pull Request template check` contexts, so organization membership is recognized correctly while the merge remains blocked. `pull_request_target` and review-triggered workflow topology must live on the default branch before it can protect staging PRs reliably. This hotfix carries only the already-tested CI correction from `staging`, without promoting unrelated staging work. ## What changed - Keep required branch-policy and template jobs present for trusted contributors. - Publish the staging owner-approval result through a trusted base-side status evaluator. - Separate untrusted review signaling from the workflow that reads organization membership and writes commit statuses. - Add topology and evaluator regression scripts to the pull-request validation job. ## Validation Automated evidence already run locally: - `node scripts/validate-pr-triage.mjs` - `node scripts/test-owner-approval.mjs` Manual verification for the maintainer: - [ ] Confirm a Pasta-Devs member PR receives successful required triage contexts. - [ ] Confirm an outside contributor still requires current `SpicyMarinara` approval. - [ ] Confirm a new owner review refreshes the approval status for the current head. Fixes #4562 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added automated owner-approval evaluation for staging pull requests. * Approval checks now account for contributor membership and current-commit reviews. * Evaluation results are published as pull-request status checks. * **Bug Fixes** * Improved handling of closed pull requests, stale approvals, missing data, and temporary service failures. * **Tests** * Added coverage for approval outcomes, API errors, retries, and status reporting. * Added validation for pull-request workflow configuration and required repository settings. <!-- 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:17 +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#6425
No description provided.