upbound / up

The @upbound CLI
Apache License 2.0
49 stars 42 forks source link

feat(repo): add repo permissions for teams #569

Closed haarchri closed 1 week ago

haarchri commented 1 week ago

Description of your changes

uses https://github.com/upbound/up-sdk-go/pull/94 add repo permission to grant teams permissions

Fixes #

I have:

How has this code been tested

up repo permission list test123 -a upboundcare                                                
TEAM      REPOSITORY                                 PERMISSION   CREATED                UPDATED
test123   function-conditional-patch-and-transform   write        2024-06-25T06:23:17Z   n/a
up repo permission revoke test123 function-conditional-patch-and-transform -a upboundcare
Are you sure you want to revoke the permission for team "test123" in repository "function-conditional-patch-and-transform"? This cannot be undone [y/n]: y
Revoking repository permission for team "test123" in repository "function-conditional-patch-and-transform"
Repository permission for team "test123" in repository "function-conditional-patch-and-transform" revoked
up repo permission grant test123 function-conditional-patch-and-transform write -a upboundcare
Permission "write" granted to team "test123" for repository "function-conditional-patch-and-transform" in account "upboundcare"
haarchri commented 1 week ago

needs update after sdk is up2date for https://github.com/upbound/up-sdk-go/pull/94