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

Feature request: Prompt user to commit preview #180

Closed
robert-m opened this issue Jun 19, 2024 · 2 comments · Fixed by #184
Closed

Feature request: Prompt user to commit preview #180

robert-m opened this issue Jun 19, 2024 · 2 comments · Fixed by #184

Comments

@robert-m
Copy link

I use --preview all the time to view what the commit message will be before commiting. Adding a new flag --prompt to preview and then prompted if user wants to commit message.

For example;

Summarize the commit message use gpt-3.5-turbo model
We are trying to summarize a git diff
We are trying to summarize a title for pull request
================Commit Summary====================

feat: Add preview flag and remove disableCommit flag in commit command and template file.

- Add a `preview` flag to the `commit` command
- Remove the `disbaleCommit` flag from the `prepare-commit-msg` template file

==================================================

Commit preview summary? : y

==================================================
Write the commit message to .git/COMMIT_EDITMSG file
@appleboy
Copy link
Owner

I will take it.

@tisfeng
Copy link

tisfeng commented Jul 3, 2024

Good idea 😃

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 a pull request may close this issue.

3 participants