-
Notifications
You must be signed in to change notification settings - Fork 0
feat: parseApiRequest #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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
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
No description provided.