ci: Add Conventional Commit Linter #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conventional Commits Validation | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- edited | |
permissions: | |
contents: write | |
pull-requests: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} # Ensure that only one instance of this workflow is running per Pull Request | |
cancel-in-progress: true # Cancel any previous runs of this workflow | |
jobs: | |
validate-commits: | |
name: Conventional Commits Validation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dev-build-deploy/[email protected] | |
with: | |
update-labels: false # OPTIONAL; do not update the Pull Request labels based on the Conventional Commits information. | |
include-commits: false | |
token: ${{ secrets.GITHUB_TOKEN }} | |
types: | | |
chore | |
ci | |
docs | |
feat | |
fix | |
perf | |
refactor | |
release | |
test |