dev.knotless.getTree
A directory at a revision: its entries, folders first, the commit that last changed it, its README, and what the repository's runners report of the revision. Nothing at all, for a repository never pushed. 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 |
Query
query · GETParameters
query stringpath
stringA path in the tree, from its root.
maxLength: 4096
ref
stringA branch, a tag or a commit; the default branch if absent. It may run on into the path, as a web address names them: the longest branch or tag that starts it is the ref, and what follows goes before `path`.
maxLength: 1024
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.
Output
application/jsonThe newest run of each workflow at `lastCommit`, by the runners the repository names: the revision shown, at the root.
empty
booleanTrue for a repository never pushed, whose tree is nothing.
What the repository is written in, most first: at the root of its default branch, and nowhere else.
lastCommit
refThe newest commit that changed the directory.
The directory, from the root; empty for the root.
The ref or commit shown, as `ref` named it, less any path.
Errors
NotFound
No such repository, revision, path or record.
#entry
objectOne entry of a directory.
#readme
objectThe directory's README: the first file whose name starts with `readme`, ignoring case.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
The newest commit to change each entry of a directory.
-
dev.knotless.getFile
queryOne file of a repository at a revision.
-
dev.knotless.listPaths
queryEvery path in a repository's tree at a revision.
-
dev.knotless.getRepo
queryA repository, with what its pages show above themselves.
-
dev.knotless.listCommits
queryA repository's history.