Skip to content

Conversation

@azure-sdk
Copy link
Collaborator

Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#13307 See eng/common workflow

@azure-sdk azure-sdk requested a review from a team as a code owner December 11, 2025 20:17
Copilot AI review requested due to automatic review settings December 11, 2025 20:17
@azure-sdk azure-sdk added EngSys This issue is impacting the engineering system. Central-EngSys This issue is owned by the Engineering System team. labels Dec 11, 2025
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 syncs the eng/common directory with azure-sdk-tools PR 13307, specifically updating the npm link verification logic to better handle npm package URLs. The changes improve upon the previous simple regex replacement with a more robust pattern matching approach that correctly transforms both versioned and non-versioned npmjs.com URLs to their corresponding registry.npmjs.org API endpoints.

Key Changes:

  • Enhanced npm link transformation to properly handle versioned URLs (e.g., /package/name/v/1.1.0)
  • Added support for non-versioned package URLs with proper handling of query parameters and fragments
  • Improved code clarity with explicit conditional logic and comprehensive inline documentation

@azure-sdk azure-sdk merged commit d257814 into main Dec 11, 2025
13 checks passed
@azure-sdk azure-sdk deleted the sync-eng/common-copilot/update-npm-url-replacement-logic-13307 branch December 11, 2025 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants