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