@plasma-platform/tm-message-hook

Check commit message format

Usage no npm install needed!

<script type="module">
  import plasmaPlatformTmMessageHook from 'https://cdn.skypack.dev/@plasma-platform/tm-message-hook';
</script>

README

Commit message format checker

Use inside package.json with husky like this:

  …
  "scripts": {
    "commitmsg": "commit-msg ${GIT_PARAMS} -r (^[A-Z]+-[0-9]+\s-\s[\W\w\s]{5,}[\s]*$|^lock[\s]*$|^((m|M)erge[\w\W\s]*)|^[\d]+(.[\d]+)?(.[\d]+)?[\s]*$)"
  },
  …