-
Notifications
You must be signed in to change notification settings - Fork 51
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
feat: fix the bot build #477
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThis pull request introduces changes to enhance the bot building process by incorporating language support. It modifies several components to pass language information when fetching bot details and adjusts the bot creation prompts to be language-aware. Additionally, it fixes a script path in the package.json to ensure proper execution. Changes
|
getBotInfoByRepoName(botProfile?.repoName!); | ||
getBotInfoByRepoName({ | ||
repo_name: botProfile?.repoName!, | ||
lang: language, |
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.
Ensure that the language
variable is correctly initialized and available in the useGlobal
context to avoid potential undefined errors.
}); | ||
export async function getBotInfoByRepoName(params: { | ||
repo_name: string; | ||
lang?: string; |
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.
Consider validating the lang
parameter to ensure it is supported and correctly formatted before sending the request.
Codecov ReportAttention: Patch coverage is
|
No description provided.