Overview
HelixCommit integrates with Bitbucket Cloud’s API to enrich your release notes with pull request information, author details, and comparison links. This integration is optional but highly recommended for repositories hosted on Bitbucket.Bitbucket integration works with Bitbucket Cloud (bitbucket.org). For private repositories, you’ll need to provide an App Password or access token with appropriate permissions.
Benefits of Bitbucket integration
Pull request links
Automatically link commits to their associated pull requests for better traceability
Author attribution
Show who contributed each change, recognizing team members and external contributors
Compare URLs
Generate comparison links between versions to see all changes in Bitbucket’s UI
Rich metadata
Include PR descriptions and reviewer information in your release notes
Quick start
Enable Bitbucket integration
Simply set your Bitbucket token and HelixCommit will automatically fetch PR data:That’s it! HelixCommit automatically detects Bitbucket repositories and enriches the output.
Disable Bitbucket integration
Work offline or skip PR lookups:Authentication
Creating a Bitbucket App Password
Navigate to Bitbucket settings
Go to bitbucket.org/account/settings/app-passwords and click Create app password.
Select permissions
- Public repositories
- Private repositories
Minimum required permissions:
- Repositories: Read
- Higher rate limits
- Better reliability
What gets enriched
Pull request resolution
HelixCommit automatically finds PRs associated with commits:- Before Bitbucket integration
- After Bitbucket integration
Compare URLs
Automatic comparison links between versions:Commit-to-PR mapping
HelixCommit uses multiple strategies to find related PRs:- PR number in commit message:
feat: Add feature (#123) - Merged in pattern:
Merged in feature-branch (pull request #123) - Bitbucket API lookup: Search by commit SHA
Using Conventional Commits with PR numbers in messages improves accuracy and reduces API calls.
Rate limiting
Understanding Bitbucket rate limits
| Authentication | Rate limit | Notes |
|---|---|---|
| Unauthenticated | 60 requests/hour | Per IP address |
| Authenticated | 1,000 requests/hour | Per user |
How HelixCommit handles rate limits
HelixCommit automatically manages rate limits:Caching
Enable Bitbucket API caching
Reduce API calls and improve performance:Cache structure
Cached data is stored as JSON files:Configuration options
Environment variables
Bitbucket App Password for API authentication.
Maximum number of retry attempts for failed API requests.
Initial delay in seconds for exponential backoff.
Maximum delay in seconds between retries.
Enable persistent caching of Bitbucket API responses.Valid values:
1, true, yes, onDirectory for storing cached Bitbucket API responses.
Cache time-to-live in minutes.
CLI flags
Provide Bitbucket token via command line.
Disable Bitbucket PR lookups entirely.Useful for:
- Offline work
- Faster generation when PR data isn’t needed
Troubleshooting
API rate limit exceeded
API rate limit exceeded
If you hit rate limits:
-
Use authentication:
-
Enable caching:
-
Reduce API calls:
Permission denied errors
Permission denied errors
Verify your App Password has correct permissions:
- Go to bitbucket.org/account/settings/app-passwords
- Check the App Password has
Repositories: ReadandPull requests: Read - Test authentication:
Pull requests not found
Pull requests not found
If PRs aren’t being linked:
-
Check commit messages:
Ensure PR numbers are mentioned:
feat: Add feature (#123) -
Verify Bitbucket token:
-
Test without caching:
-
Check repository remote:
Repository not detected as Bitbucket
Repository not detected as Bitbucket
Ensure your remote URL contains “bitbucket.org”:
Bitbucket Pipelines integration
Using repository variables
Store your App Password securely in repository variables:With caching
Best practices
Use consistent commit message format
Use consistent commit message format
Include PR numbers in commit messages:
Enable caching in CI/CD
Enable caching in CI/CD
Test without Bitbucket first
Test without Bitbucket first
Verify basic functionality before enabling Bitbucket integration:
Next steps
Configuration
Configure Bitbucket integration settings
Examples
See Bitbucket integration in action
CI/CD integration
Automate release notes in Bitbucket Pipelines
Conventional Commits
Learn about commit message format