Layr

acme / shop

protected main

Protection

Rules for lines and refs. A protected line or ref moves only to a state that passes its rules, with compare and swap. Approvals bind to that exact state; a path rule names the role needed to change files under it.

Line or refRequired checksApprovalsPath requirementsDirect savesWho may move
mainunit, lint, e2e2 from maintainersmigrations/ → maintainer
.layr/ → admin
not allowedmaintainers
env/produnit, e2e1 from alice, bob··maintainers
env/stagingunit0··writers
release/*build-image1 from alice··maintainers
$ protect env/prodlayr protect env/prod --check unit --approvals 1 --approvers alice,bob
$ protect mainlayr protect main --path migrations/=maintainer

Clone shop

Get the project with all lines and states. Data is decrypted on your machine.

layr clone layr+https://cloud.acme.dev/shop