Bot: Close more low quality issues (#41817)

This commit is contained in:
autoantwort 2024-10-31 23:33:52 +01:00 committed by GitHub
parent b505fa789f
commit d221c5d2cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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