diff --git a/github.js b/github.js index 098f51f6..1a0c7f6f 100644 --- a/github.js +++ b/github.js @@ -408,6 +408,22 @@ }); }; + // Create a release + // ------- + // + // { + // "tag_name": "v1.0.0", + // "target_commitish": "master", + // "name": "v1.0.0", + // "body": "Description of the release", + // "draft": false, + // "prerelease": false + // } + + this.makeRelease = function(options, cb) { + _request('POST', repoPath + '/releases', options, cb); + }; + // List all pull requests of a respository // -------