-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: husky+commitlintを使ってコミットメッセージにlintを実行する #88
Conversation
亜〜〜 先にライブラリアップデートマージしちゃったのでコンフリクトしてしまった…🙏🙏 |
みています〜 👁️ |
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[おきもち]
SmartHR はyarn勢なので、yarnと書いた方が〜〜と思いましたが、
$ yarn commitlint --edit ""
特にtextlint-rule-preset-smarthrの開発環境では明示されていなかったのでヨシ!!、という気持ちになりました!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GoGo!!🎉🎉
# Conflicts: # package.json # yarn.lock
@diescake コンフリクト起きており、解消したので再度レビューお願いしますmm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あざます!Re:LGTM!!🎉🎉
課題・背景
やったこと
やらなかったこと
動作確認
conventional commitsのメッセージルールに従わずコミットした場合、lint errorが出ること。