GitHub team tools#174
Merged
Merged
Conversation
* Pulled out common internals into helper functions
* Use toy team "2021-ilm-rotj-team" and @ateucher's toy account @not-ateucher * Can't run automatically because must accept invitation manually
jules32
approved these changes
Jan 22, 2026
jules32
left a comment
Contributor
There was a problem hiding this comment.
Thanks Andy for doing this! I think this is great scope for kyber. I have not done any kind of code/technical review; I'll leave that to Sean if he's able to. But I approve the idea for sure, thanks!
11 tasks
Contributor
|
Hey @ateucher I'll take a look before the end of this week. |
Contributor
Author
|
Great, thanks so much Sean! |
seankross
approved these changes
Feb 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While doing some cleanup with @eeholmes for the NMFS-Openscapes teams, it became apparent we needed some more tools for managing people and teams.
This adds two new functions
remove_team_members()for removing a list of people from a GitHub team, andremove_org_members()for removing people from an organization.Automated tests for this are difficult since invitations to teams need to be manually accepted, so I created a test file in
tests/manual/test-gh-member-teams.Rthat needs to be run manually. It uses a toy team called "2021-ilm-rotj-team" and my other account @not-ateucher that I created for testing things like this.