copia-cli pr close

copia-cli pr close <number> [flags]

Close a pull request by number. Optionally add a closing comment with –comment or delete the branch with –delete-branch.

Options

-c, --comment <string>
Leave a closing comment
-d, --delete-branch
Delete the local and remote branch after close

Options inherited from parent commands

--host <string>
Target Copia host
-R, --repo <string>
Select repository (owner/repo)
--token <string>
Authentication token

Examples

  # Close a pull request
  $ copia-cli pr close 7

  # Close with a comment
  $ copia-cli pr close 7 --comment "Closing in favor of #8"

  # Close and delete the branch
  $ copia-cli pr close 7 --delete-branch

See also