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

Function viewOrgRuleset

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

Source from the content-addressed store, hash-verified

15}
16
17func viewOrgRuleset(httpClient *http.Client, orgLogin string, databaseId string, host string) (*shared.RulesetREST, error) {
18 path := fmt.Sprintf("orgs/%s/rulesets/%s", orgLogin, databaseId)
19 return viewRuleset(httpClient, host, path)
20}
21
22func viewRuleset(httpClient *http.Client, hostname string, path string) (*shared.RulesetREST, error) {
23 apiClient := api.NewClientFromHTTP(httpClient)

Callers 1

viewRunFunction · 0.85

Calls 1

viewRulesetFunction · 0.85

Tested by

no test coverage detected