Skip to content
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

Create Readme.md #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Create Readme.md #1

wants to merge 2 commits into from

Conversation

ntindle
Copy link
Member

@ntindle ntindle commented Apr 24, 2024

Type

documentation


Description

  • Introduced a README.md file to guide users and contributors:
    • Describes the purpose of the repository.
    • Provides installation instructions.
    • Outlines usage guidelines.
    • Explains how to contribute to the project.

Changes walkthrough

Relevant files
Documentation
Readme.md
Creation of README.md for PR-Agent Configuration                 

Readme.md

  • Created a comprehensive README.md for the PR-Agent Configuration
    Repository.
  • Included sections on Installation, Usage, and Contributing.
  • +15/-0   

    PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    @CodiumAI-Agent
    Copy link

    Preparing PR description...

    @CodiumAI-Agent
    Copy link

    PR Review

    ⏱️ Estimated effort to review [1-5]

    1, because the PR consists of a single line addition in a non-code file (Readme.md), which is straightforward and requires minimal technical review.

    🏅 Score

    95

    🧪 Relevant tests

    No

    🎫 Relevant ticket

    No

    🔍 Possible issues

    No

    🔒 Security concerns

    No

    🔀 Multiple PR themes

    No


    ✨ Review tool usage guide:

    Overview:
    The review tool scans the PR code changes, and generates a PR review which includes several types of feedbacks, such as possible PR issues, security threats and relevant test in the PR. More feedbacks can be added by configuring the tool.

    The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.

    • When commenting, to edit configurations related to the review tool (pr_reviewer section), use the following template:
    /review --pr_reviewer.some_config1=... --pr_reviewer.some_config2=...
    
    [pr_reviewer]
    some_config1=...
    some_config2=...
    

    See the review usage page for a comprehensive guide on using this tool.

    Readme.md Outdated Show resolved Hide resolved
    Co-authored-by: CodiumAI-Agent <[email protected]>
    @ntindle
    Copy link
    Member Author

    ntindle commented Apr 24, 2024

    /config

    @CodiumAI-Agent
    Copy link

    Possible Configurations:

    pr_custom_suggestions.prompt = 'The suggestions should focus only on the following:\n- ...\n- ...\n...\n'
    pr_custom_suggestions.num_code_suggestions = 4
    pr_custom_suggestions.num_code_suggestions_per_chunk = 4
    pr_custom_suggestions.enable_help_text = True

    pr_find_similar_component.class_name = ''
    pr_find_similar_component.file = ''
    pr_find_similar_component.search_from_org = False
    pr_find_similar_component.allow_fallback_less_words = True
    pr_find_similar_component.number_of_keywords = 5
    pr_find_similar_component.number_of_results = 5

    pr_reviewer.require_score_review = True
    pr_reviewer.require_tests_review = True
    pr_reviewer.require_estimate_effort_to_review = True
    pr_reviewer.require_can_be_split_review = True
    pr_reviewer.require_soc2_ticket = True
    pr_reviewer.soc2_ticket_prompt = 'Does the PR description include a link to ticket in a project management system (e.g., GitHub Issues, Linear) ?'
    pr_reviewer.num_code_suggestions = 4
    pr_reviewer.inline_code_comments = True
    pr_reviewer.ask_and_reflect = False
    pr_reviewer.persistent_comment = True
    pr_reviewer.extra_instructions = ''
    pr_reviewer.final_update_message = True
    pr_reviewer.enable_review_labels_security = True
    pr_reviewer.enable_review_labels_effort = True
    pr_reviewer.require_all_thresholds_for_incremental_review = False
    pr_reviewer.minimal_commits_for_incremental_review = 0
    pr_reviewer.minimal_minutes_for_incremental_review = 0
    pr_reviewer.enable_help_text = True
    pr_reviewer.enable_auto_approval = False
    pr_reviewer.maximal_review_effort = 5

    pr_description.publish_labels = True
    pr_description.add_original_user_description = True
    pr_description.generate_ai_title = False
    pr_description.use_bullet_points = True
    pr_description.extra_instructions = ''
    pr_description.enable_pr_type = True
    pr_description.final_update_message = True
    pr_description.enable_help_text = False
    pr_description.enable_help_comment = True
    pr_description.publish_description_as_comment = False
    pr_description.publish_description_as_comment_persistent = True
    pr_description.enable_semantic_files_types = True
    pr_description.collapsible_file_list = 'adaptive'
    pr_description.inline_file_summary = 'table'
    pr_description.use_description_markers = False
    pr_description.include_generated_by_header = True
    pr_description.custom_labels = ['bug', 'duplicate', 'enhancement', 'documentation', 'question']

    pr_questions.enable_help_text = True

    pr_code_suggestions.max_context_tokens = 8000
    pr_code_suggestions.num_code_suggestions = 4
    pr_code_suggestions.commitable_code_suggestions = True
    pr_code_suggestions.extra_instructions = ''
    pr_code_suggestions.rank_suggestions = False
    pr_code_suggestions.enable_help_text = True
    pr_code_suggestions.persistent_comment = False
    pr_code_suggestions.auto_extended_mode = True
    pr_code_suggestions.num_code_suggestions_per_chunk = 4
    pr_code_suggestions.max_number_of_calls = 5
    pr_code_suggestions.parallel_calls = True
    pr_code_suggestions.rank_extended_suggestions = True
    pr_code_suggestions.final_clip_factor = 0.8

    pr_add_docs.extra_instructions = ''
    pr_add_docs.docs_style = 'Sphinx Style'
    pr_add_docs.file = ''
    pr_add_docs.class_name = ''

    pr_update_changelog.push_changelog_changes = True
    pr_update_changelog.extra_instructions = ''

    pr_analyze.enable_help_text = True

    pr_test.extra_instructions = ''
    pr_test.testing_framework = 'pytest'
    pr_test.num_tests = 5
    pr_test.avoid_mocks = True
    pr_test.file = ''
    pr_test.class_name = ''
    pr_test.enable_help_text = True

    pr_improve_component.num_code_suggestions = 4
    pr_improve_component.extra_instructions = ''
    pr_improve_component.file = ''
    pr_improve_component.class_name = ''

    pr_similar_issue.skip_comments = False
    pr_similar_issue.force_update_dataset = False
    pr_similar_issue.max_issues_to_scan = 500
    pr_similar_issue.vectordb = 'lancedb'

    @ntindle
    Copy link
    Member Author

    ntindle commented Apr 24, 2024

    /analysis

    @ntindle
    Copy link
    Member Author

    ntindle commented Apr 24, 2024

    /analyze

    @CodiumAI-Agent
    Copy link

    The analyze command only supports the following languages: python, java, cpp, javascript, typescript, jsx, tsx, csharp

    @ntindle
    Copy link
    Member Author

    ntindle commented Apr 25, 2024

    /analyze

    Copy link

    The analyze command only supports the following languages: python, java, cpp, javascript, typescript, jsx, tsx, csharp

    @ntindle
    Copy link
    Member Author

    ntindle commented Apr 25, 2024

    /describe

    @codiumai-pr-agent-pro codiumai-pr-agent-pro bot added the documentation Improvements or additions to documentation label Apr 25, 2024
    Copy link

    PR Description updated to latest commit (ad2b8d3)

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    documentation Improvements or additions to documentation
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    None yet

    2 participants