Skip to content

Commit

Permalink
feat(events): listen to the events related to tdd1t actions
Browse files Browse the repository at this point in the history
  • Loading branch information
thatkookooguy committed Jan 15, 2019
1 parent 50d3f08 commit 406d8ee
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions 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/
}
};

0 comments on commit 406d8ee

Please sign in to comment.