Skip to content

Commit

Permalink
Bot: Close more low quality issues (#41817)
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort authored Oct 31, 2024
1 parent b505fa7 commit d221c5d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/check_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit d221c5d

Please sign in to comment.