ci: github action - add check for whitespace errors
authorChris. Webster <chris@webstech.net>
Tue, 22 Sep 2020 07:28:04 +0000 (07:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Oct 2020 18:22:05 +0000 (11:22 -0700)
commit32c83afc2c69aa51b82aa223f2099389f1f0be0a
treec32bf5073149784f1dcce60cc18558722a80a866
parentd4a392452e292ff924e79ec8458611c0f679d6d4
ci: github action - add check for whitespace errors

Not all developers are aware of `git diff --check` to warn
about whitespace issues.  Running a check when a pull request is
opened or updated can save time for reviewers and the submitter.

A GitHub workflow will run when a pull request is created or the
contents are updated to check the patch series.  A pull request
provides the necessary information (number of commits) to only
check the patch series.

To ensure the developer is aware of any issues, a comment will be
added to the pull request with the check errors.

Signed-off-by: Chris. Webster <chris@webstech.net>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.github/workflows/check-whitespace.yml [new file with mode: 0644]