[GH-ISSUE #4361] [Issue]: Owner approval check is duplicated by unrelated PR activity #2365

Closed
opened 2026-10-21 05:47:39 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Pull requests can list Pull Request Triage / Owner approval for outside contributors multiple times for the same head commit. PR #4356 demonstrates the workflow being rerun by PR edits and review activity that did not change the owner-approval decision.

Expected behavior

Each pull request head should expose one meaningful owner-approval gate. The gate should re-evaluate only when an event can change its result, while preserving the existing policy:

  • Active Pasta-Devs members and the owner pass automatically.
  • Outside and first-time contributors require a current approving review from SpicyMarinara.
  • Dismissing or invalidating that owner approval must make the gate fail again.

Actual behavior

The complete Pull Request Triage workflow runs on PR edits and on every submitted, edited, or dismissed review. As a result, CodeRabbit reviews, ordinary reviewer comments, and description edits can create additional Owner approval for outside contributors check runs for the same commit.

Steps to reproduce

  1. Open a pull request targeting staging.
  2. Edit its title or description, request CodeRabbit review, or receive review activity from a non-owner account.
  3. Open the pull request checks list.
  4. Observe multiple Pull Request Triage / Owner approval for outside contributors entries for the same head commit.

Environment

  • Marinara Engine version: Not applicable; repository workflow
  • Install type: Not applicable
  • OS + version: Not applicable
  • Browser or app shell: GitHub pull request checks UI

Logs, screenshots, or video

Reproduction: https://github.com/Pasta-Devs/Marinara-Engine/pull/4356

PR #4356 produced repeated pull_request_target runs from edits and repeated pull_request_review runs from CodeRabbit and ordinary reviewer comments.

Additional context

The current .github/workflows/pull-request-triage.yml listens to pull_request_target actions opened, reopened, edited, and synchronize, plus pull_request_review actions submitted, edited, and dismissed. The owner-approval job only checks the base branch, so it runs for every one of those events.

Keep the fix focused on trigger and job filtering. Normal PR lifecycle events should establish or refresh the gate, base-branch changes should revalidate policy, and only approval-relevant review activity from SpicyMarinara should refresh the outside-contributor decision. CodeRabbit and non-owner review activity must not recreate the owner-approval check.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4361 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Pull requests can list `Pull Request Triage / Owner approval for outside contributors` multiple times for the same head commit. PR #4356 demonstrates the workflow being rerun by PR edits and review activity that did not change the owner-approval decision. ## Expected behavior Each pull request head should expose one meaningful owner-approval gate. The gate should re-evaluate only when an event can change its result, while preserving the existing policy: - Active Pasta-Devs members and the owner pass automatically. - Outside and first-time contributors require a current approving review from `SpicyMarinara`. - Dismissing or invalidating that owner approval must make the gate fail again. ## Actual behavior The complete Pull Request Triage workflow runs on PR edits and on every submitted, edited, or dismissed review. As a result, CodeRabbit reviews, ordinary reviewer comments, and description edits can create additional `Owner approval for outside contributors` check runs for the same commit. ## Steps to reproduce 1. Open a pull request targeting `staging`. 2. Edit its title or description, request CodeRabbit review, or receive review activity from a non-owner account. 3. Open the pull request checks list. 4. Observe multiple `Pull Request Triage / Owner approval for outside contributors` entries for the same head commit. ## Environment - Marinara Engine version: Not applicable; repository workflow - Install type: Not applicable - OS + version: Not applicable - Browser or app shell: GitHub pull request checks UI ## Logs, screenshots, or video Reproduction: https://github.com/Pasta-Devs/Marinara-Engine/pull/4356 PR #4356 produced repeated `pull_request_target` runs from edits and repeated `pull_request_review` runs from CodeRabbit and ordinary reviewer comments. ## Additional context The current `.github/workflows/pull-request-triage.yml` listens to `pull_request_target` actions `opened`, `reopened`, `edited`, and `synchronize`, plus `pull_request_review` actions `submitted`, `edited`, and `dismissed`. The owner-approval job only checks the base branch, so it runs for every one of those events. Keep the fix focused on trigger and job filtering. Normal PR lifecycle events should establish or refresh the gate, base-branch changes should revalidate policy, and only approval-relevant review activity from `SpicyMarinara` should refresh the outside-contributor decision. CodeRabbit and non-owner review activity must not recreate the owner-approval check. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:47:39 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 31, 2026):

SpicyMarinara is taking this in agent/issue-sweep-4350-4361. Work is tracked in draft PR #4362.

<!-- gh-comment-id:5145470626 --> @SpicyMarinara commented on GitHub (Jul 31, 2026): SpicyMarinara is taking this in `agent/issue-sweep-4350-4361`. Work is tracked in draft PR #4362.
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#2365
No description provided.