-
Notifications
You must be signed in to change notification settings - Fork 85
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
ci: define commit scope values #88
base: main
Are you sure you want to change the base?
Conversation
@@ -22,6 +22,24 @@ | |||
2, | |||
"always", | |||
"Signed-off-by" | |||
], | |||
"scope-enum": [ | |||
2, |
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.
Shouldn't this be a warning instead of an error? I mean it says "optional" in the above CONTRIBUTING.md explainer.
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.
In the scope-enum section in https://commitlint.js.org/reference/rules.html has a note
This rule always passes if no scopes are provided in the message or the value > is an empty array.
It seems that the scope is always optional.
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.
In the scope-enum section in https://commitlint.js.org/reference/rules.html has a note
This rule always passes if no scopes are provided in the message or the value > is an empty array.
It seems that the scope is always optional.
Sounds good to me. I tried to figure out always|never|optional but missed the scope-enum detail (and there is no optional).
Signed-off-by: Akihiko Kuroda <[email protected]>
Hi! This is a friendly remainder. Could this be reviewed? Thanks! |
Which issue(s) does this pull-request address?
Closes: #49
Description
Based on the discussion in #49. The current list of scopes are in #49 (comment)
Checklist
yarn lint
oryarn lint:fix
yarn format
oryarn format:fix
yarn test:unit
yarn test:e2e