Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ name: Lint merge commit name
on:
pull_request:
merge_group:
types: [checks_requested]

#
jobs:
lint-commit-name:
if: ${{ github.event_name == 'merge_group' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Show commit message
run: git log -1 --pretty=%B
# - uses: actions/checkout@v4
# with:
# fetch-depth: 1
# # ref: ${{ github.event.pull_request.head.sha }}
# - name: Show commit message
# run: git log -1 --pretty=%B
- uses: wagoid/commitlint-github-action@v5
with:
commitDepth: 10