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

Method UnlinkProjectFromTeam

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

UnlinkProjectFromTeam unlinks a project from a team.

(projectID string, teamID string)

Source from the content-addressed store, hash-verified

1699
1700// UnlinkProjectFromTeam unlinks a project from a team.
1701func (c *Client) UnlinkProjectFromTeam(projectID string, teamID string) error {
1702 var mutation unlinkProjectFromTeamMutation
1703 variables := map[string]interface{}{
1704 "input": githubv4.UnlinkProjectV2FromTeamInput{
1705 ProjectID: githubv4.String(projectID),
1706 TeamID: githubv4.ID(teamID),
1707 },
1708 }
1709
1710 return c.Mutate("UnlinkProjectV2FromTeam", &mutation, variables)
1711}
1712
1713func handleError(err error) error {
1714 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