Commit graph

821 commits

Author SHA1 Message Date
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
rista404
2a42f61d8d Use gray color for PR number if PR is a draft 2020-02-25 18:47:44 +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
Toshiya Doi
957adc1cff Change a PR number's color based on its PR status 2020-02-25 14:33:39 +09: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
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
Toshiya Doi
9c44eaeb6e Define an order clause to sort PRs newest first 2020-02-25 01:27:19 +09:00
Toshiya Doi
28460e4b7e Change a PR state color 2020-02-25 01:26:07 +09:00
Mislav Marohnić
6eba80a8b4 Merge remote-tracking branch 'origin/master' into repo-view 2020-02-24 17:20:02 +01:00
Mislav Marohnić
e87467d21f Allow repo view OWNER/REPO format for owners starting with "http" 2020-02-24 17:17:14 +01:00
Mislav Marohnić
398a5defb8 Use displayURL helper for consistency 2020-02-24 17:17:00 +01:00
Mislav Marohnić
20fc0dfcb7 Avoid API requests in repo view when repo argument is given 2020-02-24 17:14:46 +01:00
Mislav Marohnić
f6eb710462 Fix test expectation on Windows
On Windows, `&` characters in URLs need to be escaped with `^`, but that
messes up the test expectation for other platforms, so this normalizes it.
2020-02-24 13:53:37 +01:00
Mislav Marohnić
38b58a4914 Respect explicit title & body with issue create --web 2020-02-24 13:41:46 +01:00
Mislav Marohnić
ac94ae5872 Return interface from determineBaseRepo(), not pointer to interface
It's sufficient to return a value of type `ghrepo.Interface` instead of
a pointer to an interface. This avoids having to use `*` whenever we are
passing the result of `determineBaseRepo()` into another function that
accepts a `ghrepo.Interface`.
2020-02-24 13:40:58 +01:00
Toshiya Doi
b965683594 Append a pull request status for the current branch 2020-02-22 16:56:30 +09:00
Toshiya Doi
b7893b1fd3 Query pullRequests of the current branch regardless of its state 2020-02-22 16:54:30 +09:00
Mislav Marohnić
67e1fbcae5
Merge pull request #524 from yashLadha/chore/add_vendor_to_ignore
chore: added vendor to ignore as mod is already present
2020-02-21 13:07:43 +01:00
Mislav Marohnić
1eff7c1862
Merge pull request #306 from henvic/feat/debug-req
impr(verbose): using package httpretty to log requests on DEBUG.
2020-02-21 13:06:13 +01:00
Mislav Marohnić
9c00ac0224 Tweak verbose HTTP logging
- log headers only in DEBUG=api mode
- enable color output on stderr
- hide little-useful TLS debbuging info
- ensure all request headers are logged
2020-02-21 12:57:00 +01:00
Mislav Marohnić
9c2efd6c1c Extract reusable IsTerminal() 2020-02-21 12:46:21 +01:00
Henrique Vicente
e7c88d0fb1
impr(verbose): using package httpretty to log requests on DEBUG. 2020-02-21 02:46:18 +01:00
Yash Ladha
3a695d9874
chore: added vendor to ignore as mod is already present 2020-02-21 03:36:53 +05:30
Mislav Marohnić
b5d0b7c640
Merge pull request #523 from cli/title-body-web
Respect title & body from arguments to `pr create -w`
2020-02-20 22:53:40 +01:00
Mislav Marohnić
1a82e39ba9 Respect title & body from arguments to pr create -w 2020-02-20 22:48:04 +01:00
Mislav Marohnić
69304ce9af
Merge pull request #518 from cli/eastern-asian
Fix column alignment and truncation for Eastern Asian languages
2020-02-20 22:36:11 +01:00
Mislav Marohnić
f9649ebddd
Merge pull request #521 from yashLadha/bug/issue_list_on_no_remote
Fix error when getting issue list with no git remotes

Fixes #465
2020-02-20 22:35:35 +01:00
Mislav Marohnić
4727fc4659 Ensure descriptive error when no github.com remotes found 2020-02-20 22:30:25 +01:00
Yash Ladha
4ee995dafd
fix(486): Getting issue list on no remotes specified
Fixes: #486
2020-02-21 02:14:20 +05:30
Mislav Marohnić
4c3e498021 Fix column alignment and truncation for Eastern Asian languages
- Ensure that text is never truncated mid-character, which would result
  in garbled text

- Ensure that columns in `issue/pr list` output align properly
2020-02-20 18:52:17 +01:00
Mislav Marohnić
cbc2d16230
Merge pull request #513 from cli/closed-incl-merged
Include merged PRs with `list --state=closed`
2020-02-20 14:01:39 +01:00
Mislav Marohnić
13dbfa44c2 go fmt 2020-02-20 13:55:55 +01:00
Mislav Marohnić
861b231344 Have --state=closed include merged PRs
Since we currently offer no way of querying PRs by combining multiple
states with an OR, the best way to handle the `closed` state is to match
what the web UI is doing; that is to include merged PRs.
2020-02-20 13:53:44 +01:00
Mislav Marohnić
cc96ddd551
Merge pull request #512 from cli/dependency-bump
Bump dependencies
2020-02-20 13:11:18 +01:00
Mislav Marohnić
619c9d9495 Bump dependencies
go get -u -t ./...
    go get github.com/charmbracelet/glamour@8d4e3f0
    go mod tidy
2020-02-20 12:51:32 +01:00
Nate Smith
57eb1d1d45
Merge pull request #505 from cli/completion-error-handling
Make sure to handle errors when generating completions
2020-02-19 08:52:34 -06:00
Mislav Marohnić
6424e8c92a Make sure to handle errors when generating completions 2020-02-19 15:39:33 +01:00
Mislav Marohnić
f6c9e7b4af
Merge pull request #497 from ShahzadUmair/fix-template
Explicitly replace empty body with default template
2020-02-19 15:04:53 +01:00