Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"type-enum": [
2,
"always",
["feat", "fix", "docs", "style", "refactor", "perf", "test", "chore", "build", "ci", "revert"]
],
"subject-case": [0, "always"],
"header-max-length": [1, "always", 100]
}
}

20 changes: 20 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Commit Lint
on:
pull_request:
branches: [main, master]
permissions:
contents: read
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint commits in PR
uses: wagoid/commitlint-github-action@v6
Comment on lines +11 to +15

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already addressed in master — the canonical commitlint.yml on master already SHA-pins both actions (actions/checkout@de0fac2e v6.0.2 and wagoid/commitlint-github-action@b948419d v6.2.1, landed via PR #3). This PR was superseded by #3/#6/#7 and is being closed.

Fleet-driver classification: trivial (already-addressed in master, PR superseded). Acknowledged automatically by /jc-coding-fleet-driver v2.x.

with:
configFile: ".commitlintrc.json"
failOnWarnings: false
firstParent: false

Loading