chezmoi re-add with auto push with ai commit messages? #4625
Unanswered
Keshav-writes-code
asked this question in
Q&A
Replies: 2 comments
-
|
check out hooks, that might be what you are looking for. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
You should be able do this with a custom git commit message template that uses the Put something like the following in your config file: [git]
commitMessageTemplate = '{{ output "aichat" }}'Note that chezmoi will execute the commit message template in your home directory, not in your source directory. You might need to use a wrapper script to change directory and pass appropriate arguments to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
SO, i basically want to automate the hassle to write a commit and then push files to chezmoi.
i have set this config
so when i do a
it auto adds changes files and auto pushes with simple commit messages like
but i want the commit message to be generated by a llm,
i have installed and setup aichat, a simple terminal chatbot that connects to any llm provider. maybe we can use it to generate the commit messages?
Beta Was this translation helpful? Give feedback.
All reactions