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

Function patchOrgVariable

pkg/cmd/variable/set/http.go:132–140  ·  view source on GitHub ↗
(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64)

Source from the content-addressed store, hash-verified

130}
131
132func patchOrgVariable(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64) error {
133 payload := setPayload{
134 Value: value,
135 Visibility: visibility,
136 Repositories: repositoryIDs,
137 }
138 path := fmt.Sprintf(`orgs/%s/actions/variables/%s`, orgName, variableName)
139 return patchVariable(client, host, path, payload)
140}
141
142func patchEnvVariable(client *api.Client, host string, repoID int64, envName, variableName, value string) error {
143 payload := setPayload{

Callers 1

setVariableFunction · 0.85

Calls 1

patchVariableFunction · 0.85

Tested by

no test coverage detected