MCPcopy
hub / github.com/cli/cli / Number

Method Number

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

Number is the number of the project item. It is only valid for issues and pull requests.

()

Source from the content-addressed store, hash-verified

600
601// Number is the number of the project item. It is only valid for issues and pull requests.
602func (p ProjectItem) Number() int {
603 switch p.Content.TypeName {
604 case "Issue":
605 return p.Content.Issue.Number
606 case "PullRequest":
607 return p.Content.PullRequest.Number
608 }
609
610 return 0
611}
612
613// ID is the id of the ProjectItem.
614func (p ProjectItem) ID() string {

Callers 2

DetailedItemMethod · 0.95
printResultsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected