-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Automatically close weekly ci issue if weekly ci succeeds #18016
Conversation
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.
I think it might make sense to merge this logic into the open-issue
workflow below and just branch inside of it, but I like this well enough as is.
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.
Hi! Glad to see you back in action (though maybe you have been for a while, I haven't been reviewing too many PRs recently).
I definitely like this PR, I just caught one issue with the $TITLE
variable!
.github/workflows/weekly.yml
Outdated
- name: Close issues | ||
run: | | ||
previous_issue_number=$(gh issue list \ | ||
--search "$TITLE in:title" \ |
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.
The $TITLE
variable isn't defined in this job, so this won't work unfortunately. Maybe move its definition to the top-level env:
block and rename it to $ISSUE_TITLE
?
affbc69
to
d9740dc
Compare
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.
LGTM :)
Objective
It's not always obvious when the issue created by the weekly CI run is safe to close.
Solution
Automatically close it when a weekly CI run succeeds so it doesn't get forgotten.
Testing
Hope.