зеркало из https://github.com/github/rally.git
18 строки
659 B
JavaScript
18 строки
659 B
JavaScript
const RallyValidate = require('./lib/RallyValidate')
|
|
|
|
/**
|
|
* This is the main entrypoint to your Probot app
|
|
* @param {import('probot').Application} app
|
|
*/
|
|
module.exports = app => {
|
|
const handler = new RallyValidate(app)
|
|
|
|
app.on(['pull_request.opened', 'pull_request.edited',
|
|
'pull_request.reopened', 'pull_request.ready_for_review',
|
|
'pull_request.synchronize', 'check_suite.requested'],
|
|
async context => handler.handlePullRequest(context))
|
|
|
|
app.on(['check_run.rerequested', 'check_suite.rerequested'], async context => handler.rerunCheck(context))
|
|
app.on('pull_request.closed', async context => handler.handlePullRequestClosed(context))
|
|
}
|