(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64)
| 94 | } |
| 95 | |
| 96 | func postOrgVariable(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64) error { |
| 97 | payload := setPayload{ |
| 98 | Name: variableName, |
| 99 | Value: value, |
| 100 | Visibility: visibility, |
| 101 | Repositories: repositoryIDs, |
| 102 | } |
| 103 | path, err := safeurl.JoinPath("orgs", orgName, "actions", "variables") |
| 104 | if err != nil { |
| 105 | return err |
| 106 | } |
| 107 | return postVariable(client, host, path, payload) |
| 108 | } |
| 109 | |
| 110 | func postEnvVariable(client *api.Client, host string, repoID int64, envName, variableName, value string) error { |
| 111 | payload := setPayload{ |
no test coverage detected