We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
commit_parsers
In commit_preprocessors we can specify a regex pattern and use the value of the group in the replace field.
commit_preprocessors
Excample:
commit_preprocessors = [ { pattern = '.*#([0-9]+)', replace = "([#${0}](https://dev.azure.com/raboweb/Skunk%20Works/_backlogs/backlog/MyTeam/Backlog%20items/?workitem=${1}))"}, ]
Is it possible to do the same for commit_parsers?
commit_parsers = [ { message = ".*(#[0-9]+)", group = '${1}', default_scope = "other"}, ]
This renders ${1} in the output
${1}
The text was updated successfully, but these errors were encountered:
feat(parser): support using regex group values (#145)
7767ace
Hello @erwinc1, thanks for reporting this! 🐻
This is now implemented in 7767ace it will be available with the upcoming release.
You can use it as follows:
# regex for parsing and grouping commits commit_parsers = [ { message = '^fix\((.*)\)', group = 'Fix (${1})' }, { message = '^feat\((.*)\)', group = 'Feat (${1})' }, ]
Results in:
## [1.0.0] - 2021-07-18 ### Feat (parser) - Add ability to parse arrays ### Fix (args) - Rename help argument due to conflict
Sorry, something went wrong.
orhun
No branches or pull requests
In
commit_preprocessors
we can specify a regex pattern and use the value of the group in the replace field.Excample:
Is it possible to do the same for
commit_parsers
?This renders
${1}
in the outputThe text was updated successfully, but these errors were encountered: