@@ -270,11 +270,11 @@ module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) =>
270270 }
271271
272272 const settingsModified = payload . commits . find ( commit => {
273- return commit . added . includes ( Settings . FILE_NAME ) ||
274- commit . modified . includes ( Settings . FILE_NAME )
273+ return commit . added . includes ( Settings . FILE_PATH ) ||
274+ commit . modified . includes ( Settings . FILE_PATH )
275275 } )
276276 if ( settingsModified ) {
277- robot . log . debug ( `Changes in '${ Settings . FILE_NAME } ' detected, doing a full synch...` )
277+ robot . log . debug ( `Changes in '${ Settings . FILE_PATH } ' detected, doing a full synch...` )
278278 return syncAllSettings ( false , context )
279279 }
280280
@@ -292,7 +292,7 @@ module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) =>
292292 } ) )
293293 }
294294
295- robot . log . debug ( `No changes in '${ Settings . FILE_NAME } ' detected, returning...` )
295+ robot . log . debug ( `No changes in '${ Settings . FILE_PATH } ' detected, returning...` )
296296 } )
297297
298298 robot . on ( 'create' , async context => {
@@ -597,10 +597,10 @@ module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) =>
597597 const changes = await context . octokit . repos . compareCommitsWithBasehead ( params )
598598 const files = changes . data . files . map ( f => { return f . filename } )
599599
600- const settingsModified = files . includes ( Settings . FILE_NAME )
600+ const settingsModified = files . includes ( Settings . FILE_PATH )
601601
602602 if ( settingsModified ) {
603- robot . log . debug ( `Changes in '${ Settings . FILE_NAME } ' detected, doing a full synch...` )
603+ robot . log . debug ( `Changes in '${ Settings . FILE_PATH } ' detected, doing a full synch...` )
604604 return syncAllSettings ( true , context , context . repo ( ) , pull_request . head . ref )
605605 }
606606
0 commit comments