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
45
46
47
48
49
50
51
52
53
name: PR title
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
permissions:
pull-requests: read
# Cancel superseded runs when a PR title is edited repeatedly.
concurrency:
group: pr-title-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
conventional:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
# Enforce that the PR title is a valid Conventional Commit, since it
# becomes the squash-merge commit message that release-plz parses.
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
perf
refactor
docs
test
ci
build
chore
# Optional scopes; when present they should be a crate name. The two
# `publish = false` crates are listed too -- they never appear in a
# changelog, but a PR touching only them should still be able to say so.
scopes: |
oci-zero
gzip-zero
zstd-zero
oci-zero-web
oci-zero-no-std-extract
requireScope: false
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" must start with a lowercase letter and use
the imperative mood, e.g. "fix(gzip-zero): reject corrupt header CRC".