microsoft / azure-devops-node-api

Azure DevOps Client for Node.js
Other
463 stars 230 forks source link

Retention policy isn't returning runsToRetainPerProtectedBranch #597

Open bsmithb2 opened 4 months ago

bsmithb2 commented 4 months ago

Environment

Node version: v21.7.3 Npm version: 10.5.0 OS and version: MacOS Sonoma 14.4.1 azure-devops-node-api version: 12.5.0

Issue Description

When attempting to use IBuildApi.getRetentionSettings(), the value for runsToRetainPerProtectedBranch is null

Expected behaviour

It should be a RetentionSetting object

Actual behaviour

The RetentionSetting object is null

Steps to reproduce

  1. Create a IBuildApi object connected to an Azure Devops server
  2. call getRetentionSettings() on that project
  3. Note the runsToRetainPerProtectedBranch object is null but the other options are not.

Logs

JSON object representation for example {"purgeArtifacts":{"min":1,"max":60,"value":30},"purgePullRequestRuns":{"min":1,"max":30,"value":10},"purgeRuns":{"min":30,"max":731,"value":30},"retainRunsPerProtectedBranch":null}

KonstantinTyukalov commented 4 months ago

hi @bsmithb2 thanks for the reporting! We are working on higher priority issues, but we'll get back to this one soon.

github-actions[bot] commented 1 month ago

This issue has had no activity in 90 days. Please comment if it is not actually stale

bsmith-bupa commented 1 month ago

it's not stale