Skip to content

Commit

Permalink
style: check pr title with commitlint.
Browse files Browse the repository at this point in the history
  • Loading branch information
andysim3d committed Oct 15, 2024
1 parent 557f24a commit 301fc64
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pr-title-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on:
pull_request:
types: [edited]
name: Enforce PR Title Format
jobs:
enforce_title:
name: Enforce PR Title Format
runs-on: ubuntu-latest
steps:
- name: Use commitlint to check PR title
env:
TITLE: ${{ github.event.pull_request.title }}
run: echo "$TITLE" | yarn commitlint

0 comments on commit 301fc64

Please sign in to comment.