Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit bfb6af7

Browse files
committed
chore: make compare-master-to-stable script more flexible
1 parent d7be958 commit bfb6af7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

compare-master-to-stable.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,12 @@ then(function (tags) {
121121
value();
122122
}).
123123
then(function (tags) {
124+
var master = tags.pop();
125+
var stable = tags.pop();
126+
124127
return [
125-
{ name: 'v1.2.x', tag: tags[0] },
126-
{ name: 'master', tag: tags[1] }
128+
{ name: stable.replace(/\d+$/, 'x'), tag: stable },
129+
{ name: 'master', tag: master}
127130
];
128131
}).
129132
then(allInSeries(function (branch) {

0 commit comments

Comments
 (0)