From bfb6af7053f3f3949e97eb074c11d907d1534a89 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Fri, 14 Mar 2014 11:43:15 -0700 Subject: chore: make compare-master-to-stable script more flexible --- compare-master-to-stable.js | 7 +++++-- 1 file 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) { -- cgit v1.2.3