-
Notifications
You must be signed in to change notification settings - Fork 380
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
Enhancements to 'improve' tool, updates to related documentation and configurations #598
Conversation
PR Description updated to latest commit (58163e5) |
PR Analysis
PR Feedback💡 General suggestions: The PR is well-structured and the changes are well-documented. However, it would be beneficial to add tests to verify the new functionality and changes. This would help ensure that the changes work as expected and do not introduce any regressions. 🤖 Code feedback:
✨ Usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Usage guide:Overview:
With a configuration file, use the following template:
See the improve usage page for a more comprehensive guide on using this tool. |
PR Description updated to latest commit (2132771) |
Preparing PR description... |
2 similar comments
Preparing PR description... |
Preparing PR description... |
PR Description updated to latest commit (8f510dc) |
Preparing PR description... |
1 similar comment
Preparing PR description... |
Preparing PR description... |
PR Description updated to latest commit (8f510dc) |
Preparing PR description... |
PR Description updated to latest commit (8f510dc) |
PR Description updated to latest commit (8f510dc) |
Preparing PR description... |
1 similar comment
Preparing PR description... |
Preparing PR description... |
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.
File changes summary
Main theme - Addition of 'improve' tool usage guide
Addition of 'improve' tool usage guide
- Added a new method
get_improve_usage_guide
which generates a
comprehensive guide for using the 'improve' tool.
PR Description updated to latest commit (8f510dc) |
PR AnalysisHere is a list of code components that were changed in this PR:
✨ Usage guide:Using static code analysis capabilities, the
Language that are currently supported: Python, Java, C++, JavaScript, TypeScript. |
Tests for 'generate_summarized_suggestions' methodPR-Agent tests for code changes in
|
/test generate_summarized_suggestions |
Enhancements to the 'improve' tool and updates to the related documentation
/analyze |
PR Analysis 🔬
💡 Usage guide:Using static code analysis capabilities, the The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR:
Language that are currently supported: Python, Java, C++, JavaScript, TypeScript, C#. |
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.
👍
/test generate_summarized_suggestions |
Generated tests for 'generate_summarized_suggestions' ✏️️
Component signature: def generate_summarized_suggestions(self, data: Dict) -> str:
|
/analyze |
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Analysis 🔬
💡 Usage guide:Using static code analysis capabilities, the The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR:
Language that are currently supported: Python, Java, C++, JavaScript, TypeScript, C#. |
Type
Enhancement, Documentation
Description
pr_agent/servers/help.py
.pr_agent/tools/pr_code_suggestions.py
to include the usage guide in the PR body if theenable_help_text
configuration is set to true.docs/IMPROVE.md
to reflect the changes made to the tool.enable_help_text
inpr_agent/settings/configuration.toml
to control whether the usage guide should be included in the PR body.Changes walkthrough
help.py
Addition of 'improve' tool usage guide
pr_agent/servers/help.py
- Added a new method
get_improve_usage_guide
which generates acomprehensive guide for using the 'improve' tool.
pr_code_suggestions.py
Enhancements to PR code suggestions tool
pr_agent/tools/pr_code_suggestions.py
- Modified the
- Renamed
run
method to include the usage guide in the PR body ifthe
enable_help_text
configuration is set to true.publish_summarizes_suggestions
togenerate_summarized_suggestions
and modified it to return the PR body instead of publishing it directly.
IMPROVE.md
Updates to 'improve' tool documentation
docs/IMPROVE.md
- Updated the documentation to reflect the changes made to the 'improve'
- Added information about the new 'summarize' and
tool.
'enable_help_text' configuration options.
configuration.toml
Addition of new configuration option
pr_agent/settings/configuration.toml
- Added a new configuration option
enable_help_text
under thepr_code_suggestions
section.✨ Usage guide:
Overview:
The
describe
tool scans the PR code changes, and generates a description for the PR - title, type, summary, walkthrough and labels. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.When commenting, to edit configurations related to the describe tool (
pr_description
section), use the following template:With a configuration file, use the following template:
Enabling\disabling automation
meaning the
describe
tool will run automatically on every PR, will keep the original title, and will add the original user description above the generated description.the tool will replace every marker of the form
pr_agent:marker_name
in the PR description with the relevant content, wheremarker_name
is one of the following:type
: the PR type.summary
: the PR summary.walkthrough
: the PR walkthrough.Note that when markers are enabled, if the original PR description does not contain any markers, the tool will not alter the description at all.
Custom labels
The default labels of the
describe
tool are quite generic: [Bug fix
,Tests
,Enhancement
,Documentation
,Other
].If you specify custom labels in the repo's labels page or via configuration file, you can get tailored labels for your use cases.
Examples for custom labels:
Main topic:performance
- pr_agent:The main topic of this PR is performanceNew endpoint
- pr_agent:A new endpoint was added in this PRSQL query
- pr_agent:A new SQL query was added in this PRDockerfile changes
- pr_agent:The PR contains changes in the DockerfileThe list above is eclectic, and aims to give an idea of different possibilities. Define custom labels that are relevant for your repo and use cases.
Note that Labels are not mutually exclusive, so you can add multiple label categories.
Make sure to provide proper title, and a detailed and well-phrased description for each label, so the tool will know when to suggest it.
More PR-Agent commands
See the describe usage page for a comprehensive guide on using this tool.