360 Secure SkillHub
360 安全技能中心

Forgejo

该技能指导使用 tea CLI 与 Forgejo 实例交互:列出和查看 issue、PR,查看仓库 Actions 的 secrets 与 variables,并通过 tea api 配合 jq 做高级查询;使用前需用 tea login add 配置实例 URL 与访问令牌。

razzeee
razzeee
热度 82.30
最近更新 2026-05-17 11:38:39
分类:开发依赖:代码执行 / 第三方 API应用场景:代码审查 / DevOps / API 集成 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add forgejo
Metadata
name
forgejo
description
Interact with Forgejo using the `tea` CLI. Use `tea issue`, `tea pr`, `tea actions`, and `tea api` for issues, PRs, Actions, and advanced queries.
metadata
{"openclaw":{"emoji":"🔨","requires":{"bins":["tea"]},"install":[{"id":"brew","kind":"brew","formula":"tea","bins":["tea"],"label":"Install Tea CLI (brew)"},{"id":"go","kind":"go","module":"code.gitea.io/tea@latest","bins":["tea"],"label":"Install Tea CLI (go)"}]}}

Forgejo Skill

Use the tea CLI to interact with Forgejo instances. The tea CLI is compatible with Forgejo.

Pull Requests

List open pull requests:

tea pulls --repo owner/repo

Check details of a PR:

tea pr 55 --repo owner/repo

Issues

List open issues:

tea issues --repo owner/repo

View an issue:

tea issue 123 --repo owner/repo

Actions (CI/CD)

List repository secrets:

tea actions secrets list --repo owner/repo

List repository variables:

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):

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:

tea login add --name my-forgejo --url https://forgejo.example.com --token <your-token>

Then you can use --login my-forgejo in your commands:

tea pulls --repo owner/repo --login my-forgejo

List all configured logins:

tea logins