-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c94845
commit 1f9f16b
Showing
2 changed files
with
5 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.idea | ||
.tox | ||
.coverage | ||
*/__pychache__/* | ||
*/__pycache__/* | ||
venv |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
#!/bin/sh | ||
|
||
# pygitver - commit-msg git hook | ||
COMMIT_MSG=$1 | ||
COMMIT_LINT_DOCKER="panpuchkov/pygitver" | ||
docker run --rm -v $(pwd):/app -w /app ${COMMIT_LINT_DOCKER} --check-commit-message "$(cat \"${COMMIT_MSG}\")" | ||
|
||
COMMIT_LINT_CHECK="$?" | ||
if [[ 0 -ne "${COMMIT_LINT_CHECK}" ]]; then | ||
exit ${COMMIT_LINT_CHECK}; | ||
fi | ||
set -e | ||
|
||
# update docker image in background (optional, uncomment next line if you want auto update) | ||
# docker pull ${COMMIT_LINT_DOCKER} >> /dev/null & | ||
|
||
# pygitver - commit-msg git hook ^^^ | ||
COMMIT_MSG=$1 | ||
COMMIT_LINT_DOCKER="panpuchkov/pygitver" | ||
docker run --rm -v $(pwd):/app -w /app ${COMMIT_LINT_DOCKER} --check-commit-message "$(cat ${COMMIT_MSG})" |