Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Release State #595

Open
vargdieg opened this issue Apr 18, 2024 · 1 comment
Open

Update Release State #595

vargdieg opened this issue Apr 18, 2024 · 1 comment

Comments

@vargdieg
Copy link

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

  1. Get the release API
  2. Obtain the information about an existing release
  3. Changing the status of the obtained release to the desired state (abandoned)
  4. Usign the updateRelease function, update the release information
  5. 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)
@aleksandrlevochkin
Copy link

Hi @vargdieg, thank you for reporting this issue. We are working on higher-prioritized issues at the moment, but we will get back to this one as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants