Hi team, will it be possible to use graphite CLI w...
# how-do-i
m
Hi team, will it be possible to use graphite CLI with commitlint prompt? Also, would it be possible to create ai generated commit messages from the commitlint promt?
p
(If applicable) To help us more clearly understand what you're trying to do, please provide additional details about: - Screenshots / debug logs / list of commands you've tried to run so far - Your workflow - Current state
m
Workflow: 1. I have a commitlint to format our commit message 2. When working on an issue, we do
gt cam "the commit message
3. Do
gt ss
(aliased with
submit --stack -m true --ai
) We are planning to add commitlint prompt to have a more uniformed message using
@commitlint/cz-commitlint
Will it be possible to have gt cam work with commitlint prompt?
p
hey Matthew, it looks from this commitlint doc that it works by using git hooks. Graphite does run git hooks (the global --verify flag is enabled by default). So in theory I think it could be compatible. But that said you would need to test the actual behavior. You can run your Graphite commands with the
--debug
flag to print out logging so you can see what git operations Graphite is doing under the hood.