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

Function viewOrgRuleset

pkg/cmd/ruleset/view/http.go:20–26  ·  view source on GitHub ↗
(httpClient *http.Client, orgLogin string, databaseId string, host string)

Source from the content-addressed store, hash-verified

18}
19
20func viewOrgRuleset(httpClient *http.Client, orgLogin string, databaseId string, host string) (*shared.RulesetREST, error) {
21 path, err := safeurl.JoinPath("orgs", orgLogin, "rulesets", databaseId)
22 if err != nil {
23 return nil, err
24 }
25 return viewRuleset(httpClient, host, path)
26}
27
28func viewRuleset(httpClient *http.Client, hostname string, path safeurl.SafeURL) (*shared.RulesetREST, error) {
29 apiClient := api.NewClientFromHTTP(httpClient)

Callers 1

viewRunFunction · 0.85

Calls 2

JoinPathFunction · 0.92
viewRulesetFunction · 0.85

Tested by

no test coverage detected