probot 介绍
probot: 一个 可训练的能 自动 回应 Github 活动的机器人。
Probot是建立 一个 框架,GitHub的应用程序中的Node.js。GitHub Apps可以收听存储库或组织发送的webhook事件。Probot使用其内部事件发射器根据这些事件执行操作。 一个 简单的Probot应用程序可能如下所示:
module.exports = (app) => {
app.on('issues.opened',async context => {
const issueComment = context.issue({ body: 'Thanks for opening this issue!' })
return context.github.issues.createComment(issueComment)
})
}
网站地址 : https://probot.github.io
GitHub: https://github.com/probot/probot
网站描述: 一个 可训练的能 自动 回应 Github 活动的机器人
probot官方网站
官方网站: https://probot.github.io
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did176921