-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add language-specific instructions to extra instructions based on user settings #1871
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
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to d4e8f61
Previous suggestionsSuggestions up to commit d4e8f61
Suggestions up to commit d4e8f61
Suggestions up to commit 9b19935
|
|||||||||||||||||||||||||||||||||||||||||||||
|
This is not the correct place to add it. it will cause duplication and unwanted repititions Add it here instead
|
|
@mrT23 Thanks. Moved those codes to |
Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com>
User description
Background (Why)
Although we had configured the feature to merge language-specific instructions from user settings into the extra instructions, that logic was not being executed in our GitHub Action.
Changes (What)
extra_instructionsarrayPR Type
Enhancement
Description
• Add language-specific instructions to extra instructions for non-English locales
• Merge response language settings into PR tools configuration
• Enhance internationalization support for PR agent tools
Changes diagram
flowchart LR A["User Settings"] --> B["Check Response Language"] B --> C{"Language != en-us?"} C -->|Yes| D["Create Language Instruction"] D --> E["Append to Extra Instructions"] E --> F["Update PR Tools Config"] C -->|No| G["Skip Language Instructions"]Changes walkthrough 📝
utils.py
Add language-specific instruction merging logicpr_agent/git_providers/utils.py
• Import
DynaBoxfrom dynaconf utilities• Add logic to check
response_languagesetting• Append language-specific instructions to
PR tools when non-English locale is set
• Update
extra_instructionsfor PR description, code suggestions, and reviewer tools