Commit a71aa20
authored
feat: filter users by github user id in the users list CLI command (#17029)
Add the `--github-user-id` option to `coder users list`, which makes the
command only return users with a matching GitHub user id. This will
enable https://github.com/coder/start-workspace-action to find a Coder
user that corresponds to a GitHub user requesting to start a workspace.1 parent 69ba27e commit a71aa20Copy full SHA for a71aa20
11 files changed
+124-30Lines changed: 124 additions & 30 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- cli
- testdata
- coderd
- database
- dbmem
- queries
- httpapi
- searchquery
- docs/reference/cli
Expand file treeCollapse file tree
Open diff view settings
Collapse file
cli/testdata/coder_users_list_--help.golden
Copy file name to clipboardExpand all lines: cli/testdata/coder_users_list_--help.golden+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
| 13 | + |
| 14 | + |
12 | 15 | |
13 | 16 | |
14 | 17 | |
|
Collapse file
+17-1Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
| 22 | + |
22 | 23 | |
23 | 24 | |
24 | 25 | |
| ||
27 | 28 | |
28 | 29 | |
29 | 30 | |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
30 | 41 | |
31 | | - |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
32 | 48 | |
33 | 49 | |
34 | 50 | |
|
Collapse file
coderd/database/dbmem/dbmem.go
Copy file name to clipboardExpand all lines: coderd/database/dbmem/dbmem.go+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6578 | 6578 | |
6579 | 6579 | |
6580 | 6580 | |
| 6581 | + |
| 6582 | + |
| 6583 | + |
| 6584 | + |
| 6585 | + |
| 6586 | + |
| 6587 | + |
| 6588 | + |
| 6589 | + |
| 6590 | + |
6581 | 6591 | |
6582 | 6592 | |
6583 | 6593 | |
|
Collapse file
coderd/database/modelqueries.go
Copy file name to clipboardExpand all lines: coderd/database/modelqueries.go+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
393 | 393 | |
394 | 394 | |
395 | 395 | |
| 396 | + |
396 | 397 | |
397 | 398 | |
398 | 399 | |
|
Collapse file
coderd/database/queries.sql.go
Copy file name to clipboardExpand all lines: coderd/database/queries.sql.go+19-12Lines changed: 19 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file
coderd/database/queries/users.sql
Copy file name to clipboardExpand all lines: coderd/database/queries/users.sql+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
223 | 223 | |
224 | 224 | |
225 | 225 | |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
226 | 231 | |
227 | 232 | |
228 | 233 | |
|
Collapse file
coderd/httpapi/queryparams.go
Copy file name to clipboardExpand all lines: coderd/httpapi/queryparams.go+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
82 | 82 | |
83 | 83 | |
84 | 84 | |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
85 | 99 | |
86 | 100 | |
87 | 101 | |
|
Collapse file
coderd/searchquery/search.go
Copy file name to clipboardExpand all lines: coderd/searchquery/search.go+8-7Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
80 | 80 | |
81 | 81 | |
82 | 82 | |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
88 | | - |
89 | | - |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
90 | 91 | |
91 | 92 | |
92 | 93 | |
|
Collapse file
+11-10Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
297 | 297 | |
298 | 298 | |
299 | 299 | |
300 | | - |
301 | | - |
302 | | - |
303 | | - |
304 | | - |
305 | | - |
306 | | - |
307 | | - |
308 | | - |
309 | | - |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
| 310 | + |
310 | 311 | |
311 | 312 | |
312 | 313 | |
|
Collapse file
+28Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
| 5 | + |
5 | 6 | |
6 | 7 | |
7 | 8 | |
| ||
1873 | 1874 | |
1874 | 1875 | |
1875 | 1876 | |
| 1877 | + |
| 1878 | + |
| 1879 | + |
| 1880 | + |
| 1881 | + |
| 1882 | + |
| 1883 | + |
| 1884 | + |
| 1885 | + |
| 1886 | + |
| 1887 | + |
| 1888 | + |
| 1889 | + |
| 1890 | + |
| 1891 | + |
| 1892 | + |
| 1893 | + |
| 1894 | + |
| 1895 | + |
| 1896 | + |
| 1897 | + |
| 1898 | + |
| 1899 | + |
| 1900 | + |
| 1901 | + |
| 1902 | + |
| 1903 | + |
1876 | 1904 | |
1877 | 1905 | |
1878 | 1906 | |
|
0 commit comments