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

前端 未结 10 1919
抹茶落季
抹茶落季 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 05:08

    If you have 2FA enabled, you can use pass the token with HTTPie:

    http POST \
        https://api.github.com/repos///pulls \
        issue=2 head=issue_2 base=master
        "Authorization:token PUTAUTHTOKENHERE"
    

    This will use the branch issue_2 to convert issue #2 into a pull request.

提交回复
热议问题