-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Make conventional commits more explicit #292
Conversation
also merge two similiar checklist as one about change in docs
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.
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. |
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.
Proposals approved
@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: