You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git commit --allow-empty -m "type(aa): some message"
POLICY CHECK STATUS MESSAGE
commit Conventional Commit PASS Commit message is a valid conventional commit
license File Header PASS All files have a valid license header
Using the exact match regex in the config; .conform.yaml
git commit --allow-empty -m "type(aa): some message"
POLICY CHECK STATUS MESSAGE
commit Conventional Commit FAILED Invalid scope "aa": allowed scopes are [^a$]
license File Header PASS All files have a valid license header
Error: 1 or more policy failed
The regex could be useful for defining more complex scope patterns, but it doesn't match what I would call expected behavior since the types: key doesn't use regex. Perhaps it would be better to add a regex: bool option to the config and do a non-regex scope match by default?
The text was updated successfully, but these errors were encountered:
The current scope parsing behavior returns true if the scope contains the regex pattern, not if the scope is an exact match.
.conform.yaml
git commit --allow-empty -m "type(aa): some message" POLICY CHECK STATUS MESSAGE commit Conventional Commit PASS Commit message is a valid conventional commit license File Header PASS All files have a valid license header
Using the exact match regex in the config;
.conform.yaml
The regex could be useful for defining more complex scope patterns, but it doesn't match what I would call expected behavior since the
types:
key doesn't use regex. Perhaps it would be better to add aregex: bool
option to the config and do a non-regex scope match by default?The text was updated successfully, but these errors were encountered: