(client *api.Client, host, path string, payload interface{})
| 121 | } |
| 122 | |
| 123 | func patchVariable(client *api.Client, host, path string, payload interface{}) error { |
| 124 | payloadBytes, err := json.Marshal(payload) |
| 125 | if err != nil { |
| 126 | return fmt.Errorf("failed to serialize: %w", err) |
| 127 | } |
| 128 | requestBody := bytes.NewReader(payloadBytes) |
| 129 | return client.REST(host, "PATCH", path, requestBody, nil) |
| 130 | } |
| 131 | |
| 132 | func patchOrgVariable(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64) error { |
| 133 | payload := setPayload{ |
no test coverage detected