Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Copilot wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromcopilot/add-list-team-members-option

Conversation

Copy link
Contributor

CopilotAI commentedOct 30, 2025
edited
Loading

Theget_teams andget_team_members tools were only accessible through thecontext toolset, making them difficult to discover when working with organizations.

Changes

  • Toolset registration: AddedGetTeams andGetTeamMembers to theorgs toolset alongside existingSearchOrgs
  • Documentation: Auto-generated README now lists both tools under Organizations section
  • Backward compatibility: Tools remain incontext toolset

Users can now access team-related functionality through either:

--toolsets=orgs# for organization-focused workflows--toolsets=context# for user context (existing behavior)

The tools themselves are unchanged; this only improves their discoverability by making them available through the organization-related toolset.

Original prompt

Add the option to list team members of an org team


💬 We'd love your input! Share your thoughts on Copilot coding agent in our2 minute survey.

CopilotAIand others added2 commitsOctober 30, 2025 17:35
Co-authored-by: steffen <6301+steffen@users.noreply.github.com>
Co-authored-by: steffen <6301+steffen@users.noreply.github.com>
CopilotAI changed the title[WIP] Add option to list team members of organization teamAdd team tools to orgs toolsetOct 30, 2025
CopilotAI requested a review fromsteffenOctober 30, 2025 17:39
Copilot finished work on behalf ofsteffenOctober 30, 2025 17:39
@steffensteffen marked this pull request as ready for reviewOctober 30, 2025 19:05
@steffensteffen requested a review froma team as acode ownerOctober 30, 2025 19:05
CopilotAI review requested due to automatic review settingsOctober 30, 2025 19:05
Copy link
Contributor

CopilotAI left a 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 andGetTeamMembers. 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 forgo-github/v74.

  • AddedGetTeams andGetTeamMembers tools to the Organizations toolset
  • Added the same tools to the Context toolset
  • Updated documentation to describe the new tools
  • Removed unusedgo-github/v74 dependency entry fromgo.sum

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

FileDescription
pkg/github/tools.goAddedGetTeams andGetTeamMembers tools to both theorgs andcontextTools toolsets
go.sumRemoved unusedgithub.com/google/go-github/v74 dependency entries
README.mdAdded 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

Choose a reason for hiding this comment

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

The documentation forget_teams is incomplete and inconsistent with the actual tool description. Based on the code incontext_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.

Suggested change
-**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.

Copilot uses AI. Check for mistakes.
@steffen
Copy link

I was looking for the capability to get team members and was looking in theorgs toolset and couldn't find it.
Only through this pull request I found out it's in thecontext toolset.

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.)
Feel free to close this pull request if you think if should leave it as is.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@steffensteffenAwaiting requested review from steffen

At least 1 approving review is required to merge this pull request.

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@steffen

[8]ページ先頭

©2009-2025 Movatter.jp