@zhin.js/adapter-github 0.1.28 → 0.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,11 @@
1
1
  ---
2
2
  name: github
3
+ platforms:
4
+ - github
3
5
  description: >-
4
- GitHub 全功能适配器:Issue/PR 评论即聊天通道,仓库管理(PR 合并/创建/ReviewIssue 编辑)、信息查询(Star/CI/Release/Branch)、全局搜索(issues/repos/code)、标签与指派、仓库文件与提交历史、Webhook、OAuth。REST API。
5
- 调用约定:channel ID 格式 owner/repo/issues/N owner/repo/pull/N;repo 参数不填时需手动指定 owner/repo。
6
+ GitHub 全功能适配器:PR 管理(创建/合并/Review/关闭/Diff)、Issue 管理(创建/编辑/关闭/评论)、
7
+ 仓库操作(Star/Fork/搜索/标签)、CI/Release/Branch 查询、文件查看/编辑、提交历史、Webhook 订阅。
8
+ channel ID 格式:owner/repo/issues/N 或 owner/repo/pull/N。
6
9
  keywords:
7
10
  - github
8
11
  - adapter:github
@@ -30,14 +33,60 @@ keywords:
30
33
  - commit
31
34
  - compare
32
35
  - edit
36
+ - webhook
37
+ - subscribe
33
38
  tags:
34
39
  - github
35
40
  - development
36
41
  - git
37
42
  - ci-cd
38
- tools: []
43
+ tools:
44
+ - github_pr
45
+ - github_issue
46
+ - github_repo
47
+ - github_subscribe
48
+ - github_unsubscribe
49
+ - github_subscriptions
50
+ - github_bind
51
+ - github_unbind
52
+ - github_whoami
53
+ - github_star
54
+ - github_fork
55
+ - github_search
56
+ - github_label
57
+ - github_assign
58
+ - github_file
59
+ - github_commits
60
+ - github_edit
39
61
  ---
40
62
 
63
+ ## 工具概览
64
+
65
+ | 工具 | 说明 | 子操作 |
66
+ |------|------|--------|
67
+ | `github_pr` | PR 操作 | list / view / diff / merge / create / review / close |
68
+ | `github_issue` | Issue 操作 | list / view / create / close / edit / comment |
69
+ | `github_repo` | 仓库信息查询 | — |
70
+ | `github_search` | 全局搜索 | issues / repos / code |
71
+ | `github_star` | Star/取消 Star | — |
72
+ | `github_fork` | Fork 仓库 | — |
73
+ | `github_label` | 标签管理 | add / remove / list |
74
+ | `github_assign` | 指派管理 | add / remove |
75
+ | `github_file` | 查看/编辑仓库文件 | — |
76
+ | `github_commits` | 提交历史查询 | — |
77
+ | `github_edit` | 文件直接编辑 | — |
78
+ | `github_subscribe` | 订阅仓库 Webhook 事件 | — |
79
+ | `github_unsubscribe` | 取消订阅 | — |
80
+ | `github_subscriptions` | 查看当前订阅列表 | — |
81
+ | `github_bind` | 绑定 GitHub 账号 | — |
82
+ | `github_unbind` | 解绑账号 | — |
83
+ | `github_whoami` | 查看当前绑定 | — |
84
+
41
85
  ## 执行规则
42
86
 
43
- - 使用 `github_*` 工具;确认 channel / repo 格式与参数完整。
87
+ 1. 确认 channel / repo 格式与参数完整
88
+ 2. `github_pr` 的 `action` 参数决定子操作:list/view/diff/merge/create/review/close
89
+ 3. `github_issue` 的 `action` 参数决定子操作:list/view/create/close/edit/comment
90
+ 4. 搜索支持三种类型:issues、repos、code
91
+ 5. 文件操作需要 owner/repo/path 参数
92
+ 6. Webhook 订阅关联到当前聊天通道,仅在该通道接收事件通知