MCPcopy Create free account
hub / github.com/cli/cli / UnlinkProjectFromTeam

Method UnlinkProjectFromTeam

pkg/cmd/project/shared/queries/queries.go:1692–1702  ·  view source on GitHub ↗

UnlinkProjectFromTeam unlinks a project from a team.

(projectID string, teamID string)

Source from the content-addressed store, hash-verified

1690
1691// UnlinkProjectFromTeam unlinks a project from a team.
1692func (c *Client) UnlinkProjectFromTeam(projectID string, teamID string) error {
1693 var mutation unlinkProjectFromTeamMutation
1694 variables := map[string]any{
1695 "input": githubv4.UnlinkProjectV2FromTeamInput{
1696 ProjectID: githubv4.String(projectID),
1697 TeamID: githubv4.ID(teamID),
1698 },
1699 }
1700
1701 return c.Mutate("UnlinkProjectV2FromTeam", &mutation, variables)
1702}
1703
1704func handleError(err error) error {
1705 var gerr api.GraphQLError

Callers 1

unlinkTeamFunction · 0.80

Calls 3

MutateMethod · 0.95
StringMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected