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

Akg/webhook callback flow bugfix #45

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

avikalpg
Copy link
Member

@avikalpg avikalpg commented Oct 30, 2023

Please check the action items covered in the PR -

  • Build is running
  • Eventing is functional and tested
  • Unit or integration tests added and running
  • Manual QA

Summary by CodeRabbit

New Features:

  • Introduced a new Docker build command with several build arguments for enhanced configuration.
  • Added modules to handle pull requests and webhooks from Bitbucket, improving integration capabilities.
  • Implemented functions to retrieve, process, and store pull request information from Bitbucket, enhancing data management.
  • Added a new PrInfo struct for better handling of pull request information.

Refactor:

  • Modified existing functions to handle errors and parse responses more effectively, improving reliability.
  • Updated the handle_install_bitbucket function to process pull requests concurrently, enhancing performance.

Chores:

  • Added new dependencies for better functionality.
  • Removed unnecessary import statements, improving code cleanliness.

Note: The changes in this release are primarily backend improvements and may not result in noticeable changes for end-users.

…ate, and didn't run update-pr-in-db on creation
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 30, 2023

Walkthrough

The changes primarily focus on integrating Bitbucket support into the existing codebase. This includes adding new modules and functions to handle Bitbucket pull requests, modifying existing functions to accommodate Bitbucket data, and updating Docker build commands. Additionally, debugging print statements were added in the review module, and a new data structure was introduced in the utils module.

Changes

File(s) Summary
ablejobs_command.txt Added a new Docker build command with several build arguments.
vibi-dpu/src/bitbucket/... Added new modules prs and webhook to handle Bitbucket pull requests.
vibi-dpu/src/core/review.rs Added print statements for debugging purposes.
vibi-dpu/src/core/setup.rs Removed reqwest::Client import, added new import statements, and modified handle_install_bitbucket function to handle Bitbucket pull requests.
vibi-dpu/src/db/... Added new modules prs and repo_config. Updated functions in prs.rs to handle Bitbucket pull request data.
vibi-dpu/src/pubsub/listener.rs Updated process_message function and added new functions to handle Bitbucket events and data.
vibi-dpu/src/utils/... Added new modules repo_config and pr_info. Introduced a new struct PrInfo in pr_info.rs.

Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai help to get help.
  • @coderabbitai resolve to resolve all the CodeRabbit review comments.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.json

@sonarcloud
Copy link

sonarcloud bot commented Oct 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@avikalpg avikalpg changed the base branch from main to tr/ablejobs October 30, 2023 07:23
@tapishr tapishr merged commit 3a591cf into tr/ablejobs Oct 30, 2023
3 checks passed
@avikalpg avikalpg deleted the akg/webhook_callback_flow-bugfix branch October 30, 2023 07:25
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.

2 participants