Skip to content

Conversation

@steveworley
Copy link
Contributor

No description provided.

@steveworley steveworley requested a review from Copilot October 18, 2025 23:57
Copy link

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 upgrades the Quant TypeScript client from v3 to v4, simplifying authentication and removing custom API helper functions. The upgrade modernizes the codebase by replacing the GitHub-hosted quant-ts-client package with the npm-published @quantcdn/quant-client v4.0.0.

Key changes:

  • Migration to @quantcdn/quant-client v4.0.0 with built-in Configuration support
  • Simplified base URL to https://dashboard.quantcdn.io (removed /api/v3 path)
  • Removed custom apiOpts() and removeNullValues() helper functions

Reviewed Changes

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

File Description
src/index.ts Replaced custom authentication logic with v4 Configuration class; updated import statement and removed helper functions
package.json Updated dependency from GitHub-hosted v3 to npm-published v4.0.0
README.md Updated usage examples to reflect v2 action version and new base URL format
CHANGELOG.txt Added comprehensive changelog documenting v2.0.0 release with migration details

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

const environmentName = core.getInput('environment_name', { required: true });

const baseUrl = core.getInput('base_url') || 'https://dashboard.quantcdn.io/api/v3';
let baseUrl = core.getInput('base_url') || 'https://dashboard.quantcdn.io';
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

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

The variable baseUrl is declared with let but is never reassigned. Consider using const instead for better immutability and code clarity.

Suggested change
let baseUrl = core.getInput('base_url') || 'https://dashboard.quantcdn.io';
const baseUrl = core.getInput('base_url') || 'https://dashboard.quantcdn.io';

Copilot uses AI. Check for mistakes.
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.

2 participants