Commit graph

6284 commits

Author SHA1 Message Date
Mislav Marohnić
351226d34e
Merge pull request #6881 from cli/reviewers-json-fix
Fix JSON payloads for PR reviewers, mergedBy
2023-01-19 16:17:22 +01:00
Rebecca Miller-Webster
241f9197ee
Merge pull request #6815 from cli/intake-doc
intake doc
2023-01-18 23:15:45 -06: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ć
8b3e5c1554
Fix mergedBy JSON export for PRs 2023-01-18 21:41:07 +01:00
Mislav Marohnić
638f6ccc30
Fix JSON payload for PR review author
We do not query for bot/user distinction when fetching PR reviews, so we can't output that information either.
2023-01-18 21:33:29 +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
ba27e5bfb8
Merge pull request #6838 from dmgardiner25/start-remote-server-grpc
Start SSH server with gRPC client
2023-01-10 14:54:27 -08: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
Nate Smith
fc21c876ba
Merge pull request #6831 from cli/select-default-blank
avoid panic when bad default given to Select
2023-01-09 19:20:07 -06: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
vilmibm
55c5e008cb link from readme 2023-01-06 17:22:50 -08:00
vilmibm
fa55cf497a add intake document 2023-01-06 17:22:45 -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
faabdc247b Fix linting error and cleanup error messages 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
22a9cb8856 tweak selection 2023-01-03 13:57:54 -08:00
vilmibm
290d90430d select base repo correctly when only one remote 2023-01-03 11:58:48 -08:00
Nate Smith
08d7ea5f62
Merge pull request #6798 from cli/dependabot/go_modules/github.com/gdamore/tcell/v2-2.5.4
Bump github.com/gdamore/tcell/v2 from 2.5.3 to 2.5.4
2023-01-03 12:53:56 -06:00
dependabot[bot]
2d3ce6270a
Bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17 (#6794)
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.16 to 0.0.17.
- [Release notes](https://github.com/mattn/go-isatty/releases)
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.16...v0.0.17)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-03 10:38:22 -08:00
Aleksey Levenstein
c03b6ce891
docs: update codespace installation instructions (#6781) 2023-01-03 17:57:29 +00:00
dependabot[bot]
2e399dcf01
Bump github.com/gdamore/tcell/v2 from 2.5.3 to 2.5.4
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell) from 2.5.3 to 2.5.4.
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md)
- [Commits](https://github.com/gdamore/tcell/compare/v2.5.3...v2.5.4)

---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-02 14:03:51 +00:00
Mislav Marohnić
6618baaf63
Merge pull request #6779 from cli/fix-comments-author
Fix fetching issue/PR comments
2022-12-23 17:23:44 +01: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ć
7ffa87fcd0
Merge pull request #6776 from cli/goreleaser-fix
Fix signing Windows exe on release
2022-12-22 22:07:19 +01:00
Mislav Marohnić
ea4b410df5
downgrade ubuntu to fix osslsigncode 2022-12-22 21:56:11 +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ć
c5ce6855a7
Merge pull request #6589 from cli/cobra-update
Update Cobra and make use of its new command grouping
2022-12-21 14:59:07 +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