Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Add support for exclude: true #23

Merged
merged 7 commits into from
Oct 21, 2020
Merged

Add support for exclude: true #23

merged 7 commits into from
Oct 21, 2020

Conversation

fregante
Copy link
Owner

Closes #20

@fregante fregante added the enhancement New feature or request label Oct 20, 2020

Regex to exclude commits based on their title (don't include the initial and final `/`).

Setting this to `true` will enable the default preset, which may change over time, but is currently: `/^meta|^document|^lint|^refactor|readme|dependencies|^v?\d+\.\d+\.\d+/i`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wondering if this is going to bite the uses, as the input takes the string form of a regex (without the leading and trainling /). Also as they can not pass in flags for the regex as well.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I was thinking the same, but it says don't include the initial and final `/`) just in the previous sentence.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That should be cool then (except for the flag part)

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yeah the best solution would be to support a full regex instead of just its textual string. Perhaps there’s an app module for that.

Copy link
Collaborator

@notlmn notlmn left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @fregante 🎉

@fregante fregante merged commit f9cec2b into main Oct 21, 2020
@fregante fregante deleted the exclude-template branch October 21, 2020 16:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Have a exclude preset
2 participants