MCPcopy Index your code
hub / github.com/cli/cli / UnlinkProjectFromTeam

Method UnlinkProjectFromTeam

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

UnlinkProjectFromTeam unlinks a project from a team.

(projectID string, teamID string)

Source from the content-addressed store, hash-verified

1652
1653// UnlinkProjectFromTeam unlinks a project from a team.
1654func (c *Client) UnlinkProjectFromTeam(projectID string, teamID string) error {
1655 var mutation unlinkProjectFromTeamMutation
1656 variables := map[string]interface{}{
1657 "input": githubv4.UnlinkProjectV2FromTeamInput{
1658 ProjectID: githubv4.String(projectID),
1659 TeamID: githubv4.ID(teamID),
1660 },
1661 }
1662
1663 return c.Mutate("UnlinkProjectV2FromTeam", &mutation, variables)
1664}
1665
1666func handleError(err error) error {
1667 var gerr api.GraphQLError

Callers 1

unlinkTeamFunction · 0.80

Calls 3

MutateMethod · 0.95
IDMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected