Gau*_*v N 5 bash curl github github-api
我正在尝试使用curl(在bash脚本中)创建Github Pull请求并使用令牌进行身份验证.
我得到了回应curl -u my-user:token https://api.github.com/user.我得到了回应curl https://api.github.com/repos/repo-owner/repo-name/pulls
但是当我尝试使用以下curl命令创建一个pull请求时,我收到错误:
curl -d '{"title":"testPR","base":"master", "head":"user-repo:master"}' https://api.github.com/repos/repo-owner/repo-name/pulls
{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3/pulls/#create-a-pull-request"
}
怎么修?我做错了什么?
我对使用hubhub工作正常创建pull请求不感兴趣.我想知道如何使用curl并做到这一点.先感谢您!