Skip to content

Commit 3341e6b

Browse files
authored
Update create_or_update_file SHA Arg Description (github#651)
* sha arg prompt as required if updating file * generate docs and toolsnaps * shorten
1 parent 0cf70eb commit 3341e6b

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
@@ -870,7 +870,7 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
870870
- `owner`: Repository owner (username or organization) (string, required)
871871
- `path`: Path where to create/update the file (string, required)
872872
- `repo`: Repository name (string, required)
873-
- `sha`: SHA of file being replaced (for updates) (string, optional)
873+
- `sha`: Required if updating an existing file. The blob SHA of the file being replaced. (string, optional)
874874

875875
- **create_repository** - Create repository
876876
- `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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy