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

Method RepositoryViewerPermission

api/queries_issue.go:498–503  ·  view source on GitHub ↗

RepositoryViewerPermission returns the requesting user's role on the repository, or an empty string when the "repository" field was not requested.

()

Source from the content-addressed store, hash-verified

496// RepositoryViewerPermission returns the requesting user's role on the
497// repository, or an empty string when the "repository" field was not requested.
498func (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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected