-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add team tools to orgs toolset #1339
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: steffen <6301+steffen@users.noreply.github.com>
Co-authored-by: steffen <6301+steffen@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds two new team-related tools to the GitHub Organizations toolset: GetTeams and GetTeamMembers. These tools enable retrieving team information for authenticated users and listing team members for specific organization teams. The PR also cleans up an unused dependency reference for go-github/v74.
- Added
GetTeamsandGetTeamMemberstools to the Organizations toolset - Added the same tools to the Context toolset
- Updated documentation to describe the new tools
- Removed unused
go-github/v74dependency entry fromgo.sum
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pkg/github/tools.go | Added GetTeams and GetTeamMembers tools to both the orgs and contextTools toolsets |
| go.sum | Removed unused github.com/google/go-github/v74 dependency entries |
| README.md | Added documentation for the two new tools in the Organizations section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - `org`: Organization login (owner) that contains the team. (string, required) | ||
| - `team_slug`: Team slug (string, required) | ||
|
|
||
| - **get_teams** - Get teams |
Copilot
AI
Oct 30, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation for get_teams is incomplete and inconsistent with the actual tool description. Based on the code in context_tools.go, this tool retrieves teams that the user is a member of, limited to organizations accessible with current credentials. The documentation should clarify this behavior and mention the organization-scoped nature of the results.
| - **get_teams** - Get teams | |
| - **get_teams** - Get teams that the user is a member of, limited to organizations accessible with current credentials. Results are organization-scoped. |
|
I was looking for the capability to get team members and was looking in the Not sure if we want to have two tools in two different toolsets or even move it to the other toolset. (Not sure if this would break anything.) |
The
get_teamsandget_team_memberstools were only accessible through thecontexttoolset, making them difficult to discover when working with organizations.Changes
GetTeamsandGetTeamMembersto theorgstoolset alongside existingSearchOrgscontexttoolsetUsers can now access team-related functionality through either:
The tools themselves are unchanged; this only improves their discoverability by making them available through the organization-related toolset.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.