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

Function getRepoSecrets

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

Source from the content-addressed store, hash-verified

308}
309
310func getRepoSecrets(client *http.Client, repo ghrepo.Interface, app shared.App) ([]Secret, error) {
311 u, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), string(app), "secrets")
312 if err != nil {
313 return nil, err
314 }
315 return getSecrets(client, repo.RepoHost(), u)
316}
317
318func getSecrets(client *http.Client, host string, u *safeurl.MutableSafeURL) ([]Secret, error) {
319 var results []Secret

Callers 1

listRunFunction · 0.85

Calls 5

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

Tested by

no test coverage detected