Mislav Marohnić
5b4a08dcb9
Ensure that only PATH is searched when shelling out to external commands
...
Works around https://github.com/golang/go/issues/38736 for Windows.
2020-11-11 16:33:13 +01:00
Cristian Dominguez
fa8674386b
Render links as absolute URLs in repo view ( #2363 )
...
Co-authored-by: Cristian Dominguez <cristiand391@users.noreply.github.com>
2020-11-11 13:13:19 +01:00
Sam Coe
241e90aa9b
Make markdown:generate annotation a markdown generation override for hidden commands
2020-11-04 12:35:58 +03:00
Sam Coe
f770c6481c
Generate markdown for help topics
2020-11-04 12:35:58 +03:00
Alisson Santos
cf617e88f4
Extract repeated code to util function
2020-11-03 22:05:04 +01:00
Nate Smith
24d863eccc
Merge pull request #2316 from cli/colors-1624
...
migrate off of utils color functions
2020-11-03 12:49:02 -06:00
vilmibm
47eef416b3
more iostreams passing
2020-11-02 11:47:12 -08:00
Alisson Santos
699a6c68fe
Use slice and make both status lines the size of the terminal width.
2020-11-02 13:21:46 +01:00
Alisson Santos
7bff34f408
Use terminal width for the status line
2020-11-02 10:56:23 +01:00
vilmibm
a2aa154794
port entirely to ColorScheme
2020-10-29 12:37:45 -07:00
Mislav Marohnić
5e89036d49
Merge pull request #2253 from emhagman/repo-clone-friendly-error
...
Print friendly error when "gh repo clone" is missing required argument
2020-10-29 17:02:53 +01:00
Mislav Marohnić
fc969281cf
Better tests for clone argument parsing
2020-10-29 16:52:50 +01:00
Nate Smith
78f047424b
Merge pull request #2205 from cli/garden-sigterm
...
Handle Ctrl-C in repo garden
2020-10-23 15:44:00 -05:00
Eric Hagman
af1d8a60e0
Print friendly error when "gh repo clone" is missing required argument
2020-10-21 23:23:39 -04:00
Mislav Marohnić
7660b66c6c
go fmt
2020-10-16 14:07:01 +00:00
Mislav Marohnić
49378fb60f
Handle Ctrl-C in repo garden
2020-10-16 13:20:23 +00:00
Jonathan Lloyd
8f44aee76a
Load repo and parent in single query
2020-10-13 20:41:16 +01:00
Jonathan Lloyd
a5ec03d000
Improve test args
2020-10-12 23:57:47 +01:00
Jonathan Lloyd
487b62d3b9
Clone repos using canonical username/repo name capitalization
...
GitHub user/repo names are case insentitive. This can cause issues when dealing with
repos programmatically using systems that aren't aware of this (e.g. go packages).
This commit updates the cloning logic of the CLI to query the API for the canonical
capitalization and uses that for the clone operation.
Fixes : #1845
2020-10-12 23:39:18 +01:00
vilmibm
fa68a3a858
linter appeasement
2020-10-05 15:19:49 -05:00
troido
974c6d8958
restore tty settings after gh repo garden
...
the command 'gh repo garden' used to leave the terminal in noecho mode when exiting
This restores the tty settings to their state before running 'gh repo garden'
2020-10-03 11:01:38 +02:00
Nate Smith
3c6e355a1c
Merge pull request #1967 from aldahick/fix/repo-garden-few-commits
...
Fix some bugs in `repo garden` in repositories with few commits
2020-09-29 10:27:10 -05:00
Alex Hicks
57cdfee835
Fix some bugs in repo garden in repositories with few commits
2020-09-25 17:51:59 -04:00
Sam Coe
f0d4fbf84f
Address PR comments around style and naming
2020-09-24 19:27:29 +02:00
Sam Coe
ed4075517c
Check for terminal background color before starting pager
2020-09-24 13:06:28 +02:00
Nate Smith
e3f21a58cc
Merge pull request #1816 from OjasWadhwani/parseEmoji
...
Emoji parsing in Readme content
2020-09-21 16:35:41 -05:00
Sam Coe
458d5cb42f
Respect interactive repo name input on create
2020-09-21 14:26:15 +02:00
2017A7PS0125G
cd3e9c44cf
gofmted file
2020-09-19 00:59:35 +05:30
2017A7PS0125G
5b413da745
Emoji parsing in Readme content
2020-09-19 00:24:22 +05:30
Martín Montes
381d1a1cdb
Added option to specify branch in gh repo view
2020-09-17 23:28:15 +02:00
Mislav Marohnić
b2e36a0979
Merge pull request #1706 from cli/base-resolve
...
Improve repository base and head resolution
2020-09-16 18:53:21 +02:00
Mislav Marohnić
00ac966c65
Merge remote-tracking branch 'origin' into pager-for-everyone
2020-09-16 15:58:54 +02:00
Mislav Marohnić
f9239661f2
Reuse the StubRepoInfoReponse test helper
2020-09-16 15:01:13 +02:00
Nate Smith
9f486efbc6
hackday: gh repo garden ( #1049 )
...
* add gh repo garden
* move file
* oops
* fixes
* fix clearing
* block windows sadly
* broken wip
* fix api thing
* do not add to client
* move helper as it does not work on windows
* hide command
* macos fix
* Update pkg/cmd/repo/garden/garden.go
Co-authored-by: Lee Reilly <lee@github.com>
* default for key input loop
* get redrawing working
* clean up garden update, it all works
* notes
* fix arrow keys and just do wads/arrows/vi
* this function is only called once now
* support ghes
* add a progress indicator
* cap maxCommits
Co-authored-by: Lee Reilly <lee@github.com>
2020-09-15 09:59:27 -05:00
Mislav Marohnić
b2e7f0c1e2
Merge remote-tracking branch 'origin' into pager-for-everyone
2020-09-14 14:18:42 +02:00
Nate Smith
5a8df475b9
Merge pull request #1639 from cli/disable-prompts
...
Support "prompt" config setting
2020-09-11 12:07:44 -05:00
vilmibm
a811e72c9d
do not assume public when creating repo non-interactively
2020-09-11 11:57:40 -05:00
vilmibm
1073c97409
review feedback
2020-09-11 11:36:24 -05:00
vilmibm
c0fc31f7d5
use CanPrompt in commands
2020-09-10 12:13:48 -05:00
Sam Coe
e50833cae0
Do not html escape repo view output
2020-09-10 15:25:17 +02:00
Mislav Marohnić
84b1b36433
Simplify handling the "broken pipe" error
2020-09-07 12:41:28 +02:00
Mislav Marohnić
5e11fe8fa0
Merge pull request #1623 from bdougie/bdougie-filter-credit-bots
...
Filter gh credits for humans
2020-09-07 11:44:59 +02:00
Brian 'bdougie' Douglas
d83c99f87f
filter by contributor type
2020-09-06 22:02:02 -07:00
Mislav Marohnić
ccfe38de26
Add PAGER support to commands that produce significant output
2020-09-04 23:36:14 +02:00
Colin Shum
99372f0dbc
[Refactor] Add variadic argument to repoCreate to support templates
2020-08-28 15:02:08 -04:00
Colin Shum
2886dd913f
[Refactor] toView -> toClone
2020-08-27 19:13:06 -04:00
Colin Shum
263e3a6a35
Update create_test.go
2020-08-27 17:57:55 -04:00
Colin Shum
32e5d05328
[Fix] Warn user when --template is passed with incompatible flags
2020-08-27 15:00:57 -04:00
Colin Shum
58f62a4a15
[Feature] Create repository from template
...
Co-authored-by: Mislav Marohnić <mislav@github.com>
2020-08-27 14:46:16 -04:00
Nate Smith
27c49279b3
Merge pull request #1567 from ganboonhong/view-without-username
...
View repositories without username
2020-08-25 13:57:42 -05:00