Mislav Marohnić
a508fee4e1
Merge pull request #4158 from cli/extensions-ux
...
Enable `help` for extensions, accept full extension names as argument
2021-08-23 12:45:22 +02:00
Mislav Marohnić
c96834228e
Merge pull request #4169 from saintmalik/patch-1
...
fix typos in docs
2021-08-23 12:23:44 +02:00
Mislav Marohnić
4a45ca6fa6
Merge pull request #4154 from cli/graphql-502-error
...
Fix HTTP 502 error reporting from GraphQL request
2021-08-23 12:03:34 +02:00
SaintMalik
75dc51084b
fix typos in docs
2021-08-22 08:25:15 +01:00
Mislav Marohnić
51d609078b
Enable gh help <command> for extensions
...
This sends the `--help` flag to the extension. The extension is
reponsible for printing something useful as a result.
2021-08-19 20:38:19 +02:00
Mislav Marohnić
1881de6d41
Allow fully qualified extension name as argument to upgrade, remove
2021-08-19 20:01:18 +02:00
Mislav Marohnić
c84bfa9e66
Merge pull request #4156 from rneatherway/patch-1
...
Extend query suite with quality queries
2021-08-19 19:01:01 +02:00
Robin Neatherway
6ebafb55ae
Extend query suite with quality queries
2021-08-19 15:05:28 +01:00
Mislav Marohnić
d24e963f34
Merge pull request #4155 from rneatherway/rneatherway/off-by-one
...
Correct benign mistake in off-by-one guard
2021-08-19 15:52:02 +02:00
Robin Neatherway
0e51ec1699
Correct benign mistake in off-by-one guard
...
m[2] is the third element of m, rather than the second, so we have to
check instead that the len of m is at least 3.
Because the regular expression has two capture groups, the length of m
will always be 3, so currently the guard will always be true.
2021-08-19 14:41:04 +01:00
Mislav Marohnić
3e23dcab15
Fix HTTP 502 error reporting from GraphQL request
...
Now it makes sure that the message portion will be printed to stderr
when the user encounters the error.
2021-08-18 22:17:32 +02:00
Mislav Marohnić
8a56359902
Merge pull request #4144 from cli/install-docs
...
Refresh Linux & BSD installation docs
2021-08-18 17:21:24 +02:00
Mislav Marohnić
45b358bcfc
Merge pull request #4136 from lepasq/filter-by-topic
...
Add topic filter to repository listing
2021-08-18 16:55:48 +02:00
Sam
8fb6bb66c8
Merge pull request #3992 from despreston/858-config-browser
...
add browser option to config
2021-08-17 14:17:54 -07:00
Sam Coe
b9438015a2
Add GH_BROWSER to help topic
2021-08-17 14:10:15 -07:00
Sam Coe
a07748f1f1
Add support for GH_BROWSER env var
2021-08-17 14:07:49 -07:00
Sam
2c02c2819b
Merge pull request #4145 from cli/remove-homedir
...
Remove backwards compatibility with homedir library for config files
2021-08-17 13:56:40 -07:00
Sam Coe
315c6e4eb7
Remove backwards compatibility with homedir library for config files
2021-08-17 10:28:16 -07:00
Sam Coe
34b3d5bb86
Add tests and a little polish
2021-08-17 10:05:54 -07: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ć
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
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ć
e35d41ec1f
Add PowerShell instructions to completions help
2021-08-12 12:56:46 +02:00
Mislav Marohnić
bf9c49eccd
Rename gh extensions → gh 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ć
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
Sam
c5371d5303
Merge pull request #3813 from cli/repo-sync
...
Add repo sync command
2021-08-05 19:39:40 -07:00
Mislav Marohnić
ac13fc807c
Merge pull request #4005 from despreston/835-rename-checkout
...
add --branch flag to pr checkout
2021-08-05 21:02:27 +02:00
Mislav Marohnić
9a485ddfa2
💅 Cleanup local branch handling during pr checkout
2021-08-05 20:44:34 +02:00
Des Preston
294a029e70
add --branch flag to pr checkout
...
Allows renaming the checked out branch.
2021-08-05 20:44:20 +02:00
Sam Coe
174e26ecac
Fix tests
2021-08-04 18:26:30 -07:00
Sam Coe
2c4a662660
Rework git client interface
2021-08-04 18:13:58 -07:00