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

Option to provide the autogenerated commit message as string output without actually committing #151

Open
cdf1982 opened this issue Mar 12, 2023 · 0 comments
Labels
feature New feature or request pending triage

Comments

@cdf1982
Copy link

cdf1982 commented Mar 12, 2023

Feature request

I'd love if AI Commits included an option (i.e. -o, for output only) to auto-generate the commit message, but provide such message as output for the command in string form, without actually commit the changes.

Why?

I can see three scenarios where I want to use AI Commits:

  1. With the current great feature-set, to have it auto-generate messages and review/approve them before actually committing; certainly useful in most cases, as it's both convenient and "secure";

  2. Per #61, for simple changes I'd love -y as a parameter to auto-approve and commit, when I know I've made minor changes that the AI will certainly describe correctly (i.e. fixed typo, conformed to protocol, etc.).

  3. Case 3 is what I'm opening this feature request: I'd love to use AI Commits in tandem with a tool like Gitwatch: Gitwatch can monitor a folder and auto-commit (and optionally push) every change, but currently the commit message is a standard template; if a tool like Gitwatch could invoke AI Commits for generating a more descriptive message, it would be a combination with superpowers, especially for cases like Jekyll blogs (my actual use case).

Alternatives

No response

Additional context

Disclaimer: Gitwatch cannot currently invoke AI Commits and, while I've opened an issue there and the maintainer is very kind and open to the idea, there's no guarantee that someone will take the time to actually implement the ability to invoke external tools from Gitwatch. So, please build this only if you see value for this feature for other needs / use cases as well.

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

No branches or pull requests

1 participant