githublogen 0.1.3 → 0.1.4
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/README.md +0 -5
- package/dist/cli.cjs +4 -1
- package/dist/cli.mjs +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cli.cjs
CHANGED
|
@@ -20,7 +20,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
20
|
|
|
21
21
|
const cac__default = /*#__PURE__*/_interopDefaultCompat(cac);
|
|
22
22
|
|
|
23
|
-
const version = "0.1.
|
|
23
|
+
const version = "0.1.4";
|
|
24
24
|
|
|
25
25
|
const cli = cac__default("githublogen");
|
|
26
26
|
cli.version(version).option("-t, --token <path>", "GitHub Token").option("--from <ref>", "From tag").option("--to <ref>", "To tag").option("--github <path>", "GitHub Repository, e.g. soybeanjs/githublogen").option("--name <name>", "Name of the release").option("--contributors", "Show contributors section").option("--prerelease", "Mark release as prerelease").option("-d, --draft", "Mark release as draft").option("--output <path>", "Output to file instead of sending to GitHub").option("--capitalize", "Should capitalize for each comment message").option("--emoji", "Use emojis in section titles", { default: true }).option("--group", "Nest commit messages under their scopes").option("--dry", "Dry run").help();
|
|
@@ -74,6 +74,9 @@ ${changelog}
|
|
|
74
74
|
`;
|
|
75
75
|
}
|
|
76
76
|
await fs.promises.writeFile(config.output, changelogMD);
|
|
77
|
+
const { email = "unknow@unknow.com", name = "unknow" } = commits[0]?.author || {};
|
|
78
|
+
await execa.execa("git", ["config", "--global", "user.email", `"${email}"`]);
|
|
79
|
+
await execa.execa("git", ["config", "--global", "user.name", `"${name}"`]);
|
|
77
80
|
await execa.execa("git", ["add", "."]);
|
|
78
81
|
await execa.execa("git", ["commit", "-m", '"docs(projects): CHANGELOG.md"'], { cwd });
|
|
79
82
|
await execa.execa("git", ["push", pushUrl], { cwd });
|
package/dist/cli.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import 'node:path';
|
|
|
14
14
|
import 'node:v8';
|
|
15
15
|
import 'node:util';
|
|
16
16
|
|
|
17
|
-
const version = "0.1.
|
|
17
|
+
const version = "0.1.4";
|
|
18
18
|
|
|
19
19
|
const cli = cac("githublogen");
|
|
20
20
|
cli.version(version).option("-t, --token <path>", "GitHub Token").option("--from <ref>", "From tag").option("--to <ref>", "To tag").option("--github <path>", "GitHub Repository, e.g. soybeanjs/githublogen").option("--name <name>", "Name of the release").option("--contributors", "Show contributors section").option("--prerelease", "Mark release as prerelease").option("-d, --draft", "Mark release as draft").option("--output <path>", "Output to file instead of sending to GitHub").option("--capitalize", "Should capitalize for each comment message").option("--emoji", "Use emojis in section titles", { default: true }).option("--group", "Nest commit messages under their scopes").option("--dry", "Dry run").help();
|
|
@@ -68,6 +68,9 @@ ${changelog}
|
|
|
68
68
|
`;
|
|
69
69
|
}
|
|
70
70
|
await promises.writeFile(config.output, changelogMD);
|
|
71
|
+
const { email = "unknow@unknow.com", name = "unknow" } = commits[0]?.author || {};
|
|
72
|
+
await execa("git", ["config", "--global", "user.email", `"${email}"`]);
|
|
73
|
+
await execa("git", ["config", "--global", "user.name", `"${name}"`]);
|
|
71
74
|
await execa("git", ["add", "."]);
|
|
72
75
|
await execa("git", ["commit", "-m", '"docs(projects): CHANGELOG.md"'], { cwd });
|
|
73
76
|
await execa("git", ["push", pushUrl], { cwd });
|