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 committed Jul 29, 2024
1 parent d2442a5 commit bb0ec43
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 bb0ec43

Please sign in to comment.