Skip to content

Commit

Permalink
ci: add verifying pr title
Browse files Browse the repository at this point in the history
  • Loading branch information
DakEnviy committed Aug 11, 2024
1 parent 61e86e8 commit 31583ff
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PR Title

on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited

jobs:
verify_title:
name: Verify PR Title
runs-on: ubuntu-latest
if: ${{ github.event.action != 'edited' || github.event.changes.title }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- name: Install Packages
run: npm ci
- name: Run Commitlint
run: echo "${{ github.event.pull_request.title }}" | npx --no-install commitlint

0 comments on commit 31583ff

Please sign in to comment.