Add explicit PR template selection for :Forge pr create #678

Closed
opened 2026-05-09 15:01:55 +00:00 by barrettruth · 0 comments
Owner

Goal

Support :Forge pr create template=... to select a named PR template when multiple PR templates exist.

Scope

  • Accept template=... on :Forge pr create.
  • Pass the selected slug through create_pr() opts.
  • Load from the current backend's PR template paths.
  • Keep existing behavior when no template is specified:
    • one discovered PR template is loaded automatically
    • multiple PR templates fall back to the normal commit/default body
  • Add completion for PR template slugs.
  • Update vimdoc and focused tests.

Non-goals

  • No picker prompt for multiple PR templates.
  • No change to fill or web behavior.
  • No backend semantic changes.

Related tracker: #367

## Goal Support `:Forge pr create template=...` to select a named PR template when multiple PR templates exist. ## Scope - Accept `template=...` on `:Forge pr create`. - Pass the selected slug through `create_pr()` opts. - Load from the current backend's PR template paths. - Keep existing behavior when no template is specified: - one discovered PR template is loaded automatically - multiple PR templates fall back to the normal commit/default body - Add completion for PR template slugs. - Update vimdoc and focused tests. ## Non-goals - No picker prompt for multiple PR templates. - No change to `fill` or `web` behavior. - No backend semantic changes. Related tracker: #367
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/forge.nvim#678
No description provided.