list-pulls

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

List Pull Requests

Pull Request 列表

List

列表查询

bash
tea pulls list -o simple              # open PRs, compact output (recommended)
tea pulls list --state all -o simple  # include closed/merged
tea pulls list --output json          # use json only when parsing with jq
tea pulls list --fields "index,title,state,author,base,head,labels"
bash
tea pulls list -o simple              # open PRs, compact output (recommended)
tea pulls list --state all -o simple  # include closed/merged
tea pulls list --output json          # use json only when parsing with jq
tea pulls list --fields "index,title,state,author,base,head,labels"

Show

详情查看

bash
tea pulls 15              # detail view
tea pulls 15 --comments   # with comments
bash
tea pulls 15              # detail view
tea pulls 15 --comments   # with comments

Find PRs Needing Review

查找待审核 PR

bash
tea pulls list --output json | \
  jq '.[] | select(.labels | map(.name) | index("needs-review")) | {index, title, author: .poster.login}'
bash
tea pulls list --output json | \
  jq '.[] | select(.labels | map(.name) | index("needs-review")) | {index, title, author: .poster.login}'

Forks and Upstream PRs

Fork 与上游 PR

See pull-request-forks.
参见 pull-request-forks。

Tips

使用技巧

  • Prefer
    -o simple
    for listing; use
    --output json
    only when parsing with
    jq
  • tea issues list --kind pulls
    searches PRs with all issue filters (labels, milestones, etc.)
  • 列表查询时优先使用
    -o simple
    ;仅在使用
    jq
    解析结果时才使用
    --output json
  • tea issues list --kind pulls
    可使用所有 issue 筛选条件(标签、里程碑等)搜索 PR