aboutsummaryrefslogtreecommitdiffstats
path: root/compare-master-to-stable.js
diff options
context:
space:
mode:
Diffstat (limited to 'compare-master-to-stable.js')
-rwxr-xr-xcompare-master-to-stable.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/compare-master-to-stable.js b/compare-master-to-stable.js
index 7a2fb939..278926d7 100755
--- a/compare-master-to-stable.js
+++ b/compare-master-to-stable.js
@@ -121,9 +121,12 @@ then(function (tags) {
value();
}).
then(function (tags) {
+ var master = tags.pop();
+ var stable = tags.pop();
+
return [
- { name: 'v1.2.x', tag: tags[0] },
- { name: 'master', tag: tags[1] }
+ { name: stable.replace(/\d+$/, 'x'), tag: stable },
+ { name: 'master', tag: master}
];
}).
then(allInSeries(function (branch) {