We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 557b088 commit 85e802fCopy full SHA for 85e802f
src/bors/handlers/refresh.rs
@@ -72,7 +72,9 @@ async fn refresh_unknown_mergeable_prs(
72
.await?;
73
tracing::debug!("Found {} PRs with unknown mergeable state", prs.len());
74
75
- for pr in prs {
+ // Process limited number of PRs per refresh cycle to avoid rate limiting.
76
+ // GH Enterprise rate limit = 164 requests per 2 minutes.
77
+ for pr in prs.iter().take(100) {
78
tracing::debug!("Refreshing mergeable state for PR {}", pr.number);
79
match repo.client.get_pull_request(pr.number).await {
80
Ok(pr) => {
0 commit comments