release-it-gitea 1.9.1 → 1.9.2
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/lib/index.js +19 -2
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -33,22 +33,39 @@ class GiteaPlugin extends Plugin {
|
|
|
33
33
|
tokenRef: gitea.tokenRef ?? "GITEA_TOKEN"
|
|
34
34
|
};
|
|
35
35
|
if (gitea.mergeOptionsKeys?.length) {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
this.log.verbose(
|
|
37
|
+
`\u5F00\u59CB\u5408\u5E76\u52A8\u6001\u914D\u7F6E\uFF0CmergeOptionsKeys: ${JSON.stringify(gitea.mergeOptionsKeys)}`
|
|
38
|
+
);
|
|
39
|
+
const dynReleaseItGiteaConfig = this.config.getContext()?.["release-it-gitea"];
|
|
40
|
+
this.log.verbose(
|
|
41
|
+
`\u4ECE\u4E0A\u4E0B\u6587\u83B7\u53D6\u5230\u7684\u52A8\u6001\u914D\u7F6E: ${JSON.stringify(dynReleaseItGiteaConfig)}`
|
|
38
42
|
);
|
|
39
43
|
if (dynReleaseItGiteaConfig) {
|
|
40
44
|
for (const option of gitea.mergeOptionsKeys) {
|
|
41
45
|
if (option in dynReleaseItGiteaConfig) {
|
|
42
46
|
const dynValue = dynReleaseItGiteaConfig[option];
|
|
43
47
|
const currentValue = config[option];
|
|
48
|
+
this.log.verbose(
|
|
49
|
+
`\u5408\u5E76\u914D\u7F6E\u9879 "${option}": \u52A8\u6001\u503C=${JSON.stringify(dynValue)}, \u5F53\u524D\u503C=${JSON.stringify(currentValue)}`
|
|
50
|
+
);
|
|
44
51
|
if (Array.isArray(dynValue)) {
|
|
45
52
|
const mergedArray = Array.isArray(currentValue) ? [...dynValue, ...currentValue] : dynValue;
|
|
46
53
|
config = { ...config, [option]: mergedArray };
|
|
54
|
+
this.log.verbose(
|
|
55
|
+
`\u6570\u7EC4\u7C7B\u578B\u5408\u5E76\u5B8C\u6210\uFF0C\u6700\u7EC8\u503C: ${JSON.stringify(mergedArray)}`
|
|
56
|
+
);
|
|
47
57
|
} else if (dynValue !== void 0) {
|
|
48
58
|
config = { ...config, [option]: dynValue };
|
|
59
|
+
this.log.verbose(
|
|
60
|
+
`\u975E\u6570\u7EC4\u7C7B\u578B\u8986\u76D6\u5B8C\u6210\uFF0C\u6700\u7EC8\u503C: ${JSON.stringify(dynValue)}`
|
|
61
|
+
);
|
|
49
62
|
}
|
|
63
|
+
} else {
|
|
64
|
+
this.log.verbose(`\u914D\u7F6E\u9879 "${option}" \u5728\u52A8\u6001\u914D\u7F6E\u4E2D\u4E0D\u5B58\u5728\uFF0C\u8DF3\u8FC7`);
|
|
50
65
|
}
|
|
51
66
|
}
|
|
67
|
+
} else {
|
|
68
|
+
this.log.verbose("\u672A\u4ECE\u4E0A\u4E0B\u6587\u4E2D\u83B7\u53D6\u5230\u52A8\u6001\u914D\u7F6E");
|
|
52
69
|
}
|
|
53
70
|
}
|
|
54
71
|
if (!config.host) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-it-gitea",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "release-it gitea plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"gitea",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"eslint-plugin-n": "17.24.0",
|
|
64
64
|
"eslint-plugin-package-json": "0.88.0",
|
|
65
65
|
"eslint-plugin-perfectionist": "5.6.0",
|
|
66
|
-
"eslint-plugin-regexp": "3.
|
|
66
|
+
"eslint-plugin-regexp": "3.1.0",
|
|
67
67
|
"eslint-plugin-yml": "3.3.0",
|
|
68
68
|
"husky": "9.1.7",
|
|
69
69
|
"knip": "5.86.0",
|