-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
Kamil Gierszewski
committed
Sep 9, 2024
1 parent
ebbf832
commit 34b2da8
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--max-line-length=80 | ||
--no-tree | ||
|
||
--ignore AVOID_BUG | ||
--ignore COMMIT_MESSAGE | ||
--ignore FILE_PATH_CHANGES | ||
--ignore PREFER_PR_LEVEL | ||
--ignore SPDX_LICENSE_TAG | ||
--ignore SPLIT_STRING | ||
|
||
--exclude test | ||
--exclude ocf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: checkpatch review | ||
on: [pull_request] | ||
jobs: | ||
my_review: | ||
name: checkpatch review | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Calculate PR commits + 1' | ||
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: ${{ env.PR_FETCH_DEPTH }} | ||
- name: Run checkpatch review | ||
uses: webispy/checkpatch-action@v9 |