From 17220815481b1504999e5685885c524dc452dedb Mon Sep 17 00:00:00 2001 From: Alex Canessa Date: Thu, 19 Nov 2015 17:13:37 +0200 Subject: [PATCH] Force option --- package.json | 2 +- src/index.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 0ca10510..06194be2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-release-notes", - "version": "0.2.2", + "version": "0.3.2", "description": "Node module to publish release notes based on commits between the last two tags.", "main": "./github-release-notes.js", "scripts": { diff --git a/src/index.js b/src/index.js index a9dd7614..1ae0faf0 100644 --- a/src/index.js +++ b/src/index.js @@ -201,6 +201,7 @@ function getOptions(args) { */ function GithubReleaseNotes(options) { this.options = options || getOptions(process.argv); + this.options.force = this.options.force || false; var github = new Github({ token: this.options.token, @@ -238,6 +239,8 @@ GithubReleaseNotes.prototype.release = function() { }) .catch(function (error) { console.error(error); + + return that.options.force; }); };