Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

acai-cli: add --patterns flag #20

Open
MartinHelmut opened this issue Feb 17, 2018 · 0 comments
Open

acai-cli: add --patterns flag #20

MartinHelmut opened this issue Feb 17, 2018 · 0 comments

Comments

@MartinHelmut
Copy link
Owner

Like already mentioned in #2 there should be a flag to configure the pattern(s) used to match the commit messages (--patterns / -p). This would enable better results if commit messages are strictly defined. Usage could be e.g.:

$ acai --patterns "^fix\(.*\):"

There has to be defined if this should be some kind of pattern matcher or regular expression. Currently the following regex is default:

/^(?:(?!branch.+into 'master').)*\bfix(?:ed|es)?|close(?:s|d)?\b/i

The default regex excludes merge commits and looks for commits including: "fix", "fixed", "fixes", "close", "closed", "closes".

The possibility to pass a regex to the acai.scanner() is already given.

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

No branches or pull requests

1 participant