Andy Feller
7851c9c664
Update gh issue view to show v2 projects
...
These changes enhance the existing `gh issue view` experience by listing v2 projects in interactive and non-interactive forms.
Additionally, the tests have been enhanced to use a more standard `httpStubs` approach from other tests.
2025-08-12 16:18:45 -04:00
Azeem Sajid
ee281fd9ba
Add closedByPullRequestsReferences JSON field to issue view ( #10941 )
...
* [gh issue view] Expose `closedByPullRequestsReferences` JSON fields
* Incorporate GitHub Copilot review suggestions
* Incorporate review changes
2025-05-07 13:59:22 +01:00
William Martin
5ec2160bc6
Avoid requesting projectCards for issue view
2025-04-17 15:37:48 +02:00
William Martin
81ecbd8e1d
Issue view early arg parsing
2025-04-17 15:27:40 +02:00
Heath Stewart
81f3526740
Fix tests
2024-08-16 10:11:52 -07:00
William Martin
940b54c708
Add tests for JSON field support on issue and pr view commands
2024-07-12 17:35:54 +02:00
William Martin
1d38230675
Move config interfaces into gh package ( #9060 )
2024-05-10 10:39:36 +02:00
Andy Feller
3bb5f54073
Apply first round of owner/repo#number consistency
...
This commit expands on @nobe4 initial work by bringing the owner and repository name to the most obvious issue and PR number output use cases before making a second pass for any edge cases.
2024-03-01 14:03:18 -05:00
ffalor
31ffa6b499
Alphabetically sort labels for pr/issue view ( #7587 )
2023-06-20 11:30:03 +09:00
Sam Coe
6a8deb1f5a
Integrate latest go-gh packages ( #6084 )
2022-08-18 09:04:13 +03:00
Håvard Anda Estensen
58cb773e09
Replace ioutil with io and os ( #5498 )
2022-04-26 13:07:44 +02:00
Mislav Marohnić
34fc5fb75c
Improve issue view re: overfetching, PR support
...
- Supports passing a PR as argument, not just issues
- Makes it non-fatal when project cards were not able to load
- Cleans up legacy method for fetching issues
2021-11-24 18:49:36 +01:00
Mislav Marohnić
11fbb60ae7
Rename the module to "github.com/cli/cli/v2"
2021-08-25 12:41:30 +02:00
jack1142
42333bb2d1
Update issue non-tty view formatting and its tests
2021-05-29 04:44:48 +02:00
jack1142
979ec9298d
Update issue tty view formatting and its tests
2021-05-29 04:44:48 +02:00
Mislav Marohnić
111e8dbcf2
Pass web browser to each individual command
...
This removes sensitivity to the BROWSER environment variable in tests
and makes it easier to verify the URL that the browser was invoked with
without having to stub sub-processes.
2021-03-19 21:22:37 +01:00
Mislav Marohnić
051fbbc1e1
Merge remote-tracking branch 'origin' into dpromanko/remove-set-cmd-prepare
2021-01-28 22:00:08 +01:00
Devon Romanko
2964895a77
fix test behavior changes from migration to run.Stub
2021-01-27 18:46:29 -05:00
Sam Coe
52bdcad8ea
Do not display minimized comments
2021-01-27 08:14:46 -08:00
Devon Romanko
3068d80a27
use Stub instead of SetPrepareCmd in 'issue view' tests
2021-01-26 08:15:43 -05:00
Mislav Marohnić
d465b7f5d5
Freeze time in issue view test
2021-01-25 13:46:30 +01:00
Mislav Marohnić
06cf2c9f81
Merge remote-tracking branch 'origin' into cmd-stub-new
2021-01-22 16:31:29 +01:00
Mislav Marohnić
4158209d50
Merge pull request #2811 from cli/utils-spinner-buh-bye
...
Retire utils.Spinner in favor of IOStreams.StartProgressIndicator
2021-01-21 17:34:39 +01:00
Sam Coe
b9b1079493
Display reviews when viewing pull requests
2021-01-20 12:15:25 -08:00
Mislav Marohnić
a2bee1fad3
🔥 utils.Spinner
2021-01-20 14:48:14 +01:00
Mislav Marohnić
fc77cbc964
Deprecate test.ExpectLines
...
For asserting command output, exact string matches are preferred in most cases. In cases when a pattern match is needed, the test can use regexp ad hoc.
2021-01-18 23:25:45 +01:00
Mislav Marohnić
c308f1cd91
Prevent further use of SetPrepareCmd and InitCmdStubber
2021-01-18 22:44:53 +01:00
Cristian Dominguez
ce151420f3
Migrate legacy tests
2021-01-11 21:07:19 -03:00
Sam Coe
bec5e0cd77
Address PR comments
2020-12-08 10:24:02 -05:00
Sam Coe
bad5a59427
Update non-tty comment output
2020-12-07 14:25:05 -05:00
Sam Coe
c843a4fa13
Add issue comment viewing
2020-12-07 14:25:04 -05:00
Mislav Marohnić
9040f6adc6
Fix view tests
2020-09-09 17:40:04 +02:00
Mislav Marohnić
c00fe73d5a
Isolate issue commands
2020-08-07 00:27:55 +02:00