Skip to content

Use GraphQL API#81

Draft
sislr wants to merge 1 commit into
mainfrom
feature/graphql-api
Draft

Use GraphQL API#81
sislr wants to merge 1 commit into
mainfrom
feature/graphql-api

Conversation

@sislr

@sislr sislr commented Jul 16, 2026

Copy link
Copy Markdown
Member

Problem: The extension hits GitHub's rate limit (403). Each poll fires ~7 + 2N REST search calls plus one /requested_reviewers request per PR, and we poll every minute — against the Search API's 30 requests/minute cap.

Solution: ~7 + 2N REST searches → 2 GraphQL requests per poll (a viewer lookup + one batched query), drawing from GraphQL's 5,000-points/hr budget instead of the 30/min search cap.

@sislr sislr self-assigned this Jul 16, 2026
@sislr sislr changed the title Reduce number of queries Use GraphQL API Jul 16, 2026
@sislr
sislr force-pushed the feature/graphql-api branch from 8902b75 to ba21c1a Compare July 16, 2026 07:22
@sislr

sislr commented Jul 16, 2026

Copy link
Copy Markdown
Member Author

Testing this change locally for the moment and will then decide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant