Skip to content

Commit

Permalink
Update commit message handling and dependencies
Browse files Browse the repository at this point in the history
Refactor commit message extraction to use `response.content` instead of `response`. Update `black` dependency to version 24.4.2 in `requirements-dev.txt`.
  • Loading branch information
TechNickAI committed Jul 1, 2024
1 parent 5fcac4e commit 4f1737e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aicodebot/commands/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def commit(response_token_size, yes, skip_pre_commit, files): # noqa: PLR0915
with tempfile.NamedTemporaryFile(mode="w", delete=False) as temp:
# For some reason the response often contains quotes around the summary, even if I tell it not to
# So we strip them here
commit_message = str(response).replace('"', "").strip()
commit_message = str(response.content).replace('"', "").strip()

temp.write(commit_message)
temp_file_name = temp.name
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
aicodebot

# For committing, formatting, and dependency management
black
black==24.4.2
isort
pip-tools
pre-commit
Expand Down

0 comments on commit 4f1737e

Please sign in to comment.