Skip to content

Commit

Permalink
workflow: temporarily fix desktop/desktop#12562
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Nov 27, 2022
1 parent 6a70ba8 commit 473ffa3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
case `uname` in
# bug on Windows/Github Desktop: add `.cmd` extension fixes it
*CYGWIN*|*MINGW*|*MSYS*)
npx.cmd --no -- commitlint --edit ${1}
;;
*)
npx --no -- commitlint --edit ${1}
;;
esac
10 changes: 9 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
case `uname` in
# bug on Windows/Github Desktop: add `.cmd` extension fixes it
*CYGWIN*|*MINGW*|*MSYS*)
npx.cmd lint-staged
;;
*)
npx lint-staged
;;
esac

0 comments on commit 473ffa3

Please sign in to comment.