用途:通过 tea 命令行列出和查看 Gitea/Forgejo 仓库的议题,支持仓库范围限定、筛选、详情查看、评论、导出和计数。
主要能力:
- 列表:tea issues list,可用 --remote <git-remote> 或 --repo <owner>/<repo> --login <login> 限定仓库。
- 筛选:--state all 含已关闭;--labels "bug,critical";--milestones "v1.0";--assignee 与 --author;--keyword 文本搜索;--from 与 --until 日期范围。
- 输出与字段:-o simple 适合列表;--output json 仅在配合 jq 解析时使用;--fields "index,title,state,labels,assignees" 选择字段;--page 与 --limit 分页。
- 详情:tea issues --remote <git-remote> 42 查看详情,加 --comments 显示评论。
- 导出与计数:tea issues list --remote <git-remote> --state all --output json > issues-backup.json 导出全部议题;用 jq length 按状态计数。
使用方式:优先使用显式 remote 或 repo/login 限定仓库;列表优先 -o simple,仅在解析时用 --output json。
限制与提示:不要在多仓库登录下使用裸 tea issues list,否则可能返回跨仓库议题;--kind 可用相同筛选条件搜索 PR。具体安装与认证方式资料未提供。