UnlinkProjectFromRepository unlinks a project from a repository.
(projectID string, repoID string)
| 1676 | |
| 1677 | // UnlinkProjectFromRepository unlinks a project from a repository. |
| 1678 | func (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. |
| 1691 | func (c *Client) UnlinkProjectFromTeam(projectID string, teamID string) error { |
no test coverage detected