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

Method MilestoneId

pkg/cmd/pr/shared/editable.go:278–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276}
277
278func (e Editable) MilestoneId() (*string, error) {
279 if !e.Milestone.Edited {
280 return nil, nil
281 }
282 if e.Milestone.Value == noMilestone || e.Milestone.Value == "" {
283 s := ""
284 return &s, nil
285 }
286 m, err := e.Metadata.MilestoneToID(e.Milestone.Value)
287 return &m, err
288}
289
290// Clone creates a mostly-shallow copy of Editable suitable for use in parallel
291// go routines. Fields that would be mutated will be copied.

Callers 1

replaceIssueFieldsFunction · 0.80

Calls 1

MilestoneToIDMethod · 0.80

Tested by

no test coverage detected