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

Enable a token to represent the unique commits on the current branch as opposed to the 'base' branch #75

Open
2 of 6 tasks
Kieranties opened this issue May 9, 2019 · 0 comments
Labels
✨ feature New feature or request
Milestone

Comments

@Kieranties
Copy link
Owner

Kieranties commented May 9, 2019

Is your feature request related to a problem? Please describe.
The token * is the number of commits since .simpleversion.json was changed.
If I am using * each commit increments the version, yet I may only want that on a release branch (where the actual final version is determined). On a feature branch I want the version to to be whatever it is on the branch I branched from, yet count the unique commits on my current branch

Describe the solution you'd like

  • On master I make five commits. The configuration uses "version": "1.0.*". I will therefore get a version of 1.0.5
  • I create a branch feature/awesome and complete twenty commits. Using branch overrides, I want to be able to specify that the version created should be 1.0.5-r20

Progress

  • Calculating base/branch height where version was last modified on release branch
  • As above, with base version calculated via alternate release branch (e.g release/1.0 instead of master)
  • Calculating base height where version is changed on the current non-release branch
  • Calculating base height where version is changed on merged release branch
  • Calculating base height where multiple release branches are merged out of order. E.g. 1.1.x is merged into feature, then 1.0.x is merged after.
  • Determine checkout requirements for build servers - Are all refs enough?
@Kieranties Kieranties added the ✨ feature New feature or request label May 9, 2019
@Kieranties Kieranties added this to the 0.2.0 milestone May 9, 2019
@Kieranties Kieranties modified the milestones: 0.2.0, 0.3.0 Feb 25, 2020
@Kieranties Kieranties modified the milestones: 0.3.0, 0.4.0 Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant