{
"scheme": "custom",
"schemeDefinition": "major.minor.build[-commithash]"
"rules": [
{
"trigger": "commit",
"branch":"develop"
"bump": "commithash",
"type": "hash", // type hash sets the value to the complete commit hash
}, {
"trigger":"commit",
"branch": "beta"
"bump": "commit-hash",
"type": "minhash", // minified hash
}, {
"trigger": "commit",
"branch": "master",
"bump": "build",
"reset": "commithash",
// no need for "type" as default type is number
}
]
}
}
Options:
Example: if merge commit has hash:
7da9a258c94f9b8aca53feddbc216f1391a87ff5and short-hash7da9a25we could get1.12.2-7da9a25as a version on the beta branch