Skip to content

Commit 91233fc

Browse files
authored
feat: skip draft commit hooks (#40)
1 parent 4c2c4f5 commit 91233fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/git_draft/drafter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ def generate_draft(
170170
if not title:
171171
title = _default_title(prompt_contents)
172172
commit = self._repo.index.commit(
173-
f"draft! {title}\n\n{prompt_contents}"
173+
f"draft! {title}\n\n{prompt_contents}",
174+
skip_hooks=True,
174175
)
175176

176177
with self._store.cursor() as cursor:

0 commit comments

Comments
 (0)