You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,11 @@ jobs:
30
30
name: checkpatch review
31
31
runs-on: ubuntu-latest
32
32
steps:
33
-
- uses: actions/checkout@v1
33
+
- uses: actions/checkout@v3
34
+
with:
35
+
ref: ${{ github.event.pull_request.head.sha }}
34
36
- name: Run checkpatch review
35
-
uses: webispy/checkpatch-action@master
37
+
uses: webispy/checkpatch-action@v9
36
38
```
37
39
38
40
For using a custom checkpatch script, pass the `CHECKPATCH_COMMAND` environment
@@ -46,15 +48,18 @@ jobs:
46
48
name: checkpatch review
47
49
runs-on: ubuntu-latest
48
50
steps:
49
-
- uses: actions/checkout@v1
51
+
- uses: actions/checkout@v3
52
+
with:
53
+
ref: ${{ github.event.pull_request.head.sha }}
50
54
- name: Run DPDK checkpatches.sh review
51
-
uses: webispy/checkpatch-action@master
55
+
uses: webispy/checkpatch-action@v9
52
56
env:
53
57
DPDK_CHECKPATCH_PATH: /usr/bin/checkpatch.pl
54
58
CHECKPATCH_COMMAND: ./devtools/checkpatches.sh
55
59
```
56
60
57
61
**Note:** For **private repositories** this action needs access to the `GITHUB_TOKEN`. It needs read access to `contents` and `pull-requests` as minimum permissions. For example:
62
+
58
63
```yml
59
64
name: checkpatch review
60
65
on: [pull_request]
@@ -66,9 +71,11 @@ jobs:
66
71
contents: read
67
72
pull-requests: read
68
73
steps:
69
-
- uses: actions/checkout@v1
74
+
- uses: actions/checkout@v3
75
+
with:
76
+
ref: ${{ github.event.pull_request.head.sha }}
70
77
- name: Run checkpatch review
71
-
uses: webispy/checkpatch-action@master
78
+
uses: webispy/checkpatch-action@v9
72
79
env:
73
80
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
74
81
```
@@ -77,11 +84,11 @@ jobs:
77
84
78
85
The `checkpatch.pl` tool supports a configuration file for setting options. Just create a `.checkpatch.conf` file in the top-level directory of your project and specify options in it.
0 commit comments