Skip to content

Update bito-cra.properties #51

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

Merged
merged 3 commits into from
Apr 13, 2025
Merged

Update bito-cra.properties #51

merged 3 commits into from
Apr 13, 2025

Conversation

thejeshwar-reddy-yerasi-bito
Copy link
Contributor

@thejeshwar-reddy-yerasi-bito thejeshwar-reddy-yerasi-bito commented Apr 8, 2025

Summary by Bito

This PR refines branch handling by replacing 'include_branches' with more specific 'include_source_branches' and 'include_target_branches' parameters across configuration and script files. The changes consistently update conditional logic and command formation in PowerShell and Shell scripts to align with the new parameter structure, enhancing clarity and precision in branch management.

Unit tests added: False

Estimated effort to review (1-5, lower is better): 1

Copy link

Repository not enabled for automatic review

The Bito agent is set up, but this repository is not enabled for automatic code reviews. To review this pull request, type /review in a comment and save it.

You can enable automatic reviews in the agent setup here or contact your Bito workspace admin at mukeshbito4@mailinator.com.

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

Refer to the documentation for additional commands.

Configuration
This repository uses Default Agent You can customize the agent settings here or contact your Bito workspace admin at mukeshbito4@mailinator.com.

Documentation & Help

@BitoAgent
Copy link
Collaborator

BitoAgent commented Apr 8, 2025

Code Review Agent Run Status

  • Limitations and other issues: ❌ Failure - Bito Automatic Review Skipped - Files Excluded

    Bito didn't auto-review because all changed files are in the exclusion list.
    To trigger review, type /review in the comment and save.
    You can change the excluded files settings here, or contact the agent instance creator at nisha.kumari@bito.ai.

Copy link

@aashishchauhan06 aashishchauhan06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@BitoAgent
Copy link
Collaborator

BitoAgent commented Apr 8, 2025

Code Review Agent Run #e2b0fa

Actionable Suggestions - 1
  • cra-scripts/bito-cra.sh - 1
    • Removed parameter breaks backward compatibility · Line 602-605
Review Details
  • Files reviewed - 2 · Commit Range: ca45cdc..9c6f34f
    • cra-scripts/bito-cra.ps1
    • cra-scripts/bito-cra.sh
  • Files skipped - 1
    • cra-scripts/bito-cra.properties - Reason: Filter setting
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

Refer to the documentation for additional commands.

Configuration

This repository uses BitoAgentGithubCRAInstance You can customize the agent settings here or contact your Bito workspace admin at mukesh.agarwal@bito.co.

Documentation & Help

AI Code Review powered by Bito Logo

@BitoAgent
Copy link
Collaborator

BitoAgent commented Apr 8, 2025

Changelist by Bito

This pull request implements the following key changes.

Key Change Files Impacted
Feature Improvement - Enhanced Branch Parameter Handling

bito-cra.properties - Updated property keys by replacing 'include_branches' with 'include_source_branches' and 'include_target_branches'.

bito-cra.ps1 - Modified PowerShell script to update conditional checks and docker command parameters, replacing 'include_branches' with distinct source and target branch parameters across multiple hunks.

bito-cra.sh - Refactored Shell script commands to use 'include_source_branches' and 'include_target_branches', streamlining branch parameter handling.

Comment on lines +602 to +605
elif [ "$param" == "include_source_branches" ]; then
docker_cmd+=" --include_source_branches='${props[$param]}'"
elif [ "$param" == "include_target_branches" ]; then
docker_cmd+=" --include_target_branches='${props[$param]}'"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed parameter breaks backward compatibility

The code replaces include_branches with two separate parameters include_source_branches and include_target_branches, which is a logical improvement but the old parameter handling is completely removed. This could break backward compatibility for scripts using the old parameter.

Code suggestion
Check the AI-generated fix before applying
Suggested change
elif [ "$param" == "include_source_branches" ]; then
docker_cmd+=" --include_source_branches='${props[$param]}'"
elif [ "$param" == "include_target_branches" ]; then
docker_cmd+=" --include_target_branches='${props[$param]}'"
elif [ "$param" == "include_branches" ]; then
echo "Warning: 'include_branches' is deprecated. Please use 'include_source_branches' and 'include_target_branches' instead."
docker_cmd+=" --include_branches='${props[$param]}'"
elif [ "$param" == "include_source_branches" ]; then
docker_cmd+=" --include_source_branches='${props[$param]}'"
elif [ "$param" == "include_target_branches" ]; then
docker_cmd+=" --include_target_branches='${props[$param]}'"

Code Review Run #e2b0fa


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@thejeshwar-reddy-yerasi-bito
Copy link
Contributor Author

/review

@BitoAgent
Copy link
Collaborator

BitoAgent commented Apr 9, 2025

Code Review Agent Run #a1a598

Actionable Suggestions - 0
Review Details
  • Files reviewed - 3 · Commit Range: ca45cdc..9c6f34f
    • cra-scripts/bito-cra.properties
    • cra-scripts/bito-cra.ps1
    • cra-scripts/bito-cra.sh
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

Refer to the documentation for additional commands.

Configuration

This repository uses BitoAgentGithubCRAInstance You can customize the agent settings here or contact your Bito workspace admin at mukesh.agarwal@bito.co.

Documentation & Help

AI Code Review powered by Bito Logo

Copy link
Collaborator

@adhirpotdarbito adhirpotdarbito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@adhirpotdarbito adhirpotdarbito merged commit bae3b3d into main Apr 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants