(httpClient *http.Client, orgLogin string, limit int, host string, includeParents bool)
| 38 | } |
| 39 | |
| 40 | func 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 | |
| 49 | func listRulesets(httpClient *http.Client, query string, variables map[string]interface{}, limit int, host string) (*RulesetList, error) { |
| 50 | pageLimit := min(limit, 100) |
no test coverage detected