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

Function patchEnvVariable

pkg/cmd/variable/set/http.go:142–148  ·  view source on GitHub ↗
(client *api.Client, host string, repoID int64, envName, variableName, value string)

Source from the content-addressed store, hash-verified

140}
141
142func patchEnvVariable(client *api.Client, host string, repoID int64, envName, variableName, value string) error {
143 payload := setPayload{
144 Value: value,
145 }
146 path := fmt.Sprintf(`repositories/%d/environments/%s/variables/%s`, repoID, envName, variableName)
147 return patchVariable(client, host, path, payload)
148}
149
150func patchRepoVariable(client *api.Client, repo ghrepo.Interface, variableName, value string) error {
151 payload := setPayload{

Callers 1

setVariableFunction · 0.85

Calls 1

patchVariableFunction · 0.85

Tested by

no test coverage detected