Mike McDonald
5bf185cb8a
Merge pull request #4538 from cli/mm-codespaces-remove-friendly-machine-name
...
Removing "friendly" machine name from prompt
2021-10-18 10:43:44 -06:00
Mike McDonald
e923eb8853
Merge branch 'trunk' into mm-codespaces-remove-friendly-machine-name
2021-10-18 10:35:48 -06:00
Jose Garcia
b5139298ff
Merge pull request #4551 from cli/jg/fix-git-status
...
codespace: fix Git status fields to snake case
2021-10-18 11:21:36 -04:00
Sam
cbab904746
Merge pull request #4552 from cli/dependabot/go_modules/github.com/creack/pty-1.1.17
...
Bump github.com/creack/pty from 1.1.16 to 1.1.17
2021-10-18 07:49:46 -07:00
dependabot[bot]
65382283b9
Bump github.com/creack/pty from 1.1.16 to 1.1.17
...
Bumps [github.com/creack/pty](https://github.com/creack/pty ) from 1.1.16 to 1.1.17.
- [Release notes](https://github.com/creack/pty/releases )
- [Commits](https://github.com/creack/pty/compare/v1.1.16...v1.1.17 )
---
updated-dependencies:
- dependency-name: github.com/creack/pty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-18 14:27:40 +00:00
Jose Garcia
aad6aa67f9
Merge pull request #4549 from cli/jg/cmd-docs
...
codespace: update cmd docs to match other commands
2021-10-18 10:26:58 -04:00
Jose Garcia
337c557638
Fix Git status fields to snake case
2021-10-18 09:22:08 -04:00
Jose Garcia
84ced52131
Update cmd docs to match other commands
2021-10-16 17:10:34 -04:00
Mike McDonald
fadd3350de
Thanks CI, you the real MVP
2021-10-15 22:08:41 +00:00
Mike McDonald
e175d0f0a6
removing unused dependencies
2021-10-15 22:05:54 +00:00
Mike McDonald
5f98c9d2e4
Fixing formatting
2021-10-15 21:58:52 +00:00
Mike McDonald
21ff083b9b
Removing "friendly" machine name from prompt
...
Currently the options end up as `Basic` through to `X`. No other client
provides these types of names, so we should just show machine info.
2021-10-15 21:56:17 +00:00
Nate Smith
06c06c87dc
Merge pull request #3833 from cristiand391/gh-run-cancel
...
Add `run cancel` command
2021-10-15 15:14:49 -05:00
nate smith
a4015b7f09
prompt tests
2021-10-15 15:08:53 -05:00
nate smith
f381a804fc
fix tests
2021-10-15 14:57:20 -05:00
nate smith
18975e61d1
fix imports
2021-10-15 14:31:29 -05:00
nate smith
b81eda0c46
newline
2021-10-15 14:28:28 -05:00
nate smith
f329ebd7ca
add interactive prompt for in progress runs
2021-10-15 14:19:16 -05:00
Nate Smith
dcf3f60e00
Merge pull request #4007 from bchadwic/relative-path
...
gh browse relative path enhancement
2021-10-15 14:13:58 -05:00
nate smith
4a01e6b702
Merge remote-tracking branch 'origin/trunk' into gh-run-cancel
2021-10-15 14:12:53 -05:00
Marwan Sulaiman
6f34e4a605
Rename privacy sub-command to visibility ( #4533 )
...
* Rename privacy sub-command to visibility
* PR fixes
2021-10-15 09:51:46 -04:00
Mislav Marohnić
dc614f66a9
Merge pull request #4529 from nickfyson/change_expected_status
...
change expected delete status to 202
2021-10-15 13:50:21 +02:00
Nick Fyson
1e52b4c7f9
change expected delete status to 202
2021-10-15 12:42:51 +01:00
Jose Garcia
9a86a2ee6a
Merge pull request #4524 from cli/jg/fix-trunk
...
codespace: update running method
2021-10-14 20:13:35 -04:00
Jose Garcia
4504e49e96
Update running method
2021-10-14 20:02:02 -04:00
Jose Garcia
1aec892326
Merge pull request #4520 from cli/jg/new-api-shape
...
codespace: implement new API payload
2021-10-14 19:59:59 -04:00
nate smith
70c78f2aa8
some fixes, streamlining
2021-10-14 17:07:51 -05:00
Mislav Marohnić
f6b33572fd
Merge pull request #4279 from SiarheiFedartsou/sf-pr-list-head-filter
...
Add `--head` filter to `gh pr list`
2021-10-14 20:54:56 +02:00
Nate Smith
cb89b8ca7a
Merge pull request #4442 from cli/cleanup-upgrade
...
Cleanup extension upgrade command
2021-10-14 13:39:14 -05:00
Mislav Marohnić
b0360612d2
Merge pull request #4521 from cli/jg/bind-locally
...
codespace: switches port binding to 127.0.0.1 where possible
2021-10-14 20:29:21 +02:00
Mislav Marohnić
c2abe170d8
Merge pull request #4512 from cli/changelog-api
...
Generate release notes using the new API
2021-10-14 20:29:12 +02:00
Mislav Marohnić
1464a8a0f3
Generate release notes using the new API
...
https://docs.github.com/en/rest/reference/repos#generate-release-notes-content-for-a-release
2021-10-14 20:22:38 +02:00
Mislav Marohnić
78443964d4
Merge pull request #4513 from cli/missing-oauth-scopes
...
Warn about missing OAuth scopes when reporting HTTP 4xx errors
2021-10-14 20:21:13 +02:00
Mislav Marohnić
89ad870190
auth refresh: preserve existing scopes when requesting new ones
...
When there was a previously valid token that was granted some scopes,
ensure all those scopes will be re-requested when doing the
authentication flow for the new token.
2021-10-14 19:52:59 +02:00
nate smith
4996ba2ba4
Merge remote-tracking branch 'origin/trunk' into relative-path
2021-10-14 12:24:27 -05:00
Mislav Marohnić
64a19ee71f
Remove OAuth scopes checking logic from ssh-key commands
...
Scopes checking is now handled on the HTTP client level for all commands.
2021-10-14 18:36:55 +02:00
Nate Smith
78ac77180e
Merge pull request #3950 from bchadwic/browse-commit
...
Add feature open latest commit in gh browse
2021-10-14 11:31:15 -05:00
nate smith
5bdaab882b
fix
2021-10-14 11:25:33 -05:00
Mislav Marohnić
693193fe84
Consistent error handling in codespaces API operations
...
Using HandleHTTPError ensures that hints regarding insufficient OAuth
scopes will be properly reported on stderr.
2021-10-14 18:16:04 +02:00
Mislav Marohnić
2c3f02ee62
Ensure NOT_FOUND error when querying private repos using insufficient scope
2021-10-14 17:31:21 +02:00
Jose Garcia
b0905a415f
Merge pull request #4508 from cli/jg/codespace-stop
...
codespace stop: new command to stop a running codespace
2021-10-14 11:22:25 -04:00
Jose Garcia
0748e658cc
Switches port binding to 127.0.0.1 where possible
2021-10-14 11:07:25 -04:00
Mislav Marohnić
fccc910166
Merge pull request #4517 from cli/macos-firewall-prompt-skip
...
Avoid macOS prompt to allow incoming connections in liveshare tests
2021-10-14 16:15:42 +02:00
Jose Garcia
5e56b4a7ce
Fix tests
2021-10-14 09:21:03 -04:00
Jose Garcia
3544275c2f
Implement new API payload for a Codespace
2021-10-14 09:10:15 -04:00
Mislav Marohnić
d68126af99
Avoid macOS prompt to allow incoming connections in liveshare tests
...
Listening on the localhost interface disallows connections from the
outside anyway, so the OS firewall doesn't have to prompt whether the
user wants to allow incoming connections to the Go process.
2021-10-14 14:23:36 +02:00
nate smith
d72d0f47f6
Merge remote-tracking branch 'origin/trunk' into browse-commit
2021-10-13 16:53:50 -05:00
Mislav Marohnić
2ca18e0600
Warn about missing OAuth scopes when reporting HTTP 4xx errors
...
If a 4xx server response lists scopes in the X-Accepted-Oauth-Scopes
header that are not present in the X-Oauth-Scopes header, the final
error messaging on stderr will now include a hint for the user that they
might need to request the additional scope:
$ gh codespace list
error getting codespaces: HTTP 403: Must have admin rights to Repository. (https://api.github.com/user/codespaces?per_page=30 )
This API operation needs the "codespace" scope. To request it, run: gh auth refresh -h github.com -s codespace
2021-10-13 23:24:14 +02:00
Mislav Marohnić
53479c712c
Merge pull request #4510 from cli/dependabot-patch
...
Configure Dependabot to only consider patch version bumps
2021-10-13 21:01:39 +02:00
Jose Garcia
d5c9630fae
Merge pull request #4511 from cli/jg/keepalive-fix
...
codespace ssh: fix for nil logger on non-debugging scenarios
2021-10-13 14:44:10 -04:00