@@ -105,7 +105,7 @@ Use Git tools in CodeCompanion chat:
105
105
```
106
106
@{git_edit} stage --files ["src/main.lua", "README.md"]
107
107
@{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"
109
109
@{git_edit} commit # Auto-generate AI commit message
110
110
@{git_edit} create_branch --branch_name "feature/new-ui" --checkout true
111
111
@{git_edit} checkout --target "main"
@@ -149,7 +149,7 @@ Use a comprehensive Git assistant that combines read and write operations:
149
149
@{git_read} status # Check repository status
150
150
@{git_edit} stage --files ["file1.txt", "file2.txt"] # Stage files
151
151
/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
153
153
@{git_edit} push --remote "origin" --branch "main" # Push changes
154
154
@{git_read} generate_release_notes # Generate release notes between latest tags
155
155
```
@@ -231,14 +231,14 @@ gitcommit.exports.git_tool.stage({"file1.txt", "file2.txt"})
231
231
-- Create and checkout branch
232
232
gitcommit .exports .git_tool .create_branch (" feature/new-feature" , true )
233
233
234
- -- Generate release notes
234
+ -- Generate release notes between specific tags (with all parameters)
235
235
local success , notes , user_msg , llm_msg = gitcommit .exports .git_tool .generate_release_notes (" v1.0.0" , " v1.1.0" , " markdown" )
236
236
if success then
237
237
print (" Release notes:" , notes )
238
238
end
239
239
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 ()
242
242
```
243
243
244
244
## 📚 Documentation
0 commit comments