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

Function textField

pkg/cmd/project/shared/queries/resolve_fields_test.go:12–18  ·  view source on GitHub ↗

textField builds a ProjectV2Field (TEXT) fixture with the given id and name.

(id, name string)

Source from the content-addressed store, hash-verified

10
11// textField builds a ProjectV2Field (TEXT) fixture with the given id and name.
12func textField(id, name string) ProjectField {
13 f := ProjectField{TypeName: "ProjectV2Field"}
14 f.Field.ID = id
15 f.Field.Name = name
16 f.Field.DataType = "TEXT"
17 return f
18}
19
20// singleSelectField builds a ProjectV2SingleSelectField fixture with the given
21// id, name, and options (alternating id/name pairs are passed as a slice).

Callers 3

TestResolveFieldByNameFunction · 0.85
TestResolveFieldByIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected