-
Notifications
You must be signed in to change notification settings - Fork 580
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
build: automatically close stale issues that have not responded an info for request #5297
base: main
Are you sure you want to change the base?
Conversation
.github/scripts/close-unresponse.js
Outdated
github.rest.issues.update({ | ||
owner: owner, | ||
repo: repo, | ||
issue_number: number, | ||
state: "closed", | ||
}); | ||
|
||
github.rest.issues.createComment({ | ||
owner: owner, | ||
repo: repo, | ||
issue_number: number, | ||
body: close_message, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these asynchronous? If so, do we need await
s?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woops good catch, thank you!
const labels = issue.data.labels.map((e) => e.name); | ||
|
||
if (author === commenter && labels.includes("needs more info")) { | ||
github.rest.issues.removeLabel({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github.rest.issues.removeLabel({ | |
await github.rest.issues.removeLabel({ |
Going to experiment with some code provided here
The new workflow will require maintainers to add a
needs more info
label if more information is requested.