Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit 6425bd1

Browse files
committed
Add Assisted Git Commit feature: 🤖 Automatically generate commit messages
1 parent 26d252f commit 6425bd1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Once we've set up the bot to be able to use Large Language Models as a decision
2222

2323
### Code Workflow Improvements
2424

25-
- [X] **Assisted Git Commit**: Run pre-commit on the file and handle fixable lint errors. Automatically generates a commit message based on the changes made to the code.
25+
- [X] **Assisted Git Commit**: Automatically generate a commit message.
2626
- [ ] **Code Review**: Provides feedback on potential issues in code, such as style violations, potential bugs, and performance issues. It could also suggest best practices for code improvement. Eventually: FIX the code automatically and notify the team.
2727
- [ ] **Dependency Management**: Updating dependencies to their latest versions with pull requests that run tests.
2828
- [ ] **Assisted Debugging**: Run a command with aicodebot and it captures the log message and tries to figure out what's going on from the error message. Eventually, it could also suggest fixes for the error and make the changes for you.

cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ def commit(verbose, max_tokens):
8787

8888
# List the files that will be committed
8989
files = os.popen("git diff --name-only").read()
90-
console.print("The following files will be committed:\n" + files, style=bot_style)
90+
console.print("The following files will be committed:\n" + files)
9191

9292
# Write the commit message to a temporary file
9393
with tempfile.NamedTemporaryFile(mode="w", delete=False) as temp:
94-
temp.write(response)
94+
temp.write(str(response).strip())
9595
temp_file_name = temp.name
9696

9797
# Open the temporary file in the user's editor

0 commit comments

Comments
 (0)