mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7985] [Feature]: Dottore: push autofix repairs to fork branches that allow maintainer edits #7505
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#7505
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?
Originally created by @Promansis on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7985
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Dottore's autofix (the "Let Dottore fix the open findings" box in the walkthrough, or
/dottore autofix) refuses every pull request whose branch lives on a fork:Most contributions here come from forks, including organisation members' own forks, so the repair never runs where it is wanted. Example: #7971 (branch
chore/7970-concurrent-regressionsonPromansis/Marinara-Engine, "Allow edits by maintainers" on) got this refusal twice on 2026-10-21 (15:46 and 16:06 UTC) after the box was ticked.GitHub already lets anyone with push access to this repository push to a fork's pull request branch when the author allowed edits by maintainers, so the refusal is stricter than it needs to be.
Proposed solution
autofix_prompt()in.github/dottore-review/dottore_review.pyalso readsmaintainerCanModifyand the head repository. It refuses only a fork pull request that does not allow maintainer edits, and that refusal names the fork and says the author can enable "Allow edits by maintainers" (forks owned by an organisation cannot) or use the repair prompt at the end of the review.meta.jsonrecords the head repository (owner/name); thereviewjob exports it as an output.pushjob in.github/workflows/dottore-review.ymlchecks out that repository at the head branch with the Dottore App token, so it pushes to the fork for a fork pull request and to this repository otherwise. The moved-branch check, commit message and rejected-push report stay as they are..github/dottore-review/README.mddescribes the new rule.Open question to prove live before merging: whether the Dottore App's installation token (scoped to this repository) may push to a user fork's branch under maintainer edits. GitHub documents it for users with push access; a workflow_dispatch of the branch's own workflow against #7971 settles it.
Alternatives considered
Additional context
Owner: @Promansis is implementing this (issue, branch and PR). A follow-up pull request in Pasta-Devs/Marinara-Agents moves its
dottore-review.ymlpin to the Engine merge commit that contains this change.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: