Skip to content

Add ability to make a version number the commit hash #22

@michmich112

Description

@michmich112

Options:

{
  "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
     }
  ]
}
       
}

Example: if merge commit has hash: 7da9a258c94f9b8aca53feddbc216f1391a87ff5 and short-hash 7da9a25 we could get 1.12.2-7da9a25 as a version on the beta branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions