Commit b101f8c
committed
fix: assign commits to correct release
The algorithm to determine if a commit belongs to a specific release is
incorrectly assigning commits to the wrong releases for any release
except the first one.
It iterates over all commits with an enumerator attached, then skip any
commits belonging to previous releases, then skipping the commits
belonging to the current release, and finally uses the new enumerator
value as the count for the number of commits belonging to the release.
This is incorrect, as the enumerator shouldn't start counting until
after skipping the commits not belonging to the current release.
This is fixed by simplifying the iterator logic to count the relevant
commits.1 parent e7e88b7 commit b101f8c
1 file changed
+16
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
79 | 77 | | |
80 | | - | |
| 78 | + | |
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
| |||
0 commit comments