Skip to content

feat: add pr close --comment and --delete-branch flags (#112)#122

Merged
q-soriarty merged 1 commit intodevelopfrom
feature/112-pr-close-flags
Apr 2, 2026
Merged

feat: add pr close --comment and --delete-branch flags (#112)#122
q-soriarty merged 1 commit intodevelopfrom
feature/112-pr-close-flags

Conversation

@q-soriarty
Copy link
Copy Markdown
Contributor

Summary

Closes #112

Add --comment and --delete-branch flags to pr close, matching gh CLI behavior.

copia-cli pr close 7 --comment "Closing in favor of #8"
copia-cli pr close 7 --delete-branch
copia-cli pr close 7 -c "Done" -d

Test plan

  • TestCloseRun_Success — basic close
  • TestCloseRun_WithComment — comment added before close
  • TestCloseRun_WithDeleteBranch — branch deleted after close
  • All existing tests pass

- --comment: leave a closing comment before closing (POST to issues API)
- --delete-branch: delete remote branch after close (DELETE branches API)
Matches gh CLI pr close behavior.
@q-soriarty q-soriarty marked this pull request as ready for review April 2, 2026 10:33
@q-soriarty q-soriarty merged commit 05b869e into develop Apr 2, 2026
4 checks passed
@q-soriarty q-soriarty deleted the feature/112-pr-close-flags branch April 2, 2026 10:34
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.

1 participant