MCPcopy Create free account
hub / github.com/cli/cli / getEnvVariables

Function getEnvVariables

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

Source from the content-addressed store, hash-verified

202}
203
204func 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
212func getOrgVariables(client *http.Client, host, orgName string, showSelectedRepoInfo bool) ([]shared.Variable, error) {
213 u, err := safeurl.JoinPath("orgs", orgName, "actions", "variables")

Callers 1

listRunFunction · 0.85

Calls 5

JoinPathFunction · 0.92
getVariablesFunction · 0.85
RepoOwnerMethod · 0.65
RepoNameMethod · 0.65
RepoHostMethod · 0.65

Tested by

no test coverage detected