Open ecattez opened 1 year ago
CBD must be resilient when the git history is squashed or forced to change.
Current tag: 0.2.0 (c5)
-- Squash from c1 to c6 --
Expected tag: 0.2.0 (c5)
-- Squash from c1 to c6 -- + some changes
Expected tag: 0.3.0 (cA)
Expected tag: 0.2.1 (cA)
Expected tag: 1.0.0 (cA)
Rule
CBD must be resilient when the git history is squashed or forced to change.
Background
Current tag: 0.2.0 (c5)
Example 1: Rewriting history did not affect versioning
Expected tag: 0.2.0 (c5)
Example 2: Squash to feat with additional changes
Expected tag: 0.3.0 (cA)
Example 3: Squash to fix with additional changes
Expected tag: 0.2.1 (cA)
Example 4: Squash to breaking changes with additional changes
Expected tag: 1.0.0 (cA)