-
Notifications
You must be signed in to change notification settings - Fork 18
31 lines (29 loc) · 837 Bytes
/
commit.yaml
File metadata and controls
31 lines (29 loc) · 837 Bytes
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
name: on-commit
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
lint-commit-messages:
name: lint commit message
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Commitizen check
run: |
uvx --from commitizen cz check --rev-range HEAD^!
lint-pr-title:
# default: lints titles using https://github.com/commitizen/conventional-commit-types
name: lint pr title
runs-on: [ubuntu-latest]
permissions:
pull-requests: read
steps:
- uses: amannn/action-semantic-pull-request@v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}