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

Allow multiple parsers for skipped/non-skipped commits #117

Open
orhun opened this issue Oct 4, 2022 · 2 comments
Open

Allow multiple parsers for skipped/non-skipped commits #117

orhun opened this issue Oct 4, 2022 · 2 comments
Labels
feature/request New feature or request good first issue Good for newcomers

Comments

@orhun
Copy link
Owner

orhun commented Oct 4, 2022

Is your feature request related to a problem? Please describe.

From PR #114:

Note that during testing, one caveat was discovered: If a commit is matched by one parser, it can't be matched by any other. That means if a breaking commit was prevented from being skipped, it won't become part of any other group. Maybe it is worth to think about allowing multiple parsers for commits in an hierarchical order?

Describe the solution you'd like
Allow commits to be parsed by multiple commit_parsers (if skipped).

Describe alternatives you've considered
None.

Additional context
I think this issue needs some brainstorming. Let me know if you want to tackle it!

@orhun orhun added feature/request New feature or request good first issue Good for newcomers labels Oct 4, 2022
@orhun orhun self-assigned this Oct 4, 2022
@sharmadhiraj86

This comment was marked as outdated.

@orhun orhun removed their assignment Feb 28, 2024
@tonny008
Copy link

tonny008 commented Dec 6, 2024

I need this feature even it is not skipped.

I thought below config will work. but it NOT. only the first match takes effect.

  [
{ message = "(scope)", scope = "Fancy Scope" },
{ message = "^feat", group = "<!-- 0 -->🚀 Features" }
]

to make it work. i need below parser. it is tedious with many scopes and groups.

[{ message = "^feat\(scope\)", scope = "Fancy Scope", group =  "<!-- 0 -->🚀 Features"}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/request New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants