-
Notifications
You must be signed in to change notification settings - Fork 739
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
PR Agent shows Empty Diff when using bitbucket server token #1617
Comments
this is too general. Bitbucket server access works for other users. try to run from CLI, catch breakpoints, and understand why the diff is empty. Are the PR files actually not read ? maybe they are not code files, and are filtered ? other reasons ? after understanding that, share more details |
I've run this via the docker image and it is working as expected. However, I am getting errors trying to execute the pr_agent python package. Removing the verbosity setting from my configuration revealed the following error: Failed to generate prediction with gpt-4o: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Here is the configuration I am using: When running via docker image with the same configuration, the review successfully executes |
Git provider
Bitbucket Server
System Info
CONFIG.git_provider = bitbucket_server
bitbucket_server.bearer_token = /my-token/
CONFIG.model = gpt-4o
OPENAI.API_TYPE = azure
OPENAI.KEY = /my-key/
Bug details
I have a bitbucket HTTP Rest token configured with Project and Repo write permissions. When I call the agent pointing to my PR, I get the following error claiming empty diff, even though my diff is not empty:
2025-03-11 15:24:47.103 | INFO | pr_agent.tools.pr_reviewer:run:111 - Reviewing PR: /pr-url/...
2025-03-11 15:24:47.223 | INFO | pr_agent.algo.pr_processing:get_pr_diff:63 - PR main language: Other
2025-03-11 15:24:47.251 | INFO | pr_agent.algo.pr_processing:get_pr_diff:74 - Tokens: 1029, total tokens under limit: 32000, returning full diff.
2025-03-11 15:24:47.252 | WARNING | pr_agent.tools.pr_reviewer:_prepare_prediction:165 - Empty diff for PR: /pr-url/
The text was updated successfully, but these errors were encountered: