aboutsummaryrefslogtreecommitdiffstats
path: root/compare-master-to-stable.js
diff options
context:
space:
mode:
authorVojta Jina2014-03-14 11:43:15 -0700
committerVojta Jina2014-03-14 11:43:15 -0700
commitbfb6af7053f3f3949e97eb074c11d907d1534a89 (patch)
treea0b6bfd3f84747b5fe967019e1cedc9a27501f8e /compare-master-to-stable.js
parentd7be9588a096aa1806620f584f9d00b74d6ac52c (diff)
downloadangular.js-bfb6af7053f3f3949e97eb074c11d907d1534a89.tar.bz2
chore: make compare-master-to-stable script more flexible
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) {