Commit graph

2061 commits

Author SHA1 Message Date
vilmibm
256bdabf03 slight refactor
I didn't initially use GitHubRepo because it had the weird error
wrapping. I poked around and I think this function is leftover from a
vestigial GitHubRepoID function that used to be more single-purpose. I
took out the weird error handling so it could be reused and then used it
from the new GitHubRepoExists.
2020-02-26 16:48:29 -06:00
UmairShahzad
0c9909c230 pluralize match if total == 1 2020-02-27 01:44:35 +05:00
UmairShahzad
3c687ed111 moved getTitle to common; changed title string 2020-02-27 00:57:42 +05:00
UmairShahzad
b8a7c87142 Merge remote-tracking branch 'cli/master' into pr-count 2020-02-27 00:11:38 +05:00
Mislav Marohnić
55b66feb42
Merge pull request #542 from Dasio/slice-initialization
Slice initialization
2020-02-26 20:02:06 +01:00
Mislav Marohnić
4e97a0e05d Have correct command be run in repo clone test 2020-02-26 19:53:18 +01:00
Mislav Marohnić
4a56280ab5 Automatically add origin remote after repo create 2020-02-26 19:53:01 +01:00
vilmibm
e38c15e2c9 fix ellipsis color 2020-02-26 11:56:00 -06:00
vilmibm
6371864835 spruce up UX 2020-02-26 11:48:11 -06:00
Mislav Marohnić
b02dac8f0b Accept more repo fields via flags to repo create 2020-02-26 18:45:21 +01:00
vilmibm
1217bfce09 add spinner helper 2020-02-26 11:41:54 -06:00
Nate Smith
714266d91e
Merge pull request #553 from looneym/ml/output-workaround
Print details of authentication workaround to terminal
2020-02-26 11:28:51 -06:00
Toshiya Doi
5f152a349d Print merged and closed PRs of the current branch along with an opening PR 2020-02-27 00:07:48 +09:00
Micheal Looney
a0cb79af41 Print details of authentication workaround to terminal
Mitigates https://github.com/cli/cli/issues/297

This adds some more information to the output when authentication fails
due to `gh` being unable to open a browser. It communicates the details
of the workaround without the user having to search issues on the `gh`
repo to see how to get around it.
2020-02-26 14:58:37 +00:00
Dasio
19cc79cac8 Removed explicit capacity in slice initialization 2020-02-26 15:44:52 +01:00
Toshiya Doi
8b31b283f5 Merge branch 'master' into issue-467 2020-02-26 15:37:32 +09:00
Nate Smith
39bdeee13b
Merge pull request #550 from rista404/draft-pr-212
Use gray color for PR number if PR is a draft
2020-02-25 16:51:59 -06:00
vilmibm
8a3337ca66 switch default to Y 2020-02-25 16:26:51 -06:00
vilmibm
ded870714f add SetAuthLogin helper to blank context 2020-02-25 16:26:51 -06:00
vilmibm
4f25d06c1e add repo fork tests 2020-02-25 16:26:51 -06:00
vilmibm
99ac0cb87d add StubWithFixture helper 2020-02-25 16:26:51 -06:00
vilmibm
6eaab2562f add repo fork command 2020-02-25 16:26:51 -06:00
rista404
2a42f61d8d Use gray color for PR number if PR is a draft 2020-02-25 18:47:44 +01:00
Mislav Marohnić
9175fc06d4 Add preliminary repo create command 2020-02-25 18:04:55 +01:00
Nate Smith
d4012b1312
Merge pull request #545 from cli/repo-clone
Add `repo clone <repo>` command
2020-02-25 10:45:04 -06:00
Mislav Marohnić
d25ec726ad Add repo clone <repo> command 2020-02-25 16:47:42 +01:00
Nate Smith
7950023a87
Merge pull request #541 from cli/issue-list-pagination
Support `issue list --limit=N` where N is greater than 100
2020-02-25 09:07:39 -06:00
wingkwong
3e54a0ecd7 fix: add missing context to gist create command test case 2020-02-25 15:36:37 +08:00
wingkwong
64f46223ba Merge branch 'master' of https://github.com/cli/cli 2020-02-25 15:27:21 +08:00
wingkwong
22b9beb868 Merge branch 'master' of https://github.com/cli/cli 2020-02-25 15:14:35 +08:00
Toshiya Doi
957adc1cff Change a PR number's color based on its PR status 2020-02-25 14:33:39 +09:00
wingkwong
5dc06f804b feat: add gist create command test file #397 2020-02-25 13:12:06 +08:00
wingkwong
81462d1dfa feat: add gist create command test case #397 2020-02-25 13:12:01 +08:00
Dasio
9289ab99f2 Use var syntax when empty struct is initialized 2020-02-24 22:33:22 +01:00
Mislav Marohnić
a544544141 Re-indent graphql query 2020-02-24 22:21:45 +01:00
Mislav Marohnić
ad0dedd1ac Enable issue list pagination
Makes it possible to set a `--limit` greater than 100.
2020-02-24 22:18:31 +01:00
Dasio
8aa46c236e Init slice with provided capacity if it's known in advance 2020-02-24 22:16:41 +01:00
Mislav Marohnić
c60ccf9a16
Merge pull request #540 from Dasio/goto-remove
Use break label instead of goto
2020-02-24 21:46:53 +01:00
Dasio
327dae95a3 Use break label instead of goto 2020-02-24 21:18:34 +01:00
Nate Smith
7a222d8f93
Merge pull request #337 from spenrose/repo-view
Add repo view command
2020-02-24 13:28:05 -06:00
vilmibm
1bf8beb96d fix baseRepo type 2020-02-24 13:22:43 -06:00
vilmibm
cb20e9939f Merge remote-tracking branch 'origin/master' into repo-view 2020-02-24 13:19:59 -06:00
Mislav Marohnić
980a5a39eb
Merge pull request #539 from cli/push-output
Show `git push` output during `pr create`
2020-02-24 20:19:11 +01:00
Nate Smith
1bfb875004
Merge pull request #538 from cli/issue-create-web-title-body
Preserve explicit title & body in `issue create --web`
2020-02-24 13:12:54 -06:00
Mislav Marohnić
c10f2ff945 Communicate to the user that we're waiting before retrying git push
When the user has just created a fork, it might not yet be ready for
writing. This ensures that the wait period between retries is
communicated to the user on stderr.
2020-02-24 19:36:54 +01:00
Mislav Marohnić
53532d6f28 Make sure git push output shows up during pr create 2020-02-24 19:33:18 +01:00
wingkwong
386caef536 feat: add gist create command#397 2020-02-25 01:26:44 +08:00
wingkwong
a2109c414c feat: add gist queries #397 2020-02-25 01:26:24 +08:00
wingkwong
fc330ded51 feat: add gist to scope #397 2020-02-25 01:25:17 +08:00
Toshiya Doi
9c44eaeb6e Define an order clause to sort PRs newest first 2020-02-25 01:27:19 +09:00