diff --git a/index.js b/index.js index 4924605..060c871 100644 --- a/index.js +++ b/index.js @@ -1,15 +1,16 @@ -const lintPR = require('./lib/lint-pull-request'); +const checkPrTDD = require('./lib/check-pr-tdd'); module.exports = app => { - // Your code here - app.log('Yay, the app was loaded!'); + app.log('Yay, tdd1t was loaded!'); - app.on("pull_request.opened", lintPR); - app.on("pull_request.synchronize", lintPR); + app.on('pull_request.opened', checkPrTDD); + app.on('pull_request.synchronize', checkPrTDD); + + app.on('issues.edited', checkPrTDD); // For more information on building apps: // https://probot.github.io/docs/ // To get your app running against GitHub, see: // https://probot.github.io/docs/development/ -} +};