Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot: Comment when issue is not correctly formatted #41819

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

autoantwort
Copy link
Contributor

Issues like #36086 are not nicely formatted, but okay. So add a comment how it would be nicer.

@@ -76,3 +76,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 containsCoypHint = issue.data.body.indexOf("Copy issue body from") !== -1 || issue.data.body.indexOf("%2Fissue_body.md") !== -1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const containsCoypHint = issue.data.body.indexOf("Copy issue body from") !== -1 || issue.data.body.indexOf("%2Fissue_body.md") !== -1;
const containsCopyHint = issue.data.body.indexOf("Copy issue body from") !== -1 || issue.data.body.indexOf("%2Fissue_body.md") !== -1;

@MonicaLiu0311 MonicaLiu0311 added the category:infrastructure Pertaining to the CI/Testing infrastrucutre label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:infrastructure Pertaining to the CI/Testing infrastrucutre
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants