Skip to content

feat: add close/reopen actions for PRs#55

Merged
barrettruth merged 3 commits intomainfrom
fix/pr-close-ux
Apr 5, 2026
Merged

feat: add close/reopen actions for PRs#55
barrettruth merged 3 commits intomainfrom
fix/pr-close-ux

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Summary

  • Add pr_toggle_state, pr_close, and pr_reopen to the PR picker, mirroring the existing issue close/reopen functionality
  • PRs can now be closed or reopened via the picker (<c-s>) or commands (:Forge pr close/reopen {num})
  • Add close field to forge.PRPickerKeys type annotation with <c-s> default keybind
  • Add close to PR key validation list

Closes #36

Test plan

  • All 158 existing tests pass
  • Open PR picker, press <c-s> on an open PR — verify it closes
  • Open PR picker with --state=closed, press <c-s> — verify it reopens
  • Run :Forge pr close {num} and :Forge pr reopen {num} — verify both work
  • Tab completion includes close and reopen for :Forge pr

barrettruth and others added 3 commits April 4, 2026 21:08
Add pr_toggle_state, pr_close, and pr_reopen to the PR picker,
mirroring the existing issue close/reopen functionality. PRs can
now be closed or reopened via the picker (<c-s>) or commands
(:Forge pr close/reopen {num}).

Closes #36
@barrettruth barrettruth merged commit 64faa7d into main Apr 5, 2026
1 check passed
@barrettruth barrettruth deleted the fix/pr-close-ux branch April 5, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

closing out of prs is weird

1 participant