Skip to content

Commit 52d8d98

Browse files
committed
check-patch-compliance: Skip checks for QCLINUX changes
Moved commit summary prefix check to the top to bypass author validation and patch verification for QCLINUX changes. Signed-off-by: Komal Bajaj <[email protected]>
1 parent a28002b commit 52d8d98

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

check-patch-compliance.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ for commit in $commits; do
2929

3030
echo "Checking commit: $commit_summary"
3131

32+
# Check if summary starts with one of the required prefixes
33+
if ! echo "$commit_summary" | grep -qE '^(FROMLIST|FROMGIT|UPSTREAM|BACKPORT)'; then
34+
echo "Commit summary does not start with a required prefix"
35+
exit_status=1
36+
continue
37+
fi
38+
3239
# Check for 'Link:' in the commit message body
3340
if ! echo "$commit_message" | grep -q '^Link:'; then
3441
echo "No 'Link' found in commit message"
@@ -76,12 +83,6 @@ for commit in $commits; do
7683
rm -rf out
7784
fi
7885

79-
# Check if summary starts with one of the required prefixes
80-
if ! echo "$commit_summary" | grep -qE '^(FROMLIST|FROMGIT|UPSTREAM|BACKPORT)'; then
81-
echo "Commit summary does not start with a required prefix"
82-
exit_status=1
83-
fi
84-
8586
echo ""
8687
done
8788

0 commit comments

Comments
 (0)