Search code examples
gitgithubpull-requestissue-tracking

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


There are questions and answers specifying how do the opposite new pull request to an existing issue.

I created a pull request on Github before opening an issue. Now I would like to assign an issue to this PR (i.e. a better way to start the conversation about what/why/how I am proposing a fix).

How to I create new issue for an existing pull request or create the issue then assign it?

I.e get the issue will show the box with:

user referenced this issue from another pull request

# Title of PR

Can this be done without committing more changes to the PR?


Solution

  • How do I create a new issue for an existing pull request or create the issue then assign it?

    There is no such thing than assignment in GitHub, just issue referencies.

    But you could create the issue and then easily add a link by just adding a comment in your pull request referring to the new issue using the synthax #idIssue (ie #1286)