Upgrades leave .forgejo/pull_request_template.md stale #221
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?
Seen at
b04e7781d7.Location
UPGRADING.mdstep 3, lines 16–18: the root.forgejo/stays in thesource.
UPGRADING.md§ Migrations, Pull request template (around line265), which copies
.agents/templates/pull-request.mdto.forgejo/pull_request_template.mdonly "while the main branch,before the merge, lacks
.agents/templates/pull-request.md".docs/INSTALL.mdadoption step 4, which makes the same copy atadoption.
Evidence
After adoption, or after the migration has run once, a Forgejo
repository holds two copies of the pull request form:
.agents/templates/pull-request.md, which step 3 merges on everyupgrade, and
.forgejo/pull_request_template.md, which nothing touchesagain: step 3 leaves the root
.forgejo/to the source, and themigration no longer applies once the template exists. Nothing in the
adopting repository records that the
.forgejo/file is a copy.Scenario
The source revises the form, as
b04e778(feat(templates): aim PR bodiesat outside readers) did. On the next upgrade, agents' pull request
bodies follow the new
.agents/template, while a person who opens apull request in Forgejo's web UI still gets the old form, and the two
drift further with each upgrade.
Smallest fix
In
UPGRADING.mdstep 3, also update.forgejo/pull_request_template.mdfrom the chosen commit's
.agents/templates/pull-request.mdwhen itstill matches the adopted commit's, and ask the user when it differs.