MCPcopy Index your code
hub / github.com/cli/cli / patchRepoVariable

Function patchRepoVariable

pkg/cmd/variable/set/http.go:150–156  ·  view source on GitHub ↗
(client *api.Client, repo ghrepo.Interface, variableName, value string)

Source from the content-addressed store, hash-verified

148}
149
150func patchRepoVariable(client *api.Client, repo ghrepo.Interface, variableName, value string) error {
151 payload := setPayload{
152 Value: value,
153 }
154 path := fmt.Sprintf(`repos/%s/actions/variables/%s`, ghrepo.FullName(repo), variableName)
155 return patchVariable(client, repo.RepoHost(), path, payload)
156}

Callers 1

setVariableFunction · 0.85

Calls 3

FullNameFunction · 0.92
patchVariableFunction · 0.85
RepoHostMethod · 0.65

Tested by

no test coverage detected