Commit graph

1432 commits

Author SHA1 Message Date
Siarhei Fedartsou
373d1efb58 format code 2021-09-12 20:50:21 +03:00
Siarhei Fedartsou
11466fda12 Add --draft and --non-draft filters to gh pr list 2021-09-12 20:48:23 +03:00
Mislav Marohnić
2a2088dc89 💅 tweak extension docs 2021-09-06 20:04:40 +02:00
wrslatz
28cbfc4aab
Document installing extensions using full repo URL 2021-09-03 18:14:10 -04:00
Mislav Marohnić
e0fa56dc29 Merge remote-tracking branch 'origin' into go-module-v2 2021-09-02 20:02:16 +02:00
Nate Smith
1af6a669e3
Merge pull request #4214 from cli/garden-portability
Use `x/term` package for repo garden instead of shelling out to stty
2021-09-02 12:39:23 -05:00
Mislav Marohnić
abfe29617a
Merge pull request #4253 from despreston/4248-line-range
feat(4248): add support for line range w/ browse
2021-09-01 18:08:51 +02:00
Des Preston
dafd0bfbd1 feat(4248): add support for line range w/ browse
Allow using a range of lines when browsing files. For example:

`gh browse test.go:10-20`

Closes #4248
2021-08-31 16:32:37 -04:00
Luke
1102de89be add quotes around @me in documentation to ensure examples work on powershell 2021-08-30 09:13:43 -05:00
Mislav Marohnić
99cbfd3dd8
Merge pull request #4213 from cli/defunct-doc-link
Remove defunct link from `gh actions`
2021-08-26 18:16:40 +02:00
Mislav Marohnić
6cbc886c53 Use x/term package for repo garden instead of shelling out to stty
Shelling out to stty seems hard to get right between Linux and macOS.
2021-08-26 16:45:55 +02:00
Mislav Marohnić
5dfeb1f7ce Remove defunct link from gh actions
The online guide that was GitHub CLI-specific no longer exists. Instead,
"GitHub CLI" sections were added to existing individual articles about
managing workflow runs.
2021-08-26 15:48:08 +02:00
Kid
b56f77b2e5
Use /usr/bin/env bash instead of /bin/bash in gh extension create 2021-08-26 00:49:33 +08:00
Mislav Marohnić
11fbb60ae7 Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
Cuong Manh Le
6cf6bb4a44 Disable auth for cobra shell request completion hidden commands
Those hidden command are used by the shell completion scripts, but they
are not disabled auth check. Thus, the shell completion does not work
even the completion setup was done properly.

Fixes #4188
2021-08-25 01:35:49 +07:00
Heath Stewart
e2973453b5
Add helper template functions for rendering tables (#3519)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-08-23 21:00:25 +02:00
Heath Stewart
88af63d36f
Re-enable label colors for issue list (#4106)
* Re-enable label colors for issue list
* Drop parentheses wrapping issue labels
* Support ANSI escape codes in TablePrinter cells
* Switch to a Truncate implementation that correctly measures ANSI escape codes
* Only output RGB color if terminal has truecolor capabilities
* Enable `ENABLE_VIRTUAL_TERMINAL_PROCESSING` on Windows - fixes wrapping issues with full lines and allows truecolor rendering

Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-08-23 19:55:12 +02:00
Sam
25b150ad6e
Merge pull request #4159 from cli/ext-create
Add extension create command
2021-08-23 10:44:54 -07:00
Sam Coe
5756e2397a
Extension template is executable according to git 2021-08-23 10:36:29 -07:00
Sam Coe
c8963a6345
Address PR comments 2021-08-23 09:01:05 -07:00
Sam Coe
bb0107ad51
Unhide extension commands 2021-08-23 08:49:09 -07:00
Mislav Marohnić
af2aecd40b
Merge pull request #4146 from cli/force-tty
Add ability to force terminal-style output even when redirected
2021-08-23 16:46:14 +02:00
Mislav Marohnić
0701f8aa82 Add tests for ForceTerminal 2021-08-23 16:09:08 +02:00
Sam Coe
7f0e09c13f
Move link to next line since it is long 2021-08-19 16:18:59 -07:00
Sam Coe
d22286a8e8
Add examples to template 2021-08-19 15:58:01 -07:00
Sam Coe
50a15cae86
Better error message 2021-08-19 14:46:26 -07:00
Sam Coe
232ad2a67c
Fix up link 2021-08-19 13:41:26 -07:00
Sam Coe
e9f7459ce2
Add extension create command 2021-08-19 13:30:34 -07:00
Mislav Marohnić
1881de6d41 Allow fully qualified extension name as argument to upgrade, remove 2021-08-19 20:01:18 +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ć
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
Mislav Marohnić
321fd98f82 Add ability to force terminal-style output even when redirected 2021-08-17 20:12:25 +02:00
Sam Coe
34b3d5bb86
Add tests and a little polish 2021-08-17 10:05:54 -07: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
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ć
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