(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64)
| 92 | } |
| 93 | |
| 94 | func postOrgVariable(client *api.Client, host, orgName, visibility, variableName, value string, repositoryIDs []int64) error { |
| 95 | payload := setPayload{ |
| 96 | Name: variableName, |
| 97 | Value: value, |
| 98 | Visibility: visibility, |
| 99 | Repositories: repositoryIDs, |
| 100 | } |
| 101 | path := fmt.Sprintf(`orgs/%s/actions/variables`, orgName) |
| 102 | return postVariable(client, host, path, payload) |
| 103 | } |
| 104 | |
| 105 | func postEnvVariable(client *api.Client, host string, repoID int64, envName, variableName, value string) error { |
| 106 | payload := setPayload{ |
no test coverage detected