Skip to content

Commit

Permalink
Force option
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcanessa committed Nov 19, 2015
1 parent d7a8941 commit 1722081
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -238,6 +239,8 @@ GithubReleaseNotes.prototype.release = function() {
})
.catch(function (error) {
console.error(error);

return that.options.force;
});
};

Expand Down

0 comments on commit 1722081

Please sign in to comment.