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

Method RepositoryDatabaseID

api/queries_pr.go:330–335  ·  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

328// RepositoryDatabaseID returns the numeric REST id of the repository, or zero
329// when the "repository" field was not requested.
330func (pr PullRequest) RepositoryDatabaseID() int64 {
331 if pr.Repository == nil {
332 return 0
333 }
334 return pr.Repository.DatabaseID
335}
336
337// RepositoryViewerPermission returns the requesting user's role on the
338// 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