-
-
Notifications
You must be signed in to change notification settings - Fork 540
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: add a workflow for linting pr titles #2497
Conversation
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 update the contribution guidelines too
ignoreLabels: | | ||
bot | ||
ignore-semantic-pull-request |
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.
I don't think we use these labels internally
# Default: https://github.com/commitizen/conventional-commit-types | ||
types: | | ||
fix | ||
feat | ||
chore | ||
ci | ||
docs | ||
refactor | ||
release | ||
test | ||
revert |
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.
Can you align the types with what we have in the contribution guide? https://github.com/biomejs/biome/blob/main/CONTRIBUTING.md#commit-messages
Summary
This PR adds a workflow for linting pr titles. It uses amannn/action-semantic-pull-request, used by some repositories (Electron · Vite · Excalidraw · Apache · Vercel · Microsoft · Firebase · AWS).
This is definition of each part (from amannn/action-semantic-pull-request).
I only added some types.
No scope and subject pattern for now, but we can define scopes for consistency. In lint area, we have some random scopes for example
lint
,lint/ruleName
,analyzer
.Valid title
Invalid title
Test Plan
Tested on my forked repository : unvalley#2