@@ -105,7 +105,7 @@ Use Git tools in CodeCompanion chat:
105105```
106106@{git_edit} stage --files ["src/main.lua", "README.md"]
107107@{git_edit} unstage --files ["src/main.lua"]
108- @{git_edit} commit --commit_message "feat: add new feature"
108+ @{git_edit} commit --commit_message "feat(api) : add new feature"
109109@{git_edit} commit # Auto-generate AI commit message
110110@{git_edit} create_branch --branch_name "feature/new-ui" --checkout true
111111@{git_edit} checkout --target "main"
@@ -149,7 +149,7 @@ Use a comprehensive Git assistant that combines read and write operations:
149149@{git_read} status # Check repository status
150150@{git_edit} stage --files ["file1.txt", "file2.txt"] # Stage files
151151/gitcommit # Select commit and insert its content for reference
152- @{git_edit} commit --commit_message "feat: add new feature" # Commit
152+ @{git_edit} commit --commit_message "feat(api) : add new feature" # Commit
153153@{git_edit} push --remote "origin" --branch "main" # Push changes
154154@{git_read} generate_release_notes # Generate release notes between latest tags
155155```
@@ -231,14 +231,14 @@ gitcommit.exports.git_tool.stage({"file1.txt", "file2.txt"})
231231-- Create and checkout branch
232232gitcommit .exports .git_tool .create_branch (" feature/new-feature" , true )
233233
234- -- Generate release notes
234+ -- Generate release notes between specific tags (with all parameters)
235235local success , notes , user_msg , llm_msg = gitcommit .exports .git_tool .generate_release_notes (" v1.0.0" , " v1.1.0" , " markdown" )
236236if success then
237237 print (" Release notes:" , notes )
238238end
239239
240- -- Generate release notes between specific tags
241- local success , notes = gitcommit .exports .git_tool .generate_release_notes (" v1.0.0 " , " v1.1.0 " , " markdown " )
240+ -- Generate release notes (auto-detect latest two tags)
241+ local success , notes = gitcommit .exports .git_tool .generate_release_notes ()
242242```
243243
244244## 📚 Documentation
0 commit comments