How to modify Github pull request?

前端 未结 4 1245
星月不相逢
星月不相逢 2020-12-07 11:52

I\'ve opened a pull request to a project. The maintainer has decided to accept it, but told me to modify some contents.

How can I do it? Whether I should keep the c

4条回答
  •  生来不讨喜
    2020-12-07 12:14

    You also can use github api.

    example with curl

    curl --user "your_github_username" \
         --request PATCH \
         --data '{"title":"newtitle","body":"newbody",...}' \
         https://api.github.com/repos/:owner/:repo/pulls/:number
    

    you can find the detailled list of data in github developer doc

    example : change name of my pull request

    curl --user "jeremyclement" \
         --request PATCH \
         --data '{"title":"allows the control of files and folders permissions."}' \
         https://api.github.com/repos/Gregwar/Cache/pulls/9
    

提交回复
热议问题