Repository navigation
Enabled hotfix changes for rush - #434
Conversation
|
Thanks for submitting this PR. QZ (@qz2017) could you take a look? |
There was a problem hiding this comment.
What are those extra spaces for?
There was a problem hiding this comment.
It seems that my auto-linting reformatted the whitespace throughout this file. I will turn it off and revert the changes.
There was a problem hiding this comment.
If a tag is not passed to npm publish, the 'latest' tag is automatically used and we don't want the hotfix version to replace the latest on the package manager.
There was a problem hiding this comment.
Please do not use a hardcoded condition like this. Are you sure no one else has 'hotfix' as part of their version?
There was a problem hiding this comment.
Please use a different condition check, instead of checking this string.
|
We need test coverage for the newly added logic. PublishUtilities class should respect the switch as well. |
There was a problem hiding this comment.
Prerelease does not need to be exact match. as long as it is part of the range.
I do not want hotfix logic to mess up existing version bump logic.
There was a problem hiding this comment.
How do you prevent other changes from happening to the package?
Can you throw errors if it happens?
There was a problem hiding this comment.
I think it should throw errors if you try and publish a hotfix change when there are also patch/minor/major changes. And you should not try to make patch/minor/major changes on top of a prerelease branch.
I can make it throw errors and add tests for this case.
There was a problem hiding this comment.
Tests were added for applying a patch and hotfix on the same package. (should error)
There was a problem hiding this comment.
It would be better to do it the other way. When it is enabled, add this option.
|
Hotfix versioning was changed to increment package version by patch and then append the hotfix . Update: This behavior was reverted and an exception was made specifically for hotfixing. |
There was a problem hiding this comment.
Only adds the hotfix help message if the hotfixchange is enabled.
There was a problem hiding this comment.
If it fails, let it fail so that any bug can be exposed. People can still turn hotfixChangeEnabled off to work around the bug.
There was a problem hiding this comment.
break out of the loop if it happens.
There was a problem hiding this comment.
can you add if (hotFixSwitch on) around it? So that if there is any hotfix but switch is off, those change logs are not generated. It is optional. You do not have to do it
There was a problem hiding this comment.
a [](start = 23, length = 1)
Should be 'd'.
There was a problem hiding this comment.
a [](start = 23, length = 1)
should be 'd'
There was a problem hiding this comment.
prereleaseComponents [](start = 12, length = 20)
Put this line inside the if (changeType == hotfix) branch.
There was a problem hiding this comment.
false [](start = 8, length = 5)
What is this?
27552fd to
8c9c212
Compare
Added a 'hotfix' bump option for
rush changeIt will append -hotfix.1 to the version number or increment the hotfix version if already on a hotfix branch.