mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7986] [MERGED] feat(review): push Dottore repairs to fork branches that allow maintainer edits #8040
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#8040
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/7986
Author: @Promansis
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feature(review)/7985-dottore-fork-repairs📝 Commits (3)
f48ceb2feat(review): push Dottore repairs to fork branches that allow maintainer edits8f987effix(review): name GitHub's maintainer-edits checkbox and comment with GITHUB_TOKENb2783a0fix(review): report a Dottore repair push that fails before git answers📊 Changes
3 files changed (+41 additions, -12 deletions)
View changed files
📝
.github/dottore-review/README.md(+6 -4)📝
.github/dottore-review/dottore_review.py(+15 -5)📝
.github/workflows/dottore-review.yml(+20 -3)📄 Description
Linked issue
Closes #7985
Why this change
/dottore autofix) refused every pull request whose branch lives on a fork, saying "Dottore can only push repairs to this repository's own branches". Most pull requests here come from forks, members' included, so the repair never ran where people asked for it. #7971 got that refusal three times on 2026-10-21 with the box ticked.What changed
/dottore autofix) now runs the repair, and Dottore pushes its commit to the fork's branch, as it already did for branches in this repository. Not yet proven live, see Manual verification notes.GITHUB_TOKEN, like the step before it, and still pushes with the App token.dottore_review.pyautofix_prompt()readsmaintainerCanModifyand the head repository and recordsowner/nameinmeta.json.dottore-review.ymlexports it as the review job'shead_repooutput, and the repair push job checks out that repository at the head branch with the App token, sooriginis the fork for a fork pull request. The moved-branch check, commit message and rejected-push report are otherwise unchanged..github/dottore-review/README.md(Autofix) describes the rule.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks, recorded here rather than ticked:
pnpm checkatb2783a02f: exit 0 (one existing client lint warning). It does not cover.github/.python3 -m py_compile .github/dottore-review/dottore_review.py: ok. actionlint 1.7.7 ondottore-review.ymlreports only the sixjob.workflow_sha/job.workflow_repositorywarnings that staging already has (actionlint does not know those properties yet).dottore_review.py) callingautofix_prompt()with stubbedgh. Fork with maintainer edits:autofix=true,meta.head_repo=Promansis/Marinara-Engine. Fork without: refusal naming the fork, no repair request. Same-repository PR:head_repo=Pasta-Devs/Marinara-Engine. Deleted fork: refusal, no crash. On staging's code the first three cases fail.workflow_dispatch:fixjob checked out the fork head8f987efc1from this repository and ran the repair, and the push job reported "changed nothing", because the only finding was in a workflow file, which the repair may not edit. The App-token checkout of the fork and the push to it were not reached.8f987efc1) and GitHub's current checkbox label (fixed).b2783a02f. The new step was checked by simulating its marker logic underbash -e, not live.Manual verification notes
.github/workflows/, tick the autofix box (or comment/dottore autofix). Then confirm aDottore-Autofixcommit lands on the fork branch. If the push is rejected, Dottore posts git's error on that pull request, and this change should be reverted.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Only
.github/dottore-review/README.mdchanges; it is not underdocs/, so no translation is affected. Marinara-Agents picks this up when itsdottore-review.ymlpin moves to a merge commit containing it.UI evidence (if applicable)
Not applicable (CI tooling only).
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.