LinkProjectToTeam links a project to a team.
(projectID string, teamID string)
| 1664 | |
| 1665 | // LinkProjectToTeam links a project to a team. |
| 1666 | func (c *Client) LinkProjectToTeam(projectID string, teamID string) error { |
| 1667 | var mutation linkProjectToTeamMutation |
| 1668 | variables := map[string]any{ |
| 1669 | "input": githubv4.LinkProjectV2ToTeamInput{ |
| 1670 | ProjectID: githubv4.String(projectID), |
| 1671 | TeamID: githubv4.ID(teamID), |
| 1672 | }, |
| 1673 | } |
| 1674 | |
| 1675 | return c.Mutate("LinkProjectV2ToTeam", &mutation, variables) |
| 1676 | } |
| 1677 | |
| 1678 | // UnlinkProjectFromRepository unlinks a project from a repository. |
| 1679 | func (c *Client) UnlinkProjectFromRepository(projectID string, repoID string) error { |