How do you attach a new pull request to an existing issue on github?

前端 未结 10 1912
抹茶落季
抹茶落季 2020-12-04 04:40

I\'m not sure, but I have a vague memory of creating a github pull request with \"Issue 4\" or something in the title, and it automatically attached itself to Issue 4 in the

10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 04:48

    in case you use 2-factor-auth with github you'll need to provide the authtoken as header in the request:

    curl -u ":" \
         --header 'X-GitHub-OTP: ' \
         --request POST \
         --data '{"issue":"", "head":":", "base":""}' \
         https://api.github.com/repos///pulls
    

提交回复
热议问题