-
Notifications
You must be signed in to change notification settings - Fork 255
fix: changelog release commit search logic #530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 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 #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: