Skip to content

Conversation

@jakecoffman
Copy link
Member

Setting index-url if it's not there when url is present.

Copilot AI review requested due to automatic review settings July 17, 2025 18:55
@jakecoffman jakecoffman requested a review from a team as a code owner July 17, 2025 18:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements functionality to automatically set the index-url field from the url field for Python index credentials when index-url is not explicitly provided. This ensures consistent credential handling for Python package repositories.

  • Adds a new private method setIndexUrlFromUrl to handle the URL-to-index-url conversion logic
  • Integrates the new method into the credential processing workflow
  • Includes comprehensive test coverage for the new functionality

Reviewed Changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/updater.ts Adds setIndexUrlFromUrl method and integrates it into credential processing
tests/updater.test.ts Adds test case to verify index-url is set from url for Python credentials
Comments suppressed due to low confidence (1)

tests/updater.test.ts:250

  • The test creates an Updater instance but doesn't assign it to a variable or call any methods on it. Consider storing the instance in a variable to make the test's intent clearer and potentially test additional behavior.
    new Updater(

jakecoffman and others added 2 commits July 17, 2025 13:56
@jakecoffman jakecoffman enabled auto-merge (squash) July 17, 2025 18:59
@jakecoffman jakecoffman merged commit 06b2bf7 into main Jul 17, 2025
8 checks passed
@jakecoffman jakecoffman deleted the set-index-url-from-url branch July 17, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants