Skip to content

Commit

Permalink
chore: enforce pr title convention (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Wang <[email protected]>
  • Loading branch information
henry118 authored Sep 6, 2024
1 parent 4cb929b commit 9fca579
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/lint-pr-title.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Lint PR Title"

on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize

jobs:
main:
name: conventional-commit
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
with:
# List from https://github.com/commitizen/conventional-commit-types/blob/master/index.json
# with custom types added at the end.
# Custom types should also be added in release-please.yaml changelog-types.
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
exp
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/cri-api v0.29.3 // indirect
lukechampine.com/blake3 v1.2.1 // indirect
)
)

0 comments on commit 9fca579

Please sign in to comment.