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

fix(nuget): Sort api response before picking projectUrl #23090

Conversation

chrisvanderpennen
Copy link
Contributor

Changes

Sort NuGet API responses using the versioning module before finding the latest projectUrl
Add test including response from Azure DevOps package feed for nunit

Context

Closes #22887

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

…epage

Use the existing NuGet versioning module to sort versions

Add test including anonymised actual response from Azure DevOps package
feed for nunit
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduce test fixtures to a minimum

@chrisvanderpennen
Copy link
Contributor Author

chrisvanderpennen commented Jul 3, 2023

I think this is about as terse as I can get them without breaking anything. edit: actually I could also remove some intermediate versions of nunit from the registration API response.

lib/modules/datasource/nuget/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/nuget/index.spec.ts Outdated Show resolved Hide resolved
lib/modules/datasource/nuget/v3.ts Outdated Show resolved Hide resolved
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise LGTM

lib/modules/datasource/nuget/index.spec.ts Outdated Show resolved Hide resolved
@rarkins rarkins added this pull request to the merge queue Oct 15, 2023
Merged via the queue into renovatebot:main with commit ac15e23 Oct 15, 2023
36 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.20.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

@8498549767 8498549767 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exelente

jon4hz pushed a commit to jon4hz/renovate that referenced this pull request Nov 9, 2023
…23090)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants