Thanks to visit codestin.com Credit goes to github.com
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 f45814b commit dd08e53Copy full SHA for dd08e53
.github/workflows/commit-lint.yml
@@ -22,4 +22,4 @@ jobs:
22
- name: Validate commit messages
23
run: |
24
echo "::add-matcher::.github/workflows/commit-lint-problem-matcher.json"
25
- git log --oneline ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} | grep -v -e fixup -e squash | awk '{ print $1 }' | xargs npx -q core-validate-commit --no-validate-metadata --tap
+ git log --oneline -${{ github.event.pull_request.commits }} HEAD^ | awk '{ if ($2 != "fixup!" && $2 != "squash!") { print $1 } }' | xargs npx -q core-validate-commit --no-validate-metadata --tap
0 commit comments