(client *api.Client, repo ghrepo.Interface, variableName, value string)
| 165 | } |
| 166 | |
| 167 | func patchRepoVariable(client *api.Client, repo ghrepo.Interface, variableName, value string) error { |
| 168 | payload := setPayload{ |
| 169 | Value: value, |
| 170 | } |
| 171 | path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "actions", "variables", variableName) |
| 172 | if err != nil { |
| 173 | return err |
| 174 | } |
| 175 | return patchVariable(client, repo.RepoHost(), path, payload) |
| 176 | } |
no test coverage detected