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

Function postOrgVariable

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

Source from the content-addressed store, hash-verified

92}
93
94func postOrgVariable(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64) error {
95 payload := setPayload{
96 Name: variableName,
97 Value: value,
98 Visibility: visibility,
99 Repositories: repositoryIDs,
100 }
101 path := fmt.Sprintf(`orgs/%s/actions/variables`, orgName)
102 return postVariable(client, host, path, payload)
103}
104
105func postEnvVariable(client *api.Client, host string, repoID int64, envName, variableName, value string) error {
106 payload := setPayload{

Callers 1

setVariableFunction · 0.85

Calls 1

postVariableFunction · 0.85

Tested by

no test coverage detected