Skip to content

Commit

Permalink
Merge pull request #171 from klihub/fixes/reject-whitespace-errors
Browse files Browse the repository at this point in the history
.github: add workflow for rejecting PRs that introduce whitespace errors.
  • Loading branch information
fmuyassarov authored Oct 29, 2024
2 parents 4daf645 + bec530f commit 395da2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/project-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}

- name: Check PR for whitespace errors
if: ${{ github.event_name == 'pull_request' }}
run: |
if ! git diff-index --check origin/${{ github.base_ref }} --; then
echo "This PR would introduce the errors shown above."
echo "Please fix them and update the PR."
exit 1
fi
- name: Verify dependencies
run: |
make verify-godeps
Expand Down

0 comments on commit 395da2f

Please sign in to comment.