fix: normalize ci: false into noCi: true after configs get merged (#1732) thanks @dominykas

This makes sure that options.ci is respected even when set inside a shareable config
This commit is contained in:
Dominykas Blyžė
2021-01-13 07:38:57 -08:00
committed by GitHub
parent da75a9c60a
commit 21c151f167
2 changed files with 23 additions and 5 deletions
+4 -3
View File
@@ -27,9 +27,6 @@ module.exports = async (context, cliOptions) => {
// Merge config file options and CLI/API options
let options = {...config, ...cliOptions};
if (options.ci === false) {
options.noCi = true;
}
const pluginsPath = {};
let extendPaths;
@@ -87,6 +84,10 @@ module.exports = async (context, cliOptions) => {
...(options.branches ? {branches: castArray(options.branches)} : {}),
};
if (options.ci === false) {
options.noCi = true;
}
debug('options values: %O', options);
return {options, plugins: await plugins({...context, options}, pluginsPath)};