Skip to content

Commit

Permalink
Enhanced PR-Agent configurations in CodiumAI. (#20)
Browse files Browse the repository at this point in the history
Modified configurations for the PR-Agent in CodiumAI. Defined extra instructions for automatic reviews, enabled extended mode for code suggestions and activated push trigger handling. Also, the ranking of code suggestions has been turned on for an optimized review process.
  • Loading branch information
MarjovanLier authored Mar 5, 2024
1 parent fd542a8 commit 4913df9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .pr_agent.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ask_and_reflect = true
automatic_review = true
remove_previous_review_comment = true
persistent_comment = true
extra_instructions = ""
extra_instructions = "Please ensure comments are concise and actionable."
enable_review_labels_security = true
enable_review_labels_effort = true
require_all_thresholds_for_incremental_review = false
Expand All @@ -15,10 +15,14 @@ enable_auto_approval = true
maximal_review_effort = 5

[pr_code_suggestions]
num_code_suggestions = 5
summarize = true
auto_extended_mode = true
rank_suggestions = true
enable_help_text = false

[pr_update_changelog]
push_changelog_changes=false
push_changelog_changes = false

[github_action_config]
auto_review = true
Expand All @@ -29,13 +33,13 @@ auto_improve = true
pr_commands = [
"/describe --pr_description.add_original_user_description=true --pr_description.keep_original_user_title=true",
"/update_changelog --pr_update_changelog.push_changelog_changes=false",
"/improve --pr_code_suggestions.summarize=true",
"/improve --extended --pr_code_suggestions.summarize=true",
"/review auto_approve --pr_reviewer.num_code_suggestions=0 --pr_reviewer.inline_code_comments=true",
]
push_commands = [
"/describe --pr_description.add_original_user_description=true --pr_description.keep_original_user_title=true",
"/update_changelog --pr_update_changelog.push_changelog_changes=false",
"/improve --pr_code_suggestions.summarize=true",
"/improve --extended --pr_code_suggestions.summarize=true",
"""/auto_review -i \
--pr_reviewer.require_focused_review=false \
--pr_reviewer.require_score_review=false \
Expand All @@ -51,3 +55,4 @@ push_commands = [
""",
"/review auto_approve --pr_reviewer.num_code_suggestions=0 --pr_reviewer.inline_code_comments=true"
]
handle_push_trigger = true

0 comments on commit 4913df9

Please sign in to comment.