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

Method RepositoryDatabaseID

api/queries_issue.go:489–494  ·  view source on GitHub ↗

RepositoryDatabaseID returns the numeric REST id of the repository, or zero when the "repository" field was not requested.

()

Source from the content-addressed store, hash-verified

487// RepositoryDatabaseID returns the numeric REST id of the repository, or zero
488// when the "repository" field was not requested.
489func (i Issue) RepositoryDatabaseID() int64 {
490 if i.Repository == nil {
491 return 0
492 }
493 return i.Repository.DatabaseID
494}
495
496// RepositoryViewerPermission returns the requesting user's role on the
497// repository, or an empty string when the "repository" field was not requested.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected