You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.
"description": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure",
"required": true
},
{
"name": "tree.path",
"type": "string",
"description": "The file referenced in the tree",
"required": false
},
{
"name": "tree.mode",
"type": "string",
"description": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink",
"required": false
},
{
"name": "tree.type",
"type": "enum",
"options": [
"blob",
"tree",
"commit"
],
"description": "Either `blob`, `tree`, or `commit`",
"required": false
},
{
"name": "tree.sha",
"type": "string",
"description": "The SHA1 checksum ID of the object in the tree",
"required": false
},
{
"name": "tree.content",
"type": "string",
"description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`.",
"required": false
},
{
"name": "base_tree",
"type": "string",
"description": "The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.",
"required": false
}
],
"description": "The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out.",
{
"name": "Create a Tree",
"enabledForApps": true,
"method": "POST",
"path": "/repos/:owner/:repo/git/trees",
"params": [
{
"name": "owner",
"type": "string",
"required": true,
"description": ""
},
{
"name": "repo",
"type": "string",
"required": true,
"description": ""
},
{
"name": "tree",
"type": "object[]",
"description": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure",
"required": true
},
{
"name": "tree.path",
"type": "string",
"description": "The file referenced in the tree",
"required": false
},
{
"name": "tree.mode",
"type": "string",
"description": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink",
"required": false
},
{
"name": "tree.type",
"type": "enum",
"options": [
"blob",
"tree",
"commit"
],
"description": "Either `blob`, `tree`, or `commit`",
"required": false
},
{
"name": "tree.sha",
"type": "string",
"description": "The SHA1 checksum ID of the object in the tree",
"required": false
},
{
"name": "tree.content",
"type": "string",
"description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`.",
"required": false
},
{
"name": "base_tree",
"type": "string",
"description": "The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.",
"required": false
}
],
"description": "The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out.",
"documentationUrl": "https://developer.github.com/v3/git/trees/#create-a-tree"
}
gr2m
changed the title
Create a Tree: parameter type "array of objects " should be "objects[]"
Create a Tree: parameter type "array of objects " should be "object[]"
Mar 30, 2018
POST /repos/:owner/:repo/git/trees
Current specification
routes/routes/git/trees/create-a-tree.json
Lines 1 to 69 in fe0a254
I expected
"array of objects " should be "object[]"
Has failing test at #69
The text was updated successfully, but these errors were encountered: