mirror of
https://github.com/Drop-OSS/flathub-app-bin.git
synced 2026-01-30 20:55:22 +01:00
pr-check: Partial match for required checkliste item
This commit is contained in:
3
.github/workflows/pr-check.yml
vendored
3
.github/workflows/pr-check.yml
vendored
@@ -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