Skip to content

Commit fe0cbf6

Browse files
authored
ci: start enforcing the conventional commit spec for PR titles (#3)
As part of jekyll/jekyll#9760, I'm using this repo as a testbed for streamlining automation. The first step is to lint PR titles against the conventional commit spec so that the release-please automation can do its work.
1 parent 4b87d04 commit fe0cbf6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Enforce Conventional Commits
2+
3+
permissions:
4+
pull-requests: read
5+
6+
on:
7+
pull_request_target:
8+
types: [opened, edited, synchronize, reopened, ready_for_review]
9+
branches:
10+
- master
11+
- main
12+
13+
jobs:
14+
enforce-conventional-commits:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Lint Conventional Commit Usage
18+
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
types: |
23+
build
24+
chore
25+
ci
26+
docs
27+
feat
28+
fix
29+
perf
30+
refactor
31+
revert
32+
style
33+
test
34+
requireScope: false

0 commit comments

Comments
 (0)