@maggioli-rd/sr-codeowners-plugin 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/types.d.ts +1 -0
- package/dist/utils.js +2 -1
- package/dist/verifyConditions.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.2.0](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/compare/v1.1.1...v1.2.0) (2024-1-9)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add codeownersPath config ([01e7c4f](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/commit/01e7c4f2ff32e44fca777ce32a568aa56c470adf))
|
|
7
|
+
|
|
1
8
|
## [1.1.1](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/compare/v1.1.0...v1.1.1) (2024-01-09)
|
|
2
9
|
|
|
3
10
|
|
package/dist/types.d.ts
CHANGED
package/dist/utils.js
CHANGED
package/dist/verifyConditions.js
CHANGED
|
@@ -2,10 +2,13 @@ import SemanticReleaseError from "@semantic-release/error";
|
|
|
2
2
|
import { execa } from "execa";
|
|
3
3
|
import { getConfig } from "./utils.js";
|
|
4
4
|
export const verifyConditions = async (pluginConfig, { logger }) => {
|
|
5
|
-
const { excludeRegex, limit, leaderboard } = getConfig(pluginConfig);
|
|
5
|
+
const { excludeRegex, codeownersPath, limit, leaderboard } = getConfig(pluginConfig);
|
|
6
6
|
if (limit < 0) {
|
|
7
7
|
throw new SemanticReleaseError("limit plugin config must be a positive integer");
|
|
8
8
|
}
|
|
9
|
+
if (codeownersPath.length == 0 || codeownersPath == "") {
|
|
10
|
+
throw new SemanticReleaseError("codeownersPath plugin config must be a non-empty string");
|
|
11
|
+
}
|
|
9
12
|
await verifyCommand("which", ["git", "touch", "sed", "grep", "head"]);
|
|
10
13
|
};
|
|
11
14
|
const verifyCommand = async (command, args) => {
|