dev.knotless.createCommit
Fails with 409 when a change touches a path that moved since `base`, or when the branch kept moving under the batch.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | knotless.dev |
| Indexed |
Procedure
procedure · POSTInput
application/jsonbase
stringThe hex object ID of the commit the changes were made against. Without it the changes apply to whatever the branch holds.
minLength: 40maxLength: 64
Without refs/heads/. Created when absent, from `base`, or else from the default branch's tip.
maxLength: 255
maxLength: 20000
The repository's name: its dev.knotless.repo record key.
maxLength: 100
The repository's owner.
Output
application/jsonHow many commits went out in the write that carried this one.
minimum: 0
False when the changes left the tree as it was, and no commit was made.
parent
stringThe hex object ID the commit was built on; absent for a branch's first commit.
minLength: 40maxLength: 64
The hex object ID of the commit, or of the branch tip when nothing changed.
minLength: 40maxLength: 64
#author
objectWho the commit names as its author, when not the gateway's default.
#change
objectOne path written, edited or deleted.
Properties
data
bytesThe file's new contents; absent, with no `edits`, to delete it.
edits
arrayReplacements in the file as the commit's parent holds it, made in order, when `data` is absent. The file keeps its mode. Fails with 409 when one's `old` is not in the file exactly once.
executable
booleandefault: false
Relative to the repository root.
maxLength: 4096
#edit
objectOne replacement in a text file.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.knotless.pushRefs
procedurePushes to a repository through a gateway its owner has delegated writes to: the gateway checks the caller is the owner or a collaborator, then writes the pack and ref updates as the owner. Requires a service token from the caller's PDS, audience the gateway's DID, for this method.
-
dev.knotless.createBranch
procedureCreates a branch of a repository.