From d221c5d2cbadf35ceb266cbb95750a940b103b65 Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Thu, 31 Oct 2024 23:33:52 +0100 Subject: [PATCH] Bot: Close more low quality issues (#41817) --- .github/workflows/check_issues.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check_issues.yml b/.github/workflows/check_issues.yml index 3a2d3f26c6..464f5b8c09 100644 --- a/.github/workflows/check_issues.yml +++ b/.github/workflows/check_issues.yml @@ -44,16 +44,14 @@ jobs: return await commentLabelClose(body, "category:question"); } + regs = [] // Issue text is: Copy issue body from .../issue_body.md - reg = /^Copy issue body from .*issue_body.md$/; - if (reg.test(issue_body)){ - let body = "Please see #30604 for how to report a build failure." - return await commentLabelClose(body, "requires:more-information"); - } - + regs.push( /^Copy issue body from .*issue_body.md$/ ); // Issue to short like #36592 or #36668 - reg = /^error: building.* BUILD_FAILED\nElapsed time.*\nPlease ensure.*(\nThen check .*\n.*)?$/; - if (reg.test(issue_body)){ + regs.push( /^error: building.* BUILD_FAILED\r\nElapsed time.*\r\nPlease ensure.*(\r\nThen check .*\r\n.*)?$/ ); + // Issues with only the default error message like #41813 + regs.push( /^error: building.* BUILD_FAILED\r\n[\s\S]*issue_body.md$/ ); + if (regs.some(reg => reg.test(issue_body))) { let body = "Please see #30604 for how to report a build failure." return await commentLabelClose(body, "requires:more-information"); }