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

Method ProjectsV1

internal/featuredetection/feature_detection.go:335–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333)
334
335func (d *detector) ProjectsV1() gh.ProjectsV1Support {
336 if !ghauth.IsEnterprise(d.host) {
337 return gh.ProjectsV1Unsupported
338 }
339
340 hostVersion, hostVersionErr := resolveEnterpriseVersion(d.httpClient, d.host)
341 v1ProjectCutoffVersion, v1ProjectCutoffVersionErr := version.NewVersion(enterpriseProjectsV1Removed)
342
343 if hostVersionErr == nil && v1ProjectCutoffVersionErr == nil && hostVersion.LessThan(v1ProjectCutoffVersion) {
344 return gh.ProjectsV1Supported
345 }
346
347 return gh.ProjectsV1Unsupported
348}
349
350func (d *detector) ProjectFeatures() (ProjectFeatures, error) {
351 if !ghauth.IsEnterprise(d.host) {

Callers

nothing calls this directly

Calls 1

resolveEnterpriseVersionFunction · 0.85

Tested by

no test coverage detected