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"); }