Skip to content
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

fix: get user teams with GitHub GraphQL API #2045

Merged
merged 1 commit into from
Feb 5, 2022
Merged

fix: get user teams with GitHub GraphQL API #2045

merged 1 commit into from
Feb 5, 2022

Conversation

raymondchen625
Copy link
Contributor

The previous code loops through the teams in the organization and makes an API call in each loop to check the user membership. This change uses GitHub GraphQL API to retrieve the team list the user belongs to with one API call so it's less likely to exceed the rate limit.

@raymondchen625 raymondchen625 requested a review from a team as a code owner February 3, 2022 19:22
@chenrui333 chenrui333 changed the title Get user teams with GitHub GraphQL API fix: get user teams with GitHub GraphQL API Feb 5, 2022
@chenrui333 chenrui333 merged commit 136b23a into runatlantis:master Feb 5, 2022
krrrr38 pushed a commit to krrrr38/atlantis that referenced this pull request Dec 16, 2022
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.

3 participants