-
Notifications
You must be signed in to change notification settings - Fork 9
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(action)!: Fix preserve-block-position default #393
Conversation
Current logic adds `--preserve-block-position` to list of args if the length of the value provided to the `preserve-block-position` github actions variable is not zero. Since it defaults to the string `false`, this effectively defaults it to true. You can only disable it by setting it explicitly to an empty string. This PR corrects this logic by only enabling `preserve-block-position` if it's explicitly set to true. BREAKING CHANGE: Effectively change default value for preserve-block-position in github actions
@gagoar please could you take a look at this? |
Pull Request Test Coverage Report for Build 7412441122
💛 - Coveralls |
@bmaximuml Thanks for this; I will release the action and the other PR on Friday. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #393 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 11 11
Lines 284 284
Branches 64 64
=========================================
Hits 284 284
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Fantastic! Thanks @gagoar |
thank you @bmaximuml ❤️ and sorry for the delay. |
@gagoar Since the Github Action still is release manually, I'm not sure if this should be marked as breaking since that will only cause the npm library to update to a new major version. 🤔 |
Yea. What I would do is:
|
I've released the changes now by merging the release-please PR (I had to push a commit of my own to it to make the workflows run). Another option to the versioning would be to use the same version numbers. The drawback is that breaking changes to either would result in a major version bump. |
I chose not to do that when I started with the action. The reason is the nature of the code:
|
hey @bmaximuml here's the release https://github.com/gagoar/codeowners-generator/releases/tag/action.v2.0 thanks for your help! |
Current logic adds
--preserve-block-position
to list of args if the length of the value provided to thepreserve-block-position
github actions variable is not zero. Since it defaults to the stringfalse
, this effectively defaults it to true. You can only disable it by setting it explicitly to an empty string. This PR corrects this logic by only enablingpreserve-block-position
if it's explicitly set to true.BREAKING CHANGE: Effectively change default value for preserve-block-position in github actions