Skip to content

Commit 7067451

Browse files
Merge branch 'main' into main
2 parents 3cfbf55 + 3341e6b commit 7067451

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
889889
- `owner`: Repository owner (username or organization) (string, required)
890890
- `path`: Path where to create/update the file (string, required)
891891
- `repo`: Repository name (string, required)
892-
- `sha`: SHA of file being replaced (for updates) (string, optional)
892+
- `sha`: Required if updating an existing file. The blob SHA of the file being replaced. (string, optional)
893893

894894
- **create_repository** - Create repository
895895
- `autoInit`: Initialize with README (boolean, optional)

pkg/github/__toolsnaps__/create_or_update_file.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"type": "string"
3232
},
3333
"sha": {
34-
"description": "SHA of file being replaced (for updates)",
34+
"description": "Required if updating an existing file. The blob SHA of the file being replaced.",
3535
"type": "string"
3636
}
3737
},

pkg/github/repositories.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func CreateOrUpdateFile(getClient GetClientFn, t translations.TranslationHelperF
288288
mcp.Description("Branch to create/update the file in"),
289289
),
290290
mcp.WithString("sha",
291-
mcp.Description("SHA of file being replaced (for updates)"),
291+
mcp.Description("Required if updating an existing file. The blob SHA of the file being replaced."),
292292
),
293293
),
294294
func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {

0 commit comments

Comments
 (0)