Closed
Description
openedon Apr 18, 2024
Environment
Node version: 20.11.1
Npm version: 10.2.4
OS and version: Windows
azure-devops-node-api version: 12.4.0
Issue Description
Im trying to change the status of an release from an active state to an abandon state using the azure-devops-node-api, using the releaseapi.updateRelease() function
Expected behaviour
The expected behaviour is that the status of the release changing from active to abandon, and if i get the release information, i get the status as abandoned
Actual behaviour
The updateRelease() executes satisfactory, and when obtaining the release after the execution, it is not noted the difference
Steps to reproduce
- Get the release API
- Obtain the information about an existing release
- Changing the status of the obtained release to the desired state (abandoned)
- Usign the updateRelease function, update the release information
- Obtain again the information of the release (the status did not change)
Logs
const releaseapi: IReleaseApi = await getReleaseApi();
const release: Release = await releaseapi.getRelease(projectId, releaseId); //release.status = 2 (Active)
release.status = ReleaseStatus.Abandoned; //release.status = 4
const result = await releaseapi.updateRelease(release,projectId,releaseId);//result.status = 2 (Active)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment