remove deprecated integration id

Integration id was set to be removed in 0.7. We're past that version, so cleaning up the deprecated option.
This commit is contained in:
Jamie Jones 2017-08-05 13:45:05 -04:00 committed by GitHub
parent 231f87a047
commit 828deba2e8
1 changed files with 0 additions and 10 deletions

View File

@ -9,7 +9,6 @@ const {findPrivateKey} = require('../lib/private-key');
program program
.usage('[options] <plugins...>') .usage('[options] <plugins...>')
.option('-i, --integration <id>', 'DEPRECATED: ID of the GitHub App', process.env.INTEGRATION_ID)
.option('-a, --app <id>', 'ID of the GitHub App', process.env.APP_ID) .option('-a, --app <id>', 'ID of the GitHub App', process.env.APP_ID)
.option('-s, --secret <secret>', 'Webhook secret of the GitHub App', process.env.WEBHOOK_SECRET) .option('-s, --secret <secret>', 'Webhook secret of the GitHub App', process.env.WEBHOOK_SECRET)
.option('-p, --port <n>', 'Port to start the server on', process.env.PORT || 3000) .option('-p, --port <n>', 'Port to start the server on', process.env.PORT || 3000)
@ -17,15 +16,6 @@ program
.option('-t, --tunnel <subdomain>', 'Expose your local bot to the internet', process.env.SUBDOMAIN || process.env.NODE_ENV !== 'production') .option('-t, --tunnel <subdomain>', 'Expose your local bot to the internet', process.env.SUBDOMAIN || process.env.NODE_ENV !== 'production')
.parse(process.argv); .parse(process.argv);
if (program.integration) {
// FIXME: remove in v0.7.0
console.warn(
`DEPRECATION: The --integration flag and INTEGRATION_ID environment variable are\n` +
`deprecated. Use the --app flag or set APP_ID environment variable instead.`
);
program.app = program.integration;
}
if (!program.app) { if (!program.app) {
console.warn('Missing GitHub App ID.\nUse --app flag or set APP_ID environment variable.'); console.warn('Missing GitHub App ID.\nUse --app flag or set APP_ID environment variable.');
program.help(); program.help();