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

Function rulesetsQuery

pkg/cmd/ruleset/shared/http.go:94–100  ·  view source on GitHub ↗
(org bool)

Source from the content-addressed store, hash-verified

92}
93
94func rulesetsQuery(org bool) string {
95 if org {
96 return orgGraphQLHeader + sharedGraphQLBody
97 } else {
98 return repoGraphQLHeader + sharedGraphQLBody
99 }
100}
101
102const repoGraphQLHeader = `
103query RepoRulesetList($limit: Int!, $endCursor: String, $includeParents: Boolean, $owner: String!, $repo: String!) {

Callers 2

ListRepoRulesetsFunction · 0.85
ListOrgRulesetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected