Sha256: dce5e1d564712500a8117dc17513195ddeb2d77f4faaf92502e1af3d48b3fcb5
Contents?: true
Size: 440 Bytes
Versions: 23
Compression:
Stored size: 440 Bytes
Contents
#!/bin/bash commit_regex="(ISSUE-[0-9]+|merge)" if ! grep -iqE "$commit_regex" "$1"; then echo "You need to add github issue tag in your commit, example: 'ISSUE-33: my pretty commit'" exit 1 fi list=$(git diff --cached --name-only --diff-filter=ACRM) for file in $list; do if [[ $file == *"root.rb"* || $file == *"project.pbxproj"* ]]; then echo "You can't commit file $file. Please reset it and try again." exit 1 fi done
Version data entries
23 entries across 23 versions & 1 rubygems