Skip to content

Commit c245141

Browse files
authored
Merge pull request #37 from behaviorbot/probot-config
implement probot-config
2 parents 2f4ceb5 + cb2c852 commit c245141

File tree

3 files changed

+2639
-3117
lines changed

3 files changed

+2639
-3117
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const getComment = require('./lib/getComment')
22
const defaultConfig = require('./lib/defaultConfig')
33
const PullRequestBodyChecker = require('./lib/PullRequestBodyChecker')
4+
const getConfig = require('probot-config')
45

56
module.exports = robot => {
67
robot.on(['pull_request.opened', 'issues.opened'], receive)
@@ -20,7 +21,7 @@ module.exports = robot => {
2021
}
2122

2223
try {
23-
const config = await context.config('config.yml', defaultConfig)
24+
const config = await getConfig(context, 'config.yml', defaultConfig)
2425

2526
if (!config.requestInfoOn[eventSrc]) {
2627
return

0 commit comments

Comments
 (0)