@koober/mrm-preset
Advanced tools
Comparing version 1.22.0 to 1.22.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.22.1](https://gitlab.com/koober-sas/project-config/compare/@koober/mrm-preset@1.22.0...@koober/mrm-preset@1.22.1) (2021-05-05) | ||
### Bug Fixes | ||
* **mrm:** correct include script for gitlab ci ([fa9b9e4](https://gitlab.com/koober-sas/project-config/commit/fa9b9e4dbb4d0a59bf564614f93c20c7d40f400c)) | ||
# [1.22.0](https://gitlab.com/koober-sas/project-config/compare/@koober/mrm-preset@1.21.1...@koober/mrm-preset@1.22.0) (2021-05-05) | ||
@@ -8,0 +19,0 @@ |
@@ -18,19 +18,16 @@ /* eslint-disable sort-keys-fix/sort-keys-fix */ | ||
const autoDevopsPath = `${gitlabCILib}/AutoDevops.gitlab-ci.yml`; | ||
const hasAutoDevOps = gitlabCIConfig.get('include', []).some( | ||
/** | ||
* @param {string|{local: string}} include | ||
*/ | ||
(include) => { | ||
return /autodevops/i.test(typeof include === 'string' ? include : include.local); | ||
} | ||
); | ||
if (!hasAutoDevOps) { | ||
// if no autodevops then reset with default file | ||
gitlabCIConfig | ||
// @ts-ignore | ||
.set({}) | ||
.merge({ | ||
include: [{ local: autoDevopsPath }], | ||
variables: {}, | ||
}); | ||
const hasInclude = (/** @type {string} */ includePath) => | ||
gitlabCIConfig.get('include', []).some( | ||
/** | ||
* @param {string|{local: string}} include | ||
*/ | ||
(include) => { | ||
return (typeof include === 'string' ? include : include.local) === includePath; | ||
} | ||
); | ||
const addInclude = (/** @type {string} */ includePath) => | ||
gitlabCIConfig.set('include', gitlabCIConfig.get('include', []).concat([{ local: includePath }])); | ||
if (!hasInclude(autoDevopsPath)) { | ||
addInclude(autoDevopsPath); | ||
} | ||
@@ -37,0 +34,0 @@ |
{ | ||
"name": "@koober/mrm-preset", | ||
"version": "1.22.0", | ||
"version": "1.22.1", | ||
"description": "Mrm configuration presets", | ||
@@ -50,3 +50,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "24fad1bc8eb44a1684cc6043e6963fb58d56762a" | ||
"gitHead": "8a3d78c5a249be007c204ef5d72f77f798bcb0a1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85931
2331