-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
5 changed files
with
36 additions
and
9 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Supported patterns: | ||
# feature/PROJECT-1234-test-test | ||
# PROJECT-1234-test-test | ||
# PROJECT-1234_test_test | ||
id=$(echo `git rev-parse --abbrev-ref HEAD` | sed -nE 's|([a-z]+/)?([A-Z]+-[0-9]+)(-.+)?(_.+)?|\2|p') | ||
|
||
# only prepare commit message if pattern matched and jiraId was found | ||
if [[ ! -z $id ]]; then | ||
# $1 is the name of the file containing the commit message | ||
# Prepend "ABCD-123: " | ||
sed -i.bak -E "1s/^/${id}: /" $1 | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# Define the hdbt_subtheme path relative to the Git root | ||
SUBTHEME_DIR="public/themes/custom/hdbt_subtheme/src" | ||
|
||
# Check if any staged file is inside the hdbt_subtheme | ||
if git diff --cached --name-only | grep -q "^$SUBTHEME_DIR"; then | ||
echo "Detected changes in hdbt_subtheme/src/, running lint..." | ||
cd "$SUBTHEME_DIR" || exit 1 | ||
npm run lint | ||
fi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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