Skip to content

Commit

Permalink
chore(ci): add Conventional Commits GitHub Action
Browse files Browse the repository at this point in the history
Longhorn 8824

Signed-off-by: Derek Su <[email protected]>
  • Loading branch information
derekbit authored and innobead committed Jul 29, 2024
1 parent a55a298 commit ca31a06
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/conventional_commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Conventional Commits

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

permissions:
pull-requests: read

jobs:
commit-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint Commits
uses: wagoid/commitlint-github-action@v6
- name: Lint Pull Request
uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
style
refactor
perf
test
chore
vendor
build
ci
revert
BREAKING

0 comments on commit ca31a06

Please sign in to comment.