vilmibm
37eee30411
WIP fixing tests
2023-01-31 12:06:32 -08:00
vilmibm
3ab72f44d3
WIP: fixing tests
2023-01-26 16:40:54 -08:00
vilmibm
ba725d7af2
update doc
2023-01-26 16:38:30 -08:00
vilmibm
3af8e56c07
TODOs
2023-01-26 16:33:14 -08:00
vilmibm
f60970ffa9
clean up command screen
2023-01-26 16:32:22 -08:00
vilmibm
c2c4d8c3f8
fix silencing git output
2023-01-26 16:08:08 -08:00
vilmibm
fec1f115b0
remove unused args from installGit
2023-01-26 16:05:41 -08:00
vilmibm
868af11b9d
WIP on using pages
2023-01-26 16:05:32 -08:00
vilmibm
bcc0d2b838
clean up some key handling
2023-01-26 12:02:51 -08:00
vilmibm
b4a6480c21
Merge remote-tracking branch 'origin/trunk' into gh-ext-browse-followup
2023-01-25 15:55:30 -08:00
Benjamin Levesque
fef4195004
Add --reviewer flag completion ( #6873 )
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-01-25 18:02:13 +01:00
Damien Sedgwick
55053df592
repo delete: change confirmation flag to --yes ( #6911 )
2023-01-25 17:33:53 +01:00
Ariel Deitcher
a5edd8f542
show token scopes on auth status ( #6546 )
...
- show path to config file
- display token prefix
- refine how missing scopes are shown
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-01-25 16:25:00 +01:00
Sam Coe
63ad804a26
Add notes about project scope to various commands ( #6907 )
2023-01-24 17:22:20 +00:00
azu
700bda3ad8
Add gh repo edit --enable-discussions ( #6903 )
...
* Add gh repo edit --enable-discussions
* Add hasDiscussionsEnabled to JSON fields for repos
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-01-24 18:13:05 +01:00
Ariel Deitcher
a231b4aded
extension create: make initial commit ( #6833 )
2023-01-24 17:48:56 +01:00
Kevin Lee
9dc2653b0f
Warn against Windows absolute path when using gh api ( #6895 )
...
This warning is primarily for Windows users on MinGW applications like Git Bash
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-01-24 17:40:15 +01:00
Caleb Brose
90ae71b2ba
Merge pull request #6888 from cli/cmbrose/pf-half-close
...
Half close port forwarding connections to fix hangs
2023-01-23 14:26:19 -06:00
Ryan Caldwell
71ec2c4e23
Codespaces create: Fix missing billable owner notice for individuals ( #6891 )
2023-01-23 13:15:44 +01: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
Ilya Yatsishin
179e9c256d
Add projectsV2 support to issue create, issue edit, pr create, and pr edit ( #6735 )
...
Co-authored-by: pshevche <pavel.shevchenko.95@gmail.com>
Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2023-01-19 22:13:09 +00: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
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
Sam Coe
83d080488e
Use AuthToken function to retrieve AuthToken instead of GetOrDefault ( #6878 )
2023-01-18 11:00:45 -08:00
Sam Coe
55578208a6
Migrate search commands to new table printer and add headers ( #6869 )
2023-01-18 09:40:10 -08: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
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