MCPcopy Index your code
hub / github.com/github/github-mcp-server / Name

Method Name

pkg/github/issues.go:180–192  ·  view source on GitHub ↗

Name returns the populated name from whichever IssueFields union variant the field resolved to.

()

Source from the content-addressed store, hash-verified

178
179// Name returns the populated name from whichever IssueFields union variant the field resolved to.
180func (r IssueFieldRef) Name() string {
181 switch {
182 case r.Date.Name != "":
183 return string(r.Date.Name)
184 case r.Number.Name != "":
185 return string(r.Number.Name)
186 case r.SingleSelect.Name != "":
187 return string(r.SingleSelect.Name)
188 case r.Text.Name != "":
189 return string(r.Text.Name)
190 }
191 return ""
192}
193
194// FullDatabaseIDStr returns the fullDatabaseId string from whichever IssueFields union variant
195// the field resolved to.

Calls

no outgoing calls