Tag Auto-Generation Configuration
About 137 wordsLess than 1 minute
Tag Auto-Generation explains how to specify the branch that triggers automatic tag creation.
When to use: when you no longer want to create version tags by hand — for example agreeing that merging into hotfix creates a tag automatically, keeping version management consistent.
Specify the branch in .cnb/settings.yml — tags are generated automatically after code is pushed.
Configuration
Add the tag configuration to .cnb/settings.yml in the repository's default branch:
.cnb/settings.yml
tag:
auto_tag:
branch: hotfixParameter Reference
| Parameter | Type | Default | Description |
|---|---|---|---|
tag.auto_tag.branch | string | Repository default branch | The branch name that triggers automatic tag creation |
Tips
If the branch parameter is not configured, the repository's default branch is used to create tags.