3 # Get the repository with all commits to ensure that we can analyze
4 # all of the commits contributed via the Pull Request.
5 # Process `git log --check` output to extract just the check errors.
6 # Exit with failure upon white-space issues.
10 types: [opened, synchronize]
14 runs-on: ubuntu-latest
16 - uses: actions/checkout@v2
20 - name: git log --check
34 if test -n "${commit}"
36 log="${log}\n${commit}"
41 log="${log}\n${dash} ${etc}"
45 done <<< $(git log --check --pretty=format:"---% h% s" ${{github.event.pull_request.base.sha}}..)