[PR #4251] [MERGED] Fix owner-approval review-event filtering #6303

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4251
Author: @SpicyMarinara
Created: 7/29/2026
Status: ✅ Merged
Merged: 7/29/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/review-event-trigger-staging


📝 Commits (2)

  • 4223de7 ci: fix review event filtering
  • caa008b ci: resolve PR membership from API

📊 Changes

1 file changed (+8 additions, -4 deletions)

View changed files

📝 .github/workflows/pull-request-triage.yml (+8 -4)

📄 Description

Closes #4250

Why this change

The owner-approval gate must rerun when a review is submitted, edited, or dismissed. GitHub does not support a branches filter on the pull_request_review event, so the published filter can prevent the workflow from loading correctly.

What changed

  • Remove the unsupported branches key from pull_request_review.
  • Restrict the owner-approval job to staging with a job-level condition.
  • Preserve the existing current-head owner approval logic.

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

  • Workflow YAML parses successfully.
  • git diff --check passes.
  • CodeRabbit identified the unsupported event filter; this PR applies its requested job-level restriction.

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
  • Version/release files updated (only if this PR includes a version bump)

Summary by CodeRabbit

  • Chores
    • Refreshed pull request automation formatting and logic for more reliable event handling.
    • Updated external contributor approval checks to only apply to pull requests targeting the staging branch.
    • Review/pagination behavior was adjusted to use the pull request number consistently.
    • No user-facing product functionality changes.

🔄 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/4251 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/29/2026 **Status:** ✅ Merged **Merged:** 7/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/review-event-trigger-staging` --- ### 📝 Commits (2) - [`4223de7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4223de785266c352f91020ca3e2d0eee40fa4d17) ci: fix review event filtering - [`caa008b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/caa008b6ec2b7937ffabba94a3408d26a0fcbe13) ci: resolve PR membership from API ### 📊 Changes **1 file changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-triage.yml` (+8 -4) </details> ### 📄 Description Closes #4250 ## Why this change The owner-approval gate must rerun when a review is submitted, edited, or dismissed. GitHub does not support a branches filter on the pull_request_review event, so the published filter can prevent the workflow from loading correctly. ## What changed - Remove the unsupported branches key from pull_request_review. - Restrict the owner-approval job to staging with a job-level condition. - Preserve the existing current-head owner approval logic. ## 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 - Workflow YAML parses successfully. - `git diff --check` passes. - CodeRabbit identified the unsupported event filter; this PR applies its requested job-level restriction. ## 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 - [ ] Version/release files updated (only if this PR includes a version bump) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Refreshed pull request automation formatting and logic for more reliable event handling. * Updated external contributor approval checks to only apply to pull requests targeting the staging branch. * Review/pagination behavior was adjusted to use the pull request number consistently. * No user-facing product functionality changes. <!-- 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:07 +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#6303
No description provided.