mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7364] [MERGED] fix(ci): pick up owner approval on pull requests from forks #7699
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7699
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7364
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/owner-approval-forks📝 Commits (1)
e13392cfix(ci): pick up owner approval on pull requests from forks📊 Changes
3 files changed (+15 additions, -0 deletions)
View changed files
📝
.github/workflows/owner-approval-review.yml(+12 -0)📝
CHANGELOG.md(+1 -0)📝
scripts/validate-pr-triage.mjs(+2 -0)📄 Description
Linked issue
Closes #7363
Why this change
workflow_run.pull_requestsand then inGET /commits/{sha}/pulls. Both are empty for a commit that lives only in a fork. The step logged "not associated with a pull request" and skipped publishing.What changed
.github/workflows/owner-approval-review.yml: when both lookups are empty, the evaluator pages through this repository's open PRs. It keeps the one whose head SHA equals the reviewed commit. Nothing from the fork is read: nohead_repository, branch name or checkout, so the hardening thatvalidate-pr-triage.mjspins still holds. No match still means no status. The approval itself is still evaluated by the trustedscripts/evaluate-owner-approval.mjsfrom the default branch.scripts/validate-pr-triage.mjs: one new assertion pins the head-SHA fallback. No existing assertion changed.The evaluator is a
workflow_runworkflow, so it runs from the default branch. This fix takes effect once it reachesmain. Until then, rerunning a fork PR's Pull Request Triage after approving still works as a workaround.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
main, manually verify that approving a fork PR turns Owner approval for outside contributors green without rerunning triage.Agent-run checks:
node scripts/validate-pr-triage.mjspasses.githubobject returned the right PR in all three cases:73177400Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
None: CI workflow only.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.