Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: GitHub Subscription API #174

Closed
shigma opened this issue Mar 22, 2021 · 0 comments
Closed

RFC: GitHub Subscription API #174

shigma opened this issue Mar 22, 2021 · 0 comments

Comments

@shigma
Copy link
Member

shigma commented Mar 22, 2021

将要在下一个大版本更新中(v3)实现的特性。

指令:github.repos

查看和修改已经监听的仓库。

github.repos              查看已经监听的仓库列表
github.repos -a [name]    监听一个新的仓库
github.repos -d [name]    移除已监听的仓库
  1. 调用 -a, -d 功能前需要首先使用 github.auth 指令进行绑定,并且你需要拥有该仓库的控制权限
  2. 你并不需要提供 secret,因为 koishi 会自动生成这个 secret,以确保安全性

指令:github

查看和修改当前频道的订阅。

github              查看帮助
github -l           查看当前频道订阅的仓库列表
github -a [name]    为当前频道添加仓库订阅
github -d [name]    从当前频道移除仓库订阅
  1. 要添加/移除的仓库必须是已经注册到 github.repos 中的仓库
  2. 调用此指令不需要提前使用 github.auth 进行绑定

使用过滤器

你可以过滤特定的事件:

github -r [name] -e [event]    允许事件
github -r [name] -d [event]    禁止事件

发送 issue

github.issue -r [name] [title] [content]
这里 title 允许有空格,换一行后为 content

Breaking Change

  • 移除 repo 配置项
@shigma shigma closed this as completed Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant