Skip to content

Commit c63862e

Browse files
authored
Merge pull request #13 from openstandia/refactor
refactor: restore rate limit handling for SCIM search operations
2 parents 0f212bb + 98c858e commit c63862e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/org/kohsuke/github/SCIMSearchBuilder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public abstract class SCIMSearchBuilder<T> extends GHQueryBuilder<T> {
2525
req.withUrlPath(getApiUrl());
2626
req.withHeader(SCIMConstants.HEADER_ACCEPT, SCIMConstants.SCIM_ACCEPT);
2727
req.withHeader(SCIMConstants.HEADER_API_VERSION, SCIMConstants.GITHUB_API_VERSION);
28+
req.rateLimit(RateLimitTarget.SEARCH);
2829
}
2930

3031
SCIMSearchBuilder(GitHub root, GHEnterpriseExt enterprise, Class<? extends SCIMSearchResult<T>> receiverType) {
@@ -35,6 +36,7 @@ public abstract class SCIMSearchBuilder<T> extends GHQueryBuilder<T> {
3536
req.withUrlPath(getApiUrl());
3637
req.withHeader(SCIMConstants.HEADER_ACCEPT, SCIMConstants.SCIM_ACCEPT);
3738
req.withHeader(SCIMConstants.HEADER_API_VERSION, SCIMConstants.GITHUB_API_VERSION);
39+
req.rateLimit(RateLimitTarget.SEARCH);
3840
}
3941

4042
/**

0 commit comments

Comments
 (0)