Opening a store MUST read the repository and the branch and MUST make a store of read, write, list, stat, delete, cas, batch, rename and history where the token may push, and a store of read, list, stat and history alone, in its type, where the host says the token may not push the repository or the branch; it MUST say in its facts whether the branch exists and is protected; a branch that does not exist MUST be read as empty and MUST NOT be written unless the store was told which branch to start it from, and then the first write MUST make it from that branch with its files; the name of a branch MUST be refused where Git would refuse it.
Enforced (check): .github: cd commons/anyfs-githost && bun run verify — host.test.ts: capabilities by permission, facts and the making of a branch
Proved by: anyfs-githost/suite/host.test.ts, anyfs-githost/suite/hosts.test.ts
Written in: anyfs-githost/src/physical/api.ts, anyfs-githost/src/physical/github.ts, anyfs-githost/src/physical/gitlab.ts, anyfs-githost/src/physical/hosts.ts, anyfs-githost/src/physical/store.ts
Tests: passed: suite/host.test.ts a token that may not push gives a store of read, list, stat and history alone, and a branc; passed: suite/host.test.ts a branch that does not exist is read as empty and is not written, unless the store was tol; passed: suite/host.test.ts a store of a token that may push has exactly read, write, list, stat, delete, cas, batch, ; passed: suite/hosts.test.ts GitHub is asked at api.github.com, an Enterprise server at the endpoint named, the default; passed: suite/hosts.test.ts a GitLab project at any depth of groups is one encoded segment, the server is the host of and 1 more