Feature request: Shorter notation for referencing issues in a different repository

GitHub currently allows you to reference issues in commit messages, as explained here:

https://help.github.com/articles/closing-issues-using-keywords/

If your issue is not in the same repository, this gets cumbersome and prone to typos. It’s a common use case: we keep issues separate so that we can give access to them to people without giving them access to the source code. Another use case is when you keep your source code in multiple repos but keep all your issues in one place.

The suggested enhacement is to allow a shorter notation when referencing issues in commit messages:

repository#issue_number

Instead of:

username/repository#issue_number

This should be safe to do. The user name or organization name can be automatically deduced from the Git repository that the commit is pushed to. You could argue that there is a risk that someone would mistakenly reference an issue in a repository of the same name in a different organization but I don’t think this is realistic.

4 Likes

Hi @bartlomiej-dawidow,

Thanks for this feedback! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

Please let me know if you have any other questions.

Cheers!

Andrea