diff options
author | Bernd Schubert <bernd@bsbernd.com> | 2025-03-25 09:50:00 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-03-25 10:14:48 +0100 |
commit | 1f1a78b18d29fc95b0f134b1134532000f4a726f (patch) | |
tree | c576873b0b0e11609618190ed8b75f614c7840d7 /.github | |
parent | f68970cd235a7e14026ca0f6240428bbebe8223b (diff) | |
download | libfuse-1f1a78b18d29fc95b0f134b1134532000f4a726f.tar.gz |
checkpatch: Ignore dependabot commits
Thes commits have the habit to persistently fail, mostly
with long lines. We don't have control over these commits,
so let's ignore them.
Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/checkpatch.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/checkpatch.yml b/.github/workflows/checkpatch.yml index 8eb6acf..0da6c54 100644 --- a/.github/workflows/checkpatch.yml +++ b/.github/workflows/checkpatch.yml @@ -28,6 +28,11 @@ jobs: echo "Base commit: $base_commit" echo "Running checkpatch.pl on all commits in the PR:" git rev-list --reverse $base_commit..HEAD | while read commit; do + # Skip dependabot commits - we do not have control over it + if git log -1 --format='%ae' $commit | grep -q "dependabot"; then + echo "Skipping dependabot commit: $commit" + continue + fi subject=$(git log -1 --format=%s $commit) echo "Checking commit: $commit - $subject" if ! ./checkpatch.pl --max-line-length=100 --no-tree --ignore MAINTAINERS,SPDX_LICENSE_TAG,COMMIT_MESSAGE,FILE_PATH_CHANGES,EMAIL_SUBJECT,AVOID_EXTERNS,GIT_COMMIT_ID,ENOSYS_SYSCALL,ENOSYS,FROM_SIGN_OFF_MISMATCH,QUOTED_COMMIT_ID,PREFER_ATTRIBUTE_ALWAYS_UNUSED,PREFER_DEFINED_ATTRIBUTE_MACRO -g $commit; then |