Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: implement assign organization roles from the cli#13558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 1 commit intomainfromstevenmasley/org_member_assign_cli
Jun 13, 2024

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedJun 12, 2024
edited
Loading

Basic functionality to assign roles to an organization member via cli.

coder organizations members edit-roles<username> [roles ...]# examplecoder organizations members edit-roles emyrk organization-admin custom-role

@EmyrkGraphite App
Copy link
MemberAuthor

Emyrk commentedJun 12, 2024
edited
Loading

@EmyrkEmyrkforce-pushed thestevenmasley/org_member_assign_cli branch fromb665268 toa6744b3CompareJune 12, 2024 18:24
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_cli branch fromdfded68 to1b3a9b7CompareJune 12, 2024 18:38
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_assign_cli branch froma6744b3 toeacff69CompareJune 12, 2024 18:38
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_cli branch from1b3a9b7 toe605d37CompareJune 12, 2024 18:49
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_assign_cli branch fromeacff69 to979b3d8CompareJune 12, 2024 18:49
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_cli branch frome605d37 tod23e335CompareJune 12, 2024 18:53
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_assign_cli branch from979b3d8 to45f4baaCompareJune 12, 2024 18:53
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_cli branch fromd23e335 to9c1fda7CompareJune 12, 2024 19:26
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_assign_cli branch from45f4baa to46067a6CompareJune 12, 2024 19:26
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_cli branch from9c1fda7 to0012858CompareJune 12, 2024 19:55
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_assign_cli branch from46067a6 to7d98e6cCompareJune 12, 2024 19:55
Base automatically changed fromstevenmasley/org_member_cli tomainJune 12, 2024 20:07
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_assign_cli branch 2 times, most recently fromec0f038 to24409b0CompareJune 13, 2024 14:33
@EmyrkEmyrk marked this pull request as ready for reviewJune 13, 2024 14:37
@EmyrkEmyrk requested a review fromf0sselJune 13, 2024 14:48
@@ -11,16 +12,74 @@ import (
)

func (r *RootCmd) organizationMembers() *serpent.Command {
cmd := &serpent.Command{
Use: "members",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Is this ready for end users to start consuming? If not, do we want to start with it hidden?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

It is not, but the parent command is hidden:

Hidden:true,// Hidden until these commands are complete.

So this is also hidden

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nice 👍

userIdentifier := inv.Args[0]

member, err := client.UpdateOrganizationMemberRoles(ctx, organization.ID, userIdentifier, codersdk.UpdateRoles{
Roles: inv.Args[1:],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

nit: I would prefer this be declared as a variable underuserIdentifier to be slightly more readable, but dealers choice.

Emyrk reacted with thumbs up emoji
Basic functionality to assign roles to an organization member via cli.
@EmyrkEmyrkforce-pushed thestevenmasley/org_member_assign_cli branch from24409b0 to946a3acCompareJune 13, 2024 19:37
@EmyrkEmyrk merged commit7d51515 intomainJun 13, 2024
27 checks passed
@EmyrkEmyrk deleted the stevenmasley/org_member_assign_cli branchJune 13, 2024 19:49
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 13, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@f0sself0sself0ssel approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Emyrk@f0ssel

[8]ページ先頭

©2009-2025 Movatter.jp