RepositoryViewerPermission returns the requesting user's role on the repository, or an empty string when the "repository" field was not requested.
()
| 496 | // RepositoryViewerPermission returns the requesting user's role on the |
| 497 | // repository, or an empty string when the "repository" field was not requested. |
| 498 | func (i Issue) RepositoryViewerPermission() string { |
| 499 | if i.Repository == nil { |
| 500 | return "" |
| 501 | } |
| 502 | return i.Repository.ViewerPermission |
| 503 | } |
| 504 | |
| 505 | // UpdateIssueIssueType sets or clears the issue type on an issue. Pass an |
| 506 | // empty issueTypeID to clear the issue type. |
nothing calls this directly
no outgoing calls
no test coverage detected