Skip to content
[ 03 ]Commands

copia-cli pr ready

copia-cli pr ready {<number> | <url>} [flags]

Mark a draft pull request as ready for review by number or URL.

Gitea has no draft field: a pull request is a draft while its title starts with "WIP:" or "[WIP]", in any case. The command removes that prefix from the title. With --undo it converts the pull request back to a draft by prefixing the title with "WIP: ".

A pull request that is already in the wanted state is left as it is. A closed pull request cannot be changed.

Options

--undo
Convert a pull request to "draft"

Options inherited from parent commands

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

Examples

# Mark a draft pull request as ready for review
$ copia-cli pr ready 7

# Convert it back to a draft
$ copia-cli pr ready https://app.copia.io/my-org/my-repo/pulls/7 \
    --undo

See also