mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 02:03:39 +08:00
Bot: Close more low quality issues (#41817)
This commit is contained in:
parent
b505fa789f
commit
d221c5d2cb
14
.github/workflows/check_issues.yml
vendored
14
.github/workflows/check_issues.yml
vendored
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user