Configure commitlint-github-action with GitHub Merge Queues
masterWhen using GitHub's merge queue feature, you must configure your workflow to listen for the merge_group event with the checks_requested type.
Important Requirement: For the merge queue to function correctly, you must have at least one other workflow that responds to the pull_request event containing a job named exactly commitlint. This satisfies the merge queue's requirement for status checks from the pull request context.
name: Lint Commit Messages in Merge Queue
on:
merge_group:
types:
- checks_requested
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.sha }}
- uses: wagoid/commitlint-github-action@v6