Linux command
prs 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Launch with config file
prs
Run in query mode
prs -q '[type:pr author:@me state:open]'
Run in repos mode
prs -m repos --repos='[owner/repo1,owner/repo2]'
Limit number of results
prs -q '[type:pr state:open]' -n [30]
Use a custom config file
prs --config-path [path/to/prs.yml]
说明
prs is a terminal user interface for watching GitHub pull requests without leaving the terminal. Query mode runs arbitrary GitHub PR searches; repos mode cycles through a curated repo list and shows each repo's open PRs. The tool shells out to `gh` for some actions (details, diff view) and uses the GitHub API for listings.
参数
- -m, --mode _MODE_
- Operating mode: `query` (search PRs with GitHub search syntax, default) or `repos` (browse a predefined repository list).
- -q, --query _QUERY_
- GitHub search query to run in query mode. Same syntax as github.com's PR search.
- --repos _LIST_
- Comma-separated list of `owner/repo` entries used in repos mode.
- -n, --num _N_
- Maximum number of PRs to fetch per page.
- --config-path _FILE_
- Path to the YAML configuration file (default `~/.config/prs/prs.yml`).
- -h, --help
- Show help.
FAQ
What is the prs command used for?
prs is a terminal user interface for watching GitHub pull requests without leaving the terminal. Query mode runs arbitrary GitHub PR searches; repos mode cycles through a curated repo list and shows each repo's open PRs. The tool shells out to `gh` for some actions (details, diff view) and uses the GitHub API for listings.
How do I run a basic prs example?
Run `prs` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -m, --mode _MODE_ do in prs?
Operating mode: `query` (search PRs with GitHub search syntax, default) or `repos` (browse a predefined repository list).