Connect Bitbucket
1
Open Bitbucket integration settings
In the Upsun Dispatch console, open your organization settings, go to Integrations, and choose Bitbucket.
2
Install the app in Bitbucket
A Bitbucket workspace admin installs the Upsun Dispatch app from Bitbucket by selecting Install app.
3
Connect the Bitbucket workspace
A Bitbucket workspace owner connects the Bitbucket workspace to your Upsun Dispatch organization by entering its workspace ID. Bitbucket asks the owner to sign in only to verify ownership.
4
Connect repository with read access
Select Connect repository and provide a repository access token with the Repositories: Read scope. This is enough for Code review.
5
Optional: add a push token
Add a repository push token with the Repositories: Write scope so Issue to code can push branches and open Bitbucket pull requests. Without this token, Issue to code stops at the start, before planning, and asks for one.
Review Bitbucket pull requests
When Bitbucket is connected, Upsun Dispatch can run Code review on Bitbucket pull requests. Code review can start in two ways:- Automatic reviews start from supported Bitbucket pull request activity when Code review trigger mode is automatic.
- Manual reviews start from whole-message comments on a Bitbucket pull request, such as
@upsun-dispatch review,@upsun-dispatch full review, or@upsun-dispatch cancel.
Use Issue to code with Bitbucket
Bitbucket is a version control system integration. It is independent from ticketing integrations, so your organization can use Bitbucket for pull request review while using a separate ticketing integration to start Issue to code. Issue to code can open Bitbucket pull requests when the repository has a push token with the Repositories: Write scope. If a repository has no push token, Issue to code stops at the start, before planning, and asks for one instead of publishing changes to that Bitbucket repository. For Issue to code behavior, see Issue to code.Manage the Bitbucket connection
Return to Settings > Integrations > Bitbucket to view the Bitbucket connection, connect additional Bitbucket repositories, and add repository tokens when needed. For the broader integrations list, see Integration overview.Troubleshooting
Bitbucket does not appear in integrations
Open Settings > Integrations for the organization where you want to connect the repository. If Bitbucket is still not available there, confirm that you are using the intended Upsun Dispatch organization.A pull request comment does not start a review
Check that the comment is on a Bitbucket pull request and that the entire comment body is a supported command, such as@upsun-dispatch review. Comments with additional text do not start Code review.