Compare commits
1 Commits
2c6f38d159
...
405a8bd176
| Author | SHA1 | Date | |
|---|---|---|---|
| 405a8bd176 |
3
.github/workflows/commitlint.config.js
vendored
Normal file
3
.github/workflows/commitlint.config.js
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
extends: ["@commitlint/config-conventional"],
|
||||||
|
};
|
||||||
23
.github/workflows/lint-pr.yml
vendored
Normal file
23
.github/workflows/lint-pr.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: Lint PR
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: ["main"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
commitlint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- run: >-
|
||||||
|
npx
|
||||||
|
--package @commitlint/cli
|
||||||
|
--package @commitlint/config-conventional
|
||||||
|
commitlint
|
||||||
|
-g .github/workflows/commitlint.config.js
|
||||||
|
--from ${{ gitea.event.pull_request.base.sha }}
|
||||||
|
--to ${{ gitea.event.pull_request.head.sha }}
|
||||||
|
--verbose
|
||||||
Loading…
x
Reference in New Issue
Block a user