Automatically add a Github release number to all commits

This has already been asked here , but did not answer him, as far as I can tell.

I am writing a script to automate a git workflow. When a topic branch is created, it automatically creates a github problem, referring to it - is there a way to automatically add this problem number to all commits made in this thread? I think there might be a way to use git hooks, but I can't find it.

I know that manually adding #xxx to the beginning of each commit message will do this; what interests me (and what was never answered in the original question) is, if there is a way, that it will be added automatically.

+4
source share
1 answer

See how Henrik Nu did a similar thing by extracting problem numbers from branch names. You could get some of this.

Henrik's article is here .

+3
source

Source: https://habr.com/ru/post/1391613/


All Articles