Skip to content

Commit

Permalink
Add .pr_agent.toml configuration file for PR-Agent
Browse files Browse the repository at this point in the history
This commit introduces a new configuration file, .pr_agent.toml, which is used to manage and customize the behavior of CodiumAI's PR-Agent. Among the settings controlled are inline code comments, automatic review and approval, and specific parameters for incremental reviews. Also configured are the commands that GitHub's PR-Commands and push commands should use.
  • Loading branch information
MarjovanLier committed Feb 18, 2024
1 parent a185af1 commit 770ea9f
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .pr_agent.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[pr_reviewer]
inline_code_comments = true
ask_and_reflect = true
automatic_review = true
remove_previous_review_comment = true
persistent_comment = true
extra_instructions = ""
enable_review_labels_security = true
enable_review_labels_effort = true
require_all_thresholds_for_incremental_review = false
minimal_commits_for_incremental_review = 0
minimal_minutes_for_incremental_review = 0
enable_help_text = false
enable_auto_approval = true
maximal_review_effort = 5

[pr_code_suggestions]
summarize = true

[pr_update_changelog]
push_changelog_changes=true

[github_action_config]
auto_review = true
auto_describe = true
auto_improve = true

[github_app]
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=true",
"/improve --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=true",
"/improve --pr_code_suggestions.summarize=true",
"""/auto_review -i \
--pr_reviewer.require_focused_review=false \
--pr_reviewer.require_score_review=false \
--pr_reviewer.require_tests_review=false \
--pr_reviewer.require_estimate_effort_to_review=false \
--pr_reviewer.num_code_suggestions=0 \
--pr_reviewer.inline_code_comments=true \
--pr_reviewer.remove_previous_review_comment=true \
--pr_reviewer.require_all_thresholds_for_incremental_review=false \
--pr_reviewer.minimal_commits_for_incremental_review=5 \
--pr_reviewer.minimal_minutes_for_incremental_review=30 \
--pr_reviewer.extra_instructions='' \
""",
"/review auto_approve --pr_reviewer.num_code_suggestions=0 --pr_reviewer.inline_code_comments=true"
]

0 comments on commit 770ea9f

Please sign in to comment.