Why integrate Devin with Bitbucket?
Integrating Devin with your Bitbucket repositories allows Devin to create pull requests, read and respond to your PR comments, and collaborate effectively with your team. This lets Devin be a true collaborator on your engineering team.Prerequisites
Before setting up the Bitbucket integration, we recommend:- Dedicated service account - Create a new Bitbucket account specifically for Devin (e.g.,
devin@yourcompany.com) rather than using an existing user account for cleaner access management and audit trails
Using a dedicated service account makes it easier to track Devin’s activity, manage permissions, and maintain security best practices across your organization.
Setting up the Integration
The setup is easy! Here’s how to get started:- Create a new Bitbucket account specifically for Devin (just like you’d create a personal account). You’ll use this account, not your personal one, during the integration process.
- In your Devin account, go to Settings > Integrations > Bitbucket and click “Connect”.
-
You’ll be redirected to Bitbucket where you should:
- Log in with the Bitbucket account you created for Devin (not your personal account)
- Grant the necessary permissions for Devin to work with your repositories
- Once completed, you’ll return to the Devin settings page where you can confirm the integration is active.
Using Devin with the Bitbucket Integration
After connecting Bitbucket, set up your repositories on Devin’s Machine.While Devin can see and address comments you leave on its pull requests if you ask directly, Devin will not wake up automatically to respond to these comments.
Best Practices
- Create a dedicated Bitbucket account for Devin
- Enable branch protections on main/master branches
- Grant the service account appropriate workspace and repository permissions
