MCPcopy Create free account
hub / github.com/cli/cli / LinkProjectToTeam

Method LinkProjectToTeam

pkg/cmd/project/shared/queries/queries.go:1675–1685  ·  view source on GitHub ↗

LinkProjectToTeam links a project to a team.

(projectID string, teamID string)

Source from the content-addressed store, hash-verified

1673
1674// LinkProjectToTeam links a project to a team.
1675func (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.
1688func (c *Client) UnlinkProjectFromRepository(projectID string, repoID string) error {

Callers 1

linkTeamFunction · 0.80

Calls 3

MutateMethod · 0.95
StringMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected