-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
- Loading branch information
1 parent
407eec9
commit 3fd5e2e
Showing
3 changed files
with
19 additions
and
6 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,4 +1,21 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit $1 | ||
NAME=$(git config user.name) | ||
EMAIL=$(git config user.email) | ||
|
||
if [ -z "$NAME" ]; then | ||
echo "empty git config user.name" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$EMAIL" ]; then | ||
echo "empty git config user.email" | ||
exit 1 | ||
fi | ||
|
||
git interpret-trailers --if-exists doNothing --trailer \ | ||
"Signed-off-by: $NAME <$EMAIL>" \ | ||
--in-place "$1" | ||
|
||
npm exec --no -- commitlint --edit $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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lint-staged | ||
npm exec --no -- lint-staged --no-stash |
This file was deleted.
Oops, something went wrong.