auto-release-cli
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -0,1 +1,13 @@ | ||
# v2.5.1 (Wed Jan 16 2019) | ||
#### 🐛 Bug Fix | ||
- `auto label`: must sort PRs first because they can get merged out of order [#197](https://github.com/intuit/auto-release/pull/197) ([@hipstersmoothie](https://github.com/hipstersmoothie)) | ||
#### Authors: 1 | ||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) | ||
--- | ||
# v2.5.0 (Wed Jan 16 2019) | ||
@@ -2,0 +14,0 @@ |
@@ -212,3 +212,7 @@ #!/usr/bin/env node | ||
pulls = _b.sent(); | ||
lastMerged = pulls.find(function (pull) { return !!pull.merged_at; }); | ||
lastMerged = pulls | ||
.sort(function (a, b) { | ||
return new Date(b.merged_at).getTime() - new Date(a.merged_at).getTime(); | ||
}) | ||
.find(function (pull) { return !!pull.merged_at; }); | ||
if (lastMerged) { | ||
@@ -215,0 +219,0 @@ labels = lastMerged.labels.map(function (label) { return label.name; }); |
{ | ||
"name": "auto-release-cli", | ||
"description": "CLI tools to help facilitate semantic versioning based on GitHub PR labels", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"main": "dist/main.js", | ||
@@ -6,0 +6,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
345955
4462