Cli*_*ntm 4 github pull-request
标题说明了一切……
任何人都有任何代码来以编程方式更新 github 拉取请求的基本分支?不要太在意语言。
更改 PR(拉取请求)的基本分支的 API 方法是 此处描述了:
GitHub 最近(2016 年 8 月,在撰写本文时不到 2 年前)添加了在 Pull Request 上更改基本分支的功能后的功能。
现在我们正在更新 Pull Request API 以启用新功能。例如:
curl "https://api.github.com/repos/github/hubot/pulls/123" \
-H 'Authorization: token TOKEN' \
-d '{ "base": "master" }'
Run Code Online (Sandbox Code Playgroud)
拉取请求库将更新为指向
master分支。
您可以将该curl调用嵌入到您想要的任何脚本语言中。
| 归档时间: |
|
| 查看次数: |
263 次 |
| 最近记录: |