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

Function ListRepoRulesets

pkg/cmd/ruleset/shared/http.go:30–38  ·  view source on GitHub ↗
(httpClient *http.Client, repo ghrepo.Interface, limit int, includeParents bool)

Source from the content-addressed store, hash-verified

28}
29
30func ListRepoRulesets(httpClient *http.Client, repo ghrepo.Interface, limit int, includeParents bool) (*RulesetList, error) {
31 variables := map[string]interface{}{
32 "owner": repo.RepoOwner(),
33 "repo": repo.RepoName(),
34 "includeParents": includeParents,
35 }
36
37 return listRulesets(httpClient, rulesetsQuery(false), variables, limit, repo.RepoHost())
38}
39
40func ListOrgRulesets(httpClient *http.Client, orgLogin string, limit int, host string, includeParents bool) (*RulesetList, error) {
41 variables := map[string]interface{}{

Callers 2

viewRunFunction · 0.92
listRunFunction · 0.92

Calls 5

listRulesetsFunction · 0.85
rulesetsQueryFunction · 0.85
RepoOwnerMethod · 0.65
RepoNameMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected