fix(ci): run lint pr title on title change (#2872)

This commit is contained in:
Jakob Guddas
2025-03-07 10:48:56 +01:00
committed by GitHub
parent 68116414d0
commit 56948fe7c2
2 changed files with 26 additions and 18 deletions

20
.github/workflows/lint-code.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Linting PR
on:
pull_request:
jobs:
lint-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Run Linter
run: pnpm lint

View File

@@ -2,26 +2,14 @@ name: Linting PR
on:
pull_request:
branches:
- '**'
types:
- opened
- edited
- synchronize
- reopened
jobs:
lint-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Run Linter
run: pnpm lint
lint-PR-title:
lint-pr-title:
name: PR Title Lint
runs-on: ubuntu-latest
steps: