docs(teams-repos): update CHANGELOG, README, regenerate CLI reference

Add a CHANGELOG entry for 'tea teams repos', extend the README
examples with repository-access lines, and regenerate docs/CLI.md.
This commit is contained in:
Ross Golder 2026-07-30 10:28:24 +07:00
parent 4e39eef4a0
commit 0ce5429cc5
No known key found for this signature in database
GPG key ID: 253A7E508D2D59CD
3 changed files with 49 additions and 0 deletions

View file

@ -3,6 +3,7 @@
## Unreleased
* FEATURES
* Add `tea teams repos` subcommand for managing team repository access (list, add, remove)
* Add `tea teams members` subcommand for managing team membership (list, add, remove)
* Add `tea teams` subcommand for managing organization teams (list, create, delete, edit)

View file

@ -95,6 +95,8 @@ EXAMPLES
tea teams delete 5 -y # delete team ID 5 without prompting
tea teams members list 5 # list members of team ID 5
tea teams members add 5 alice -y # add a user to a team
tea teams repos list 5 # list repos a team can access
tea teams repos add 5 myorg/myrepo # grant a team access to a repo
# send gitea desktop notifications every 5 minutes (bash + libnotify)
while :; do tea notifications --mine -o simple | xargs -i notify-send {}; sleep 300; done

View file

@ -2085,6 +2085,52 @@ Remove a member from a team
**--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional
### repos, repo, repositories
Manage team repository access
#### list, ls
List team repositories
**--limit, --lm**="": specify limit of items per page (default: 30)
**--login, -l**="": Use a different Gitea Login. Optional
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
**--page, -p**="": specify page (default: 1)
**--remote, -R**="": Discover Gitea login from remote. Optional
**--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional
#### create, add, c
Grant a team access to a repository
**--login, -l**="": Use a different Gitea Login. Optional
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
**--remote, -R**="": Discover Gitea login from remote. Optional
**--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional
#### delete, rm, remove
Revoke a team's access to a repository
**--confirm, -y**: confirm removal without prompting
**--login, -l**="": Use a different Gitea Login. Optional
**--output, -o**="": Output format. (simple, table, csv, tsv, yaml, json)
**--remote, -R**="": Discover Gitea login from remote. Optional
**--repo, -r**="": Override local repository path or gitea repository slug to interact with. Optional
## comments, comment, c
Manage comments on issues and pull requests