Sam Coe
bf7db84ca8
Add timeouts to keyring operations ( #7580 )
2023-06-20 23:45:20 +00:00
David Gardiner
06e40dfddb
Merge pull request #7496 from dmgardiner25/add-view-cmd
...
Add `gh cs view` command
2023-05-30 14:37:34 -07:00
David Gardiner
3c05c99c83
Address comments
2023-05-30 12:20:23 -07:00
David Gardiner
f6a5398bf9
Update fields to show
2023-05-26 22:59:28 +00:00
David Gardiner
99cd0af8b4
Check if running in a codespace
2023-05-26 15:41:34 -07:00
David Gardiner
54560c19dd
Add gh cs view command
2023-05-26 09:54:58 -07:00
Mislav Marohnić
8741b648a6
Speed up gh start up time ( #7487 )
...
The tcell library has an `init()` block where it performs some very expensive
indexing that takes 30-40 ms on my machine. This results in fixed overhead for
every gh invocation, even for commands that don't use tcell at all.
This sets an environment variable that instructs tcell to avoid doing that.
2023-05-26 16:38:13 +02:00
William Martin
b292dc43b2
Merge pull request #7462 from cli/wm/counts-by-state
...
Use new GQL fields that support CheckRun and StatusContext counts by state
2023-05-25 12:38:01 +02:00
vilmibm
3bd1d6770c
fix variable name
2023-05-24 12:40:46 -07:00
William Martin
505c954544
Remove unused emptyIntrospectionFor test helper
2023-05-23 17:13:48 +02:00
William Martin
b02d5efb18
Use two queries in one request for PR feature detection
2023-05-23 15:42:38 +02:00
vilmibm
a15eb91a0c
go generate
2023-05-23 00:13:57 -07:00
vilmibm
5597139df3
switch to []int return for multiselect
2023-05-23 00:12:44 -07:00
William Martin
42b61ad53e
Inject fake detector into PR status tests
2023-05-22 18:44:51 +02:00
vilmibm
8a605fbaf5
Merge remote-tracking branch 'upstream/trunk' into run-prompts
2023-05-19 10:25:18 -07:00
William Martin
bfd3c7b20b
Short circuit status check GQL introspection for GitHub.com
2023-05-17 18:45:25 +02:00
William Martin
c2e3dae602
Add support for detecting status and check counts in GQL
2023-05-17 18:45:25 +02:00
William Martin
7e2bac89bd
Remove old, unused detector fields ( #7458 )
2023-05-17 14:50:28 +02:00
Caleb Brose
443bb75f09
Fix shellcheck bugs in generate.sh ( #7392 )
2023-05-01 10:31:06 -05:00
Kousik Mitra
d0207a2ede
Add capability to filter codespaces by repo owner ( #7347 )
...
* Add capability to filter codespaces by repo owner
* Replace Flags with PersistentFlags
* Reword flag description
* Update test seed
* Add mutual exclusion
---------
Co-authored-by: Caleb Brose <5447118+cmbrose@users.noreply.github.com>
2023-04-27 10:42:08 -05:00
Benjamin Levesque
7cfbf478d5
Diacritics substitution in prompt ( #7205 )
2023-04-21 14:09:59 +00:00
Alexander Seiler
218f29f296
Correct some typos
2023-04-21 03:51:31 +02:00
Caleb Brose
09e86d0ebf
Fix gh cs ports requiring sudo for privileged port numbers ( #7326 )
2023-04-19 07:00:44 -05:00
Sam Coe
dbc2f05124
Update go-gh to v2 ( #7299 )
...
* Update go-gh
* Update code for go-gh v2
2023-04-16 15:34:23 +10:00
nate smith
cb0d2a8671
linter appeasement
2023-04-10 18:03:13 -07:00
nate smith
d4a8d15a8a
implement multi select support for prompter
2023-04-10 17:37:36 -07:00
Sam Coe
39805fa9b1
Properly handle closing files that have been writen to ( #7199 )
2023-03-23 01:17:47 +00:00
Benjamin Levesque
9596fd5368
Skip checking keyring for token in certain scenarios ( #7169 )
2023-03-18 08:59:43 +11:00
Nate Smith
aae4023cdc
use t.Cleanup(m.Verify)
2023-03-09 16:43:48 -08:00
vilmibm
10dd74b4af
fix bug with Prompter.MultiSelect
2023-03-09 16:40:27 -08:00
vilmibm
b5c3d982b1
new tooling for assertions about prompting
2023-03-09 16:40:27 -08:00
Sam Coe
35a24caed2
Standardize retry mechanism ( #7027 )
2023-03-02 23:06:30 +00:00
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods ( #7049 )
2023-02-28 00:24:45 +00:00
Sam Coe
df83dc2d58
Add ability to store tokens in encrypted storage ( #7043 )
2023-02-28 00:04:53 +00:00
Sam Coe
a33e12a21d
Refactor Config interface in preperation for encrypted token storage ( #7033 )
2023-02-28 10:51:12 +11:00
Mislav Marohnić
626c639df5
Disallow update checker delaying the gh process ( #6978 )
...
This ensures that checking for newer versions of gh happens in the background of the main operation that the user requested, and that when that operation is completed, the gh process should immediately exit without being delayed by the update checker goroutine.
2023-02-07 19:52:53 +00:00
Caleb Brose
f669a10cf9
Fix race conditions in invoker_test ( #6905 )
2023-01-25 14:57:21 -06:00
Caleb Brose
e489050715
Merge remote-tracking branch 'origin/trunk' into cmbrose/pf-half-close
2023-01-19 20:39:58 -06:00
Caleb Brose
2b95cbc5a6
Close port forward writer on reader
2023-01-19 20:22:24 -06:00
Mislav Marohnić
06ae07f971
Merge pull request #6880 from cli/setdefault-bare-repo
...
repo set-default: support bare git repos
2023-01-19 16:25:31 +01:00
David Gardiner
73dfb87680
Use gRPC client to notify codespace of activity ( #6870 )
...
* Use gRPC client to notify codespace of activity
* Add test
* Update comment
2023-01-18 16:31:16 -06:00
Mislav Marohnić
8df1e9946f
repo set-default: support bare git repos
...
The command was using this to check for git repo context:
git rev-parse --is-inside-work-tree
With this change, this is used instead:
git rev-parse --git-dir
The latter approach works in the context of a bare git repository, which does not have a worktree.
2023-01-18 20:45:12 +01:00
Kevin Lee
9a1056fc87
Add search commits command ( #6817 )
2023-01-17 19:35:09 +00:00
David Gardiner
ce6b7d8762
Start SSH server with gRPC
2023-01-10 11:59:56 -08:00
David Gardiner
411181d14d
Merge pull request #6830 from dmgardiner25/rebuild-container-grpc
...
Rebuild container using gRPC client
2023-01-10 09:23:26 -08:00
vilmibm
553ea39b14
avoid panic when bad default given to Select
2023-01-09 11:44:53 -08:00
David Gardiner
98eaac3e40
Rebuild container using gRPC client
2023-01-09 10:58:47 -08:00
David Gardiner
839378d5cb
Merge pull request #6657 from dmgardiner25/codespaces-rpc-invoker
...
Create centralized Codespaces RPC invoker
2023-01-06 12:58:44 -08:00
David Gardiner
814fcf8c74
Remove unused token field
2023-01-06 09:56:16 -08:00
John Keech
791c7db632
Fix typo in has_uncommitted_changes for codespaces ( #6812 )
...
The REST API for codespaces returns the following schema:
```
"git_status": {
"ahead": 0,
"behind": 0,
"has_unpushed_changes": false,
"has_uncommitted_changes": false,
"ref": "main"
},
```
The CLI was looking for `has_uncommited_changes` in the response instead of `has_uncommitted_changes`, leading to it always reporting a `false` value which could be different than the API response.
2023-01-05 22:02:32 +00:00