Commit graph

4761 commits

Author SHA1 Message Date
Sam Coe
34b3d5bb86
Add tests and a little polish 2021-08-17 10:05:54 -07:00
Jose Garcia
00502e9263 Merge pull request #66 from github/jg/multiple-ports
Multiple ports support in port forwarding
2021-08-17 10:02:48 -04:00
Jose Garcia
8533d08461 rename var 2021-08-17 13:07:40 +00:00
Jose Garcia
b5670252de small update to description 2021-08-17 12:58:46 +00:00
Jose Garcia
5fe84c6121 merge upstream 2021-08-17 12:57:04 +00:00
Mislav Marohnić
c1b549258f Merge pull request #69 from github/docs
Improve command docs
2021-08-17 14:43:20 +02:00
Mislav Marohnić
517aae2805 Merge remote-tracking branch 'origin' into docs 2021-08-17 14:42:09 +02:00
Mislav Marohnić
9b10968878 Merge pull request #70 from github/ci-lint
Run tests on all branches, perform lint check in CI
2021-08-17 14:33:08 +02:00
Mislav Marohnić
58096e6852 Merge pull request #68 from github/dev
Improve experience in development
2021-08-17 14:09:14 +02:00
Mislav Marohnić
5ad9736c4e Merge remote-tracking branch 'origin' into ci-lint 2021-08-17 13:31:50 +02:00
Mislav Marohnić
35e50cb679 Merge pull request #59 from github/output-formats
Add machine-readable output formats
2021-08-17 13:31:11 +02:00
Mislav Marohnić
6dd0bf8e5e Merge pull request #67 from github/jg/output-formats
add back . indicators & update ConnectToTunnel
2021-08-17 13:07:14 +02:00
Mislav Marohnić
b47686163a Fixes for log/output streams 2021-08-17 13:04:55 +02:00
Mislav Marohnić
810c42120a Add installation note about Raspberry Pi OS 2021-08-17 12:16:59 +02:00
Mislav Marohnić
0366e047e2 Cleanup Linux installation docs 2021-08-17 11:47:37 +02:00
Mislav Marohnić
1ec632b1b8 Add OpenBSD instructions 2021-08-17 11:47:21 +02:00
Mislav Marohnić
ca60e30171 Add warning about Snap 2021-08-17 11:46:25 +02:00
Mislav Marohnić
5e472bc0e5 Improve command descriptions and argument assertions 2021-08-16 23:24:11 +02:00
Mislav Marohnić
97d8285b58 Do not require GITHUB_TOKEN for merely viewing command help 2021-08-16 23:19:20 +02:00
Mislav Marohnić
22be26431e Have --codespace <name> flag be consistent across commands 2021-08-16 22:31:29 +02:00
Jose Garcia
c9c1ff8dac add back . indicators & update ConnectToTunnel 2021-08-16 20:16:50 +00:00
Mislav Marohnić
05328fbe13
Merge pull request #4114 from cli/powershell-docs
Add PowerShell instructions to completions help
2021-08-16 19:28:22 +02:00
Mislav Marohnić
ca40eeba5f
Merge pull request #4116 from cli/extensions-ui-tweaks
Extensions UI tweaks
2021-08-16 19:00:30 +02:00
lepasq
998a29d391 Update list_test.go to include topics as well 2021-08-15 14:31:24 +02:00
lepasq
87e5e6f2e3 Add topic filter to repository listing 2021-08-14 19:12:59 +02:00
Jose Garcia
79111d85ac Merge pull request #4 from github/jg/port-forwarding-errors-test-server
Port forwarding improvements & slight refactor
2021-08-13 08:41:43 -04:00
Mislav Marohnić
a7fc43bc5f Add hint about argument to extensions remove usage synopsis 2021-08-12 15:41:17 +02:00
Mislav Marohnić
ac6c859ca0 Print "Upgrade available" instead of "Update available"
This is because we have an `upgrade` command, not `update` command.
2021-08-12 15:40:46 +02:00
Mislav Marohnić
fbe1487dd0
Merge pull request #4112 from cli/extension-cmd-rename
Rename `gh extensions` → `gh extension`
2021-08-12 15:35:01 +02:00
Mislav Marohnić
0c99f7d8d5
Merge pull request #4051 from cli/extensions-overhaul
Rework local extensions for Windows
2021-08-12 15:33:56 +02:00
Mislav Marohnić
e567ce00cd
Merge pull request #4102 from cli/sync-no-checkout
Repo sync optimizations
2021-08-12 15:33:32 +02:00
Mislav Marohnić
20d75f0ff9 Normalize logging, output, and error reporting
- Return errors as errors, not print to stdout and return nil
- Ensure errors and warnings are always written to stderr, not stout
- Do not print progress to stdout unless stdout is a terminal
2021-08-12 14:37:23 +02:00
Mislav Marohnić
41e223869e Fix mapping port numbers to labels 2021-08-12 14:37:06 +02:00
Mislav Marohnić
db95f2f71f Add machine-readable output functionality to ports command 2021-08-12 14:35:49 +02:00
Mislav Marohnić
e35d41ec1f Add PowerShell instructions to completions help 2021-08-12 12:56:46 +02:00
Mislav Marohnić
bf9c49eccd Rename gh extensionsgh extension
This is for compatibility with other core commands which are all singular.
2021-08-11 22:22:39 +02:00
Mislav Marohnić
3946606e5e Use symlinks on most platforms and keep using plain files on Windows 2021-08-11 22:11:24 +02:00
Mislav Marohnić
c39dd1e3eb
Merge pull request #4109 from ShaharyarAhmed-bot/dev
Check path for git executable before auth
2021-08-11 19:27:37 +02:00
Mislav Marohnić
21521b06b9 Check git presence during auth login only if it's going to be needed 2021-08-11 19:22:16 +02:00
Shaharyar Ahmed
e28236a447 Check path for git executable before auth
There was a bug where if git was not installed then gh would do its
authentication and try to configure git but would then find out that the
git executable was not in PATH.

