File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 uses : webispy/checkpatch-action@master
3636` ` `
3737
38+ For using a custom checkpatch script, pass the ` CHECKPATCH_COMMAND` environment
39+ variable. For example, for DPDK's `checkpatches.sh` script use :
40+
41+ ` ` ` yml
42+ name: checkpatch review
43+ on: [pull_request]
44+ jobs:
45+ my_review:
46+ name: checkpatch review
47+ runs-on: ubuntu-latest
48+ steps:
49+ - uses: actions/checkout@v1
50+ - name: Run DPDK checkpatches.sh review
51+ uses: webispy/checkpatch-action@master
52+ env:
53+ DPDK_CHECKPATCH_PATH: /usr/bin/checkpatch.pl
54+ CHECKPATCH_COMMAND: ./devtools/checkpatches.sh
55+ ` ` `
56+
3857# # References
3958
4059# ## checkpatch tool
Original file line number Diff line number Diff line change 33# To debug the current script, please uncomment the following 'set -x' line
44# set -x
55
6+ if [[ -z " $CHECKPATCH_COMMAND " ]] ; then
7+ CHECKPATCH_COMMAND=" checkpatch.pl --no-tree"
8+ fi
9+
610# Generate email style commit message
711PATCH_FILE=$( git format-patch $1 -1)
8- PATCHMAIL=$( checkpatch.pl --no-tree $PATCH_FILE )
12+ PATCHMAIL=$( $CHECKPATCH_COMMAND $PATCH_FILE )
913
1014# Internal state variables
1115RESULT=0
You can’t perform that action at this time.
0 commit comments