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

Please Provide a '-y' flag to non-interactively accept the comment #61

Open
shariqmus opened this issue Feb 16, 2023 · 7 comments
Open
Labels
feature New feature or request

Comments

@shariqmus
Copy link

Feature request:

Please Provide a '-y' flag to non-interactively accept the comment

To hack around I did the following:

File: /usr/local/lib/node_modules/aicommits/dist/cli.js


        // const confirmationMessage = yield inquirer_1.default.prompt([
        //     {
        //         name: 'useCommitMessage',
        //         message: 'Would you like to use this commit message? (Y / n)',
        //         choices: ['Y', 'y', 'n'],
        //         default: 'y',
        //     },
        // ]);
                
        //if (confirmationMessage.useCommitMessage === 'n') {
        if (0) {

Thank you.

@Nutlope
Copy link
Owner

Nutlope commented Feb 16, 2023

Do you mean you want to auto-accept the commit message without seeing it?

@shariqmus
Copy link
Author

Do you mean you want to auto-accept the commit message without seeing it?

yes, in some repos, you are not too critical of the cimmit message but still need to provide meaningful ones, so it can serve that usecase.

Thanks!

@privatenumber
Copy link
Collaborator

Personally, I wouldn't rely on AI to this extent yet.

Let's keep this open for now and see if there's demand for this functionality.

@agustinprod
Copy link

I found my self doing the same hack. If i'm not happy with the result i can do git commit --amend and change the result.

@nthings
Copy link

nthings commented Feb 22, 2023

I implemented that on: #75 @Nutlope

@aslakhol
Copy link

This would be super nice for certain repos. I would prefer it if the commit message was echoed when commited with a non-interactive flag so that I can default to accepting the commit and just amend the ones that are not good enough.

@privatenumber privatenumber added the feature New feature or request label Mar 4, 2023
@cdf1982
Copy link

cdf1982 commented Mar 12, 2023

+1 for the -y option. If you type it, you need to know what you're doing. But there are scenarios I can very much see its value :) Thanks for this amazing tool by the way :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants