Skip to content

getCommitDiffs does not accept the whole payload #573

Closed

Description

Environment

Node version: 18.14.2
Yarn version: 1.22.19
OS and version: Win 11
azure-devops-node-api version: 12.1.0

Issue Description

getCommitDiffs from gitApi ignores baseVersionDescriptor and targetVersionDescriptor payloads
gitClient.getCommitDiffs(this.repoId, this.project, true, 100, 0, { baseVersion: 'ADC_Wizard_15894, }, { targetVersion: 'main' })
Even after adding another properties (baseVersionType, baseVersionOptions, etc.), following URL gets generated:
image

Expected behaviour

The url should look like this
image
There should be differences between those branches
image

Actual behaviour

There are no differences found due to missing base and target branches

Steps to reproduce

  1. Initialize the handler with PAT and org url
  2. Provide payload to the getCommitDiffs method as above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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