Skip to content
[ 03 ]Commands

copia-cli pr status

copia-cli pr status [flags]

Show the pull requests of the repository that are relevant to you: the one of the current branch, the open ones you created and the open ones requesting a review from you. Each list shows the ten most recently updated pull requests. With -R the current branch is left out.

With --json, the output is one object with the keys currentBranch (a pull request or null), createdBy and needsReview, each with the requested fields.

Options

-c, --conflict-status
Display the merge conflict status of each pull request
-q, --jq <expression>
Filter JSON output using a jq expression
--json <fields>
Output JSON with the specified fields: number, title, state, html_url, user, head, base, updated_at, mergeable, draft
-t, --template <template>
Format JSON output using a Go template (helpers: join, pluck, truncate, timeago, tablerow, tablerender)

Options inherited from parent commands

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

Examples

$ copia-cli pr status
$ copia-cli pr status --conflict-status
$ copia-cli pr status --json number,title \
    --jq '.needsReview[].number'

See also