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

Bitbucket pipeline error #384

Closed
SergioSuarezDev opened this issue Oct 17, 2023 · 7 comments
Closed

Bitbucket pipeline error #384

SergioSuarezDev opened this issue Oct 17, 2023 · 7 comments
Labels

Comments

@SergioSuarezDev
Copy link

SergioSuarezDev commented Oct 17, 2023

We have this error trying to add bitbucket following this method (9)
https://github.com/Codium-ai/pr-agent/blob/main/INSTALL.md#method-9-run-as-a-bitbucket-pipeline

GitHub token is required when using user deployment.

+ docker run -e OPENAI_API_KEY=$OPENAI_API_KEY -e BITBUCKET_BEARER_TOKEN=$BITBUCKET_BEARER_TOKEN -e BITBUCKET_PR_ID=$BITBUCKET_PR_ID -e BITBUCKET_REPO_SLUG=$BITBUCKET_REPO_SLUG -e BITBUCKET_WORKSPACE=$BITBUCKET_WORKSPACE bitbucket_runner:latest

An error occurred: GitHub token is required when using user deployment. See: https://github.com/Codium-ai/pr-agent#method-2-run-from-source
@SergioSuarezDev
Copy link
Author

Could be related with this?
#334

@okotek
Copy link
Contributor

okotek commented Oct 18, 2023

Hi @SergioSuarezDev
I modified the instructions and removed redundant code here #386
You can check the instructions in that PR to update your pipeline, it should only use the default codiumai/pr-agent:latest docker image. We'll merge this soon.
I verified that it works, please try and update here

@SergioSuarezDev
Copy link
Author

Will try and give you feedback asap, thx

@SergioSuarezDev
Copy link
Author

SergioSuarezDev commented Oct 18, 2023

I can confirm that it works! and show the first PR Analysis
But I can't write commands in Bitbucket, I think it works differently than Github

@praveenpnj94
Copy link

Shows PR analysis. But unlike github , no other options are present such as /review and /describe.

@praveenpnj94
Copy link

This doesn't show file by file review of the PR.

@okotek
Copy link
Contributor

okotek commented Oct 26, 2023

You're right, the pipeline example in the documentation is only triggered on PR open. To handle comments in BitBucket pipelines we'd need to write a handler function and call it when the event is triggered. We'd appreciate community contribution on this.

You can also check the option to run as a Bitbucket app, you can try to use the BitBucket server implementation. We have a hosted solution at CodiumAI if that would interest you (contact support@codium.ai for details).

@okotek okotek added the solved label Oct 26, 2023
@mrT23 mrT23 closed this as completed Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants