Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

chore(tooling): force conventional commits #269

Merged
merged 3 commits into from Jun 26, 2017

Conversation

koddsson
Copy link
Contributor

Add the packages husky and validate-commit-msg to create a precommit
git hook that rejects commits that do not adhere to the conventional
commits standard1.

This enables us to run lerna publish with the flag
--conventional-commits which will autogenerate a changelog and set the
package versions automatically. This PR enables this flag.

Closes: #237

@wyuenho wyuenho self-requested a review June 22, 2017 15:55
@sejoker
Copy link
Contributor

sejoker commented Jun 22, 2017

@koddsson could you update CONTRIBUTING.md with link to https://conventionalcommits.org/ and small explanation why we decided to go with it.

@koddsson
Copy link
Contributor Author

@sejoker Sure! I was thinking about also not merging this until next monday so I can walk through what this change would mean for the team?

@sejoker
Copy link
Contributor

sejoker commented Jun 23, 2017

@koddsson cool thanks, that would be nice.

@koddsson
Copy link
Contributor Author

I tried this on a different branch and it works like a charm! Didn't prompt me for the change but determined it from the commit.

image

Kristján Oddsson added 3 commits June 26, 2017 16:58
Add the packages `husky` and `validate-commit-msg` to create a precommit
git hook that rejects commits that do not adhere to the conventional
commits standard[1].

This enables us to run `lerna publish` with the flag
`--conventional-commits` which will autogenerate a changelog and set the
package versions automatically. This PR enables this flag.

[1]: https://conventionalcommits.org/

Closes: cloudflare#237
This dependency will make lerna automatically generate a CHANGELOG based
on the conventional commits
@koddsson koddsson merged commit eae6900 into cloudflare:master Jun 26, 2017
@koddsson koddsson deleted the force-conventional-commits branch June 26, 2017 19:00
koddsson pushed a commit to koddsson/cf-ui that referenced this pull request Jun 28, 2017
It somehow slipped through the cracks in cloudflare#269 to upgrade lerna since
it's only the new version that includes conventional commits support.

It also seems that `lerna` doesn't push the publish commit so we've
added it to the `npm` publish command.
koddsson added a commit that referenced this pull request Jun 28, 2017
It somehow slipped through the cracks in #269 to upgrade lerna since
it's only the new version that includes conventional commits support.

It also seems that `lerna` doesn't push the publish commit so we've
added it to the `npm` publish command.
koddsson added a commit to koddsson/cf-ui that referenced this pull request Jun 28, 2017
It somehow slipped through the cracks in cloudflare#269 to upgrade lerna since
it's only the new version that includes conventional commits support.

It also seems that `lerna` doesn't push the publish commit so we've
added it to the `npm` publish command.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants