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.
2 parents 2f2c455 + a7002c2 commit 9cfc827Copy full SHA for 9cfc827
.github/workflows/test-lint.yml
@@ -59,7 +59,9 @@ jobs:
59
- name: Check commit messages
60
if: github.event_name == 'pull_request'
61
run: |
62
- if git log --format=%s "origin/$GITHUB_BASE_REF..origin/$GITHUB_HEAD_REF" | grep '^fixup!' ; then
+ PR_REF="${GITHUB_REF%/merge}/head"
63
+ git fetch origin "$PR_REF"
64
+ if git log --format=%s "origin/$GITHUB_BASE_REF..FETCH_HEAD" | grep '^fixup!' ; then
65
echo 'Error: this pull request contains fixup commits. Squash them.'
66
exit 1
67
fi
0 commit comments