Skip to content

Commit 1722081

Browse files
committed
Force option
1 parent d7a8941 commit 1722081

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-release-notes",
3-
"version": "0.2.2",
3+
"version": "0.3.2",
44
"description": "Node module to publish release notes based on commits between the last two tags.",
55
"main": "./github-release-notes.js",
66
"scripts": {

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ function getOptions(args) {
201201
*/
202202
function GithubReleaseNotes(options) {
203203
this.options = options || getOptions(process.argv);
204+
this.options.force = this.options.force || false;
204205

205206
var github = new Github({
206207
token: this.options.token,
@@ -238,6 +239,8 @@ GithubReleaseNotes.prototype.release = function() {
238239
})
239240
.catch(function (error) {
240241
console.error(error);
242+
243+
return that.options.force;
241244
});
242245
};
243246

0 commit comments

Comments
 (0)