Merged
Conversation
There was a problem hiding this comment.
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
parseApiRequestutility 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.
…i into feature/parse-api-request
Psychosynthesis
approved these changes
Nov 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.