This has already been asked here but was not answered as far as I can see.
I am writing a script to automate git workflow. When a topic branch is created it automatically creates a github issue referencing it - is there any way to automatically prepend this issue number to all commits made in that branch? I am thinking there may be a way using git hooks but I'm unable to find it.
I am aware that manually adding #xxx to the beginning of each commit message will do this; what I am interested in (and what was never answered in the original question) is if there is a way for this to be added automatically.