Skip to content

Commit a0dbccd

Browse files
committed
Add repos toolset instructions
1 parent 5cd95dc commit a0dbccd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/github/instructions.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ Tool usage guidance:
5050
// getToolsetInstructions returns specific instructions for individual toolsets
5151
func getToolsetInstructions(toolset string, enabledToolsets []string) string {
5252
switch toolset {
53+
case "repos":
54+
return `## Repositories
55+
56+
Before updating an existing file, always call 'get_file_contents' to retrieve the SHA of the file blob. Use this SHA as the "sha" parameter in create_or_update_file tool call to avoid conflicts.
57+
`
5358
case "pull_requests":
5459
pullRequestInstructions := `## Pull Requests
5560

0 commit comments

Comments
 (0)