JP Ungaretti
bc789b2787
Adopt in ssh.go
2023-02-09 22:53:48 +00:00
JP Ungaretti
970088a7af
Adopt in ports.go
2023-02-09 22:52:04 +00:00
JP Ungaretti
f77eb5f932
Adopt in list.go
2023-02-09 22:48:29 +00:00
JP Ungaretti
123380ac83
Adopt in edit.go
2023-02-09 22:36:38 +00:00
JP Ungaretti
38397f11be
Adopt in delete.go
2023-02-09 22:30:57 +00:00
JP Ungaretti
d815d54bd2
Adopt in create.go
2023-02-09 22:24:09 +00:00
JP Ungaretti
43783a33a2
Move helper to iostreams
2023-02-09 22:23:58 +00:00
JP Ungaretti
5879923b4f
Use progress runner a few times
2023-01-12 22:56:33 +00:00
JP Ungaretti
216d3bf912
Add generic progress runner
2023-01-12 22:56:19 +00:00
JP Ungaretti
efe57991b0
Fix spinner on error
2023-01-12 22:36:27 +00:00
David Gardiner
ce6b7d8762
Start SSH server with gRPC
2023-01-10 11:59:56 -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
David Gardiner
000a84d49b
Address comments
2023-01-04 15:33:33 -08:00
David Gardiner
731ba682f2
Create Invoker object
2023-01-04 14:41:25 -08:00
David Gardiner
1e75a74d18
Create centralized Codespaces RPC invoker
2023-01-04 14:41:25 -08:00
Nate Smith
82156f7fd2
Merge pull request #6803 from cli/fix-6792
...
select base repo correctly when only one remote
2023-01-03 16:10:34 -06:00
Sam Coe
47b27cde4b
Handle erase operation in auth git-credential command ( #6805 )
2023-01-03 14:03:27 -08:00
vilmibm
290d90430d
select base repo correctly when only one remote
2023-01-03 11:58:48 -08:00
Mislav Marohnić
8d82a96349
Fix fetching issue/PR comments
...
The "Author" struct was too overloaded in different types of queries that treat struct fields in incompatible ways. This change defines a simpler CommentAuthor struct for use in comments until we can figure out how to query `... on User` information for comments too.
2022-12-23 17:14:06 +01:00
Mislav Marohnić
6a5532481f
Avoid sending empty JSON body when no params to api command ( #6775 )
2022-12-22 21:45:17 +01:00
Mislav Marohnić
c5c2f9cc10
Supported passing nested JSON arrays/objects to api command via fields ( #6614 )
...
Examples:
-f labels[]=bug -f labels[]=p1
#=> { "labels": ["bug", "p1"] }
-f branch[name]=patch-1 -F branch[protected]=true
#=> { "branch": { "name": "patch-1", "protected": true }
-f labels[][name]=bug-1 -f labels[][color]=red
#=> { "labels": [{ "name": "bug-1", "color": "red" }] }
2022-12-22 20:12:00 +01:00
Mislav Marohnić
f8f206e063
Group PR, release, and repo subcommands
2022-12-21 14:47:59 +01:00
Mislav Marohnić
fcd86c00b4
Merge remote-tracking branch 'origin' into cobra-update
2022-12-21 13:23:41 +01:00
Nate Smith
1f85a92463
Merge pull request #5333 from chemotaxis/gh-issue-lock
...
Add `lock` and `unlock` commands for issues and pull requests
2022-12-20 18:04:34 -06:00
vilmibm
c3cceae9ea
finish tests
2022-12-20 15:45:13 -08:00
vilmibm
6fce78e689
WIP all but relocking
2022-12-20 15:34:17 -08:00
vilmibm
8d9b47e555
stub out rest of tests
2022-12-20 15:20:21 -08:00
vilmibm
a1fe708048
todos
2022-12-20 13:15:14 -08:00
vilmibm
bb958490ea
WIP tests
2022-12-20 13:14:41 -08:00
vilmibm
cee5e6e42a
WIP on tests
2022-12-20 13:00:52 -08:00
Mislav Marohnić
607a0876b9
Split issue commands into "General" vs. "Targeted"
2022-12-20 17:56:51 +01:00
Mislav Marohnić
2ede67331d
Merge pull request #6706 from browniebroke/feat/edit-repo/allow-update-branch
...
Add `--allow-update-branch` to the `repo edit` command
2022-12-20 17:56:30 +01:00
Mislav Marohnić
a55dd656f3
Merge remote-tracking branch 'origin' into cobra-update
2022-12-20 17:15:25 +01:00
vilmibm
95419f9006
further WIP
2022-12-19 18:12:08 -08:00
vilmibm
4c28e32e9d
WIP on adding tests, add prompt, tweak things
2022-12-19 17:57:04 -08:00
Des Preston
4ade907ae8
Allow setting codespace display name during create ( #6739 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-12-19 17:10:34 +01:00
Mislav Marohnić
6d93849476
Merge pull request #6738 from cli/default-repo-error
...
error instead of prompt for unset base repo
2022-12-19 15:53:32 +01:00
Mislav Marohnić
7caf7da2da
Merge pull request #6667 from cli/release-galore
...
More resilient release commands
2022-12-19 15:33:15 +01:00
vilmibm
b52d452168
wip: tweak output, update to Prompter, start on tests
2022-12-16 13:01:09 -08:00
vilmibm
5a6b4ce934
Merge remote-tracking branch 'origin/trunk' into gh-issue-lock
2022-12-16 10:10:59 -08:00
vilmibm
f5d19b831e
error instead of prompt when no base repo + fixes
2022-12-15 11:44:37 -08:00
Nate Smith
59812d429a
Merge pull request #4859 from bchadwic/base-cmd
...
`gh config base` a way to configure the base repo
2022-12-14 18:36:46 -06:00
vilmibm
5461d15b74
final bit of feedback
2022-12-14 16:26:01 -08:00
vilmibm
6532397963
use factory git client
2022-12-14 16:26:01 -08:00
vilmibm
db4de60307
rename command and fix tests
2022-12-14 16:26:01 -08:00
vilmibm
41bdaa426a
tweak wording
2022-12-14 16:26:01 -08:00
Mislav Marohnić
8cb312a620
Fix release assets upload retry logic
...
Enables up to 3 retries of uploading a single asset when encountering a network error or a HTTP 5xx error.
Bonus:
- simplifies ConcurrentUpload implementation
- support Go context cancellation
2022-12-14 21:25:09 +01:00