UnlinkProjectFromRepository unlinks a project from a repository.
(projectID string, repoID string)
| 1639 | |
| 1640 | // UnlinkProjectFromRepository unlinks a project from a repository. |
| 1641 | func (c *Client) UnlinkProjectFromRepository(projectID string, repoID string) error { |
| 1642 | var mutation unlinkProjectFromRepoMutation |
| 1643 | variables := map[string]interface{}{ |
| 1644 | "input": githubv4.UnlinkProjectV2FromRepositoryInput{ |
| 1645 | ProjectID: githubv4.String(projectID), |
| 1646 | RepositoryID: githubv4.ID(repoID), |
| 1647 | }, |
| 1648 | } |
| 1649 | |
| 1650 | return c.Mutate("UnlinkProjectV2FromRepository", &mutation, variables) |
| 1651 | } |
| 1652 | |
| 1653 | // UnlinkProjectFromTeam unlinks a project from a team. |
| 1654 | func (c *Client) UnlinkProjectFromTeam(projectID string, teamID string) error { |
no test coverage detected