Repository navigation
fix: changelog release commit search logic - #530
Conversation
Running `semantic-release changelog` currently fails to identify "the last commit in [a] release" because the compared commit messages have superfluous whitespace. Likely related to the issue causing: python-semantic-release#490
|
Just checking my understanding - you're saying Is there a chance you could post the output of |
The other way around. python-semantic-release/semantic_release/history/logs.py Lines 108 to 111 in 2aab9bd Which is what is causing it to skip past all the commit in the entire range. I tried dumping the contents of python-semantic-release/semantic_release/history/logs.py Lines 118 to 123 in 2aab9bd
Without the patch: (Note how With: |
|
Is there anything else I can do to help this review along? |
|
@relekang perhaps you can weigh in? Or tap someone else to do so? This is affecting our whole dev setup, so it'd be nice to have a rough ETA on when this will be looked at. |
bernardcooke53
left a comment
There was a problem hiding this comment.
Thanks for finding this @css-optivoy 👍
* Fixes changelog release commit search logic Running `semantic-release changelog` currently fails to identify "the last commit in [a] release" because the compared commit messages have superfluous whitespace. Likely related to the issue causing: python-semantic-release#490 * Removes a couple of extra `strip()`s.
Running
semantic-release changelogcurrently fails to identify "the last commit in [a] release" because the compared commit messages have superfluous whitespace. (Likely related to the issue causing #490)The logic to iterate through the commits, to identify the boundary between the two versions, fails to identify the release commit message generated by semantic-release, and skips all the commits.
This ultimately results in no commits being printed as part of the changelog.
Fixes:
I have a log looking like this:
But running changelog fails to find the three changes labelled with 'ci' and 'refactor':
After the PR I get the expected output: