github-release-notes
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "github-release-notes", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Node module to publish release notes based on commits between the last two tags.", | ||
@@ -5,0 +5,0 @@ "main": "./github-release-notes.js", |
@@ -20,3 +20,3 @@ 'use strict'; | ||
function makeRelease(gren, releaseOptions) { | ||
return new Promise(function (resolve, reject) { | ||
return new Promise(function (resolve, reject) { | ||
gren.repo.makeRelease(releaseOptions, function (err, release) { | ||
@@ -69,3 +69,3 @@ if(err) { | ||
*/ | ||
function prepareRelease(gren, tags, commitMessages) { | ||
function prepareRelease(gren, tagName, commitMessages) { | ||
var body = commitMessages | ||
@@ -80,4 +80,4 @@ .slice(0, -1) | ||
var releaseOptions = { | ||
tag_name: tags[0].name, | ||
name: (gren.options.prefix || '') + tags[0].name, | ||
tag_name: tagName, | ||
name: (gren.options.prefix || '') + tagName, | ||
body: body, | ||
@@ -222,2 +222,3 @@ draft: gren.options.draft || false, | ||
var that = this; | ||
var tagName; | ||
@@ -233,2 +234,4 @@ return getLatestRelease(this) | ||
tagName = tags[0].name; | ||
return Promise.all(getTagDates(that, tags[0], tags[1])); | ||
@@ -240,3 +243,3 @@ }) | ||
.then(function (commitMessages) { | ||
return prepareRelease(that, tags, commitMessages); | ||
return prepareRelease(that, tagName, commitMessages); | ||
}) | ||
@@ -243,0 +246,0 @@ .then(function (success) { |
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
8361
226