list-issues

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

List Issues

Issue 列表

List

列表

bash
undefined
bash
undefined

Repository-scoped listing: prefer an explicit remote or repo/login.

Repository-scoped listing: prefer an explicit remote or repo/login.

tea issues list --remote <git-remote> -o simple # e.g. --remote self-hosted tea issues list --repo <owner>/<repo> --login <login> -o simple
tea issues list --remote <git-remote> -o simple # e.g. --remote self-hosted tea issues list --repo <owner>/<repo> --login <login> -o simple

Add filters to the same repository-scoped command.

Add filters to the same repository-scoped command.

tea issues list --remote <git-remote> --state all -o simple # include closed tea issues list --remote <git-remote> --labels "bug,critical" -o simple # by label tea issues list --remote <git-remote> --milestones "v1.0" -o simple # by milestone tea issues list --remote <git-remote> --assignee "user" --author "user" # by person tea issues list --remote <git-remote> --keyword "search term" # text search tea issues list --remote <git-remote> --from "2025-01-01" --until "2025-06-01" tea issues list --remote <git-remote> --output json # use json only when parsing with jq tea issues list --remote <git-remote> --fields "index,title,state,labels,assignees" tea issues list --remote <git-remote> --page 2 --limit 50
undefined
tea issues list --remote <git-remote> --state all -o simple # include closed tea issues list --remote <git-remote> --labels "bug,critical" -o simple # by label tea issues list --remote <git-remote> --milestones "v1.0" -o simple # by milestone tea issues list --remote <git-remote> --assignee "user" --author "user" # by person tea issues list --remote <git-remote> --keyword "search term" # text search tea issues list --remote <git-remote> --from "2025-01-01" --until "2025-06-01" tea issues list --remote <git-remote> --output json # use json only when parsing with jq tea issues list --remote <git-remote> --fields "index,title,state,labels,assignees" tea issues list --remote <git-remote> --page 2 --limit 50
undefined

Show

详情查看

bash
tea issues --remote <git-remote> 42              # detail view
tea issues --remote <git-remote> 42 --comments   # with comments
bash
tea issues --remote <git-remote> 42              # detail view
tea issues --remote <git-remote> 42 --comments   # with comments

Export / Count

导出 / 统计

bash
undefined
bash
undefined

Export all issues in this repository to JSON

Export all issues in this repository to JSON

tea issues list --remote <git-remote> --state all --output json > issues-backup.json
tea issues list --remote <git-remote> --state all --output json > issues-backup.json

Count by state in this repository

Count by state in this repository

echo "Open: $(tea issues list --remote <git-remote> --state open --output json | jq length)" echo "Closed: $(tea issues list --remote <git-remote> --state closed --output json | jq length)"
undefined
echo "Open: $(tea issues list --remote <git-remote> --state open --output json | jq length)" echo "Closed: $(tea issues list --remote <git-remote> --state closed --output json | jq length)"
undefined

Tips

使用小贴士

  • Do not use bare
    tea issues list
    when the user asks for issues for the current repository; in multi-repo logins it can return issues across repositories.
  • Prefer
    -o simple
    for listing; use
    --output json
    only when parsing with
    jq
  • --kind pulls
    searches PRs with the same filters as issues
  • 当用户需要获取当前仓库的 issues 时,不要直接使用裸命令
    tea issues list
    ;在多仓库登录的场景下,该命令可能会返回跨仓库的 issues。
  • 列表展示优先使用
    -o simple
    ;仅在需要用
    jq
    解析结果时才使用
    --output json
  • 使用
    --kind pulls
    可以通过与 issues 相同的筛选条件搜索 PR