LinkProjectToRepository links a project to a repository.
(projectID string, repoID string)
| 1660 | |
| 1661 | // LinkProjectToRepository links a project to a repository. |
| 1662 | func (c *Client) LinkProjectToRepository(projectID string, repoID string) error { |
| 1663 | var mutation linkProjectToRepoMutation |
| 1664 | variables := map[string]interface{}{ |
| 1665 | "input": githubv4.LinkProjectV2ToRepositoryInput{ |
| 1666 | ProjectID: githubv4.String(projectID), |
| 1667 | RepositoryID: githubv4.ID(repoID), |
| 1668 | }, |
| 1669 | } |
| 1670 | |
| 1671 | return c.Mutate("LinkProjectV2ToRepository", &mutation, variables) |
| 1672 | } |
| 1673 | |
| 1674 | // LinkProjectToTeam links a project to a team. |
| 1675 | func (c *Client) LinkProjectToTeam(projectID string, teamID string) error { |