Search code examples
node.jsgithubopen-sourcegruntjs

Is there a grunt plugin for submitting a pull request to github?


Seems like this would be a very useful tool to help people contribute to open source libraries. I'll take the answer off the air.


Solution

  • yes. use the github-api package: https://www.npmjs.org/package/github-api

    (from their docs)

    Create Pull Request.

    var pull = {
      title: message,
      body: "This pull request has been automatically generated by Prose.io.",
      base: "gh-pages",
      head: "michael" + ":" + "prose-patch",
    };
    repo.createPullRequest(pull, function(err, pullRequest) {});