gityo 1.1.3 → 1.1.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/dist/index.js +8 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1710,7 +1710,7 @@ function useColor() {
|
|
|
1710
1710
|
if (process$1.env.FORCE_COLOR || process$1.env.CLICOLOR_FORCE !== void 0) return true;
|
|
1711
1711
|
}
|
|
1712
1712
|
new Command();
|
|
1713
|
-
var version$4 = "1.1.
|
|
1713
|
+
var version$4 = "1.1.5";
|
|
1714
1714
|
const keybindingLookup = new Set(["emacs", "vim"]);
|
|
1715
1715
|
function isKeybinding(value) {
|
|
1716
1716
|
return keybindingLookup.has(value);
|
|
@@ -236764,8 +236764,11 @@ function formatCommit(commit, message) {
|
|
|
236764
236764
|
` - Author: ${commit.authorName} <${commit.authorEmail}>`
|
|
236765
236765
|
].join("\n");
|
|
236766
236766
|
}
|
|
236767
|
-
const renderReleaseNotes = createRenderer({
|
|
236768
|
-
width:
|
|
236767
|
+
const renderReleaseNotes = createRenderer(process.stdout.columns ? {
|
|
236768
|
+
width: Math.max(0, process.stdout.columns - 4),
|
|
236769
|
+
listIndent: 2
|
|
236770
|
+
} : {
|
|
236771
|
+
wrap: false,
|
|
236769
236772
|
listIndent: 2
|
|
236770
236773
|
});
|
|
236771
236774
|
async function releaseController(tagArg, options = {}) {
|
|
@@ -236777,7 +236780,7 @@ async function releaseController(tagArg, options = {}) {
|
|
|
236777
236780
|
let tag = tagArg?.trim() ?? "";
|
|
236778
236781
|
if (options.bump) {
|
|
236779
236782
|
tag = bumpVersionTag(releases.slice(0, 3).map((release) => release.tagName), options.bump);
|
|
236780
|
-
console.log(source_default.
|
|
236783
|
+
console.log(`${source_default.blue.bold("Bumping")} ${source_default.cyan(releases[0]?.tagName)} to ${source_default.yellow.bold(tag)} ${source_default.dim(`using --${options.bump}`)}`);
|
|
236781
236784
|
} else if (tagArg === void 0) {
|
|
236782
236785
|
printRecentReleases(releases.slice(0, 5).reverse());
|
|
236783
236786
|
tag = (await dist_default$1({
|
|
@@ -236815,7 +236818,7 @@ async function releaseController(tagArg, options = {}) {
|
|
|
236815
236818
|
}));
|
|
236816
236819
|
console.log(renderReleaseNotes(notes).trim());
|
|
236817
236820
|
console.log("");
|
|
236818
|
-
if (options.yolo || await acceptGenerated(`Create release ${source_default.
|
|
236821
|
+
if (options.yolo || await acceptGenerated(`Create release ${source_default.yellow.bold(tag)} on ${source_default.yellow.bold(branch)}`, "generate new release notes")) break;
|
|
236819
236822
|
}
|
|
236820
236823
|
if (notes.length === 0) throw new Error("The selected model returned empty release notes.");
|
|
236821
236824
|
if (exists$2) await deleteRelease(tag);
|