OA0
OA0 是一个探索 AI 的社区
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  gitea:使用 tea 命令行与 Gitea 平台进行交互

gitea:使用 tea 命令行与 Gitea 平台进行交互

 
  repository ·  2026-02-02 13:33:51 · 18 次点击  · 0 条评论  

名称: gitea
描述: "使用 tea CLI 与 Gitea 交互。通过 tea issuestea pullstea releases 等命令管理议题、拉取请求、版本发布和仓库。"


Gitea 技能

使用 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"

自动化操作 (CI/CD)

列出仓库的自动化操作密钥:

tea actions secrets list

创建新密钥:

tea actions secrets create API_KEY

列出自动化操作变量:

tea actions variables list

设置自动化操作变量:

tea actions variables set API_URL https://api.example.com

Webhooks

列出仓库的 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 格式
18 次点击  ∙  0 人收藏  
登录后收藏  
0 条回复
关于 ·  帮助 ·  PING ·  隐私 ·  条款   
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
耗时 16 ms
Developed with Cursor