Commit graph

2564 commits

Author SHA1 Message Date
Mislav Marohnić
cc2b86f3a6 Specify minimum required token scopes in gh help auth login 2020-10-01 19:56:33 +02:00
Sam
091d550cde
Merge pull request #2005 from cli/small-refactors
Small readability and code organization refactors
2020-09-30 13:05:17 +02:00
Sam Coe
74d6eb96be
Address PR comments 2020-09-30 12:55:05 +02:00
Sam Coe
bda27a46ae
Extract version command 2020-09-30 12:49:17 +02:00
Sam Coe
1a1a6303cd
Move disable auth check to bottom 2020-09-30 12:49:17 +02:00
Sam Coe
53a97c3414
Extract rootFlagErrrorFunc into root help 2020-09-30 12:49:17 +02:00
Sam Coe
f00a0f2854
Move completion command out of root package 2020-09-30 12:49:17 +02:00
Sam Coe
c52fc72291
Extract bareHTTPClient function 2020-09-30 12:49:14 +02:00
Mislav Marohnić
ab863adae3
Merge pull request #2021 from tgyurci/cat-pager
Disable pager when set to "cat"
2020-09-30 11:09:10 +02:00
Teubel György
9b2fe1ee30 Disable pager when set to "cat" 2020-09-29 23:21:59 +02:00
Nate Smith
e24035681d
Merge pull request #2003 from cristiand391/refactor-gist-create
Refactor gist create to reuse existing structs
2020-09-29 15:27:31 -05:00
Nate Smith
127d0b8717
Merge pull request #2020 from tgyurci/gh-pager-env
Add support for GH_PAGER
2020-09-29 14:52:58 -05:00
Nate Smith
b987cfb39e
Merge pull request #1955 from thealamu/trunk
Avoid interface for collecting file descriptors
2020-09-29 11:37:33 -05:00
Nate Smith
aa72881baa
Merge pull request #1962 from ricardoseriani/change-default-answer-after-delete-branch
Set default answer to "no" for "deleting branch after merge" question
2020-09-29 11:29:41 -05:00
Nate Smith
cc6a7887ab
Merge pull request #2022 from cli/contrib
mention new core label in contributing docs
2020-09-29 11:00:28 -05:00
vilmibm
91fcfa548f Sentence Case. 2020-09-29 11:00:12 -05:00
vilmibm
746ab7354a mention new core label in contributing docs 2020-09-29 10:47:51 -05:00
Teubel György
b71261219c Add support for GH_PAGER 2020-09-29 17:42:25 +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
Pranjal Mittal
3a9b9de940
Modification of help text for usage of gh pr checks (#1915) 2020-09-29 11:25:02 +02:00
Mislav Marohnić
c11ff0005a
Merge pull request #1926 from cli/pr-create-branch-pushed-fix
Fix `pr create` when branch was already pushed to a non-base remote
2020-09-28 19:12:38 +02:00
Sam
1b029c766d
Merge pull request #1917 from cli/fix-pager-glamour-bug
Check for terminal background color before starting pager
2020-09-28 11:05:39 +02:00
Sam Coe
f132161cc4
Upgrade termenv 2020-09-28 10:57:25 +02:00
Cristian Dominguez
b71e6494ab Update gist create tests 2020-09-28 02:37:41 -03:00
Cristian Dominguez
ef8f61c61d Refactor gist create 2020-09-28 02:36:01 -03:00
Alex Hicks
57cdfee835 Fix some bugs in repo garden in repositories with few commits 2020-09-25 17:51:59 -04:00
Ricardo Seriani
6bb2a11d1b
Set default answer to "no" for "deleting branch after merge" question
Signed-off-by: Ricardo Seriani <ricardo.seriani@gmail.com>
2020-09-25 13:39:37 -03:00
Faithfulness Alamu
0206648175 Avoid interface for collecting file descriptors
Avoid using interface{} as a catch-all in IsTerminal and
IsCygwinTerminal functions.
The use of *os.File allows for static type error checks.
2020-09-25 11:31:22 +01:00
Sam Coe
8f27cb35e9
Add tests 2020-09-25 08:50:24 +02: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
Mislav Marohnić
80b60fc6a9 Fix pr create for branches published under a different name 2020-09-24 11:35:02 +02:00
Mislav Marohnić
eee32f324c Fix AskStubber erroring out when there are more asks than stubs 2020-09-23 19:55:11 +02:00
Mislav Marohnić
e2efc0b8a3 Fix pr create when branch was already pushed to a non-base remote 2020-09-23 19:53:27 +02:00
Mislav Marohnić
f9783fe812 Add exec.Command stub mechanism that matches by arguments
Our previous command stub mechanism matches stubs sequentially, which leads to brittle tests when the exec calls get reordered or removed in the implementation.
2020-09-23 18:38:29 +02:00
zacanger
f17d9672f5
fix(browser): show message if $BROWSER isn't in $PATH (#1749) 2020-09-23 12:17:54 +02:00
Nate Smith
929e082c13
Merge pull request #1891 from hugolgst/patch-1
Add Nix/NixOS instructions to install the package
2020-09-22 12:07:22 -05:00
Nate Smith
060ccd1eda
Merge pull request #1781 from cristiand391/fix-gist-id-extraction
Fix gist ID extraction from url
2020-09-22 12:04:04 -05:00
Mislav Marohnić
1e7a7972fb
Merge pull request #1889 from mmontes11/pr-checkout-on-detached-head
Fixed gh pr checkout on detached HEAD
2020-09-22 18:42:38 +02:00
Nate Smith
de3ef151ef
Merge pull request #1893 from mmontes11/tip-access-token-with-hostname
Access token tip message using hostname
2020-09-22 11:39:19 -05:00
Martín Montes
cacf0157b3 Using ghinstance.OverridableDefault() instead of a harcoded hostname 2020-09-22 18:22:29 +02:00
Martín Montes
793e866850 Using assert.Regexp for testing stderr's content 2020-09-22 17:50:57 +02:00
Martín Montes
81caade918 Access token tip message using hostname 2020-09-22 12:32:37 +02:00
Hugo Lageneste
75a0b5edbb
Add Nix/NixOS instructions to install the package 2020-09-22 08:04:49 +02:00
Cristian Dominguez
a7a90b3a4b Move gist URL tests to its own file 2020-09-21 21:35:07 -03:00
Cristian Dominguez
55a8f3d8ca Make gh gist view and edit commands reuse logic for id extraction 2020-09-21 21:28:04 -03:00
Martín Montes
bb1005be51 Fixed gh pr checkout on detached HEAD 2020-09-22 00:25:49 +02:00
Nate Smith
012b004e10
Merge pull request #1888 from nasirhm/minor_fix_install_linux
fix: Capitalization and addition of `Enterprise` in install_linux
2020-09-21 16:44:27 -05:00
Nate Smith
2a9b5de8c0
Merge pull request #1828 from y-yagi/do-not-send-requests-when-unnecessary
Don't send a request when the contents haven't changed
2020-09-21 16:40:41 -05:00
Nate Smith
e3f21a58cc
Merge pull request #1816 from OjasWadhwani/parseEmoji
Emoji parsing in Readme content
2020-09-21 16:35:41 -05:00