We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cf0356 commit bf84884Copy full SHA for bf84884
.github/workflows/test-lint.yml
@@ -16,6 +16,9 @@ jobs:
16
runs-on: ubuntu-latest
17
steps:
18
- uses: actions/checkout@v3
19
+ with:
20
+ fetch-depth: 0
21
+
22
- name: Set up Python 3.9
23
uses: actions/setup-python@v1
24
with:
@@ -40,6 +43,16 @@ jobs:
40
43
env:
41
44
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
42
45
46
+ - name: Check commit messages
47
+ if: github.event_name == 'pull_request'
48
+ run: |
49
+ if git log --format=%s "origin/$GITHUB_BASE_REF..origin/$GITHUB_HEAD_REF" | grep '^fixup!' ; then
50
+ echo 'Error: this pull request contains fixup commits. Squash them.'
51
+ exit 1
52
+ fi
53
+ # In case `git log` fails
54
+ exit "${PIPESTATUS[0]}"
55
56
build:
57
runs-on: ${{ matrix.os }}
58
strategy:
0 commit comments