William Martin
e775bc64b8
Fix PR and Issue list
...
Separate the GQL and JSON decoded types that we use for queries.
2023-11-27 17:00:10 +01:00
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
Benjamin Chadwick
82662685e3
Autocomplete branch flags ( #6031 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-03-29 16:09:44 +00:00
Mislav Marohnić
3fe5026d39
Migrate to tableprinter from go-gh ( #6346 )
2022-10-17 15:15:39 +02:00
Natthakit Susanthitanon
4c3b123db6
Return empty error before starting a pager program ( #6419 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-10-13 19:08:13 +02:00
Sam Coe
e7102f9d84
Migrate to go-gh text package ( #6236 )
2022-09-14 09:23:55 +04:00
satotake
b3ab76818c
Refactor issue list and pr list tests
...
following #6085
* Inject fake `Now` function to tests of `issue list` / `pr list`
* Remove `regexp` from the tests
2022-08-25 00:01:29 +09:00
Nate Smith
1da31c8b8f
Merge pull request #6085 from satotake/add-age-to-pr
...
Add age field to `pr list` / `pr view`
2022-08-23 11:55:29 -05:00
Sam Coe
6a8deb1f5a
Integrate latest go-gh packages ( #6084 )
2022-08-18 09:04:13 +03:00
satotake
837fac0da3
Add age column to pr list
2022-08-17 01:23:53 +09:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Sam Coe
db85b1d3cb
Properly handle issue and pr state options when building search queries ( #5513 )
2022-04-25 20:18:58 +02:00
Roshan Padaki
13342cb272
Don't error on list commands when no results found ( #5479 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-04-25 17:55:52 +00:00
Sam Coe
8a0c1f903c
Change issue close color from red to purple ( #5436 )
2022-04-11 11:50:55 +02:00
Sam Coe
31da9b1360
Replace old search utility with new search ( #5366 )
2022-04-06 16:44:52 +02:00
Sam Coe
6fbe6d9c20
Add ability to filter issue and pr searches by app ( #5370 )
2022-03-29 21:58:29 +02:00
Mislav Marohnić
112ca8bf91
Merge remote-tracking branch 'origin' into docs-improvements
2022-02-21 15:24:18 +01:00
Mislav Marohnić
286ba5e8dc
issue/pr list: clarify search syntax
2022-02-18 18:39:30 +01:00
Mislav Marohnić
19563c4a74
Use StringEnumFlag helper in more places
2022-02-18 12:52:47 +01:00
Christian Gregg
c5dbf20ed4
Alias list as ls for all commands ( #5214 )
...
I always get tripped up whenever trying to list my codespaces, adding
`ls` as an alias to `list` feels natural enough.
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-02-17 13:53:42 +01:00
Josh Gross
c2a9c5a74b
Support filtering pull requests authored by GitHub Apps ( #5180 )
2022-02-15 19:36:06 +01:00
Alan Donovan
f4491c7a80
Add FlagErrorf; encapsulate FlagError.error
2021-10-21 11:40:20 -04:00
Mislav Marohnić
f6b33572fd
Merge pull request #4279 from SiarheiFedartsou/sf-pr-list-head-filter
...
Add `--head` filter to `gh pr list`
2021-10-14 20:54:56 +02:00
Sam
02ed5a9666
Merge pull request #4316 from SiarheiFedartsou/sf-pulls-draft
...
Add `--draft` and `--non-draft` filters to `gh pr list`
2021-09-20 12:07:52 -07:00
Sam Coe
d14715f1e3
Convert bool to string early for pr list draft flag
2021-09-20 11:29:37 -07:00
Siarhei Fedartsou
6a34f53c6c
Change pr list --draft UX
2021-09-17 22:05:47 +03:00
Siarhei Fedartsou
1926971a76
Remove non-relevant test
2021-09-12 21:04:03 +03:00
Siarhei Fedartsou
f3053c3628
fix tests
2021-09-12 20:58:13 +03:00
Siarhei Fedartsou
373d1efb58
format code
2021-09-12 20:50:21 +03:00
Siarhei Fedartsou
11466fda12
Add --draft and --non-draft filters to gh pr list
2021-09-12 20:48:23 +03: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
Siarhei Fedartsou
a133e9d9a7
Add --head filter to gh pr list
2021-09-05 21:13:16 +03:00
Mislav Marohnić
e0fa56dc29
Merge remote-tracking branch 'origin' into go-module-v2
2021-09-02 20:02:16 +02:00
Luke
1102de89be
add quotes around @me in documentation to ensure examples work on powershell
2021-08-30 09:13:43 -05: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
Mislav Marohnić
db8204dc56
Allow space to be added after completing issue/pr list --state values
...
The "nospace" directive instructs the shell completion logic to avoid
adding a space after completing the word. However, this feature was
broken in an older Cobra, and users still saw a space character added.
In most case we want the space because we anticipate that the user might
want to add extra arguments to the command.
2021-07-21 16:12:38 +02:00
Sam Coe
1302b71fa7
linter
2021-06-22 11:41:22 -07:00
Sam Coe
e0468dbb29
whitespace
2021-06-22 11:39:47 -07:00
Sam Coe
665f552def
Small reordering
2021-06-22 11:37:56 -07:00
autopp
0179651dc3
Add shell completion for the --state flag
2021-06-20 20:03:21 +09:00
Gowtham Munukutla
e160dd3eae
fix listing of PRs when merged ones are searched ( #3730 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-05-28 10:11:12 +00:00
Mislav Marohnić
5f0301c990
Have Exporter.Write automatically call ExportData on given data structure
2021-05-12 17:05:15 +02:00
vilmibm
c69f210807
add some more examples for pr list
2021-04-22 14:45:19 -05:00
Mislav Marohnić
3ad41e3e65
Change JSON Exporter to an interface
2021-04-14 18:15:52 +02:00
Mislav Marohnić
3f22e3b353
Add pr status --json support
2021-04-13 21:12:30 +02:00
Mislav Marohnić
abe452bb19
Add --json export flag for issues and pull requests
...
The `--json` flag accepts a list of GraphQL fields to query for and
output in JSON format. To get the list of available flags, run the
command with a blank value for `--json`. Additional `--jq` and
`--template` flags are available just like in `gh api`.
2021-04-13 20:29:31 +02:00
Mislav Marohnić
d22e72a373
Fix tests broken by incompatible merges
2021-03-30 18:39:37 +02:00