Created
December 3, 2015 12:03
-
-
Save olmstadfm/8c35fb1c1a26fd738c3b to your computer and use it in GitHub Desktop.
Включить номер задачи в текст комментария для коммита
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
issue_id=$(git rev-parse --abbrev-ref HEAD | grep --only-matching -P '^\d+') | |
if [ -n "$issue_id" ]; then | |
echo "Связано c #$issue_id" >> $1 | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment