MCPcopy
hub / github.com/cli/cli / ListOrgRulesets

Function ListOrgRulesets

pkg/cmd/ruleset/shared/http.go:40–47  ·  view source on GitHub ↗
(httpClient *http.Client, orgLogin string, limit int, host string, includeParents bool)

Source from the content-addressed store, hash-verified

38}
39
40func ListOrgRulesets(httpClient *http.Client, orgLogin string, limit int, host string, includeParents bool) (*RulesetList, error) {
41 variables := map[string]interface{}{
42 "login": orgLogin,
43 "includeParents": includeParents,
44 }
45
46 return listRulesets(httpClient, rulesetsQuery(true), variables, limit, host)
47}
48
49func listRulesets(httpClient *http.Client, query string, variables map[string]interface{}, limit int, host string) (*RulesetList, error) {
50 pageLimit := min(limit, 100)

Callers 2

viewRunFunction · 0.92
listRunFunction · 0.92

Calls 2

listRulesetsFunction · 0.85
rulesetsQueryFunction · 0.85

Tested by

no test coverage detected