gitlink-cli/skills/gitlink-webhook/SKILL.md

34 lines
992 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: gitlink-webhook
version: 1.0.0
description: "Webhook 配置与测试:列出、创建、查看、更新、删除并触发 webhook 测试。"
metadata:
requires:
bins: ["gitlink-cli"]
cliHelp: "gitlink-cli webhook --help"
---
# gitlink-webhookWebhook 管理)
## Shortcuts
| Shortcut | 说明 |
|----------|------|
| `webhook +list` | 列出仓库 webhook |
| `webhook +create` | 创建 webhook |
| `webhook +view` | 查看 webhook 详情 |
| `webhook +update` | 更新 webhook |
| `webhook +delete` | 删除 webhook |
| `webhook +test` | 触发 webhook 测试投递 |
| `webhook +tasks` | 查看 webhook 投递任务历史 |
## 使用示例
```bash
gitlink-cli webhook +list --owner Gitlink --repo forgeplus
gitlink-cli webhook +create --owner Gitlink --repo forgeplus \
--url https://example.com/hook --events push,create
gitlink-cli webhook +test --owner Gitlink --repo forgeplus --id 68
gitlink-cli webhook +tasks --owner Gitlink --repo forgeplus --id 68
```