forked from linux-nvme/nvme-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 788 Bytes
/
checkpatch.yml
File metadata and controls
29 lines (27 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This file is part of nvme.
# Copyright (c) 2026 SUSE LLC
#
# Authors: Daniel Wagner <dwagner@suse.de>
name: Checkpatch Review
on: [pull_request]
jobs:
checkpatch:
name: checkpatch review
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Fetch checkpatch.pl
run: |
curl -sSf \
https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl \
-o checkpatch.pl
- name: Run checkpatch review
run: |
git format-patch --stdout origin/${{ github.base_ref }}..HEAD \
| perl checkpatch.pl -