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

improvements to listing GH teams/members #108

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Conversation

ateucher
Copy link
Contributor

@ateucher ateucher commented Jun 10, 2024

In the first version of list_team_members() it only returned the first 30 members. This is because there is a 30 record limit in the GH API, beyond which you need to paginate. Setting .limit = Inf enables automatic pagination to get all records. This seems safe enough here as we're not ever going to get too many members for it to be a problem.

This PR also makes specifying org and team names in list_team_members() case insensitive, which will make it less prone to error unnecessarily. The API is not case sensitive.

Finally, this PR adds the ability to get pending invitations via the new members argument in list_team_members() (e.g., list_team_members(team = "longtermaccess2i2c", org = "nasa-openscapes", members = "invitations").

Copy link
Member

@stefaniebutland stefaniebutland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy for you to merge after Sean weighs in. Thanks Andy

@seankross
Copy link
Contributor

LGTM

@ateucher ateucher merged commit ae57d42 into main Jun 18, 2024
6 checks passed
@ateucher ateucher deleted the gh-teams-improvements branch November 22, 2024 21:30
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