UnlinkProjectFromRepository unlinks a project from a repository.
(projectID string, repoID string)
| 1686 | |
| 1687 | // UnlinkProjectFromRepository unlinks a project from a repository. |
| 1688 | func (c *Client) UnlinkProjectFromRepository(projectID string, repoID string) error { |
| 1689 | var mutation unlinkProjectFromRepoMutation |
| 1690 | variables := map[string]interface{}{ |
| 1691 | "input": githubv4.UnlinkProjectV2FromRepositoryInput{ |
| 1692 | ProjectID: githubv4.String(projectID), |
| 1693 | RepositoryID: githubv4.ID(repoID), |
| 1694 | }, |
| 1695 | } |
| 1696 | |
| 1697 | return c.Mutate("UnlinkProjectV2FromRepository", &mutation, variables) |
| 1698 | } |
| 1699 | |
| 1700 | // UnlinkProjectFromTeam unlinks a project from a team. |
| 1701 | func (c *Client) UnlinkProjectFromTeam(projectID string, teamID string) error { |
no test coverage detected