Skip to content

Commit

Permalink
Add GH action to check PR title
Browse files Browse the repository at this point in the history
  • Loading branch information
adamyeats committed Nov 27, 2024
1 parent 013bcef commit d23eed6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Commitlint

on:
pull_request:
branches:
- main

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: yarn commitlint --edit "$PR_TITLE"
1 change: 0 additions & 1 deletion .husky/commit-msg

This file was deleted.

0 comments on commit d23eed6

Please sign in to comment.