fix(team): take team repositories as arguments and address teams by name

team repo add 5 org/repo was rejected, and team repo add 5 silently used
the repository of the current directory and failed with an internal
error. team repo add and remove now take the repositories as arguments,
resolve bare names inside the team's organization, refuse repositories of
other owners and --repo, and never discover a repository.

Teams can be addressed as ORG/TEAM by name or ID as well as by their
global ID. team list drops the always-empty ORG column and shows the
derived access ("write (code, issues, pulls)" instead of none), member
and repository counts; team view shows units, members and repositories.
--permission read or write now grants every repository unit on both
create and edit, and edit no longer shows the create default. team
create takes the name as ORG/NAME or a second argument. Member and
repository changes skip users and repositories already in the wanted
state with a warning, name them in confirmations and print ✓ lines. Every
command has examples, and teams, members, users, repositories and --unit
values complete.

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-11 23:42:49 +02:00
1 parent c18dae6685
commit 769e93f5fd
7 files changed
+1035 -236

No files matched your search

-14
View File
@@ -562,17 +562,6 @@ const (
ssh-key list
ssh-key view
status
team create
team delete
team edit
team list
team member add
team member list
team member remove
team repo add
team repo list
team repo remove
team view
time create
time delete
time list
@@ -620,9 +609,6 @@ const (
search
secret
ssh-key
team
team member
team repo
time
variable
webhook