-
-
Notifications
You must be signed in to change notification settings - Fork 4
fix: allow category extraction when scope is used #240
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
Conversation
sethkfman
left a comment
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.
LGTM
Co-authored-by: Jongsun Suh <[email protected]>
MajorLift
left a comment
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.
We should get codeowner approval from @MetaMask/wallet-framework-engineers
cryptodev-2s
left a comment
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.
LGTM!
Gudahtt
left a comment
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.
LGTM!
This PR changes the category extraction to use a RegExp to matches Conventional Commits that start with
feat:orfix:(optionally with a scope likefeat(scope):).Regex breakdown
^– Start of the string(feat|fix)– Must start with eitherfeatorfix(?:\([^)]*\))?– Optionally match a scope in parentheses like(bridge)or(ramps)\s*:\s*– Requires a colon:(with optional spaces before/after)/u– Unicode flag (as GitHub allows PR titles to contain unicode)See https://consensys.slack.com/archives/C08N7NQRBPU/p1745578034343929