Mislav Marohnić
fc77cbc964
Deprecate test.ExpectLines
...
For asserting command output, exact string matches are preferred in most cases. In cases when a pattern match is needed, the test can use regexp ad hoc.
2021-01-18 23:25:45 +01:00
Mislav Marohnić
c308f1cd91
Prevent further use of SetPrepareCmd and InitCmdStubber
2021-01-18 22:44:53 +01:00
Mislav Marohnić
5531498f27
Migrate to new cmd stubber in repo fork tests
2021-01-18 22:42:27 +01:00
Mislav Marohnić
584b33e79c
Migrate to new cmd stubber in repo clone tests
2021-01-18 22:42:13 +01:00
Mislav Marohnić
c63acf6728
Migrate to new cmd stubber in misc. tests
2021-01-18 22:42:01 +01:00
Cristian Dominguez
ce151420f3
Migrate legacy tests
2021-01-11 21:07:19 -03:00
xhqr
8b5c5896f2
[repo/create] Create local repo dir with non tty. ( #2671 )
...
This addresses issue #2587 .
2021-01-05 14:40:52 -08:00
Mislav Marohnić
39a0a8c57c
Improve clone wiki test
2020-12-15 17:45:13 +01:00
gunadhya
fd57835bb9
Fix repo clone wiki
2020-12-15 17:45:03 +01:00
cdce8p
f536901bc1
Only fetch DefaultBranchRef when adding upstream remote during gh repo clone
2020-12-09 20:15:21 +01:00
Josh Soref
ec82d3c47e
spelling: settings
2020-11-21 21:43:51 -05:00
Josh Soref
e58b2dbe92
spelling: chestnuts
2020-11-21 21:43:51 -05:00
Nate Smith
05a1a25271
match parent repo protocol when forking ( #2434 )
...
* match parent repo protocol when forking
* guard against nil and prefer PushURL
2020-11-20 12:00:49 -06:00
dfireBird
e513333fb1
feat: implement prompt for remote renaming
2020-11-17 00:13:26 +05:30
Mislav Marohnić
6a0d38df44
Merge pull request #2404 from alissonbrunosa/fix-repo-view-command-with-branch
...
Generate correct URL when branch option is passed in
2020-11-13 13:05:56 +01:00
Alisson Santos
62e560d6ee
add empty line between functions
2020-11-13 10:24:17 +01:00
Alisson Santos
9ecc902959
Generate correct URL when branch option is passed in
2020-11-13 10:20:30 +01:00
boonhong
57ec879aea
Fix typos
2020-11-12 22:32:36 +08:00
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
Cristian Dominguez
07bd647211
Update repo fork help msg
2020-11-04 12:14:02 -03:00
Cristian Dominguez
97aa0b2f7d
Warn when passing git flags without repository arg
2020-11-04 12:10:35 -03: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
Cristian Dominguez
c6938941d5
Fix typo
2020-10-23 22:32:26 -03:00
Cristian Dominguez
69b64507ea
Add support for git flags in gh repo fork
2020-10-23 19:08:55 -03: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