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

Function viewRepoRuleset

pkg/cmd/ruleset/view/http.go:12–15  ·  view source on GitHub ↗
(httpClient *http.Client, repo ghrepo.Interface, databaseId string)

Source from the content-addressed store, hash-verified

10)
11
12func viewRepoRuleset(httpClient *http.Client, repo ghrepo.Interface, databaseId string) (*shared.RulesetREST, error) {
13 path := fmt.Sprintf("repos/%s/%s/rulesets/%s", repo.RepoOwner(), repo.RepoName(), databaseId)
14 return viewRuleset(httpClient, repo.RepoHost(), path)
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)

Callers 1

viewRunFunction · 0.85

Calls 4

viewRulesetFunction · 0.85
RepoOwnerMethod · 0.65
RepoNameMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected