Skip to main content

Overview

HelixCommit integrates with GitHub’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 GitHub.
GitHub integration works with both public and private repositories. For private repos, you’ll need to provide a GitHub token with appropriate permissions.

Benefits of GitHub 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 GitHub’s UI

Rich metadata

Include PR descriptions, labels, and review information in your release notes

Quick start

Enable GitHub integration

Simply set your GitHub token and HelixCommit will automatically fetch PR data:
That’s it! HelixCommit automatically detects GitHub repositories and enriches the output.

Disable GitHub integration

Work offline or skip PR lookups:

Authentication

Creating a GitHub token

1

Navigate to GitHub settings

Go to github.com/settings/tokens and click Generate new token.Choose between:
  • Classic token - Traditional personal access tokens
  • Fine-grained token - More granular permissions (recommended)
2

Select permissions

No special permissions neededUnauthenticated requests work but have lower rate limits (60 requests/hour).With a token (even without special scopes):
  • Rate limit: 5,000 requests/hour
  • Better reliability
3

Set the token

Never commit tokens to version control. Use environment variables or secret management tools.

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. Merge commit pattern: Merge pull request #123
  3. GitHub API lookup: Search by commit SHA
Using Conventional Commits with PR numbers in messages improves accuracy and reduces API calls.

Rate limiting

Understanding GitHub rate limits

How HelixCommit handles rate limits

HelixCommit automatically manages rate limits:
1

Respects rate limit headers

Reads X-RateLimit-Remaining and stops before hitting the limit.
2

Exponential backoff

Retries failed requests with increasing delays.
3

Smart caching

Caches API responses to reduce duplicate requests.

Monitoring rate limit usage

Check your current rate limit status:
Enable caching in CI/CD environments to maximize efficiency and avoid rate limit issues.

Caching

Enable GitHub API caching

Reduce API calls and improve performance:

Cache structure

Cached data is stored as JSON files:

Cache management

Configuration options

Environment variables

string
required
GitHub personal access token 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 GitHub API responses.
Valid values: 1, true, yes, on
path
default:".helixcommit-cache/github"
Directory for storing cached GitHub API responses.
integer
default:"10"
Cache time-to-live in minutes.

CLI flags

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

Troubleshooting

If you hit rate limits:
  1. Use authentication:
  2. Enable caching:
  1. Reduce API calls:
  2. Wait for reset:
Verify your token has correct permissions:
  1. Go to github.com/settings/tokens
  2. Check token has repo scope (for private repos)
  3. Verify token isn’t expired
  4. Test token:
If PRs aren’t being linked:
  1. Check commit messages:
    Ensure PR numbers are mentioned: feat: Add feature (#123)
  2. Verify GitHub token:
  3. Test without caching:
  4. Check repository slug:
To speed up generation:
  1. Enable caching:
  1. Limit commits:
  2. Skip merges:
  3. Use offline mode for testing:

Best practices

Include PR numbers in commit messages:
GitHub Actions provides GITHUB_TOKEN automatically:
No need to create a separate token!
Verify basic functionality before enabling GitHub integration:

Next steps

Configuration

Configure GitHub integration settings

Examples

See GitHub integration in action

CI/CD integration

Automate release notes in GitHub Actions

Conventional Commits

Learn about commit message format