Skip to content

Commit

Permalink
feat: Lint PR titles
Browse files Browse the repository at this point in the history
  • Loading branch information
njogz committed Aug 23, 2024
1 parent 7b51403 commit c35657a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Conventional commits
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened

jobs:
lint_pr_title:
name: Lint PR title
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm install
- name: Lint title
run: npx --no -- commitlint <<< "${{ github.event.pull_request.title }}"

0 comments on commit c35657a

Please sign in to comment.