probot教程视频_一个可训练的能自动回应 Github 活动的机器人

probot教程视频

官方网址:https://probot.github.io

probot教程视频_一个可训练的能自动回应 Github 活动的机器人

GitHub:https://github.com/probot/probot

简介描述:一个可训练的能自动回应 Github 活动的机器人

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)
  })
}

海计划公众号
(0)
上一篇 2020/03/07 20:19
下一篇 2020/03/07 20:19

您可能感兴趣的内容