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:
Sébastien Han committed 2020-05-28 12:12:57 +02:00
1 parent d8949ec945
commit 2b47117fc7
2 files changed
+49

No files matched your search

+33
View File
@@ -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"
]
}
}
+16
View File
@@ -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