MCPcopy Index your code
hub / github.com/cli/cli / MilestoneId

Method MilestoneId

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

Source from the content-addressed store, hash-verified

275}
276
277func (e Editable) MilestoneId() (*string, error) {
278 if !e.Milestone.Edited {
279 return nil, nil
280 }
281 if e.Milestone.Value == noMilestone || e.Milestone.Value == "" {
282 s := ""
283 return &s, nil
284 }
285 m, err := e.Metadata.MilestoneToID(e.Milestone.Value)
286 return &m, err
287}
288
289// Clone creates a mostly-shallow copy of Editable suitable for use in parallel
290// 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