Fix/Bitbucket Integration Issues.#27
Merged
Amazing-Stardom merged 16 commits intomasterfrom Apr 25, 2026
Merged
Conversation
LiveReview Pre-Commit Check: ran (iter:1, coverage:0%)
LiveReview Pre-Commit Check: ran (iter:3, coverage:40%)
LiveReview Pre-Commit Check: ran (iter:1, coverage:0%)
LiveReview Pre-Commit Check: ran (iter:4, coverage:69%)
LiveReview Pre-Commit Check: ran (iter:6, coverage:100%)
LiveReview Pre-Commit Check: ran (iter:1, coverage:0%)
LiveReview Pre-Commit Check: ran (iter:2, coverage:59%)
Contributor
Author
|
Severity: info Fix Bitbucket Diff Parsing and Centralize API OperationsOverviewThis change fixes a critical bug in Bitbucket diff parsing for AI comments. It centralizes Bitbucket API network operations into a dedicated package. It also implements robust Bitbucket comment posting and improves context propagation. Technical Highlights
Impact
|
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
Amazing-Stardom
commented
Apr 11, 2026
LiveReview Pre-Commit Check: ran (iter:1, coverage:0%)
LiveReview Pre-Commit Check: ran (iter:1, coverage:0%)
LiveReview Pre-Commit Check: ran (iter:2, coverage:37%)
| if repoURL == "" { | ||
| return nil, fmt.Errorf("failed to create bitbucket provider: repo_url is required but was not provided") | ||
| } | ||
| log.Printf("[DEBUG] Bitbucket token exists: %v, email: %s, repoURL: %s", len(apiToken) > 0, email, repoURL) |
| if repoURL == "" { | ||
| return nil, fmt.Errorf("failed to create bitbucket provider: repo_url is required but was not provided") | ||
| } | ||
| log.Printf("[DEBUG] Bitbucket token exists: %v, email: %s, repoURL: %s", len(apiToken) > 0, email, repoURL) |
LiveReview Pre-Commit Check: ran (iter:1, coverage:0%)
LiveReview Pre-Commit Check: ran (iter:1, coverage:0%)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bitbucket Integrations Issues and Other Small Issues Fixed
Issues in Posting a Comment on a Deleted Line in Bitbucket
This was bug in identifying deleted line comment.
lineIsDeletedfunction not identifying it.The original function was finding the string "-" in diff.
This was getting missed by identification.
This was working correctly in other platforms because they allowed commenting on deleted lines.
Bitbucket had issues with commenting on deleted lines.
As this diff content is formatted with
OLD | NEW | CONTENTlines.I used parsing this data and able to identify deleted line comments correctly.
Fixed it and added a simple test case.
Bitbucket API Issues
This was fixed by adding functions from old commits.
Fixed it by adding more general content.
fixed it by adding discussion ID
Unification of Bitbucket Network