Skip to content
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: add option usePreparedCommit default false #196

Merged
merged 5 commits into from
Sep 2, 2022

Conversation

leonardoanalista
Copy link
Member

@leonardoanalista leonardoanalista commented Jul 2, 2022

fix: add option usePreparedCommit default false

TODO: it needs unit tests for coverage

ISSUES CLOSED: #173

@leonardoanalista
Copy link
Member Author

Can we have this PR merged please

It's just pending unit test coverage. Also considering making this a breaking change since the default is now "false" for usePreparedCommit. Before it was kind of "true".

I am away this week. I'll be able to write the tests mid-next week.

@jainanuj0812
Copy link

Sounds good!, thanks man

jan-molak added a commit to serenity-js/serenity-js that referenced this pull request Aug 25, 2022
…ggest, interrupting the flow

With the introduction of http://leoforfree/cz-customizable#122, cz-customizable pre-populates the
subject and the body of the commit message with whatever values the _previous_ commit message had.
When a commit message is long, this interrupts the developer workflow as a lengthy, non-editable
string of text derived from the previous commit takes up all the space for the _current_ commit and
confuses Inquirer CLI, which starts to render the cursor in an invalid location

Related tickets: re leoforfree/cz-customizable#196, re leoforfree/cz-customizable#196
jan-molak added a commit to serenity-js/serenity-js that referenced this pull request Aug 25, 2022
…ggest, interrupting the flow

With the introduction of leoforfree/cz-customizable#122, cz-customizable pre-populates the
subject and the body of the commit message with whatever values the _previous_ commit message had.
When a commit message is long, this interrupts the developer workflow as a lengthy, non-editable
string of text derived from the previous commit takes up all the space for the _current_ commit and
confuses Inquirer CLI, which starts to render the cursor in an invalid location

Related tickets: re leoforfree/cz-customizable#173, re leoforfree/cz-customizable#196
jan-molak added a commit to serenity-js/serenity-js that referenced this pull request Aug 25, 2022
…ggest, interrupting the flow

With the introduction of leoforfree/cz-customizable#122, cz-customizable pre-populates the
subject and the body of the commit message with whatever values the _previous_ commit message had.
When a commit message is long, this interrupts the developer workflow as a lengthy, non-editable
string of text derived from the previous commit takes up all the space for the _current_ commit and
confuses Inquirer CLI, which starts to render the cursor in an invalid location

Related tickets: re leoforfree/cz-customizable#173, re leoforfree/cz-customizable#196
@HandlesBuilder
Copy link

This issue has been bothering me, I hope this PR can be merged in time.

@leonardoanalista
Copy link
Member Author

@docker-soga I'll try to address the code coverage today so we can merge it.

I think this is a breaking change as it changes the default option.

I am not sure if people use this option but it is likely to be deprecated.

BREAKING CHANGE:
now usePreparedCommit is false. Please update your .cz-config with usePreparedCommit: true if you like to continue using.
@leonardoanalista
Copy link
Member Author

I am really thinking if we need this option usePreparedCommit. I am not sure if people out there use it. We should to deprecate it.

@leonardoanalista leonardoanalista marked this pull request as ready for review September 2, 2022 02:29
@leonardoanalista leonardoanalista merged commit 8a3ef9f into master Sep 2, 2022
@leonardoanalista leonardoanalista deleted the fix-usePreparedCommit branch September 2, 2022 02:40
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.

Incorrect parsing of the prepared commit message
3 participants