-
Notifications
You must be signed in to change notification settings - Fork 236
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
BREAKING CHANGE does not appear to cause major version bump #820
Comments
@ttimbers, thank you for reporting this. Ends up our regular expression was not considering Windows based commit messages which would have
You also might be able to set |
Due to windows line-endings `\r\n`, it would improperly split the commit description (it failed to split at all) and cause detection of Breaking changes to fail. The breaking changes regular expression looks to the start of the line for the proper syntax. Resolves: python-semantic-release#820
Due to windows line-endings `\r\n`, it would improperly split the commit description (it failed to split at all) and cause detection of Breaking changes to fail. The breaking changes regular expression looks to the start of the line for the proper syntax. Resolves: python-semantic-release#820
Due to windows line-endings `\r\n`, it would improperly split the commit description (it failed to split at all) and cause detection of Breaking changes to fail. The breaking changes regular expression looks to the start of the line for the proper syntax. Resolves: python-semantic-release#820
@codejedi365 - thanks so much for the prompt response to the issue! Adding a Interestingly, I am not using Windows, at least no knowingly... To test out these commits with PSR I was using the GitHub web application pen tool to edit the README and then commit the changes, and then the PSR action was being run using an Ubuntu runner. Maybe the GitHub web application pen tool is using Windows? I had never considered that before! A follow-up questions, the use of Thanks again for the quick help! |
@ttimbers That's quite possible that the web interface is written towards windows. I found it odd that your commit message had
As I'm only a contributor myself, I don't have much sway in if the PR is accepted or not so PRs are always welcome. My thoughts on the matter though would be that we should probably deviate from the term angular style in PSR because the angular format transformed into a larger movement that defines the conventional commits specification. The conventional commits specification is where |
I think @codejedi365 has explained this pretty well - pretty sure the GitHub UI defaults to
I also wanted to echo this - https://git-scm.com/docs/gitattributes#_eol should hopefully mitigate some of the inconsistencies, but it doesn't seem to apply to commits. It can however help make CHANGELOG entries consistent when you may have contributors working on multiple platforms.
|
Due to windows line-endings `\r\n`, it would improperly split the commit description (it failed to split at all) and cause detection of Breaking changes to fail. The breaking changes regular expression looks to the start of the line for the proper syntax. Resolves: python-semantic-release#820
The problem
Including
BREAKING CHANGE:
in an angular/conventional commit message is not causing a major version bump.Expected behavior
Including
BREAKING CHANGE:
in the head or footer should cause a major version bump.Environment
This is observed on GitHub actions using
python-semantic-release/python-semantic-release@v8.3.0
. We are using version 8.3.0 because of this issue: #723 (comment) (we are using Poetry).This is the where we call the
python-semantic-release/python-semantic-release@v8.3.0
action in ourci-cd.yml
file: https://github.com/ttimbers/pycounts_tt_2024/blob/2ff5a798211ad4a8f72579aac07a6aa30642ae13/.github/workflows/ci-cd.yml#L65C15-L65C69Configuration
Here's the corresponding table in
pyproject.toml
:https://github.com/ttimbers/pycounts_tt_2024/blob/2ff5a798211ad4a8f72579aac07a6aa30642ae13/pyproject.toml#L24
Logs
Here's the commit that should have led to the major version bump: ttimbers/pycounts_tt_2024@c17380f
And the corresponding GHA log:
The text was updated successfully, but these errors were encountered: