LinkProjectToTeam links a project to a team.
(projectID string, teamID string)
| 1673 | |
| 1674 | // LinkProjectToTeam links a project to a team. |
| 1675 | func (c *Client) LinkProjectToTeam(projectID string, teamID string) error { |
| 1676 | var mutation linkProjectToTeamMutation |
| 1677 | variables := map[string]interface{}{ |
| 1678 | "input": githubv4.LinkProjectV2ToTeamInput{ |
| 1679 | ProjectID: githubv4.String(projectID), |
| 1680 | TeamID: githubv4.ID(teamID), |
| 1681 | }, |
| 1682 | } |
| 1683 | |
| 1684 | return c.Mutate("LinkProjectV2ToTeam", &mutation, variables) |
| 1685 | } |
| 1686 | |
| 1687 | // UnlinkProjectFromRepository unlinks a project from a repository. |
| 1688 | func (c *Client) UnlinkProjectFromRepository(projectID string, repoID string) error { |