-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add commit linter #13
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # | ||
| # Copyright (C) 2024 CERN. | ||
| # Copyright (C) 2025 Graz University of Technology. | ||
|
|
||
| name: Python CI | ||
|
|
||
|
|
@@ -44,6 +45,9 @@ jobs: | |
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: commitlint | ||
| uses: wagoid/commitlint-github-action@v6 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: for 3rd-party action (i.e. those that are not under the "official" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be clear, using the commit hash is for security + breaking change shield purposes, right? As in, we use v6 and a rogue action update to 6.1 introduces a vulnerability or breaks the CI? (must admit that for our own repos and at least docs-invenio-rdm I haven't been that paranoid ) |
||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
|
|
||
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'm not sure what the default config is for
commitlint, but I see there are many of flexible options and even "shared configurations" (similar to ESLint).I would prefer that we have a "global" config with the set of allowed types (i.e.
chore,feat,fix, etc.). Regarding topics (i.e. whatever goes infix(<topic>): ...) I see that we:.commitlintrc?