Skip to content

Conversation

@atanas-bitrise
Copy link

Checklist

  • I've read and followed the Contribution Guidelines
  • step.yml and README.md is updated with the changes (if needed)

Version

Requires a PATCH version update

Context

Sometimes, it is required that the counting for the new version starts from the offset without any increments.

N/A

Changes

0 is a valid new version, provided that the offset is greater than zero.

Investigation details

Starting from the incremented number and violating the chosen number scheme is an alternative. So is decoupling the chosen number scheme from the Step's internal implementation and updating the added number as a new version while keeping the offset empty.

Decisions

Add support for the edge case where the new version is 0 and there is a positive number as an offset.

@atanas-bitrise atanas-bitrise changed the title Zero Add 0 as a valid new version number when the version offset is greater than 0 Nov 25, 2022
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

Successfully merging this pull request may close these issues.

1 participant