ci: add action-semantic-pull-request #41

Merged
satprog merged 1 commits from ci/semantic-pull-request into main 2025-06-21 18:39:12 +00:00
2 changed files with 27 additions and 0 deletions
Showing only changes of commit 07d28dc147 - Show all commits

View File

@ -0,0 +1,3 @@
export default {
extends: ["@commitlint/config-conventional"],
};

24
.github/workflows/lint-pr.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Lint PR
on:
pull_request:
branches: ["main"]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: >-
npx commitlint
-g .github/workflows/commitlint.config.js
--from ${{ gitea.event.pull_request.base.sha }}
--to ${{ gitea.event.pull_request.head.sha }}
--verbose