Commit 8784b9a
authored
fix(cmd-version): fix handling of multiple prerelease token variants & git flow merges (python-semantic-release#1120)
* refactor: define a custom logging level of silly
* fix(version): remove some excessive log msgs from debug to silly level
* test(fixtures): refactor builder functions for version file updates
* test(fixtures): adjust build command to handle versions w/ build metadata
* test(fixtures): fix gitflow repo that included an invalid build metadata string
* test(fixtures): fix major_on_zero setting in repos to match expected behavior
* test(cmd-version): add test cases to run an example repo rebuild w/ psr
* test(cmd-version): enable git flow repo rebuild w/ psr test cases
* fix(cmd-version): handle multiple prerelease token variants properly
In the case where there are alpha and beta releases, we must only
consider the previous beta release even if alpha releases exist
due to merging into beta release only branches which have no changes
considerable changes from alphas but must be marked otherwise.
Resolves: python-semantic-release#789
* fix(cmd-version): fix version determination algorithm to capture commits across merged branches
* perf(cmd-version): refactor version determination algorithm for accuracy & speed
* test(algorithm): refactor test to match new function signature
* style(algorithm): drop unused functions & imports
* test(algorithm): adapt test case for new DFS commit traversal implementation1 parent 6dfbbb0 commit 8784b9a
File tree
24 files changed
+2054
-507
lines changed- src/semantic_release
- cli/commands
- version
- tests
- e2e/cmd_version/bump_version
- git_flow
- github_flow
- trunk_based_dev
- fixtures
- repos/git_flow
- unit/semantic_release/version
24 files changed
+2054
-507
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
| |||
123 | 132 | | |
124 | 133 | | |
125 | 134 | | |
126 | | - | |
| 135 | + | |
127 | 136 | | |
128 | 137 | | |
129 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments