-
Notifications
You must be signed in to change notification settings - Fork 580
44 lines (42 loc) · 1.19 KB
/
Copy pathcommitlint.yml
File metadata and controls
44 lines (42 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Lint PR title
on:
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
commitlint:
name: Check PR title (Conventional Commits)
runs-on: ubuntu-latest
# Dependabot and release-please manage their own titles — skip them.
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' }}
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Types allowed — extend as needed
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
deps
# Scopes are optional but if provided must match this list.
# Remove this block to allow any scope.
# scopes: |
# robot
# mobile
# ik
# models
# deps
requireScope: false
# release-please opens PRs like "chore: release 1.2.1" — allow those through
ignoreLabels: |
autorelease: pending
autorelease: tagged