githubgit-branch

How do I reference an existing branch from an issue in GitHub?


Let's say I have a branch named feature/1. And also issue #1. I want to link that branch to that issue.

Is there a way to link that branch to that issue from the issue? Without making a commit.


Solution

  • Directly from GitHub:

    References

    Certain references are auto-linked:

    • SHA: be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
    • User@SHA ref: mojombo@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
    • User/Project@SHA: mojombo/god@be6a8cc1c1ecfe9489fb51e4869af15a13fc2cd2
    • #Num: #1
    • User/#Num: mojombo#1
    • User/Project#Num: mojombo/god#1

    It seems that directly (as in user/repo/branch) is not possible, but maybe by using the id of the tree?