This function generates build numbers based on the maximum values for major, minor, and hotfix changes.
Usage
get_versions(major_change_max = 1, minor_change_max = 1, hot_fix_max = 1)
Arguments
- major_change_max
The maximum value for major changes. Default is 1.
- minor_change_max
The maximum value for minor changes. Default is 1.
- hot_fix_max
The maximum value for hotfix changes. Default is 1.
Value
A data frame with the build numbers.
Examples
get_versions(1, 1, 2)
#> # A tibble: 8 × 4
#> major_change minor_change hot_fix build
#> <int> <int> <int> <chr>
#> 1 0 0 0 0.0.0
#> 2 0 0 1 0.0.1
#> 3 1 0 0 1.0.0
#> 4 1 0 1 1.0.1
#> 5 1 0 2 1.0.2
#> 6 1 1 0 1.1.0
#> 7 1 1 1 1.1.1
#> 8 1 1 2 1.1.2