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