Skip to content

Commit

Permalink
Update: disable experimental plugins by default
Browse files Browse the repository at this point in the history
  • Loading branch information
not-an-aardvark committed Oct 17, 2017
1 parent 995c1f2 commit ae00b27
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ const bot = probot({
cert: process.env.PRIVATE_KEY || "", // required
id: process.env.APP_ID || "" // required
});
const disabledPlugins = [
"prReadyToMerge"
];
const enabledPlugins = new Set([
"commitMessage",
"needsInfo",
"triage"
]);

// load all the plugins from inside plugins folder except the one which are disabled
// load all the enabled plugins from inside plugins folder
Object.keys(plugins)
.filter((pluginId) => !disabledPlugins.includes(pluginId))
.filter((pluginId) => enabledPlugins.has(pluginId))
.forEach((pluginId) => bot.load(plugins[pluginId]));

// start the server
Expand Down

0 comments on commit ae00b27

Please sign in to comment.