(ctx context.Context, client *github.Client, owner, ownerType string, projectNumber int)
| 947 | } |
| 948 | |
| 949 | func 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. |
| 957 | func FetchProjectIsPrivate(ctx context.Context, client *github.Client, owner, ownerType string, projectNumber int) (bool, error) { |
no outgoing calls
no test coverage detected