maton github pr list

maton github pr list [flags]

Lists PRs via /repos/{owner}/{repo}/pulls. When –label, –author, or –assignee is set the request is routed through GitHub’s search API (/search/issues with q=is:pr+repo:owner/repo+…) since the REST pulls endpoint cannot filter on those fields. Pass ‘@me’ to –author or –assignee for “the authenticated user”.

Options

-a, --assignee <string>
Filter by assignee (uses search API; '@me' for self)
-A, --author <string>
Filter by PR author (uses search API; '@me' for self)
-B, --base <string>
Filter by base branch
--connection <string>
Connection ID to route through (Maton-Connection header)
--direction <string>
Sort direction: asc or desc
--dry-run
Print the request that would be sent without executing it
--format <string>
Output format: 'json' (default) or 'text' on supported commands
-H, --head <user:branch>
Filter by head ref (user:branch or `branch`)
-q, --jq <expression>
Filter JSON output using a jq expression
-l, --label <string>
Comma-separated label names (uses search API)
-L, --limit <int> (default 30)
Maximum results per page (1-100)
--paginate
Follow next_cursor and concatenate all pages (list commands only)
-R, --repo <owner/repo>
Target repository in owner/repo form (required)
--sort <string>
Sort by: created, updated, popularity, long-running
-s, --state <string> (default "open")
Filter by state: open, closed, all
--template <string>
Format JSON output using a Go template; see "maton help formatting"

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

Examples

$ maton github pr list --repo maton-ai/cli --state open
$ maton github pr list --repo maton-ai/cli --base main --head feature
$ maton github pr list --repo maton-ai/cli --label bug --author @me
$ maton github pr list --repo maton-ai/cli --paginate --format text

See also