(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64)
| 141 | } |
| 142 | |
| 143 | func patchOrgVariable(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64) error { |
| 144 | payload := setPayload{ |
| 145 | Value: value, |
| 146 | Visibility: visibility, |
| 147 | Repositories: repositoryIDs, |
| 148 | } |
| 149 | path, err := safeurl.JoinPath("orgs", orgName, "actions", "variables", variableName) |
| 150 | if err != nil { |
| 151 | return err |
| 152 | } |
| 153 | return patchVariable(client, host, path, payload) |
| 154 | } |
| 155 | |
| 156 | func patchEnvVariable(client *api.Client, host string, repoID int64, envName, variableName, value string) error { |
| 157 | payload := setPayload{ |
no test coverage detected