Debian Codegraph @

.github/workflows/check-commit-message.yaml

raw symbols SCIP
1 # Copyright 2025 The go-yaml Project Contributors
2 # SPDX-License-Identifier: Apache-2.0
3
4 name: Commit Message Check
5
6 on:
7 pull_request:
8 types: [opened, edited, reopened, synchronize]
9
10 permissions: read-all
11
12 jobs:
13 check-commit-message:
14 name: Check Commit Message
15 runs-on: ubuntu-latest
16 if: github.event.pull_request.user.login != 'dependabot[bot]'
17
18 steps:
19 - name: Checkout code
20 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
21 with:
22 fetch-depth: 0 # Fetch all history to ensure all SHAs are available
23 persist-credentials: false
24
25 - name: Check PR Commits
26 run:
27 util/check-commit-messages
28 ${{ github.event.pull_request.base.sha }}..${{
29 github.event.pull_request.head.sha }}