-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(events): listen to the events related to tdd1t actions
- Loading branch information
1 parent
50d3f08
commit 3a3d02c
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ | ||
} | ||
}; |