Skip to content
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(config.ts): add skipCommitMessageCheck config key #19

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs(README.md): add instructions for skipping commit message check i…
…n hook

Added explanation to readme
  • Loading branch information
Lars- committed Mar 15, 2023
commit 5023fc470cda9b1a548bc5b43c303409fa8ee97c
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -102,6 +102,12 @@ To unset the hook:
oc hook unset
```

In the hook, there is a check that checks if the commit message is not empty. If it is not, the hook will not run. To skip that check and always replace the commit message run:

```sh
oc config set skipCommitMsgHookSourceCheck=true
```

To use the hook:

```sh