@maggioli-rd/sr-codeowners-plugin 1.0.3 → 1.0.5
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 +14 -0
- package/dist/verifyConditions.js +3 -3
- package/dist/verifyRelease.js +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.0.5](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/compare/v1.0.4...v1.0.5) (2024-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency eslint-plugin-n from 16.6.0 to 16.6.1 ([d9b9dc7](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/commit/d9b9dc716c88d56656ee6de655a023609d371c19))
|
|
7
|
+
|
|
8
|
+
## [1.0.4](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/compare/v1.0.3...v1.0.4) (2024-01-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add execa cmd args as array string ([1036cd7](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/commit/1036cd75e89e2fd5c19177429fe5b2cd3d618670))
|
|
14
|
+
|
|
1
15
|
## [1.0.3](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/compare/v1.0.2...v1.0.3) (2024-1-5)
|
|
2
16
|
|
|
3
17
|
|
package/dist/verifyConditions.js
CHANGED
|
@@ -6,11 +6,11 @@ export const verifyConditions = async (pluginConfig, { logger }) => {
|
|
|
6
6
|
if (limit < 0) {
|
|
7
7
|
throw new SemanticReleaseError("limit plugin config must be a positive integer");
|
|
8
8
|
}
|
|
9
|
-
await verifyCommand("which git touch sed grep head");
|
|
9
|
+
await verifyCommand("which", ["git", "touch", "sed", "grep", "head"]);
|
|
10
10
|
};
|
|
11
|
-
const verifyCommand = async (command) => {
|
|
11
|
+
const verifyCommand = async (command, args) => {
|
|
12
12
|
try {
|
|
13
|
-
await execa(command);
|
|
13
|
+
await execa(command, args);
|
|
14
14
|
}
|
|
15
15
|
catch (error) {
|
|
16
16
|
throw new SemanticReleaseError(`${command} returned an error: ${error}`);
|
package/dist/verifyRelease.js
CHANGED
|
@@ -5,7 +5,7 @@ export const verifyRelease = async (pluginConfig, { logger }) => {
|
|
|
5
5
|
const { excludeRegex, limit, leaderboard } = getConfig(pluginConfig);
|
|
6
6
|
var cmd = "git shortlog -s -e -n --all |";
|
|
7
7
|
if (leaderboard == true) {
|
|
8
|
-
logger.log("Set " + leaderboard + " as
|
|
8
|
+
logger.log("Set " + leaderboard + " as leaderboard");
|
|
9
9
|
cmd = "git shortlog -s -e -n --all | sed -e 's/^/# /' > CODEOWNERS && " + cmd;
|
|
10
10
|
}
|
|
11
11
|
else {
|
|
@@ -23,11 +23,11 @@ export const verifyRelease = async (pluginConfig, { logger }) => {
|
|
|
23
23
|
cmd = cmd + " head -" + limit + " |";
|
|
24
24
|
cmd = "(rm CODEOWNERS || true) && " + cmd + " sed 's/.*<\\(.*\\)>/\\1/' | sed -e 's/^/* /' >> CODEOWNERS && cat CODEOWNERS";
|
|
25
25
|
logger.log("Running cmd: " + cmd);
|
|
26
|
-
await verifyCommand(cmd);
|
|
26
|
+
await verifyCommand("bash", ["-c", cmd]);
|
|
27
27
|
};
|
|
28
|
-
const verifyCommand = async (command) => {
|
|
28
|
+
const verifyCommand = async (command, args) => {
|
|
29
29
|
try {
|
|
30
|
-
await execa(command);
|
|
30
|
+
await execa(command, args);
|
|
31
31
|
}
|
|
32
32
|
catch (error) {
|
|
33
33
|
throw new SemanticReleaseError(`${command} returned an error: ${error}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-rd/sr-codeowners-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Maggioli Semantic Release Plugin: Codeowners",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/*"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"eslint-config-semistandard": "17.0.0",
|
|
49
49
|
"eslint-config-standard": "17.1.0",
|
|
50
50
|
"eslint-plugin-import": "2.29.1",
|
|
51
|
-
"eslint-plugin-n": "16.6.
|
|
51
|
+
"eslint-plugin-n": "16.6.1",
|
|
52
52
|
"eslint-plugin-promise": "6.1.1",
|
|
53
53
|
"semantic-release": "22.0.12",
|
|
54
54
|
"typescript": "5.3.3",
|