src pr list

List Repository Pull Requests Retrieves all pull requests from an repository

Usage

src pr list [flags]

Examples

List open pull requests in current repository

src pr list

List PRs in another repository

src pr list -R foo/bar

Filter by status

src pr list --status open

Filter by author

src pr list --author username

Filter by source branch

src pr list --from feature-branch

Filter by target branch

src pr list --to main

Filter by reviewer

src pr list --reviewer username

JSON output

src pr list --json

Limit results

src pr list --limit 20

Flags

Flag Description
-L, --limit int Maximum number of items to return (default "30")
--sort string Sort by field (available: id, title, author, updated-by, created-at, updated-at)
--status string Filter by status
--from string Filter by from
--to string Filter by to
--author string Filter by author
--reviewer string Filter by reviewer
--label string Filter by label

Inherited flags

Flag Description
--env string Override Sourcecraft environment (use 'src envs' to list available)
--json string Output JSON, optionally filtered (--json or --json=field1,field2)
--json-compact string Output compact JSON, optionally filtered
--plain Output without colors/styling (for LLM consumption)
-R, --repo string Select another repository using OWNER/REPO format
-V, --verbose Enable debug logging output

Learn more

Use src pr list <subcommand> --help for more information about a command.

Предыдущая
Следующая