Synopsis
Description
Grants<email> access to the named protected branch in the named project. Non-interactive - same operation as pressing g on a (no access) row in capy users, but scriptable for CI.
The user must already be a member of the org. Granting access to a non-protected branch is a no-op; non-protected branches are visible to every member by default.
Example
Failure modes
All exits are non-zero on failure, suitable for CI.
See also
capy revoke-branch- the inversecapy users- interactive equivalent- Protected branches - the concept