名称: gitea
描述: "使用 tea CLI 与 Gitea 交互。通过 tea issues、tea pulls、tea releases 等命令管理议题、拉取请求、版本发布和仓库。"
使用 tea CLI 与 Gitea 服务器交互。不在 git 目录时使用 --repo 所有者/仓库 指定仓库,或使用 --login 实例地址 指定 Gitea 实例。
添加一次登录以开始使用:
tea login add
检查当前登录用户:
tea whoami
列出你有权限访问的仓库:
tea repos list
创建新仓库:
tea repos create --name my-repo --description "我的项目" --init
创建私有仓库:
tea repos create --name my-repo --private --init
复刻仓库:
tea repos fork 所有者/仓库
删除仓库:
tea repos delete --name my-repo --owner myuser --force
列出开放的拉取请求:
tea pulls --repo 所有者/仓库
查看特定拉取请求:
tea pr 55 --repo 所有者/仓库
在本地检出拉取请求:
tea pr checkout 55
创建新拉取请求:
tea pr create --title "功能标题" --description "描述"
列出开放议题:
tea issues --repo 所有者/仓库
查看特定议题:
tea issue 189 --repo 所有者/仓库
创建新议题:
tea issue create --title "错误标题" --body "描述"
查看里程碑下的议题:
tea milestone issues 0.7.0
为议题或拉取请求添加评论:
tea comment 189 --body "你的评论内容"
列出发布版本:
tea releases --repo 所有者/仓库
创建新发布:
tea release create --tag v1.0.0 --title "发布 1.0.0"
列出仓库的自动化操作密钥:
tea actions secrets list
创建新密钥:
tea actions secrets create API_KEY
列出自动化操作变量:
tea actions variables list
设置自动化操作变量:
tea actions variables set API_URL https://api.example.com
列出仓库的 Webhook:
tea webhooks list
列出组织的 Webhook:
tea webhooks list --org myorg
创建 Webhook:
tea webhooks create https://example.com/hook --events push,pull_request
列出分支:
tea branches --repo 所有者/仓库
列出标签:
tea labels --repo 所有者/仓库
列出里程碑:
tea milestones --repo 所有者/仓库
列出组织:
tea organizations
显示仓库详情:
tea repo --repo 所有者/仓库
在浏览器中打开:
tea open 189 # 打开议题/拉取请求 189
tea open milestones # 打开里程碑页面
克隆仓库:
tea clone 所有者/仓库
显示通知:
tea notifications --mine
使用 --output 或 -o 控制输出格式:
tea issues --output simple # 简单文本输出
tea issues --output csv # CSV 格式
tea issues --output yaml # YAML 格式