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