Skip to content

Commit

Permalink
chore: use merge queue to validate commit message (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart authored Apr 23, 2024
1 parent 21f4b32 commit 143cc9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/merge-commit/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Check merge commit
description: Ensure that the merge commit message is conventional
runs:
using: composite
steps:
- run: npx commitlint --last --verbose
shell: bash
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- 'main'
merge_group:
jobs:
CI:
runs-on: ubuntu-latest
Expand All @@ -17,6 +18,9 @@ jobs:
uses: ./.github/actions/setup
- name: Check lockfiles
uses: ./.github/actions/lockfiles
- name: Check merge commit
if: github.event_name == 'merge_group'
uses: ./.github/actions/merge-commit
- name: Tests
run: npm test
- name: Build
Expand Down

0 comments on commit 143cc9c

Please sign in to comment.