diff --git a/lib/workers/repository/onboarding/branch/check.js b/lib/workers/repository/onboarding/branch/check.js index dc02c738eda18aa5a05657a5e223ed6f4ad2a6ea..b6c39d87b3f62ed151ccbf23052acdda65dfba7a 100644 --- a/lib/workers/repository/onboarding/branch/check.js +++ b/lib/workers/repository/onboarding/branch/check.js @@ -68,6 +68,16 @@ const isOnboarded = async config => { logger.info( 'Repo is not onboarded but at least one merged PR exists - treat as onboarded' ); + const title = `Action required: Add a ${appName} config`; + let body = `Hi,\n\nYou will need to add a config to this repository if you want ${appName} to continue creating PRs. ${appName} will soon begin skipping all repositories that don't have a valid config found, even if you've received PRs before.\n\n`; + body += + 'To keep functionality exactly the same, you can add an empty JSON config (`{}`) to your repo in any of the following files: '; + body += configFileNames + .filter(filename => filename !== 'package.json') + .map(filename => `\`${filename}\``) + .join(', '); + const once = true; + await platform.ensureIssue(title, body, once); return true; } logger.info('Repo is not onboarded and no merged PRs exist');