[remote] section configures integration with Git hosting platforms to enhance changelogs with pull request data, contributor information, and more.
Supported Platforms
git-cliff supports integration with:- GitHub
- GitLab
- Gitea / Forgejo
- Bitbucket
- Azure DevOps
GitHub Configuration
Owner (username or organization) of the GitHub repository.Example:
Name of the GitHub repository.Can be overridden with Or via command line:
--github-repo argument or GITHUB_REPO environment variable.Example:GitHub personal access token for authentication.Can be overridden with Or via environment variable:
--github-token argument or GITHUB_TOKEN environment variable.Example:Custom GitHub API URL for GitHub Enterprise instances.Example:
Use platform’s native certificate store instead of bundled certificates.Useful for corporate environments with custom CA certificates.Example:
GitHub Example
GitLab Configuration
Owner (username or group) of the GitLab repository.
Name of the GitLab repository.Can be overridden with
--gitlab-repo argument or GITLAB_REPO environment variable.GitLab personal access token.Can be overridden with
--gitlab-token argument or GITLAB_TOKEN environment variable.Custom GitLab API URL for self-hosted instances.Example:
Use platform’s native certificate store.
GitLab Example
Gitea / Forgejo Configuration
Owner of the Gitea/Forgejo repository.
Name of the Gitea/Forgejo repository.Can be overridden with
--gitea-repo argument or GITEA_REPO environment variable.Gitea/Forgejo access token.Can be overridden with
--gitea-token argument or GITEA_TOKEN environment variable.Gitea/Forgejo API URL (required for self-hosted instances).Example:
Use platform’s native certificate store.
Gitea Example
Bitbucket Configuration
Owner (username or workspace) of the Bitbucket repository.
Name of the Bitbucket repository.Can be overridden with
--bitbucket-repo argument or BITBUCKET_REPO environment variable.Bitbucket app password or access token.Can be overridden with
--bitbucket-token argument or BITBUCKET_TOKEN environment variable.Custom Bitbucket API URL for Bitbucket Server instances.
Use platform’s native certificate store.
Bitbucket Example
Azure DevOps Configuration
Organization name in Azure DevOps.
Name of the Azure DevOps repository.Can be overridden with
--azure-devops-repo argument or AZURE_DEVOPS_REPO environment variable.Azure DevOps personal access token.Can be overridden with
--azure-devops-token argument or AZURE_DEVOPS_TOKEN environment variable.Custom Azure DevOps API URL.
Use platform’s native certificate store.
Azure DevOps Example
Offline Mode
Disable all external API calls even when a remote is configured.Useful when running Or via command line:
--bumped-version or in restricted network environments.Example:Authentication
Creating Access Tokens
GitHub:- Go to Settings → Developer settings → Personal access tokens
- Generate new token with
reposcope - Use the token in your configuration or as
GITHUB_TOKEN
- Go to User Settings → Access Tokens
- Create token with
apiscope - Use the token in your configuration or as
GITLAB_TOKEN
- Go to Settings → Applications → Generate New Token
- Create token with appropriate permissions
- Use the token in your configuration or as
GITEA_TOKEN
- Go to Personal settings → App passwords
- Create app password with repository permissions
- Use the password in your configuration or as
BITBUCKET_TOKEN
- Go to User settings → Personal access tokens
- Create new token with Code (Read) permission
- Use the token in your configuration or as
AZURE_DEVOPS_TOKEN
Security Best Practices
Recommended approach:Template Integration
When remote integration is enabled, additional data is available in changelog templates:commit.remote.pr_number- Pull request numbercommit.remote.pr_title- Pull request titlecommit.remote.username- Commit author usernamegithub.contributors- List of contributors with metadata