Skip to content

Commit

Permalink
ci: add conventional commit validation to the pr title (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
baruchiro authored Apr 1, 2024
1 parent 71262d4 commit 6461b8b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Validate Conventional Commit title

on:
pull_request:
types: [opened, edited, synchronize, reopened]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: install commitlint
run: npm install -g @commitlint/cli @commitlint/config-angular
- name: config commitlint
run: |
echo "module.exports = {extends: ['@commitlint/config-angular']}" > commitlint.config.js
- name: validate PR title
run: |
echo ${{ github.event.pull_request.title }} | commitlint

0 comments on commit 6461b8b

Please sign in to comment.