Skip to main content

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

1

Navigate to Bitbucket settings

Go to bitbucket.org/account/settings/app-passwords and click Create app password.
2

Select permissions

Minimum required permissions:
  • Repositories: Read
With an app password:
  • Higher rate limits
  • Better reliability
3

Set the token

Never commit tokens to version control. Use environment variables or repository variables.

What gets enriched

Pull request resolution

HelixCommit automatically finds PRs associated with commits:

Compare URLs

Automatic comparison links between versions:

Commit-to-PR mapping

HelixCommit uses multiple strategies to find related PRs:
  1. PR number in commit message: feat: Add feature (#123)
  2. Merged in pattern: Merged in feature-branch (pull request #123)
  3. 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

How HelixCommit handles rate limits

HelixCommit automatically manages rate limits:
1

Respects Retry-After headers

Reads Retry-After header and waits accordingly.
2

Exponential backoff

Retries failed requests with increasing delays.
3

Smart caching

Caches API responses to reduce duplicate requests.

Caching

Enable Bitbucket API caching

Reduce API calls and improve performance:

Cache structure

Cached data is stored as JSON files:

Configuration options

Environment variables

string
required
Bitbucket App Password for API authentication.
integer
default:"3"
Maximum number of retry attempts for failed API requests.
float
default:"0.5"
Initial delay in seconds for exponential backoff.
float
default:"8"
Maximum delay in seconds between retries.
boolean
default:"false"
Enable persistent caching of Bitbucket API responses.
Valid values: 1, true, yes, on
path
default:".helixcommit-cache/bitbucket"
Directory for storing cached Bitbucket API responses.
integer
default:"10"
Cache time-to-live in minutes.

CLI flags

string
Provide Bitbucket token via command line.
Prefer environment variables over command-line flags to avoid exposing tokens in shell history.
boolean
Disable Bitbucket PR lookups entirely.
Useful for:
  • Offline work
  • Faster generation when PR data isn’t needed

Troubleshooting

If you hit rate limits:
  1. Use authentication:
  2. Enable caching:
  3. Reduce API calls:
Verify your App Password has correct permissions:
  1. Go to bitbucket.org/account/settings/app-passwords
  2. Check the App Password has Repositories: Read and Pull requests: Read
  3. Test authentication:
If PRs aren’t being linked:
  1. Check commit messages:
    Ensure PR numbers are mentioned: feat: Add feature (#123)
  2. Verify Bitbucket token:
  3. Test without caching:
  4. Check repository remote:
Ensure your remote URL contains “bitbucket.org”:

Bitbucket Pipelines integration

Using repository variables

Store your App Password securely in repository variables:

With caching

Store the App Password in Repository settings > Repository variables as a secured variable.

Best practices

Include PR numbers in commit messages:
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