feat(forge): pr create allows edits from maintainers #905
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
testing wanted
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!905
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:feat/forge-maintainer-edits"
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?
Type: feat · Risk: low · Tested on: Linux (forge.py run only; no game change) · Needs: none
Why
A maintainer can't push a small fix to a contributor's PR branch unless the author ticked "Allow edits from maintainers". PRs opened with
forge.py pr createleft it off, so every fix-up needed a round trip.What changed
pr createnow turns onallow_maintainer_editfor the PR it opens. The create call has no field for it, so it is set in the edit that already follows (the one that fills the description), which now always runs.cmd_prcreate branch,edit_pr(..., allow_maintainer_edit=True).Measurements
Verdict: nothing to measure: a forge script, no game code.
Flags and settings
None.
Testing
Tested: this PR was opened with the changed script; its
allow_maintainer_editis checked after creation (see the comment).Not tested: the game-free checks (
tests/run_all.py): they run on CI, not on this PC.Must be tested: None.
Risks
What could break:
pr createmakes one extra API call when the description needs no change.Turning it off: revert the commit.
Compatibility: Nothing changes.
Checklist
Everyone
type(scope): description) of the status line's type.main.python -I -B tests/run_all.pypasses (any failure that also fails onmainis named).third_party/untouched (a new folder with aPROVENANCE.mdinstead).When it applies
Assisted-by:/Co-Authored-By:trailers.WIP: feat(forge): pr create allows edits from maintainersto feat(forge): pr create allows edits from maintainers