【问题标题】:Is there a grunt plugin for submitting a pull request to github? [closed]是否有用于向 github 提交拉取请求的 grunt 插件? [关闭]
【发布时间】:2014-03-10 17:03:15
【问题描述】:

看起来这将是一个非常有用的工具,可以帮助人们为开源库做出贡献。我会从直播中删除答案。

【问题讨论】:

标签: node.js github open-source gruntjs


【解决方案1】:

是的。使用 github-api 包: https://www.npmjs.org/package/github-api

(来自他们的文档)

创建拉取请求。

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) {});

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-05-05
    • 2015-12-13
    • 1970-01-01
    • 1970-01-01
    • 2018-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多