| 10 | ) |
| 11 | |
| 12 | func viewRepoRuleset(httpClient *http.Client, repo ghrepo.Interface, databaseId string) (*shared.RulesetREST, error) { |
| 13 | path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "rulesets", databaseId) |
| 14 | if err != nil { |
| 15 | return nil, err |
| 16 | } |
| 17 | return viewRuleset(httpClient, repo.RepoHost(), path) |
| 18 | } |
| 19 | |
| 20 | func viewOrgRuleset(httpClient *http.Client, orgLogin string, databaseId string, host string) (*shared.RulesetREST, error) { |
| 21 | path, err := safeurl.JoinPath("orgs", orgLogin, "rulesets", databaseId) |