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

feat: filter users by github user id in the users list CLI command#17029

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
hugodutka merged 6 commits intomainfromhugodutka/list-users-by-github-user-id
Mar 21, 2025

Conversation

hugodutka
Copy link
Contributor

@hugodutkahugodutka commentedMar 20, 2025
edited
Loading

Add the--github-user-id option tocoder users list, which makes the command only return users with a matching GitHub user id. This will enablehttps://github.com/coder/start-workspace-action to find a Coder user that corresponds to a GitHub user requesting to start a workspace.

@hugodutkahugodutka changed the titlefeature: filter users by github user id in the users list CLI commandfeat: filter users by github user id in the users list CLI commandMar 20, 2025
@hugodutkahugodutka marked this pull request as ready for reviewMarch 21, 2025 11:26
p.Errors = append(p.Errors, codersdk.ValidationError{
Field: queryParam,
Detail: fmt.Sprintf("Query param %q must be a valid 64-bit integer: %s", queryParam, err.Error()),
})
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: explicitly return the zero value here

hugodutka reacted with thumbs up emoji
Comment on lines +227 to +229
WHEN @github_com_user_id :: bigint != 0 THEN
github_com_user_id = @github_com_user_id
ELSE true
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is worth blocking on, but the comment for this column mentions:

At time of implementation, this is used to check if the user has starred the Coder repository.

It may be worth updating this comment in a follow-up now that it's becoming more of a load-bearing number.

hugodutka reacted with thumbs up emoji
@hugodutkahugodutkaforce-pushed thehugodutka/list-users-by-github-user-id branch fromf29590e tod08dd3bCompareMarch 21, 2025 11:39
@hugodutkahugodutka merged commita71aa20 intomainMar 21, 2025
31 of 32 checks passed
@hugodutkahugodutka deleted the hugodutka/list-users-by-github-user-id branchMarch 21, 2025 12:30
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@hugodutkahugodutka

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@hugodutka@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp