Interact with Codeberg using the `tea` CLI. Use `tea issue`, `tea pr`, `tea actions`, and `tea api` for issues, PRs, Actions, and advanced queries.
使用 tea CLI 与 Codeberg 交互。Codeberg 是一个 Forgejo 实例,tea CLI 与其完全兼容。
列出开放的拉取请求:
bash
tea pulls --repo owner/repo
查看某个 PR 的详细信息:
bash
tea pr 55 --repo owner/repo
列出开放的议题:
bash
tea issues --repo owner/repo
查看某个议题:
bash
tea issue 123 --repo owner/repo
列出仓库密钥:
bash
tea actions secrets list --repo owner/repo
列出仓库变量:
bash
tea actions variables list --repo owner/repo
tea api 命令可用于访问其他子命令无法获取的数据。
获取带有特定字段的 PR(需要 jq 进行过滤):
bash
tea api repos/owner/repo/pulls/55 | jq .title, .state, .user.login
要在 Codeberg 中使用 tea,首先需要添加登录信息:
bash
tea login add --name codeberg --url https://codeberg.org --token
然后在命令中使用 --login codeberg:
bash
tea pulls --repo owner/repo --login codeberg
列出所有已配置的登录信息:
bash
tea logins
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 codeberg-1776336802 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 codeberg-1776336802 技能
skillhub install codeberg-1776336802
文件大小: 1.35 KB | 发布时间: 2026-4-17 15:59