I'm wondering if it's possible to target Issues to specific branches of a repo.
Use case:
I've a repo which have 1 main branch, and 2 development branches, A and B.
From branches A and B other branches grow, depending of the issues.
I'm already aware that is possible to reference a commit to issues via '#' keyword and the number of the issue, but I want it inverted, so the person that is creating the issue, can say something like:
"There's a bug in development branch A" or "There's a bug in @repoName/A" and that A or "@reponame/A" become a link to the branch in the same issue.
So my question is:
It's possible?
Already exists but I don't know the keyword for that?
I've to know the SHA of the current last commit of the branch?
You could link to the GitHub permalink for this branch:
https://github.com/$group/$project/tree/$branchname
for instance, for the upcoming Git version: https://github.com/git/git/tree/next
But it is easier to just write "this affects $branchname". Anybody working on the project, has it locally anyway and can simply switch branches. Also, most of the time, branches have meaningful names (1.x, stable, dev, feature-X, …) so only mentioning the name is usually enough.
If you are specifically addressing a single commit, write the full commit hash in the issue description and GitHub will automatically create a link for it.