Skip to content

Commit 0123e41

Browse files
committed
ci(github): remove explicit pull_request types to fix check name mismatch
GitHub appends the activity type to the status check name when types are explicitly listed, producing 'CI / ci (pull_request)' instead of 'CI / ci'. Branch protection requires the name without the suffix. Remove the types list — the default pull_request trigger already covers opened, synchronize, and reopened. The only dropped type is 'edited' (PR description changes), which isn't meaningful for CI.
1 parent 064c9a4 commit 0123e41

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: CI
33
on:
44
pull_request:
55
branches: [master]
6-
types: [opened, edited, synchronize, reopened]
76

87
permissions:
98
contents: read
@@ -21,17 +20,8 @@ jobs:
2120
steps:
2221
- uses: actions/checkout@v6
2322

24-
- uses: actions/setup-node@v6
25-
with:
26-
node-version: 20
27-
cache: npm
28-
cache-dependency-path: package-lock.json
29-
30-
- name: Install dependencies
31-
run: npm ci --legacy-peer-deps
32-
3323
- name: Lint PR title
34-
run: echo "${{ github.event.pull_request.title }}" | npx commitlint
24+
run: echo "${{ github.event.pull_request.title }}" | npx --yes commitlint
3525

3626
ci:
3727
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)