-
Notifications
You must be signed in to change notification settings - Fork 52
feat(preset): support ignoreCommits option #836
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
feat(preset): support ignoreCommits option #836
Conversation
This is an open source project maintained by volunteers. Please refrain from pinging maintainers after this has only been open for three days. We will review when we have time. You could really help us out by explaining the value that this proposal would unlock. |
sorry about it, no hurries. I'll update my pr description to explain my use case |
i'm ok with accepting this change, but it should be documented in the README. could you add it to the options there with a brief description that aligns with the descriptions of the other options documented there? |
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.
in addition to the readme addition, it looks like there are linting issues that need to be resolved. you should be able to handle those by running npm run lint:prettier:fix
locally. be sure to run npm test
locally to make sure all of our automated verification passes
thank you, I could fix lint issues and validate that tests are passing locally. For documenting this option I added it as a side note as others that I could see, as it's specific to conventionalcommits preset |
4245152
to
56832df
Compare
i'm coming back to this with fresh eyes and i'm still confused why this is necessary.
the change you've proposed here seems to lift the ignore capability from the preset to be directly in this plugin. why is this necessary rather than letting the preset handle the ignoring? does this introduce this functionality for presets that do not support it? what am i misunderstanding? |
given my updated perspective, i think youre right that this is too specific to the conventionalcommits preset. i think the passing of that option under |
hey @travi, yes. Preset has that option but it does not do anything special than return it as in this line https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/src/index.js#L11. As it's only returning this option transformed, this pr is handling that functionality. |
73a146f
to
a655fbc
Compare
🎉 This PR is included in version 14.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
conventional commits preset support ignoreCommits options from https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/src/index.js#L11. This is an extension of release-notes-generator for supporting this option from this preset.
I've been trying to ignore few specific patterns from one of my repos like messages that contains [python] string. This is successfully working commit-analyzer level with this plugin config:
but when generating release notes with the following config:
that conventional commits seems to receive, it's not working. This pr is trying to support this existing presetConfig https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-conventionalcommits#specific-options, this option is being passed here