#361 fixed preCommitText issue with whitespace and fixed failing unit…#381
Open
peetkes wants to merge 1 commit intoresearchgate:mainfrom
Open
#361 fixed preCommitText issue with whitespace and fixed failing unit…#381peetkes wants to merge 1 commit intoresearchgate:mainfrom
peetkes wants to merge 1 commit intoresearchgate:mainfrom
Conversation
…failing unitTest for GitReleasePluginTests
Vampire
reviewed
Feb 20, 2024
| then: | ||
| newestCommit.contains("Signed-off-by: Unit Test <unit@test>") | ||
| // newestCommit.contains("Signed-off-by: Unit Test <unit@test>") | ||
| newestCommit.contains("[Gradle Release Plugin] - new version commit: '1.1'") |
Contributor
There was a problem hiding this comment.
This renders the test useless. The point is, that it tests whether the -s is given to Git and thus the Signed-off-by line added.
Here this also works just fine.
Vampire
reviewed
Feb 20, 2024
Comment on lines
+211
to
+214
| preCommitText = '[Gradle Release Plugin]' | ||
| preTagCommitMessage = 'pre tag commit: ' | ||
| tagCommitMessage = 'creating tag: ' | ||
| newVersionCommitMessage = 'new version commit: ' |
Contributor
There was a problem hiding this comment.
I don't think this is a good idea.
This changes the result for everyone setting the preCommitText already which is a text that should be prepended additionally to the other configured messages.
Vampire
reviewed
Feb 20, 2024
| String message = extension.preTagCommitMessage.get() + " '${tagName()}'." | ||
| if (extension.preCommitText) { | ||
| message = "${extension.preCommitText.get()} ${message}" | ||
| if (extension.preCommitText.get()) { |
Contributor
There was a problem hiding this comment.
This is the only line in the PR that I would second, as it also is the same I did in #384 not seeing this PR. :-D
Contributor
There was a problem hiding this comment.
Which was merged just now, so my recommendation would be to close this PR unmerged. :-)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…Test for GitReleasePluginTests