GetReleaseDefinition fails when using scheduled days
Opened this issue · 1 comments
GitHubJens commented
When using this config in Azure DevOps:
We get this error:
"json: cannot unmarshal number into Go struct field ReleaseSchedule.environments.schedules.daysToRelease of type release.ScheduleDays"
Returned from:
releaseDefinitionObject, err := releaseClient.GetReleaseDefinition(ctx,
getReleaseDefinitionArgs)
if err != nil {
log.Fatal(err)
}
Its this function that is throwing the error:
azure-devops-go-api/azuredevops/client.go
Line 295 in 09c8cad
And it is used by the function:
DTB4N commented