diff --git a/.github/workflows/bot-pr-checks.yml b/.github/workflows/bot-pr-checks.yml index ad46e3fd5473a83bf56f0c27e391690f7efa2ddb..a55701e6bae1104e822142337d1981afec0488bc 100644 --- a/.github/workflows/bot-pr-checks.yml +++ b/.github/workflows/bot-pr-checks.yml @@ -36,7 +36,9 @@ jobs: } // Check if they just left the HTML comments from the template empty - const cleanedBody = body.replace(//g, "").trim(); + const commentRegex = new RegExp("", "g"); + const cleanedBody = body.replace(commentRegex, "").trim(); + if (cleanedBody.length < 10) { errors.push("- **Body**: The PR description is too short or hasn't replaced the template placeholders."); }