Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github-release-notes

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-release-notes - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc