Forgejo
使用“tea” CLI 与 Forgejo 交互。使用“tea issues”、“tea pr”、“tea actions”和“tea api”来处理问题、PR、操作和高级查询。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:razzeee~razzeee-forgejocURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Arazzeee~razzeee-forgejo/file -o razzeee-forgejo.mdGit 仓库获取源码
git clone https://github.com/openclaw/skills/commit/69a90cb1b81d70985235b25131334a4ac3e350f4# Forgejo Skill Use the `tea` CLI to interact with Forgejo instances. The `tea` CLI is compatible with Forgejo. ## Pull Requests List open pull requests: ```bash tea pulls --repo owner/repo ``` Check details of a PR: ```bash tea pr 55 --repo owner/repo ``` ## Issues List open issues: ```bash tea issues --repo owner/repo ``` View an issue: ```bash tea issue 123 --repo owner/repo ``` ## Actions (CI/CD) List repository secrets: ```bash tea actions secrets list --repo owner/repo ``` List repository variables: ```bash tea actions variables list --repo owner/repo ``` ## API for Advanced Queries The `tea api` command is useful for accessing data not available through other subcommands. Get PR with specific fields (requires `jq` for filtering): ```bash tea api repos/owner/repo/pulls/55 | jq '.title, .state, .user.login' ``` ## Logins To use `tea` with a specific Forgejo instance, you first need to add a login: ```bash tea login add --name my-forgejo --url https://forgejo.example.com --token <your-token> ``` Then you can use `--login my-forgejo` in your commands: ```bash tea pulls --repo owner/repo --login my-forgejo ``` List all configured logins: ```bash tea logins ``` --- ## 中文说明 # Forgejo 技能 使用 `tea` CLI 与 Forgejo 实例交互。`tea` CLI 与 Forgejo 兼容。 ## Pull Request 列出处于打开状态的 pull request: ```bash tea pulls --repo owner/repo ``` 查看某个 PR 的详情: ```bash tea pr 55 --repo owner/repo ``` ## Issue 列出处于打开状态的 issue: ```bash tea issues --repo owner/repo ``` 查看某个 issue: ```bash tea issue 123 --repo owner/repo ``` ## Actions(CI/CD) 列出仓库的 secret: ```bash tea actions secrets list --repo owner/repo ``` 列出仓库的变量: ```bash tea actions variables list --repo owner/repo ``` ## 用于高级查询的 API `tea api` 命令可用于访问其他子命令无法获取的数据。 获取带有特定字段的 PR(需要 `jq` 进行筛选): ```bash tea api repos/owner/repo/pulls/55 | jq '.title, .state, .user.login' ``` ## 登录 要让 `tea` 配合特定的 Forgejo 实例使用,首先需要添加一个登录配置: ```bash tea login add --name my-forgejo --url https://forgejo.example.com --token <your-token> ``` 然后即可在命令中使用 `--login my-forgejo`: ```bash tea pulls --repo owner/repo --login my-forgejo ``` 列出所有已配置的登录: ```bash tea logins ```