RepositoryViewerPermission returns the requesting user's role on the repository, or an empty string when the "repository" field was not requested.
()
| 337 | // RepositoryViewerPermission returns the requesting user's role on the |
| 338 | // repository, or an empty string when the "repository" field was not requested. |
| 339 | func (pr PullRequest) RepositoryViewerPermission() string { |
| 340 | if pr.Repository == nil { |
| 341 | return "" |
| 342 | } |
| 343 | return pr.Repository.ViewerPermission |
| 344 | } |
| 345 | |
| 346 | func (pr PullRequest) IsOpen() bool { |
| 347 | return pr.State == "OPEN" |
nothing calls this directly
no outgoing calls
no test coverage detected