Now gh checks to see if the git executable is in PATH before
authenticating the user. If the git executable is in PATH the
authentication continues as normal, if it is not in PATH then it prints
out an error to the console:

$ git executable not found in $PATH

Resolves: #3818
2021-08-11 19:22:16 +02:00
Mislav Marohnić
7a9d1fc331 Merge remote-tracking branch 'origin/main' into output-formats 2021-08-11 12:13:09 +02:00
Mislav Marohnić
4fa984a333
Merge pull request #4003 from despreston/3381-release-discussions
add --discussion-category flag to release cmd
2021-08-10 15:54:03 +02:00
Des Preston
bdc5b55f55 pr comments
Only add discussion category to request if there is one. This eliminates
the need to update old tests.

Renaming the variable to something shorter.
2021-08-10 09:47:49 -04:00
Mislav Marohnić
f4bded30f8 Mark test helper 2021-08-10 14:30:55 +02:00
Mislav Marohnić
6136a39ed6 Use remotes.FindByRepo() 2021-08-10 14:30:36 +02:00
Mislav Marohnić
0f1ab13b9e Only check if working copy is dirty when syncing current branch
In other cases, we don't have to abort the operation since it can
proceed without being affected by the working copy at all.
2021-08-10 14:29:23 +02:00
Mislav Marohnić
66ad6ad7d0 Avoid git checkout during gh repo sync
- If the local branch already exists, use `git update-ref`
- If it needs to be created, use `git branch <newbranch>`, but don't
  switch to the new branch

Bonus fixes
- Enables operation while on detached HEAD
- Enables operation even when the current remote doesn't track all
  branches in the remote repo (uses FETCH_HEAD instead of the
  `<remote>/<branch>` syntax)
2021-08-09 22:10:52 +02:00
Jose Garcia
eb2a176450 remove err print 2021-08-07 17:54:43 +00:00
Sam
c5371d5303
Merge pull request #3813 from cli/repo-sync
Add repo sync command
2021-08-05 19:39:40 -07:00
Jose Garcia
fbf0d28672 port forwarding err handling and test refactors 2021-08-06 01:03:03 +00:00