Is it possible to create a commit message with link to other repository commit?
Eg. something like [Username\Repo\commitHash]
Usage example: if some bc break would happen in some framework's commit, I'd like to link to this very commit in my own commits updating my code which uses this framework.
How to Link Commits to GitHub Issues. If you use the correct format in your commit message, your commit will be automatically linked to a GitHub Issue or Pull Request. To do this, put a # followed the Issue or Pull Request number. This will automatically create a link in the commit message.
You just need to include #xxx in your commit message to reference an issue without closing it. With the new GitHub issues 2.0, you can use these synonyms to reference an issue and close it (in your commit message).
Use #1234 in a comment to reference pull request 1234 from the current repo. Show activity on this post. For example, https://github.com/jlord/sheetsee.js/issues/26 will render as jlord/sheetsee. js#26.
I was searching for something like this myself. Found it on:
https://help.github.com/articles/autolinked-references-and-urls/#commit-shas
<<username>>/<<repo>>@<<commitHash>>
Without the angle brackets of course :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With