Skip to content

Commit

Permalink
ci: adding conventional commits hook (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumKerson authored Mar 11, 2023
1 parent 26b18e5 commit 8829517
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Check PR title
on:
pull_request:
branches: ["main"]

jobs:
lint:
runs-on: ubuntu-latest
permissions:
statuses: write
steps:
- uses: aslafy-z/conventional-pr-title-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/Bahjat/pre-commit-golang
rev: v1.0.2
hooks:
Expand Down

0 comments on commit 8829517

Please sign in to comment.