(client *http.Client, repo ghrepo.Interface, envName string)
| 197 | } |
| 198 | |
| 199 | func getEnvVariables(client *http.Client, repo ghrepo.Interface, envName string) ([]shared.Variable, error) { |
| 200 | path := fmt.Sprintf("repos/%s/environments/%s/variables", ghrepo.FullName(repo), envName) |
| 201 | return getVariables(client, repo.RepoHost(), path) |
| 202 | } |
| 203 | |
| 204 | func getOrgVariables(client *http.Client, host, orgName string, showSelectedRepoInfo bool) ([]shared.Variable, error) { |
| 205 | variables, err := getVariables(client, host, fmt.Sprintf("orgs/%s/actions/variables", orgName)) |
no test coverage detected