File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ export async function handler (event) {
11
11
logLevel : process . env . LOG_LEVEL || 'info' ,
12
12
} ) ;
13
13
14
+ probot . log . debug ( 'loading app' ) ;
14
15
await probot . load ( autoMeBot ) ;
16
+ probot . log . debug ( 'app loaded, starting webhook' ) ;
15
17
16
18
return probot . webhooks . verifyAndReceive ( {
17
19
id : event . headers [ 'x-github-delivery' ] ,
Original file line number Diff line number Diff line change @@ -61,8 +61,12 @@ export default function (probot) {
61
61
export function handlersController ( configSpec ) {
62
62
return async context => {
63
63
// get config from current repo .github folder or from the .github repo's .github folder
64
- let config = await context . config ( 'auto-me-bot.yml' ) ;
65
64
context . log . debug ( `Payload: ${ JSON . stringify ( context . payload ) } ` )
65
+ let config = await context . config ( 'auto-me-bot.yml' ) ;
66
+ if ( config == null ) {
67
+ context . log . info ( "no config found" )
68
+ return
69
+ }
66
70
context . log . debug ( `Config: ${ JSON . stringify ( config ) } ` )
67
71
let invocations = [ ]
68
72
let startedAt = new Date ( ) . toISOString ( ) ;
You can’t perform that action at this time.
0 commit comments