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

Method Name

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

Name is the name of the project field.

()

Source from the content-addressed store, hash-verified

986
987// Name is the name of the project field.
988func (p ProjectField) Name() string {
989 if p.TypeName == "ProjectV2Field" {
990 return p.Field.Name
991 } else if p.TypeName == "ProjectV2IterationField" {
992 return p.IterationField.Name
993 } else if p.TypeName == "ProjectV2SingleSelectField" {
994 return p.SingleSelectField.Name
995 }
996 return ""
997}
998
999// Type is the typename of the project field.
1000func (p ProjectField) Type() string {

Callers 2

resolveItemEditNamesFunction · 0.95
ExportDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected