gitea.tea/cmd/collaborators
Ross Golder d1e0849df7
feat(collaborators): add repository collaborator management commands
Add a 'tea collaborators' command for managing repository collaborators,
mirroring the conventions of the recently-added 'tea deploy-keys' command:

- list:    List all collaborators of a repository
- create:  Add a collaborator with specified permission (read/write/admin)
- delete:  Remove a collaborator from a repository
- permission: Check a collaborator's current permission level

Running 'tea collaborators <username>' without a subcommand is a shortcut
for 'tea collaborators permission <username>'.

Subcommand naming follows the codebase's create/delete convention; aliases
('add' for create, 'rm'/'remove' for delete) preserve the existing muscle
memory.

The deploy-keys functionality previously bundled here is intentionally
omitted: it is covered by the already-open upstream PR #1067 and would
conflict.
2026-09-05 09:52:43 +07:00
..
create.go feat(collaborators): add repository collaborator management commands 2026-09-05 09:52:43 +07:00
delete.go feat(collaborators): add repository collaborator management commands 2026-09-05 09:52:43 +07:00
list.go feat(collaborators): add repository collaborator management commands 2026-09-05 09:52:43 +07:00
permission.go feat(collaborators): add repository collaborator management commands 2026-09-05 09:52:43 +07:00