Skip to content

Commit cfa12ae

Browse files
authored
ci: PR conventional commit lint GHA (#5603)
1 parent ee6db23 commit cfa12ae

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci_linting.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,18 @@ jobs:
149149
exit 1
150150
- name: Success
151151
run: echo "All nix files passed format check"
152+
validate-pr-title:
153+
runs-on: ubuntu-latest
154+
steps:
155+
- uses: actions/checkout@v5
156+
- name: PR Conventional Commit Validation
157+
id: cc_check
158+
uses: ytanikin/[email protected]
159+
with:
160+
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
161+
add_label: 'false'
162+
- name: Failure case
163+
if: steps.cc_check.outcome != 'success'
164+
run: |
165+
echo "Make sure the PR title/commit follows https://www.conventionalcommits.org/"
166+
exit 1

0 commit comments

Comments
 (0)