-
Notifications
You must be signed in to change notification settings - Fork 17
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
Feature/closed issues remove triage label #14
base: main
Are you sure you want to change the base?
Feature/closed issues remove triage label #14
Conversation
Thanks very much for the pull request. Unfortunately, I think asking GitHub for all closed issues will cause the Bot to exceed GitHub's rate limit. To avoid that, rather than asking for all issues, I think it will be necessary to make a request for closed issues with the waiting for triage label. I'm not yet quite sure how to do that as it's at a level of detail that the repository monitor shouldn't really know about. |
Ah I see, seems like we could call I had added another We could have a |
Actually, that can't work because of the pagination, so I'm thinking it might need to be something like this: @Scheduled(fixedRate = 5 * 60 * 1000)
void monitor() {
for (Repository repository : this.repositories) {
monitorOpenIssues(repository);
monitorClosedIssues(repository);
}
} |
This is in order to reduce the amount of data retrieved from Github and avoid rate limiting
Thanks again for the PR. This is definitely going in the right direction, but, as I said above I'm not keen on the I think we should probably decouple things a bit by having the What do you think? If you are in agreement, would you like to update your PR to this effect? |
That sounds interesting yeah. This would indeed move the responsibility of knowing what an issue is out of the So the Thanks a lot for taking the time to provide feedback! 👍 |
Inlining the functional interface as it wont be used anywhere else.
…sues-remove-triage-label * upstream/master: Monitor pull requests for feedback being provided with closing or reminding Upgrade to Spring Boot 2.1.5 Polish "Start monitoring spring-projects/spring-session" Start monitoring spring-projects/spring-session # Conflicts: # src/test/java/io/spring/issuebot/feedback/FeedbackIssueListenerTests.java
I've updated the PR with the latest upstream changes. Let me know what you think. |
Hello,
This project seems very useful, after seeing issue #7 I thought I'd give it a shot. 😄
This adds the logic to remove the
waiting for triage
badge if an issue is closed.