auto-release-cli
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -0,1 +1,13 @@ | ||
# v2.3.2 (Tue Jan 15 2019) | ||
#### 🐛 Bug Fix | ||
- Pad color to be 6 digits long [#189](https://github.com/intuit/auto-release/pull/189) ([@adierkens](https://github.com/adierkens)) | ||
#### Authors: 1 | ||
- Adam Dierkens ([@adierkens](https://github.com/adierkens)) | ||
--- | ||
# v2.3.1 (Sun Jan 13 2019) | ||
@@ -2,0 +14,0 @@ |
@@ -12,2 +12,3 @@ import GHub from '@octokit/rest'; | ||
} | ||
export declare function getRandomColor(): string; | ||
export default class GitHub { | ||
@@ -14,0 +15,0 @@ readonly ghub: GHub; |
@@ -80,2 +80,8 @@ "use strict"; | ||
var gitlog = util_1.promisify(gitlog_1.default); | ||
function getRandomColor() { | ||
return Math.floor(Math.random() * 16777215) | ||
.toString(16) | ||
.padStart(6, '0'); | ||
} | ||
exports.getRandomColor = getRandomColor; | ||
var GitHubAPIError = /** @class */ (function (_super) { | ||
@@ -366,3 +372,3 @@ __extends(GitHubAPIError, _super); | ||
repo: this.options.repo, | ||
color: Math.floor(Math.random() * 16777215).toString(16), | ||
color: getRandomColor(), | ||
description: github_release_1.defaultLabelsDescriptions.get(label) | ||
@@ -369,0 +375,0 @@ })]; |
{ | ||
"name": "auto-release-cli", | ||
"description": "CLI tools to help facilitate semantic versioning based on GitHub PR labels", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"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
327838
4220