Skip to content
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

fix: use conventionalcommits in semantic-release #3

Merged
merged 2 commits into from
Nov 4, 2019

Conversation

skeggse
Copy link
Contributor

@skeggse skeggse commented Nov 1, 2019

Fix an assumption around how semantic-release would interpret commit types by using the
conventionalcommits preset.

Upstreamed improvement type release rule support: semantic-release/commit-analyzer#149.

@skeggse skeggse requested a review from a team November 1, 2019 22:16
@ghost ghost requested review from jpdstan and removed request for a team November 1, 2019 22:16
index.js Show resolved Hide resolved
@skeggse skeggse requested a review from shils November 1, 2019 22:27
Comment on lines 1 to 6
module.exports = [
{
type: 'improvement',
release: 'patch',
},
];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conventionalcommits spec has two commit types in addition to the ones in the angular preset: chore and improvement. The chore type shouldn't trigger a release.

There are other commit types that aren't included in the default release rules, but none of those should trigger a release either.

Fix an assumption around how semantic-release would interpret commit types by using the
conventionalcommits preset.
An improvement that's anything more than a bugfix cannot merely be a
patch release, per the semver spec.
@skeggse
Copy link
Contributor Author

skeggse commented Nov 1, 2019

Forgive the force-pushes - I was having some personal problems.

@skeggse skeggse merged commit aec8067 into master Nov 4, 2019
@skeggse skeggse deleted the eli/fix-conventionalcommits branch November 4, 2019 17:10
@mixmax-bot
Copy link
Collaborator

🎉 This PR is included in version 1.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants