(client *api.Client, repo ghrepo.Interface, variableName, value string)
| 112 | } |
| 113 | |
| 114 | func postRepoVariable(client *api.Client, repo ghrepo.Interface, variableName, value string) error { |
| 115 | payload := setPayload{ |
| 116 | Name: variableName, |
| 117 | Value: value, |
| 118 | } |
| 119 | path := fmt.Sprintf(`repos/%s/actions/variables`, ghrepo.FullName(repo)) |
| 120 | return postVariable(client, repo.RepoHost(), path, payload) |
| 121 | } |
| 122 | |
| 123 | func patchVariable(client *api.Client, host, path string, payload interface{}) error { |
| 124 | payloadBytes, err := json.Marshal(payload) |
no test coverage detected