Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/github/instructions.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ Tool usage guidance:
// getToolsetInstructions returns specific instructions for individual toolsets
func getToolsetInstructions(toolset string, enabledToolsets []string) string {
switch toolset {
case "repos":
return `## Repositories

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.
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing article "the" before "create_or_update_file tool call". The phrase should read "in the create_or_update_file tool call" for grammatical correctness.

Suggested change
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.
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 the create_or_update_file tool call to avoid conflicts.

Copilot uses AI. Check for mistakes.
`
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace (tabs) should be removed for consistency. Most other instruction blocks don't have trailing whitespace on their closing lines.

Copilot uses AI. Check for mistakes.
case "pull_requests":
pullRequestInstructions := `## Pull Requests

Expand Down