Skip to content

Commit

Permalink
Create merge-group-commit-lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac8668 authored Dec 30, 2023
1 parent ef78e8c commit c678948
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/merge-group-commit-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 🕵 Lint Merge Group Commit Message
on:
pull_request:
merge_group:

jobs:
commitlint:
name: 🔎 Lint Commit Message
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout Source
uses: actions/checkout@v3
if: github.event_name == 'merge_group'
with:
fetch-depth: 2
- name: 🔎 Lint Commit Message
uses: wagoid/commitlint-github-action@v5
if: github.event_name == 'merge_group'
with:
commitDepth: 1

0 comments on commit c678948

Please sign in to comment.