pr-check: Partial match for required checkliste item
This commit is contained in:
parent
3f65a573be
commit
ec85636219
1 changed files with 2 additions and 1 deletions
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue