pr-check: Partial match for required checkliste item

This commit is contained in:
bbhtt
2025-07-12 23:02:26 +05:30
parent 3f65a573be
commit ec85636219

View File

@@ -116,10 +116,11 @@ jobs:
BLOCKED=1
fi
REQUIRED_ITEM="I have read and followed all the [Submission requirements][reqs] and the [Submission guide][reqs2] and I agree to them."
REQUIRED_ITEM="I have read and followed all the [Submission requirements]"
REQUIRED_CHECKED=$(printf "%s\n" "$NORMALIZED_PR_BODY" | grep -Fi "[x] $REQUIRED_ITEM" || true)
if [ -z "$REQUIRED_CHECKED" ]; then
echo "Required checklist not found in PR body"
BLOCKED=1
fi