Last active
January 16, 2026 15:33
-
-
Save lesteve/82c992f1c79baac92991e37acad473a7 to your computer and use it in GitHub Desktop.
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
| from github import Github, Auth | |
| import os | |
| def get_members(org_name, team_slug): | |
| matching_teams = [t for t in teams if t.slug == team_slug] | |
| if not matching_teams: | |
| raise ValueError(f"Team '{team_slug}' not found in {org_name}") | |
| team = matching_teams[0] | |
| return [member.login for member in team.get_members()] | |
| org_name = "scikit-learn" | |
| team_slug_list = ["core-devs", "contributor-experience-team", "documentation-team"] | |
| # documentation-team contributor-experience-team | |
| token = os.getenv("GITHUB_TOKEN") | |
| g = Github(auth=Auth.Token(token)) | |
| org = g.get_organization(org_name) | |
| teams = org.get_teams() | |
| members_list = [get_members(org_name, team_slug) for team_slug in team_slug_list] | |
| # hand-picked members | |
| members_list.append( | |
| ["AnneBeyer", "FrancoisPgm", "antoinebaker", "cakedev0", "snath-xoc"] | |
| ) | |
| all_members = sum(members_list, []) | |
| all_members = sorted(set(all_members)) | |
| author_filter = " OR ".join(f"author%3A{member}" for member in all_members) | |
| issues_search_url = f"https://github.com/scikit-learn/scikit-learn/issues?q=sort%3Aupdated-desc%20is%3Aopen%20({author_filter})" | |
| print(issues_search_url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment