fj issue create --template / pr create --template: use repo templates #172
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?
Problem
Repos shipping issue/PR templates (
.gitea/ISSUE_TEMPLATE,.gitea/PULL_REQUEST_TEMPLATE) get no help;createstarts from an empty body.gh issue create --templatepicks one.Acceptance criteria
fj issue create --template <name>preloads the chosen template body (opens$EDITORunless-b/-Fgiven); with no name on a TTY, list the repo's templates to pick from.fj pr create --template <name>likewise.Value
Consistent issue/PR hygiene; less copy-paste for template-driven repos.
Priority
p3 (niche; partly worked around by
-F/--body-file).Dependencies / sequencing
Build after #165 so it reuses the create body-resolution / editor path. Template-API availability varies by build (verify, with a default-branch-file fallback).
Overlap
Shares body-population plumbing with #165 (
create --fill); sequence after it.