copia-cli pr merge
copia-cli pr merge <number> [flags]
Merge a pull request on Copia. By default a merge commit is created. Use –squash or –rebase to change the merge method.
Options
-
--delete-branch - Delete branch after merge
-
--merge - Merge commit (default)
-
--rebase - Rebase and merge
-
--squash - Squash and merge
Options inherited from parent commands
-
--host <string> - Target Copia host
-R,--repo <string>- Select repository (owner/repo)
-
--token <string> - Authentication token
Examples
# Merge a pull request
$ copia-cli pr merge 7
# Squash and merge
$ copia-cli pr merge 7 --squash
# Rebase and delete the branch
$ copia-cli pr merge 7 --rebase --delete-branch