avr pr
View and comment on pull requests.
avr pr [OPTIONS] COMMAND [ARGS]...Subcommands
Section titled “Subcommands”avr pr comment
Section titled “avr pr comment”Comment on a pull request.
avr pr comment [OPTIONS] NUMBERAvrea stores the comment and, when GitHub sync is enabled for the organization, publishes it to GitHub asynchronously as the Avrea GitHub App or your linked GitHub account, with attribution.
Without --path, the comment applies to the whole pull request. With --path and --line, it starts an inline review thread on the pull request's current head commit. --start-line extends it to a range of lines. Line numbers refer to the new file (--side right) or the old file (--side left).
Requires a signed-in account (scoped and service tokens cannot comment), pull request comments enabled for the organization, and an Avrea Git mirror of the repository.
Examples: avr pr comment 42 --body "Looks good to me." avr pr comment 42 --body-file review.md go test ./... 2>&1 | tail -n 20 | avr pr comment 42 --body-file - avr pr comment 42 --path src/app.go --line 18 --body "Handle this error." avr pr comment 42 --path src/app.go --start-line 10 --line 14 --side left --body "Why?" avr pr comment 42 --body "Ship it" --json id,publicationJSON FIELDS base_sha, body, commit_sha, created_at, end_line, id, path, publication, pull_number, repository_id, side, start_line, thread_idArguments
NUMBER
Options
--body<TEXT>— Comment text in Markdown.--body-file<FILENAME>— Read the comment text from a file, or - for stdin.--path<TEXT>— Comment inline on this file, relative to the repository root. Requires --line.--line<INTEGER RANGE>— Line to comment on, or the last line of a --start-line range.--start-line<INTEGER RANGE>— First line of a multi-line inline comment. Defaults to --line.--side<CHOICE>— Diff side the lines refer to: right for the new file, left for the old file. (choices:right,left· default:right)--repo, -R<TEXT>— Repository (org/repo or rep-xxx). Auto-detected from git remote if omitted.--org, -o<TEXT>— Organization ID or slug. Uses default org if not specified (see: avr config set org).--json<TEXT>— Output JSON. Pass comma-separated field names, "*" for all fields, or "?" to list available fields.-q, --jq<TEXT>— Filter --json output through a jq expression.
avr pr list
Section titled “avr pr list”List pull requests across repositories.
avr pr list [OPTIONS]Examples: avr pr list avr pr list --scope authored avr pr list --repo acme/widgets --state merged avr pr list --json number,title,mergeability avr pr list --json '?' # list available fields avr pr list --json '*' # all fieldsJSON FIELDS author_login, base_ref, base_sha, check_status, comment_count, created_at, draft, head_ref, head_sha, mergeability, merged, number, repository_full_name, repository_id, state, title, unresolved_thread_count, updated_atOptions
--org, -o<TEXT>— Organization ID or slug. Uses default org if not specified (see: avr config set org).--repo, -R<TEXT>— Filter by repository (org/repo or rep-xxx). Pass --repo more than once to filter multiple repositories. Auto-detected from git remote if omitted. (repeatable)--scope<CHOICE>— List all, authored, involved, rest, or attention PRs. Attention requires open state. (choices:all,authored,involved,rest,attention· default:all)--state<CHOICE>— Filter by pull request state. 'all' removes the state filter. (choices:open,closed,merged,all· default:open)-L, --limit<INTEGER RANGE>— Max PRs to return. (default:20)--cursor<TEXT>— Pagination cursor from a previous response.--json<TEXT>— Output JSON. Pass comma-separated field names, "*" for all fields, or "?" to list available fields.-q, --jq<TEXT>— Filter --json output through a jq expression.