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

Version Path
skeleton-ui-0.1.20 .githooks/commit-msg
skeleton-ui-0.1.19 .githooks/commit-msg
skeleton-ui-0.1.18 .githooks/commit-msg
skeleton-ui-0.1.17 .githooks/commit-msg
skeleton-ui-0.1.16 .githooks/commit-msg
skeleton-ui-0.1.15 .githooks/commit-msg
skeleton-ui-0.1.14 .githooks/commit-msg
skeleton-ui-0.1.13 .githooks/commit-msg
skeleton-ui-0.1.12 .githooks/commit-msg
skeleton-ui-0.1.11 .githooks/commit-msg
skeleton-ui-0.1.9 .githooks/commit-msg
skeleton-ui-0.1.8 .githooks/commit-msg
skeleton-ui-0.1.7 .githooks/commit-msg
skeleton-ui-0.1.6 .githooks/commit-msg
skeleton-ui-0.1.5 .githooks/commit-msg
skeleton-ui-0.1.4 .githooks/commit-msg
skeleton-ui-0.1.3 .githooks/commit-msg
skeleton-ui-0.1.2 .githooks/commit-msg
skeleton-ui-0.1.1 .githooks/commit-msg
skeleton-ui-0.1.0 .githooks/commit-msg