From bef5dc32a753c23cff49ea0f4c7b229eb63c848c Mon Sep 17 00:00:00 2001 From: Brennan Ashton Date: Thu, 3 Sep 2020 14:52:18 -0700 Subject: [PATCH] CI: Fix check patch to handle renames / deletes Signed-off-by: Brennan Ashton --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ac3c144e6..73434ce58 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -36,7 +36,7 @@ jobs: - name: Check Pull Request run: | cd apps - commits=`git log -1 --merges --pretty=format:%P | awk -F" " '{ print $1 ".." $2 }'` + commits="${{ github.event.pull_request.base.sha }}..HEAD" git log --oneline $commits echo "../nuttx/tools/checkpatch.sh -g $commits" ../nuttx/tools/checkpatch.sh -g $commits