Codeberg

TotalClaw 作者 razzeee v0.1.0

使用“tea” CLI 与 Codeberg 交互。使用“tea issues”、“tea pr”、“tea actions”和“tea api”来处理问题、PR、操作和高级查询。

源码 ↗

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:razzeee~razzeee-codeberg
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Arazzeee~razzeee-codeberg/file -o razzeee-codeberg.md
Git 仓库获取源码
git clone https://github.com/openclaw/skills/commit/9f715985c70e27023e0868c0adb73bd8ff5191bb
## 概述(中文)

使用“tea” CLI 与 Codeberg 交互。使用“tea issues”、“tea pr”、“tea actions”和“tea api”来处理问题、PR、操作和高级查询。

## 原文

# Codeberg Skill

Use the `tea` CLI to interact with Codeberg. Codeberg is a Forgejo instance, and the `tea` CLI is fully compatible with it.

## 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 Codeberg, you first need to add your login:

```bash
tea login add --name codeberg --url https://codeberg.org --token <your-token>
```

Then you can use `--login codeberg` in your commands:

```bash
tea pulls --repo owner/repo --login codeberg
```

List all configured logins:

```bash
tea logins
```