Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
michmich112 opened this issue Mar 11, 2021 · 0 comments
Open

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

michmich112 opened this issue Mar 11, 2021 · 0 comments

Comments

@michmich112
Copy link
Owner

michmich112 commented Mar 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant