-
Notifications
You must be signed in to change notification settings - Fork 4k
Expand file tree
/
Copy pathfile_write.snap
More file actions
80 lines (80 loc) · 2.38 KB
/
file_write.snap
File metadata and controls
80 lines (80 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"annotations": {
"title": "Write operations (create, update, delete, push_files) on repository files",
"readOnlyHint": false
},
"description": "Write operations (create, update, delete, push_files) on repository files.\n\nAvailable methods:\n- create: Create a new file in a repository.\n- update: Update an existing file in a repository. Requires the SHA of the file being replaced.\n- delete: Delete a file from a repository.\n- push_files: Push multiple files to a repository in a single commit.\n",
"inputSchema": {
"properties": {
"branch": {
"description": "Branch to perform the operation on",
"type": "string"
},
"content": {
"description": "Content of the file (required for create and update methods)",
"type": "string"
},
"files": {
"description": "Array of file objects to push (required for push_files method), each object with path (string) and content (string)",
"items": {
"additionalProperties": false,
"properties": {
"content": {
"description": "file content",
"type": "string"
},
"path": {
"description": "path to the file",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
},
"type": "array"
},
"message": {
"description": "Commit message",
"type": "string"
},
"method": {
"description": "The write operation to perform on repository files.",
"enum": [
"create",
"update",
"delete",
"push_files"
],
"type": "string"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"path": {
"description": "Path to the file (required for create, update, delete methods)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
},
"sha": {
"description": "Blob SHA of the file being replaced (required for update method)",
"type": "string"
}
},
"required": [
"method",
"owner",
"repo",
"branch",
"message"
],
"type": "object"
},
"name": "file_write"
}