mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 01:48:59 +08:00
Bot: Comment when issue is not correctly formatted (#41819)
This commit is contained in:
parent
ea31daa4ca
commit
531748e9f2
7
.github/workflows/check_issues.yml
vendored
7
.github/workflows/check_issues.yml
vendored
@ -77,3 +77,10 @@ jobs:
|
||||
let body = "Please install `autoconf-archive` via `brew install autoconf-archive` (macos) or `sudo apt-get install autoconf-archive` (linux)"
|
||||
return await commentLabelClose(body, "category:question");
|
||||
}
|
||||
|
||||
// Wrong formatted issues like #36086
|
||||
const containsCopyHint = issue_body.indexOf("Copy issue body from") !== -1 || issue_body.indexOf("%2Fissue_body.md") !== -1;
|
||||
if (containsCopyHint && issue_body.indexOf("```") === -1){
|
||||
let body = "Please see #30604 for how to properly report a build failure."
|
||||
return await github.rest.issues.createComment({...issue_query, body: body});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user