bot: add commitlint gh action
We now use a github action to perform commit linting instead of the old deprecated commitlint bot. Closes: https://github.com/rook/rook/issues/5547 Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
1 parent
d8949ec945
commit
2b47117fc7
2 files changed
+49
No files matched your search
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"extends": [
|
||||
"@commitlint/config-conventional"
|
||||
],
|
||||
"rules": {
|
||||
"type-enum": [
|
||||
2,
|
||||
"always",
|
||||
[
|
||||
"build",
|
||||
"bot",
|
||||
"cassandra",
|
||||
"ceph",
|
||||
"ci",
|
||||
"cockroachdb",
|
||||
"core",
|
||||
"docs",
|
||||
"edgefs",
|
||||
"nfs",
|
||||
"test",
|
||||
"yugabytedb"
|
||||
]
|
||||
],
|
||||
"body-leading-blank": [
|
||||
2,
|
||||
"always"
|
||||
],
|
||||
"footer-leading-blank": [
|
||||
2,
|
||||
"always"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
name: Commitlint
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: wagoid/commitlint-github-action@v1.6.0
|
||||
with:
|
||||
configFile: './.commitlintrc.json'
|
||||
helpURL: https://rook.io/docs/rook/master/development-flow.html#commit-structure
|
||||
Reference in new issue
Block a user