Skip to content

Resetting Reviewer vote to 0 via GitAPI has no effect #611

@tommywilkinson

Description

@tommywilkinson

Environment

Node version: 18.15.0
Npm version: 9.5.0
OS and version: both windows 11 (current) and linux (ubuntu current LTS)
azure-devops-node-api version: 10.2.2

Issue Description

Updating reviewer vote has no effect via node API.

Expected behavior

Updating a reviewer vote to 0 should reset the vote in the pull request for a given reviewer.

Actual behavior

No effect on reviewer vote status after performing vote reset REST call.

Steps to reproduce

  1. Create an ADO PR
  2. Have an "Approved" reviewer in that PR
  3. Use rest API to attempt to update that reviewer's vote to 0, using updatePullRequestReviewer
  4. Observer that REST call completes successfully, but vote status will not have been reset (will still be "Approved")

Logs

Can provide MSFT internal pipeline agent logs upon request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions