Skip to content

Conversation

@amorscher
Copy link
Contributor

@amorscher amorscher commented Feb 6, 2024

allows overriding of the commit message

Motivation and Context

fixes #3936

How Has This Been Tested?

all tests still pass

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (change that has absolutely no effect on users)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@nx-cloud
Copy link

nx-cloud bot commented Feb 6, 2024

@amorscher amorscher marked this pull request as draft February 6, 2024 20:09
@amorscher
Copy link
Contributor Author

@JamesHenry I changed the behaviour of --amend in combination with --message so that the message will be overrridden if specified. I think this is a breaking change and therefore not a good solution.

What do you think about using another flag like --amendMessage to support amending and overriding the message in one go?

@amorscher
Copy link
Contributor Author

amorscher commented Feb 11, 2024

@fahslaj what do you think?

@fahslaj
Copy link
Contributor

fahslaj commented Feb 27, 2024

Hey @amorscher , I think it's fine to update --amend and --message to behave as you stated at first, where passing them both together will properly override the message. It would technically be a breaking change, but I think that this is really a bug fix and that most users would expect --amend and --message to work together anyway.

@JamesHenry
Copy link
Member

Hi @amorscher just following up on the latest plans for this PR please

@JamesHenry
Copy link
Member

Please feel to reopen this whenever you have chance to work on it, but I'll close it for now for clarity, thanks again

@JamesHenry JamesHenry closed this Jun 25, 2024
@amorscher
Copy link
Contributor Author

@fahslaj @JamesHenry Sorry for the delay. I was working on it again but it looks like i am missing rights to reopen the PR

@JamesHenry JamesHenry reopened this Jul 29, 2024
@amorscher amorscher marked this pull request as ready for review July 31, 2024 17:52
@JamesHenry
Copy link
Member

@amorscher No problem, you made some more changes after that comment, but should I infer that this is now ready for review again?

@amorscher
Copy link
Contributor Author

@JamesHenry yes it should be ready for review.

@JamesHenry
Copy link
Member

Thanks again @amorscher!

@JamesHenry JamesHenry changed the title fix: enable changing commit message when using amend fix(version): enable changing commit message when using amend Aug 26, 2024
@JamesHenry JamesHenry merged commit 529e83f into lerna:main Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using "--amend" and "--message" options will not overwrite the original commit message

4 participants