Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3341e6b

Browse files
authored
Updatecreate_or_update_file SHA Arg Description (#651)
* sha arg prompt as required if updating file* generate docs and toolsnaps* shorten
1 parent0cf70eb commit3341e6b

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 blobSHA ofthefile 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 blobSHA ofthefile 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 blobSHA ofthefile being replaced."),
292292
),
293293
),
294294
func(ctx context.Context,request mcp.CallToolRequest) (*mcp.CallToolResult,error) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp