| 202 | } |
| 203 | |
| 204 | func getEnvVariables(client *http.Client, repo ghrepo.Interface, envName string) ([]shared.Variable, error) { |
| 205 | path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "environments", envName, "variables") |
| 206 | if err != nil { |
| 207 | return nil, err |
| 208 | } |
| 209 | return getVariables(client, repo.RepoHost(), path) |
| 210 | } |
| 211 | |
| 212 | func getOrgVariables(client *http.Client, host, orgName string, showSelectedRepoInfo bool) ([]shared.Variable, error) { |
| 213 | u, err := safeurl.JoinPath("orgs", orgName, "actions", "variables") |