Mislav Marohnić
a73584db72
Merge remote-tracking branch 'origin' into pr-commands-isolate
2020-08-04 15:01:30 +02:00
Mislav Marohnić
2ab06ab4d6
Merge pull request #1415 from cli/ghe-api
...
Add GHE compatibility to the API adapter
2020-08-03 17:19:20 +02:00
wilso199
267400a3a5
Cleaning up formatting errors and updating test to use named api call
2020-08-02 22:37:47 -04:00
wilso199
4250906c82
Adding test to ensure submodule commands are executed
2020-08-02 22:17:42 -04:00
wilso199
7b98e27de3
Adding logic and documentation for a recurse submodules flag
2020-08-02 22:17:42 -04:00
Francisco Miamoto
0faf52d759
change comment to refer to pr
2020-08-01 23:56:12 -03:00
Francisco Miamoto
3caa7cc537
improve comments
2020-08-01 23:54:22 -03:00
Francisco Miamoto
f9b50acc42
add mock for milestones on issue list
2020-08-01 23:45:21 -03:00
Francisco Miamoto
9a5e69a8a4
use graphql for repo milestones on issue list
...
Since we can obtain the necessary ID for the query on
node ID from the GraphQL API, it makes sense to remove
the REST version.
2020-08-01 23:43:36 -03:00
Rimaz Khan
d67dfdb99b
Add delete branch flag to pr close
2020-08-01 14:49:16 -04:00
Shi Han NG
d24f33b679
Add Test_RepoClone_flagError
2020-08-01 19:23:28 +09:00
Shi Han NG
6e844fef87
Mention git clone flags in gh repo clone usage
2020-08-01 19:09:29 +09:00
Shi Han NG
ca8d032824
Add custom error for gh repo clone
2020-08-01 19:07:51 +09:00
Mislav Marohnić
4757540bdf
Align bump-homebrew-formula config for updated formula format
2020-07-31 19:47:13 +02:00
Mislav Marohnić
3ac73297eb
Isolate pr status command
2020-07-31 19:07:30 +02:00
Mislav Marohnić
7cc74c5bb6
Isolate pr merge command
2020-07-31 19:07:16 +02:00
Shubhankar Kanchan Gupta
bb6851c88b
Add "open" qualifier when listing open issues/PRs ( #1457 )
2020-07-31 18:22:08 +02:00
Mislav Marohnić
74b191d0f7
Isolate pr view command
2020-07-31 14:19:09 +02:00
Francisco Miamoto
75e8cb8f9c
register mocks for the new request
2020-07-30 22:15:15 -03:00
Francisco Miamoto
3ce1de62a2
fix searching issues by the milestone name
...
This fix involves using the REST API since the GraphQL one doesn't
seem to return the necessary ID for the subsequent issues query.
2020-07-30 22:11:19 -03:00
Mislav Marohnić
7949d5373d
Fix pr diff in notty mode
2020-07-29 22:58:08 +02:00
Mislav Marohnić
604799735c
🔥 unused errorStub struct
2020-07-29 22:54:37 +02:00
Mislav Marohnić
ffe08995bb
Add notes about GHE support for git_protocol
2020-07-29 22:50:53 +02:00
Mislav Marohnić
487dd06bf3
Isolate pr checkout command
2020-07-29 22:50:34 +02:00
Mislav Marohnić
af68a749f0
Isolate pr diff command
2020-07-29 22:49:50 +02:00
Mislav Marohnić
88eaa28aef
Merge pull request #1448 from cli/api-graphql-operationName
...
Support GraphQL `operationName` in `gh api` command
2020-07-29 21:09:08 +02:00
Mislav Marohnić
12637d02d6
Isolate pr review command
2020-07-29 19:35:54 +02:00
Mislav Marohnić
3c32a8441a
Extract PR lookup into shared package
2020-07-29 19:35:03 +02:00
Mislav Marohnić
da2292723b
Merge remote-tracking branch 'origin' into ghe-api
2020-07-29 16:49:16 +02:00
Mislav Marohnić
d26cd64745
Support GraphQL operationName in gh api command
...
GraphQL supports supplying multiple queries in the `query` parameter,
but an additional `operationName` parameter is then required to select
the query to execute.
Previously, it was impossible to pass `operationName` since it would get
serialized under `variables`, but it needs to be a top-level parameter.
With this change, `operationName` is a special GraphQL parameter name
just like `query` already is.
2020-07-29 16:47:33 +02:00
Nate Smith
43318fd8e8
Merge pull request #1436 from cli/move-ask-stubber
...
move survey helper and test helpers to prompt pkg
2020-07-28 11:49:19 -05:00
Mislav Marohnić
c0b116b511
Merge remote-tracking branch 'origin' into ghe-api
2020-07-28 18:12:47 +02:00
Nate Smith
f486cc4823
Merge pull request #1435 from cli/repo-cleanup
...
final isolation repo cleanup
2020-07-28 10:54:09 -05:00
Mislav Marohnić
58bd549de5
Merge pull request #1411 from jessemillar/feature/glamour-style
...
Enabling custom color themes with the `GLAMOUR_STYLE` environment variable
2020-07-28 15:29:13 +02:00
Mislav Marohnić
07eb1e7592
Document GLAMOUR_STYLE support
2020-07-28 15:24:41 +02:00
Jesse Millar
90f04d4864
Enable custom color themes with the GLAMOUR_STYLE environment variable
2020-07-28 15:23:48 +02:00
Kumar Saurabh
78124a9716
API improvement : Drain response Body inside func HasScopes ( #1428 )
...
Ensure the response body is fully read and closed to reuse the same TCPconnection.
Co-authored-by: Kumar Saurabh <kumarsaurabh@Kumars-MacBook-Air.local>
2020-07-28 14:56:17 +02:00
vilmibm
245c3c7425
move survey helper and test helpers to prompt pkg
2020-07-27 17:00:09 -05:00
vilmibm
29f4453e07
final repo command cleanup
2020-07-27 14:09:07 -05:00
vilmibm
9359dcaf80
isolate credits
2020-07-27 13:56:15 -05:00
Mislav Marohnić
dd0d236629
Merge remote-tracking branch 'origin' into ghe-api
2020-07-27 20:13:54 +02:00
Nate Smith
bccc93a491
Merge pull request #1423 from cli/migrate-repo-fork
...
isolate repo fork command and tweak usage
2020-07-27 13:13:04 -05:00
Mislav Marohnić
87632791d6
Add ghinstance tests
2020-07-27 20:09:57 +02:00
vilmibm
75cce0aaee
clarify usage
2020-07-27 13:06:25 -05:00
vilmibm
a6ac615f66
remove vestigial struct field
2020-07-27 13:04:31 -05:00
vilmibm
10422e87eb
just use simple bool flags
...
the original complexities here were because I thought there was a
shortcoming in cobra's bool support and I was wrong.
2020-07-27 13:04:31 -05:00
vilmibm
f3eb092d7e
isolate repo fork command and tweak usage
...
This commit is another isolation refactor, this time for repo fork.
However, I got fed up with the --remote="true|false|prompt" style of
flags and took this opportunity to switch to a set of bool flags:
--remote and --clone
--no-remote and --no-clone
the string args were really non standard and confusing; with only two
bools it was impossible to tell when to prompt.
2020-07-27 13:04:31 -05:00
Nate Smith
9035418ca6
Merge pull request #1432 from szczot3k/patch-1
...
README.MD: Fix Arch's install example
2020-07-27 10:30:22 -05:00
Nate Smith
d84c202a6d
Merge pull request #1421 from cli/migrate-repo-create
...
isolate repo create command
2020-07-27 10:29:08 -05:00
vilmibm
a6c7a88e39
use dummy io streams for cobra
2020-07-27 10:14:02 -05:00