-
Notifications
You must be signed in to change notification settings - Fork 666
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
Refactoring and Enhancement of PR Agent Prompts #501
Conversation
…ns_prompts.toml and pr_update_changelog_prompts.toml
/describe |
PR Analysis
PR Feedback
How to useInstructions
|
PR Code Suggestions💡 Suggestion: Use consistent terminology in the PR Diff example. File: pr_agent/settings/pr_code_suggestions_prompts.toml (5-18) Example code:Existing code: Example for the PR Diff format:
======
## src/file1.py
@@ -12,3 +12,4 @@ def func1():
__new hunk__
12 code line1 that remained unchanged in the PR
14 +new code line1 added in the PR
15 +new code line2 added in the PR
16 code line2 that remained unchanged in the PR
__old hunk__
code line1 that remained unchanged in the PR
-code line that was removed in the PR
code line2 that remained unchanged in the PR Improved code: Example for the PR Diff format:
======
## src/file1.py
@@ -12,3 +12,4 @@ def func1():
__new hunk__
12 code line1 that remained unchanged in the PR
14 +new code line1 added in the PR
15 +new code line2 added in the PR
16 code line3 that remained unchanged in the PR
__old hunk__
code line1 that remained unchanged in the PR
-code line2 that was removed in the PR
code line3 that remained unchanged in the PR 💡 Suggestion: Use consistent formatting for the PR Diff. File: pr_agent/settings/pr_description_prompts.toml (118-121) Example code:Existing code: The PR Diff:
======
{{ diff|trim }}
====== Improved code: The PR Diff:
====== {{ diff|trim }}
💡 Suggestion: Use consistent formatting for the PR Diff. File: pr_agent/settings/pr_reviewer_prompts.toml (224-227) Example code:Existing code: The PR Diff:
======
{{ diff|trim }}
====== Improved code: The PR Diff:
====== {{ diff|trim }}
💡 Suggestion: Use consistent formatting for the PR Diff. File: pr_agent/settings/pr_custom_labels.toml (77-80) Example code:Existing code: The PR Git Diff:
======
{{ diff|trim }}
====== Improved code: The PR Git Diff:
====== {{ diff|trim }}
|
PR Description updated to latest commit (4dcbce4) |
Refactoring and Enhancement of PR Agent Prompts
type:
Refactoring, Enhancement
description:
This PR includes several changes to the PR agent's prompts:
main_files_walkthrough:
files:
pr_agent/settings/pr_add_docs.toml
: Improved the clarity of the instructions for generating documentation. Updated the presentation of PR diffs and extra instructions.pr_agent/settings/pr_code_suggestions_prompts.toml
: Enhanced the instructions for providing code suggestions. Updated the presentation of PR diffs, descriptions, and extra instructions.pr_agent/settings/pr_custom_labels.toml
: Updated the presentation of extra instructions and Pydantic definitions.pr_agent/settings/pr_description_prompts.toml
: Improved the instructions for generating PR descriptions. Updated the presentation of extra instructions and Pydantic definitions.pr_agent/settings/pr_information_from_user_prompts.toml
: Updated the presentation of PR diffs, descriptions, and commit messages.pr_agent/settings/pr_questions_prompts.toml
: Updated the presentation of PR diffs, descriptions, and commit messages.pr_agent/settings/pr_reviewer_prompts.toml
: Updated the presentation of PR diffs, descriptions, commit messages, and questions.pr_agent/settings/pr_sort_code_suggestions_prompts.toml
: Updated the presentation of code suggestions.pr_agent/settings/pr_update_changelog_prompts.toml
: Updated the presentation of PR diffs, descriptions, commit messages, and the CHANGELOG.md file.