Code Monkey home page Code Monkey logo

react-boilerplate's Issues

Fix Commitzen bug: prevent default text editor from opening after confirming commit message

๐Ÿ“ Description

This issue aims to address a bug that occurs when committing using Commitzen. Currently, when a user runs git commit without providing a commit message, Commitzen prompts the user to enter a message using its interface. However, after the user confirms the message, the default text editor is opened for them to edit the message again, resulting in unnecessary time loss and confusion for users who prefer to use Commitzen for their commit messages.

๐Ÿš€ Steps to Reproduce

  1. Run git add to stage changes
  2. Run git commit without providing a message to use Commitzen
  3. Use the Commitzen interface to write and confirm the commit message
  4. Observe that the default text editor opens, even though the commit message has already been confirmed using Commitzen.
ezgif.com-gif-maker.mp4

๐Ÿ‘€ Expected Behavior

After confirming the commit message using the Commitzen interface, the commit should be made without opening the default text editor. This would improve the user experience by eliminating unnecessary steps and reducing confusion.

๐Ÿค” Previous Attempts

I attempted to solve this issue by checking the Commitzen documentation and trying different configurations in my Git hooks, but none of them seem to work. Usually, changing the code of the Git hooks only caused more problems, such as Commitzen running twice or lint-staged not working. From what I found, the solution adopted by most people was simply to create a script or an alias to avoid using git commit. I am considering adopting one of these ideas, but I decided to open this issue to try my luck.

๐Ÿ“Œ Task List

  • Modify Commitzen or git hook prepape-commit-msg to enable committing without opening the default text editor after confirming the commit message using the Commitzen interface.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.