Commit | Line | Data |
---|---|---|
9df6ca83 TD |
1 | name: Pull Requests |
2 | ||
3 | on: | |
4 | pull_request: | |
5 | types: | |
6 | - opened | |
7 | - edited | |
8 | - reopened | |
9 | - synchronize | |
10 | - ready_for_review | |
11 | - review_requested | |
12 | ||
13 | jobs: | |
14 | commit_message: | |
15 | name: Check Commit Message | |
16 | runs-on: ubuntu-latest | |
17 | steps: | |
18 | - name: Check for GitHub's default message. | |
19 | uses: gsactions/commit-message-checker@c61c81192182bbc0d5e41b4796e3b71684228c77 | |
20 | with: | |
21 | pattern: '^(?!Update\s+\S*$).*$' | |
22 | error: 'Please use a meaningful commit message.' | |
23 | excludeDescription: 'true' | |
24 | excludeTitle: 'true' | |
25 | checkAllCommitMessages: 'true' | |
26 | accessToken: ${{ secrets.GITHUB_TOKEN }} | |
27 | - name: Check for unsquashed `fixup!` commits. | |
10707074 | 28 | if: ${{ ! github.event.pull_request.draft }} |
9df6ca83 TD |
29 | uses: gsactions/commit-message-checker@c61c81192182bbc0d5e41b4796e3b71684228c77 |
30 | with: | |
31 | pattern: '^(?!fixup!(\s|$))' | |
32 | error: 'A `fixup!` commit was found.' | |
33 | excludeDescription: 'true' | |
34 | excludeTitle: 'true' | |
35 | checkAllCommitMessages: 'true' | |
36 | accessToken: ${{ secrets.GITHUB_TOKEN }} |