You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/04/16 13:10:04 UTC

[incubator-nuttx-apps] branch master updated: CI: refine checkpatch commits in check.yml

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang 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 d2625c8  CI: refine checkpatch commits in check.yml
d2625c8 is described below

commit d2625c8b9d22623f443902b740cb9fb037dc5940
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Thu Apr 16 16:38:38 2020 +0800

    CI: refine checkpatch commits in check.yml
    
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 .github/workflows/check.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index 756360c..ac3c144 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -36,8 +36,7 @@ jobs:
     - name: Check Pull Request
       run: |
         cd apps
-        ranges=`git log -1 --merges --pretty=format:%P | awk -F" " '{ print $1 ".." $2 }'`
-        git log --oneline $ranges
-        commits=`git log --reverse --format=format:%H $ranges`
+        commits=`git log -1 --merges --pretty=format:%P | awk -F" " '{ print $1 ".." $2 }'`
+        git log --oneline $commits
         echo "../nuttx/tools/checkpatch.sh -g $commits"
         ../nuttx/tools/checkpatch.sh -g $commits