Sam Coe
5023b61909
Remove uses of FuzzyAgoAbbr in tables ( #8222 )
2023-10-22 17:33:49 +02:00
Heath Stewart
7738b6187c
Add headers to all tables ( #8157 )
2023-10-20 11:20:02 +02:00
Nick Alteen
7e7391bf88
Clarify list repo behavior ( #7964 )
...
Co-authored-by: William Martin <williammartin@github.com>
2023-09-11 17:28:14 +02:00
Kousik Mitra
7ee35e43cc
Enable owner flag to take multiple values for searching
2023-04-12 10:37:09 +05:30
Mislav Marohnić
944df28f16
repo list: add test for invalid owner error
2023-03-29 11:32:19 +02:00
աɨռɢӄաօռɢ
1f0e53319e
fix: throw error for non-existing org / repo with non-zero status in repo list ( #7240 )
2023-03-28 19:48:38 +02:00
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods ( #7049 )
2023-02-28 00:24:45 +00:00
Mislav Marohnić
5408197a06
Revert "Fix repo list when belonging to org with IP Allow list enabled"
2022-11-14 12:46:41 +01:00
Mislav Marohnić
17e64674f5
repo list: fix when belonging to org with IP Allow list enabled
...
Using `ownerAffiliations` instead of `affiliations` seems more semantically correct to list all repos belonging to a user or an organization, but the latter thas an added benefit that it also works around a problem when the API would return an error if the user happens to belong to an organization that has IP allow list enabled.
From our GraphQL docs:
> `affiliations`: Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns.
>
> `ownerAffiliations`: Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns.
2022-11-02 00:55:46 +01:00
Jeffrey Duroyon
6d32ce612c
feat: make topic param as list in repo list command ( #6539 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-11-01 19:39:43 +01:00
Mislav Marohnić
3fe5026d39
Migrate to tableprinter from go-gh ( #6346 )
2022-10-17 15:15:39 +02:00
Sam Coe
e7102f9d84
Migrate to go-gh text package ( #6236 )
2022-09-14 09:23:55 +04:00
Sam Coe
cacff4ad6d
Use go-gh config package ( #5771 )
2022-06-23 11:50:04 +00:00
Sam Coe
074ed50b8a
Integrate go-gh API package ( #5614 )
2022-06-23 04:05:31 +01:00
Mislav Marohnić
aff26cbcfc
Simplify repo list color check
2022-06-07 17:51:44 +02:00
Mislav Marohnić
89886eeaf8
Fix repo visibility label in search repos output
...
The `Visibility` field will be empty for `search` results when made
against GHES versions < 3.3. If that is the case, fall back to
constructing the label using `IsPrivate` field.
2022-06-07 17:09:17 +02:00
Sam Coe
33975a95e4
Allow repo list to work with GHES earlier than 3.3
2022-06-06 12:45:55 -05:00
Sam Coe
ebbf2ac096
Fix owner qualifier for search queries ( #5693 )
2022-05-23 13:00:32 +00:00
Hirad Pourtahmasbi
bbaf010303
repo list: add --visibility internal filter ( #5564 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-05-10 15:39:53 +00:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Roshan Padaki
25a55948cf
add ls alias to gh repo list ( #5480 )
2022-04-19 16:14:22 +02:00
Sam Coe
31da9b1360
Replace old search utility with new search ( #5366 )
2022-04-06 16:44:52 +02:00
Alan Donovan
f4491c7a80
Add FlagErrorf; encapsulate FlagError.error
2021-10-21 11:40:20 -04:00
Mislav Marohnić
619333adb6
Avoid using error values to pass information about the search cap
2021-09-06 16:09:18 +02:00
Des Preston
e8b015b80d
show warning when limit exceeds search api max
...
Fixes #3839
2021-09-06 16:05:11 +02:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
Heath Stewart
e2973453b5
Add helper template functions for rendering tables ( #3519 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-08-23 21:00:25 +02:00
lepasq
998a29d391
Update list_test.go to include topics as well
2021-08-15 14:31:24 +02:00
lepasq
87e5e6f2e3
Add topic filter to repository listing
2021-08-14 19:12:59 +02:00
Mislav Marohnić
3f3d4e38d4
Avoid crash when --json doesn't request nameWithOwner
2021-05-17 16:43:39 +02:00
Mislav Marohnić
a2307e357d
Add repo list --json support
2021-05-17 16:32:01 +02:00
Sam
9ec1e21d4c
Default to GHES host if only GHES is authenticated ( #3286 )
2021-03-30 16:51:00 +02:00
Mislav Marohnić
179d3f0249
Add a unified GitHub Search query builder
2021-03-23 18:52:58 +01:00
Mislav Marohnić
e27a77fc99
Add ability to filter by archived in repo list
...
Like `--language`, archived filters also use the Search API.
2021-02-27 17:20:06 +01:00
Mislav Marohnić
5da8301d5d
Enable filtering repo list by coding language
2021-02-27 16:52:47 +01:00
Mislav Marohnić
f75144dd1f
Enable pager for repo list output
2021-02-27 15:05:11 +01:00
Mislav Marohnić
2bdffc85e2
Isolate flag processing tests in repo list
2021-02-27 14:39:06 +01:00
Mislav Marohnić
1fa763f514
Avoid having to first query for username in repo list
...
Dynamically construct the GraphQL query by using the `viewer` connection
if the owner isn't set and the `repositoryOwner(login:"...")` connection
if the owner was set.
2021-02-27 14:38:56 +01:00
Mislav Marohnić
4da02614ed
Switch repo list to query via graphql package
...
Also order results by PUSHED_AT instead of UPDATED_AT to match the web
interface.
2021-02-27 13:17:59 +01:00
Cristian Dominguez
2284ef43d0
repo list: add tests
2021-02-19 17:34:17 -03:00
Cristian Dominguez
cad875a05f
repo list: render repo tags into the 3rd column instead of the 2nd
2021-02-18 19:02:59 -03:00
Cristian Dominguez
b7c2865d0f
Remove archived filter from repo list
2021-02-18 17:34:00 -03:00
Cristian Dominguez
9a149d7694
Add repo list command
2021-02-11 19:44:47 -03:00