MCPcopy Index your code
hub / github.com/github/github-mcp-server / fetchProjectV2

Function fetchProjectV2

pkg/github/projects.go:949–954  ·  view source on GitHub ↗
(ctx context.Context, client *github.Client, owner, ownerType string, projectNumber int)

Source from the content-addressed store, hash-verified

947}
948
949func fetchProjectV2(ctx context.Context, client *github.Client, owner, ownerType string, projectNumber int) (*github.ProjectV2, *github.Response, error) {
950 if ownerType == "org" {
951 return client.Projects.GetOrganizationProject(ctx, owner, projectNumber)
952 }
953 return client.Projects.GetUserProject(ctx, owner, projectNumber)
954}
955
956// FetchProjectIsPrivate returns whether a GitHub Project is private.
957func FetchProjectIsPrivate(ctx context.Context, client *github.Client, owner, ownerType string, projectNumber int) (bool, error) {

Callers 2

FetchProjectIsPrivateFunction · 0.85
getProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected