-
Notifications
You must be signed in to change notification settings - Fork 220
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
Leading space inserted for title of pre tag commit #361
Comments
we also ran into this while we setup workflow rules on skipping commits which started with '[Gradle Release Plugin]'. The pre tag commit slipped through because of the leading space. |
Is that extra space from here?: gradle-release/src/main/groovy/net/researchgate/release/tasks/PreTagCommit.groovy Line 26 in af4bf46
Our preCommitText is empty, and we get the leading space in the commit message as well. |
That seems a logic explanation. Would it make sense to check if preCommitText if empty before prepending it to the message? Maybe the preCommitText should contain [Gradle Release Plugin] and change the other ones like below:
|
…failing unitTest for GitReleasePluginTests
Somehow
./gradlew release
inserted a leading space to the commit title forpre tag commit
. This occurred to me withDowngrading the version
3.0.0
to2.8.1
fixes the issue, i.e., no leading space inserted, see the image below.I think this must be reproducible if one uses my repo and runs
./gradlew release
, though it is totally unclear to me why this could happen. It seems that GitHub/GitLab interface ignores such leading spaces in commit titles, so one should usegit log
to see them.The text was updated successfully, but these errors were encountered: