MCPcopy
hub / github.com/cli/cli / getRepoSecrets

Function getRepoSecrets

pkg/cmd/secret/list/list.go:286–288  ·  view source on GitHub ↗
(client *http.Client, repo ghrepo.Interface, app shared.App)

Source from the content-addressed store, hash-verified

284}
285
286func getRepoSecrets(client *http.Client, repo ghrepo.Interface, app shared.App) ([]Secret, error) {
287 return getSecrets(client, repo.RepoHost(), fmt.Sprintf("repos/%s/%s/secrets", ghrepo.FullName(repo), app))
288}
289
290func getSecrets(client *http.Client, host, path string) ([]Secret, error) {
291 var results []Secret

Callers 1

listRunFunction · 0.85

Calls 3

FullNameFunction · 0.92
getSecretsFunction · 0.85
RepoHostMethod · 0.65

Tested by

no test coverage detected