From ff9736cc3c838768a32c4dfb720b08a9d5b91f62 Mon Sep 17 00:00:00 2001 From: Evgeniy Naydanov Date: Wed, 5 Jun 2024 22:01:40 +0300 Subject: [PATCH] .github/workflows: check git revisions instead of a diff When running on diff, Checkpatch ignores `Checkpatch-ignore` directives in the commit message. Change-Id: Ib296d5e972408973fb381fafc51f59569a01d1f0 Signed-off-by: Evgeniy Naydanov --- .github/workflows/checkpatch.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/checkpatch.yml b/.github/workflows/checkpatch.yml index 00d1d71e5..11f427133 100644 --- a/.github/workflows/checkpatch.yml +++ b/.github/workflows/checkpatch.yml @@ -23,10 +23,4 @@ jobs: sudo apt-get install patchutils python3-ply python3-git - name: Run checkpatch run: | - git diff --patch FETCH_HEAD \ - | filterdiff \ - -x "a/src/jtag/drivers/libjaylink/*" \ - -x "a/tools/git2cl/*" \ - -x "a/.github/*" \ - -x "a/HACKING" \ - | ./tools/scripts/checkpatch.pl --no-signoff - + ./tools/scripts/checkpatch.pl --no-signoff --git FETCH_HEAD..HEAD