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

Function rulesetsQuery

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

Source from the content-addressed store, hash-verified

85}
86
87func rulesetsQuery(org bool) string {
88 if org {
89 return orgGraphQLHeader + sharedGraphQLBody
90 } else {
91 return repoGraphQLHeader + sharedGraphQLBody
92 }
93}
94
95const repoGraphQLHeader = `
96query 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