RepositoryDatabaseID returns the numeric REST id of the repository, or zero when the "repository" field was not requested.
()
| 328 | // RepositoryDatabaseID returns the numeric REST id of the repository, or zero |
| 329 | // when the "repository" field was not requested. |
| 330 | func (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. |
nothing calls this directly
no outgoing calls
no test coverage detected