git-stack-cli 1.4.0 → 1.5.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/dist/cjs/index.cjs
CHANGED
|
@@ -27835,7 +27835,9 @@ function table(args) {
|
|
|
27835
27835
|
old_stack.delete(pr_url);
|
|
27836
27836
|
}
|
|
27837
27837
|
// add remaining old stack pr urls to the front of stack pr url list
|
|
27838
|
-
|
|
27838
|
+
const old_pr_list = Array.from(old_stack.keys());
|
|
27839
|
+
old_pr_list.reverse();
|
|
27840
|
+
for (const pr_url of old_pr_list) {
|
|
27839
27841
|
stack_pr_url_list.unshift(pr_url);
|
|
27840
27842
|
}
|
|
27841
27843
|
const stack_list = [];
|
|
@@ -27859,8 +27861,6 @@ function table(args) {
|
|
|
27859
27861
|
if (!stack_list.length) {
|
|
27860
27862
|
return "";
|
|
27861
27863
|
}
|
|
27862
|
-
// reverse order of pr list to match the order of git stack
|
|
27863
|
-
stack_list.reverse();
|
|
27864
27864
|
return TEMPLATE.stack_table(["", ...stack_list, "", ""].join("\n"));
|
|
27865
27865
|
}
|
|
27866
27866
|
function parse(body) {
|
|
@@ -34418,7 +34418,7 @@ async function command() {
|
|
|
34418
34418
|
.wrap(123)
|
|
34419
34419
|
// disallow unknown options
|
|
34420
34420
|
.strict()
|
|
34421
|
-
.version("1.
|
|
34421
|
+
.version("1.5.0" )
|
|
34422
34422
|
.showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`")
|
|
34423
34423
|
.help("help", "Show usage via `git stack help`").argv);
|
|
34424
34424
|
}
|
package/package.json
CHANGED
|
@@ -80,8 +80,8 @@ test("builds list of prs with selected emoji", () => {
|
|
|
80
80
|
...args.body.split("\n"),
|
|
81
81
|
"",
|
|
82
82
|
"#### git stack",
|
|
83
|
-
"- ⏳ `2` https://github.com/magus/git-multi-diff-playground/pull/47",
|
|
84
83
|
"- 👉 `1` https://github.com/magus/git-multi-diff-playground/pull/43",
|
|
84
|
+
"- ⏳ `2` https://github.com/magus/git-multi-diff-playground/pull/47",
|
|
85
85
|
]);
|
|
86
86
|
});
|
|
87
87
|
|
|
@@ -123,9 +123,9 @@ test("persists removed pr urls from previous stack table", () => {
|
|
|
123
123
|
"Summary of problem",
|
|
124
124
|
"",
|
|
125
125
|
"#### git stack",
|
|
126
|
-
"- 👉 `3` https://github.com/magus/git-multi-diff-playground/pull/47",
|
|
127
|
-
"- ⏳ `2` https://github.com/magus/git-multi-diff-playground/pull/44",
|
|
128
126
|
"- ⏳ `1` https://github.com/magus/git-multi-diff-playground/pull/43",
|
|
127
|
+
"- ⏳ `2` https://github.com/magus/git-multi-diff-playground/pull/44",
|
|
128
|
+
"- 👉 `3` https://github.com/magus/git-multi-diff-playground/pull/47",
|
|
129
129
|
].join("\n"),
|
|
130
130
|
|
|
131
131
|
pr_url_list: [
|
|
@@ -143,11 +143,11 @@ test("persists removed pr urls from previous stack table", () => {
|
|
|
143
143
|
"Summary of problem",
|
|
144
144
|
"",
|
|
145
145
|
"#### git stack",
|
|
146
|
-
"- ⏳ `5` https://github.com/magus/git-multi-diff-playground/pull/61",
|
|
147
|
-
"- ⏳ `4` https://github.com/magus/git-multi-diff-playground/pull/54",
|
|
148
|
-
"- 👉 `3` https://github.com/magus/git-multi-diff-playground/pull/47",
|
|
149
|
-
"- ✅ `2` https://github.com/magus/git-multi-diff-playground/pull/44",
|
|
150
146
|
"- ✅ `1` https://github.com/magus/git-multi-diff-playground/pull/43",
|
|
147
|
+
"- ✅ `2` https://github.com/magus/git-multi-diff-playground/pull/44",
|
|
148
|
+
"- 👉 `3` https://github.com/magus/git-multi-diff-playground/pull/47",
|
|
149
|
+
"- ⏳ `4` https://github.com/magus/git-multi-diff-playground/pull/54",
|
|
150
|
+
"- ⏳ `5` https://github.com/magus/git-multi-diff-playground/pull/61",
|
|
151
151
|
]);
|
|
152
152
|
|
|
153
153
|
// run again on the output to make sure it doesn't change
|
|
@@ -32,7 +32,9 @@ export function table(args: WriteArgs) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
// add remaining old stack pr urls to the front of stack pr url list
|
|
35
|
-
|
|
35
|
+
const old_pr_list = Array.from(old_stack.keys());
|
|
36
|
+
old_pr_list.reverse();
|
|
37
|
+
for (const pr_url of old_pr_list) {
|
|
36
38
|
stack_pr_url_list.unshift(pr_url);
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -62,9 +64,6 @@ export function table(args: WriteArgs) {
|
|
|
62
64
|
return "";
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
// reverse order of pr list to match the order of git stack
|
|
66
|
-
stack_list.reverse();
|
|
67
|
-
|
|
68
67
|
return TEMPLATE.stack_table(["", ...stack_list, "", ""].join("\n"));
|
|
69
68
|
}
|
|
70
69
|
|