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

Method Number

pkg/cmd/project/shared/queries/queries.go:635–644  ·  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

633
634// Number is the number of the project item. It is only valid for issues and pull requests.
635func (p ProjectItem) Number() int {
636 switch p.Content.TypeName {
637 case "Issue":
638 return p.Content.Issue.Number
639 case "PullRequest":
640 return p.Content.PullRequest.Number
641 }
642
643 return 0
644}
645
646// ID is the id of the ProjectItem.
647func (p ProjectItem) ID() string {

Callers 2

DetailedItemMethod · 0.95
printResultsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected