Skip to content

Conversation

@dominnya
Copy link
Member

@dominnya dominnya commented Nov 6, 2025

No description provided.

@dominnya dominnya self-assigned this Nov 6, 2025
Copilot AI review requested due to automatic review settings November 6, 2025 08:57
@dominnya dominnya added the enhancement New feature or request label Nov 6, 2025
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 introduces a new utility function parseApiRequest for constructing API requests, renames environment variables from GRATIO_* to OPENAPI_* for better clarity, and fixes a directory creation issue where the tool would attempt to create the current directory (.). The version is bumped to 3.1.0.

  • Added parseApiRequest utility to simplify API request construction with path/query parameters
  • Renamed environment variables to better reflect their purpose (GRATIO_* → OPENAPI_*)
  • Fixed directory creation logic to avoid attempting to create the current directory

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/utils/parseApiRequest.ts New utility function to parse API request objects into native Request objects
src/index.ts Exports the new parseApiRequest utility
src/utils/template.ts Adds check to prevent creating current directory before mkdirSync
src/commands/gen/types.ts Updates environment variable names and adds directory creation fix
src/commands/gen/endpoints.ts Updates environment variable names for consistency
package.json Bumps version to 3.1.0
README.md Documents the new utility and updated environment variables
CHANGELOG.md Records changes in versions 3.1.0 and 3.0.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Psychosynthesis Psychosynthesis merged commit 8e9ac24 into main Nov 7, 2025
1 check passed
@gratio-dev gratio-dev deleted the feature/parse-api-request branch December 9, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants