MCPcopy
hub / github.com/cli/cli / ID

Method ID

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

ID is the ID of the project field.

()

Source from the content-addressed store, hash-verified

944
945// ID is the ID of the project field.
946func (p ProjectField) ID() string {
947 if p.TypeName == "ProjectV2Field" {
948 return p.Field.ID
949 } else if p.TypeName == "ProjectV2IterationField" {
950 return p.IterationField.ID
951 } else if p.TypeName == "ProjectV2SingleSelectField" {
952 return p.SingleSelectField.ID
953 }
954 return ""
955}
956
957// Name is the name of the project field.
958func (p ProjectField) Name() string {

Callers 1

ExportDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected