Make conventional commits more explicit#292
Conversation
also merge two similiar checklist as one about change in docs
DyegoCosta
left a comment
There was a problem hiding this comment.
What about add a git commit hook instead? https://github.com/conventional-changelog/commitlint/#add-hook
Seems reasonably fast on my machine.
|
@DyegoCosta that's what husky does, setting up Git hooks. In our setup it runs commitlint when a new commit is created. https://github.com/materializecss/materialize/blob/main/.husky/commit-msg https://github.com/materializecss/materialize/blob/main/package.json#L60 I think we should upgrade husky to the latest available version. Afaik it also needs a @wuda-io wants to check why it does not work. I guess this is due to the newer Git version which is not supported by husky or we forgot the |
|
OH I did not notice we had that already in the project, I think my local was behind the upstream. Wouldn't be better to fix it instead of adding this new checkbox then? I added it to my outdated branch (with this command) and it worked as expected (screenshot above). |
|
I think it only works on Unix machines, I will test it. |
|
@DyegoCosta sadly the commit hook doesn't work when the contributor edited directly from github.com or github.dev 😞 |
|
@Smankusors that is as expected since the browser-based IDE has no real shell environment. That should not be a problem for us. As we plan to onboard more members with write access, there will be more volunteers who can fix commit messages in PRs if needed. |

Proposed changes
I updated the PR template and the contributing doc, so that it's easier for the first time contributors and us reviewers when handling the conventional commits format. Let me know what do you guys think 😉
(also merge two similiar checklist as one about change in docs)
Screenshots (if appropriate) or codepen:
n/a
Types of changes
Checklist: