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

Method UnlinkProjectFromTeam

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

UnlinkProjectFromTeam unlinks a project from a team.

(projectID string, teamID string)

Source from the content-addressed store, hash-verified

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

Callers 1

unlinkTeamFunction · 0.80

Calls 3

MutateMethod · 0.95
StringMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected