MCPcopy
hub / github.com/cli/cli / getRepoVariables

Function getRepoVariables

pkg/cmd/variable/list/list.go:195–197  ·  view source on GitHub ↗
(client *http.Client, repo ghrepo.Interface)

Source from the content-addressed store, hash-verified

193}
194
195func 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
199func 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)

Callers 1

listRunFunction · 0.85

Calls 3

FullNameFunction · 0.92
getVariablesFunction · 0.85
RepoHostMethod · 0.65

Tested by

no test coverage detected