MCPcopy
hub / github.com/cli/cli / LinkProjectToTeam

Method LinkProjectToTeam

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

LinkProjectToTeam links a project to a team.

(projectID string, teamID string)

Source from the content-addressed store, hash-verified

1626
1627// LinkProjectToTeam links a project to a team.
1628func (c *Client) LinkProjectToTeam(projectID string, teamID string) error {
1629 var mutation linkProjectToTeamMutation
1630 variables := map[string]interface{}{
1631 "input": githubv4.LinkProjectV2ToTeamInput{
1632 ProjectID: githubv4.String(projectID),
1633 TeamID: githubv4.ID(teamID),
1634 },
1635 }
1636
1637 return c.Mutate("LinkProjectV2ToTeam", &mutation, variables)
1638}
1639
1640// UnlinkProjectFromRepository unlinks a project from a repository.
1641func (c *Client) UnlinkProjectFromRepository(projectID string, repoID string) error {

Callers 1

linkTeamFunction · 0.80

Calls 3

MutateMethod · 0.95
IDMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected