(client *http.Client, repo ghrepo.Interface)
| 193 | } |
| 194 | |
| 195 | func getRepoVariables(client *http.Client, repo ghrepo.Interface) ([]shared.Variable, error) { |
| 196 | return getVariables(client, repo.RepoHost(), fmt.Sprintf("repos/%s/actions/variables", ghrepo.FullName(repo))) |
| 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) |
no test coverage detected