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 <derek.su@suse.com>
  • Loading branch information
derekbit authored and innobead committed Jul 29, 2024
1 parent eea00e8 commit ed85b7b
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/action-semantic-pull-request@v5.5.3
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 ed85b7b

Please sign in to comment.