dev.knotless.getCommit
A commit, and what it changed, file by file, as `git show` has it. No authentication needed; asked as an account, with a service token or the pages' session cookie, a private repository it is a member of is read too, and the answer is that account's alone.
Details · query
| Kind | query |
|---|---|
| Authority | knotless.dev |
| Indexed |
Showing version bafyreidkqmsgyxmkat656loy6lqzndgyyxhu2hhdos5lv7uvkbcn5hrt5m. Show the latest
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "A commit, and what it changed, file by file, as `git show` has it. No authentication needed; asked as an account, with a service token or the pages' session cookie, a private repository it is a member of is read too, and the answer is that account's alone.",
"errors": [
{
"description": "No such repository, revision, path or record.",
"name": "NotFound"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"commit": {
"ref": "dev.knotless.defs#commitView",
"type": "ref"
},
"files": {
"description": "The files it changed, in the diff's order: of those `paths` names, if any.",
"items": {
"ref": "dev.knotless.defs#fileDiffView",
"type": "ref"
},
"type": "array"
}
},
"required": [
"commit",
"files"
],
"type": "object"
}
},
"parameters": {
"properties": {
"firstRows": {
"default": false,
"description": "The rows of the first files only, as a page draws them at once: from the first, those whose rows would be shown, up to 10 files and 1500 changed lines, passing over any that changes more than 400. The rest come without their rows, but with how many there are, to be asked for by `paths`.",
"type": "boolean"
},
"paths": {
"description": "Only these files, rows and all, by their paths after the change, or before it for one deleted; a renamed file is found as such only when both its paths are named.",
"items": {
"maxLength": 4096,
"type": "string"
},
"maxLength": 50,
"type": "array"
},
"repo": {
"description": "The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now.",
"format": "at-uri",
"type": "string"
},
"sha": {
"description": "The commit, by object name or anything else git takes.",
"maxLength": 1024,
"type": "string"
}
},
"required": [
"repo",
"sha"
],
"type": "params"
},
"type": "query"
}
},
"description": "A commit and what it changed.",
"id": "dev.knotless.getCommit",
"lexicon": 1
}