Skip to content

Commit 932ff3e

Browse files
committed
ci: ensure commit messages follow conventional commits
Adds linting to the CI pipeline for pull requests that validates commit messages to be valid conventional commits.
1 parent d821409 commit 932ff3e

File tree

5 files changed

+3841
-0
lines changed

5 files changed

+3841
-0
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request: {}
7+
8+
jobs:
9+
lint-commits:
10+
name: Lint PR commits
11+
runs-on: ubuntu-latest
12+
if: ${{ github.event_name == 'pull_request' }}
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
- uses: wagoid/commitlint-github-action@v5

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
*.iml
88
kotlin_gen
99
/version.txt
10+
/node_modules

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {extends: ['@commitlint/config-conventional']};

0 commit comments

Comments
 (0)