Commit graph

1465 commits

Author SHA1 Message Date
Mislav Marohnić
b38ce24497 Ensure correct path to gh after gh auth refresh git credential setup 2021-09-24 14:43:48 +02:00
Mislav Marohnić
d853ce5bc9 Avoid resolving executable() until requested at runtime
This is to avoid hitting the filesystem and resolving symlinks
unnecessarily. The value of executable is just used conditionally by a
handful of commands.
2021-09-24 14:42:41 +02:00
Mislav Marohnić
78b35b7b6e Merge remote-tracking branch 'origin' into 3704-credential-helper 2021-09-24 14:35:01 +02:00
Nate Smith
96aed38819
Merge pull request #4308 from cli/ext-bin
install binary extensions
2021-09-23 10:51:37 -07:00
vilmibm
7bf85355a9 restore cached client 2021-09-22 15:59:57 -05:00
vilmibm
5f02ed2656 linter appeasement 2021-09-22 15:59:50 -05:00
vilmibm
514d4d992c refactor dependencies of ext manager 2021-09-21 15:55:31 -05:00
vilmibm
1f3b872859 test for unsupported platform 2021-09-20 17:17:30 -05:00
vilmibm
e85b0480e9 track installed tag name 2021-09-20 17:10:18 -05:00
vilmibm
0e2861a507 WIP refactoring 2021-09-20 17:05:19 -05:00
vilmibm
f5d269ebad WIP refactoring 2021-09-20 17:02:34 -05:00
vilmibm
af7805af53 WIP refactoring 2021-09-20 16:46:54 -05:00
vilmibm
f4d97dcedd WIP refactoring 2021-09-20 16:25:26 -05:00
vilmibm
ae38daf08a nit 2021-09-20 16:05:35 -05:00
vilmibm
b00e8a5681 more accurately check for binary extension 2021-09-20 16:02:20 -05:00
Sam
02ed5a9666
Merge pull request #4316 from SiarheiFedartsou/sf-pulls-draft
Add `--draft` and `--non-draft` filters to `gh pr list`
2021-09-20 12:07:52 -07:00
Sam Coe
d14715f1e3
Convert bool to string early for pr list draft flag 2021-09-20 11:29:37 -07:00
Siarhei Fedartsou
6a34f53c6c Change pr list --draft UX 2021-09-17 22:05:47 +03:00
Mislav Marohnić
bb86145cb6
Merge pull request #4331 from cli/repo-create-prompt-error
Do not swallow prompt error during `repo create`
2021-09-17 14:37:24 +02:00
Sam
0f7c4d94af
Merge pull request #4328 from cli/fix-sync-fetch
Allow user input for git fetch in repo sync
2021-09-16 10:15:26 -07:00
Sam Coe
0305788536
Typo 2021-09-16 09:02:10 -07:00
Mislav Marohnić
f9e49f4aec Do not swallow prompt error during repo create 2021-09-16 12:25:44 +02:00
vilmibm
eeca998640 binary extension support in gh extension install 2021-09-15 18:46:17 -05:00
Andrew Hsu
e13398f6b4
fix browse of markdown files with line ranges (#4310)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2021-09-14 16:08:19 +02:00
Mislav Marohnić
6f3b1eb080
Merge pull request #3967 from despreston/des/3839-warn-limit
show warning when limit exceeds search api max
2021-09-13 19:30:16 +02:00
Sam Coe
a8492bb0ea
Allow user input for git fetch in repo sync 2021-09-13 10:14:20 -07:00
Siarhei Fedartsou
1926971a76 Remove non-relevant test 2021-09-12 21:04:03 +03:00
Siarhei Fedartsou
f3053c3628 fix tests 2021-09-12 20:58:13 +03:00
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
Mislav Marohnić
d731cb9c73 Fix determining current process location 2021-09-06 16:57:59 +02:00
Mislav Marohnić
55c3064f45 Merge remote-tracking branch 'origin' into 3704-credential-helper 2021-09-06 16:16:52 +02:00
Mislav Marohnić
619333adb6 Avoid using error values to pass information about the search cap 2021-09-06 16:09:18 +02:00
Des Preston
e8b015b80d show warning when limit exceeds search api max
Fixes #3839
2021-09-06 16:05:11 +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
wilso199
2dba58bfa8 Using gh executable from PATH in favor of the resolved path 2021-08-30 16:57:43 -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