关于 list-issues
为使用 `tea` 命令行的开发者提供问题与 PR 管理操作指南,涵盖仓库范围内的列表、详情、筛选、导出和计数,并提示避免多仓库登录下的跨仓库结果。
主要功能
- 01按仓库列出问题
- 02按状态、标签和里程碑筛选
- 03查看问题详情与评论
- 04导出 JSON 并统计数量
- 05通过相同筛选查找 PR
适用场景
- 01查看指定仓库的问题
- 02导出问题数据进行备份
- 03按状态统计未关闭与已关闭问题
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ deevus/ tea-skills --skill list-issues安装后在 Claude Code 中输入/list-issues确认已加载。
详细介绍
列出问题
列表
# 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
# 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
显示
tea issues --remote <git-remote> 42 # detail view
tea issues --remote <git-remote> 42 --comments # with comments
导出 / 计数
# Export all issues in this repository to JSON
tea issues list --remote <git-remote> --state all --output json > issues-backup.json
# 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)"
提示
-
当用户询问当前仓库的问题时,不要直接使用
tea issues list;在多仓库登录情况下,它可能会返回多个仓库的问题。 -
列表显示时优先使用
-o simple;仅在使用jq解析时使用--output json -
--kind pulls使用与问题相同的筛选条件搜索 PR
评论
支持 Markdown