mirror of
https://github.com/Drop-OSS/flathub-app-bin.git
synced 2026-07-01 12:43:45 -04:00
pr-check: Partial match for required checkliste item
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user