-
Notifications
You must be signed in to change notification settings - Fork 668
Add commit message linting #1382
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
Conversation
Commitizen allows easy commit message formatting
Netlify's node version is 8.x where one of the packages depends on v10.x |
I’d like to upgrade our node version if it is not problematic. [8.x is reaching EOL.](https://github.com/nodejs/Release#release-schedule) (AWS isn’t supporting lambdas written in it as of 2020... I imagine other providers will follow suit)
I think we should make a new issue to track that work.
…On Sat, Dec 21, 2019 at 4:59 PM Dobromir Hristov ***@***.***> wrote:
Netlify's node version is 8.x where one of the packages depends on v10.x
Should I try do bump down the version of the package or should we set a
higher version of Node on Netlify?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#1382?email_source=notifications&email_token=AAVL4BD3ZJGDYJCT3BUZH7TQZ2GVPA5CNFSM4J6IR352YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHPELKI#issuecomment-568214953>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVL4BCPB3NPWWGFWUQWN63QZ2GVPANCNFSM4J6IR35Q>
.
|
I have mixed feelings here. Having conventional commits is a great idea, but adding a commit linting step for everyone might feel like a blocker when starting to contribute to the library. If we use a squash merge strategy, we can customise the commit message that ends up in dev/master, so users could use whatever message they like, and we'd be the ones responsible for setting the right message. This way we would have the best of both worlds: Angular-based commit messages while keeping it simple for contributors. I've been using this approach both internally and in DOM Testing Library (and other Testing Lib projects) and works like a charm. Thoughts? |
Well I can see where you are coming from here and you have a fair point. I looked at Vue, Vue-cli and other similar libs and all use that pattern. Other way of doing this would be to drop commit linting, but still allow them to use |
Okay, that's a fair point. Sure, let's go with this and provide the Thanks! |
Co-Authored-By: Adrià Fontcuberta <[email protected]>
Should I change it so prettier and esling run a |
I don't see why not! |
Now it auto runs lint and prettier, then stages the changes when you commit. |
Description
Adds commit message linting before each commit.
Applies the conventional-commit pattern, also known as Angular preset.