Automatically open a pull request on github by command line

前端 未结 3 1605
执念已碎
执念已碎 2020-12-16 15:36

I\'m using git to versioning a collaborate project.

And I have two remotes. fork is a fork of an project, and origin

3条回答
  •  时光说笑
    2020-12-16 16:05

    Perhaps like this

    curl -X POST -u garoudan -k \
      -d '{"title": "new feature","head": "octocat:new-feature","base": "master"}' \
      https://api.github.com/repos/garoudan/foo/pulls
    

    ref

提交回复
热议问题