You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pr...@apache.org on 2020/09/03 23:08:13 UTC
[incubator-nuttx-apps] branch master updated: CI: Fix check patch
to handle renames / deletes
This is an automated email from the ASF dual-hosted git repository.
protobits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new bef5dc3 CI: Fix check patch to handle renames / deletes
bef5dc3 is described below
commit bef5dc32a753c23cff49ea0f4c7b229eb63c848c
Author: Brennan Ashton <ba...@brennanashton.com>
AuthorDate: Thu Sep 3 14:52:18 2020 -0700
CI: Fix check patch to handle renames / deletes
Signed-off-by: Brennan Ashton <ba...@brennanashton.com>
---
.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 ac3c144..73434ce 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