Skip to content

check for staged commits before questionnaire #785

Closed

Description

@waynevanson

Sometimes I forget to do git add <path>, so when I get to the end of the cli quesitonnaire, it gives me an error.
I then have to do git add <path> and then run the cli, going through the questionnaire again.
Doing this on a breaking change is frustrating because I have to rewrite what I just wrote.

Was this intended for a reason? If so, why? I'd like to hear about it.

Activity

  1. travi commented on Sep 25, 2020

    @travi
    Contributor

    i might not be the right person to answer your direct question, but you can avoid needing to go through the wizard a second time in cases like this using the --retry flag

  2. waynevanson commented on Sep 26, 2020

    @waynevanson
    ContributorAuthor

    @travi NICE! That's a good workaround for now, but will still love to hear what others have to say.

  3. dbofmmbt commented on Dec 10, 2020

    @dbofmmbt

    I agree with @waynevanson. As the CLI is able to know upfront that there's nothing staged, I don't see why it asks for information. I think it would be better to just send a message like "There's nothing staged! To commit, first stage something."

    Actually, I've just checked out the open issues and this one looks to be related to #585. Fixing that issue would resolve this one too.

  4. added 2 commits that reference this issue on Mar 25, 2021
    7e5e6da
    1096f80
  5. github-actions commented on Jul 17, 2022

    @github-actions

    🎉 This issue has been resolved in version 4.2.5 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  6. added a commit that references this issue on Jul 15, 2025
    fdb73cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions