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

Enhancements to PR Code Suggestions Handling and Configuration #546

Merged
merged 5 commits into from
Dec 24, 2023

Commits on Dec 24, 2023

  1. feat: Refactor code suggestion handling and update YAML schema in pr_…

    …code_suggestions.py and pr_code_suggestions_prompts.toml
    
    - Update key names in pr_code_suggestions.py to use snake_case for consistency
    - Implement removal of invalid suggestions where existing code is equal to improved code
    - Update YAML parsing in _prepare_pr_code_suggestions method to include keys_fix_yaml parameter
    - Refactor push_inline_code_suggestions method to use updated key names
    - Update _prepare_prediction_extended method to use new key names
    - Refactor _prepare_markdown method to include suggestion label and use updated key names
    - Update instructions and YAML schema in pr_code_suggestions_prompts.toml to reflect changes in pr_code_suggestions.py
    - Remove redundant removal of invalid suggestions in rank_suggestions method
    mrT23 committed Dec 24, 2023
    Configuration menu
    Copy the full SHA
    5dc2595 View commit details
    Browse the repository at this point in the history
  2. feat: Update inline comment creation in git providers and improve cod…

    …e suggestion handling
    
    - Update `create_inline_comment` method in various git providers to include `absolute_position` parameter
    - Remove `create_inline_comment` method from providers that do not support inline comments
    - Enhance `find_line_number_of_relevant_line_in_file` function to handle absolute position
    - Modify `pr_code_suggestions.py` to handle improved code inclusion in suggestions
    - Add `include_improved_code` configuration option in `configuration.toml` and update documentation accordingly
    mrT23 committed Dec 24, 2023
    Configuration menu
    Copy the full SHA
    5c49ff2 View commit details
    Browse the repository at this point in the history
  3. prompt

    mrT23 committed Dec 24, 2023
    Configuration menu
    Copy the full SHA
    47b267a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5fd3fdf View commit details
    Browse the repository at this point in the history
  5. fixed bug

    mrT23 committed Dec 24, 2023
    Configuration menu
    Copy the full SHA
    663632e View commit details
    Browse the repository at this point in the history