file path:
- .git/hooks/prepare-commit-msg
Add this script to .git/hooks
It looks at the staged changes in git and add a prefix to commit message based on the location of the change
If the change is in the /*/api/api_a/*.py the commit message would be:
- "[ApiA] blah blah"