dev.knotless.protectBranch
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Adds the branch to the protected branches of the repository's dev.knotless.repo record, in place of any rule it had, as `knotless protect` does: through the gateway it then only moves forward, is never deleted, and unless merges is set takes no merge commits; with queue, pulls land on it only through the merge queue. Only its owner, logged in to this appview's web pages, can: the appview writes with the session it keeps for that account, which the pages' session cookie names.",
"errors": [
{
"description": "No such repository.",
"name": "NotFound"
},
{
"description": "No account is logged in to the pages, or its session has ended.",
"name": "AuthenticationRequired"
},
{
"description": "The account logged in is not the repository's owner.",
"name": "Forbidden"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"branch": {
"description": "The branch, without refs/heads/.",
"maxLength": 255,
"type": "string"
},
"merges": {
"description": "Whether it takes merge commits; otherwise pulls merge into it squashed.",
"type": "boolean"
},
"queue": {
"description": "Whether pulls land on it only through the merge queue.",
"type": "boolean"
},
"repo": {
"description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
"format": "at-uri",
"type": "string"
}
},
"required": [
"repo",
"branch"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"rules": {
"description": "The protected branches now.",
"items": {
"ref": "dev.knotless.repo#rule",
"type": "ref"
},
"type": "array"
}
},
"required": [
"rules"
],
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Protects a branch of a repository.",
"id": "dev.knotless.protectBranch",
"lexicon": 1
}
Metadata
- DID
-
did:plc:yqsg7znbbhfmj3a2nrpnaerk - CID
-
bafyreidzenw2zaymfssr4xwda3an5qd72w2kdxszmbcnmxctzcufmifm5q - Indexed At
- 2026-10-28 21:21 UTC
- AT-URI
-
at://did:plc:yqsg7znbbhfmj3a2nrpnaerk/com.atproto.lexicon.schema/dev.knotless.protectBranch
Version History (2 versions)
Referenced Schemas (1)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.knotless.unprotectBranch procedure
Stops protecting a branch of a repository.
-
dev.knotless.mergePull procedure
Merges a pull as the account logged in to this appview's pages.
-
dev.knotless.queuePull procedure
Puts a pull in its branch's merge queue as the account logged in to this appview's pages.
-
dev.knotless.createBranch procedure
Creates a branch of a repository.