-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I have made too many mistakes approving and merging PRs that lack conventional commits. This Action should mitigate those mistakes going forward.
- Loading branch information
1 parent
6ef33f2
commit f73b638
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Conventional Commits Validation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- edited | ||
|
||
permissions: | ||
contents: read | ||
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: true | ||
types: | | ||
chore | ||
ci | ||
docs | ||
refactor | ||
release | ||
test |