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

Method UnlinkProjectFromRepository

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

UnlinkProjectFromRepository unlinks a project from a repository.

(projectID string, repoID string)

Source from the content-addressed store, hash-verified

1676
1677// UnlinkProjectFromRepository unlinks a project from a repository.
1678func (c *Client) UnlinkProjectFromRepository(projectID string, repoID string) error {
1679 var mutation unlinkProjectFromRepoMutation
1680 variables := map[string]any{
1681 "input": githubv4.UnlinkProjectV2FromRepositoryInput{
1682 ProjectID: githubv4.String(projectID),
1683 RepositoryID: githubv4.ID(repoID),
1684 },
1685 }
1686
1687 return c.Mutate("UnlinkProjectV2FromRepository", &mutation, variables)
1688}
1689
1690// UnlinkProjectFromTeam unlinks a project from a team.
1691func (c *Client) UnlinkProjectFromTeam(projectID string, teamID string) error {

Callers 1

unlinkRepoFunction · 0.80

Calls 3

MutateMethod · 0.95
StringMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected