| 194 | } |
| 195 | |
| 196 | func getRepoVariables(client *http.Client, repo ghrepo.Interface) ([]shared.Variable, error) { |
| 197 | u, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "actions", "variables") |
| 198 | if err != nil { |
| 199 | return nil, err |
| 200 | } |
| 201 | return getVariables(client, repo.RepoHost(), u) |
| 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") |