MCPcopy Index your code
hub / github.com/cli/cli / ViewerCanTriage

Method ViewerCanTriage

api/queries_repo.go:276–283  ·  view source on GitHub ↗

ViewerCanTriage is true when the requesting user can triage issues and pull requests

()

Source from the content-addressed store, hash-verified

274
275// ViewerCanTriage is true when the requesting user can triage issues and pull requests
276func (r Repository) ViewerCanTriage() bool {
277 switch r.ViewerPermission {
278 case "ADMIN", "MAINTAIN", "WRITE", "TRIAGE":
279 return true
280 default:
281 return false
282 }
283}
284
285func FetchRepository(client *Client, repo ghrepo.Interface, fields []string) (*Repository, error) {
286 query := fmt.Sprintf(`query RepositoryInfo($owner: String!, $name: String!) {

Callers 6

createRunFunction · 0.80
createRunFunction · 0.80
TestGitHubRepo_successFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestGitHubRepo_successFunction · 0.64