Corey Johnson
4bf778b136
require one arg
2020-04-30 11:41:39 -07:00
Corey Johnson
af6eaa8ca2
Hot dog
2020-04-30 11:41:32 -07:00
Corey Johnson
19f6c69854
Actually make it work
2020-04-30 11:27:11 -07:00
Corey Johnson
f9a55f4d8e
Add close pull request code
2020-04-30 11:24:43 -07:00
Toshiya Doi
d2d0b47ecc
Merge branch 'master' into reviewers-in-pr-view
2020-04-30 00:31:04 +09:00
Daniel Foad
09157f1fc7
unit tests
2020-04-28 00:03:21 +01:00
Daniel Foad
c62dd557e3
Filter closed/merged PRs on default branch
2020-04-27 21:14:00 +01:00
rista404
fab18ed4a9
Show awaiting triage when project col is empty
2020-04-25 22:57:03 +02:00
Toshiya Doi
67907c8b00
Support ghost reviews in pr view
2020-04-22 21:59:09 +09:00
Toshiya Doi
d70358ea34
Support GitHub Team in requested reviewers
2020-04-22 21:58:01 +09:00
Toshiya Doi
502f6709af
Extract the reviewerstate formatter into a function
2020-04-11 15:03:43 +09:00
Toshiya Doi
fe27c842bb
Fix slice initialization with provided capacity
2020-04-11 15:03:34 +09:00
Toshiya Doi
fbff7226ac
Add comments on review state values
2020-04-10 04:51:42 +09:00
Toshiya Doi
2df5281f2f
Merge branch 'master' into reviewers-in-pr-view
2020-04-10 04:46:05 +09:00
Mislav Marohnić
d14b5d3e2c
Merge pull request #764 from cli/pr-view-docs
...
Improve `issue/pr/repo view` documentation
2020-04-09 19:12:34 +02:00
Toshiya Doi
6223a2c198
Puts completed reviews before review requests and sort reviewer names alphabetically
2020-04-10 01:16:43 +09:00
Toshiya Doi
6d0e5bf2b8
Remove Participants related codes for pr view`
2020-04-10 01:02:51 +09:00
Mislav Marohnić
d1754b2bb0
Improve issue/pr/repo view documentation
...
- Short-form docs for `pr/repo view` no longer say "in browser"
- Long-form docs for all these commands now list more information about
what will be displayed in the terminal, plus stressing out the
alternate behavior with the `--web` flag.
- `--web` flag docs: add English articles
2020-04-08 12:04:39 +02:00
Toshiya Doi
5c261e2318
Give a color to reviewer states
2020-04-08 16:27:30 +09:00
Toshiya Doi
bc42228171
Parses Reviews and ReviewRequests to show reviewers and their state
2020-04-08 16:27:30 +09:00
Toshiya Doi
542314a9c3
Omit participants metadata from pr view
2020-04-08 14:53:23 +09:00
Toshiya Doi
d5bff70259
Clean up unnecessary fmt.Sprintf
2020-04-04 15:09:22 +09:00
Toshiya Doi
0cb6890c74
Print pr metadata in CLI preview
2020-04-04 13:09:34 +09:00
Toshiya Doi
4c2f15fe37
Roll back the place of colorFuncForState
2020-04-02 23:58:28 +09:00
Toshiya Doi
0095fe9a13
Merge branch 'master' into view-the-current-state
2020-04-02 23:52:41 +09:00
vilmibm
44acdd4ec3
Merge branch 'master' into pr-status-no-commits
2020-03-30 12:04:02 -05:00
Mislav Marohnić
beb0a6a322
Merge pull request #683 from cli/pr-status-unicode
...
Add unicode to pr status
2020-03-26 13:30:26 +01:00
vilmibm
f4b8851011
Merge remote-tracking branch 'origin/master' into pr-status-no-commits
2020-03-25 12:00:58 -05:00
Nate Smith
e4b8ae0ec4
Merge pull request #665 from cli/preview-default
...
switch {pr,issue} view default
2020-03-25 11:32:46 -05:00
Toshiya Doi
7d42f46cda
Merge branch 'master' into view-the-current-state
2020-03-25 22:46:12 +09:00
Mislav Marohnić
88cbcc9ec5
Merge remote-tracking branch 'origin/master' into pr-status-unicode
2020-03-25 09:06:27 +01:00
Mislav Marohnić
11327030e7
Tweak whitespace printing in pr status
2020-03-25 09:05:51 +01:00
Amanda Pinsker
7c73cf88ae
Remove formatting from Fprint
...
Co-Authored-By: Mislav Marohnić <mislav@github.com>
2020-03-24 15:01:21 -07:00
Nate Smith
f2e5269158
Merge pull request #694 from cli/respect-b
...
respect -B when checking for existing pull requests
2020-03-24 15:14:28 -05:00
vilmibm
121173c330
better error reporting + catch for empty repo
2020-03-23 15:21:58 -05:00
vilmibm
2895252e3b
respect -B when checking for existing pull requests
2020-03-23 14:26:31 -05:00
Mislav Marohnić
9786498a25
Respect base repository when passing URL argument to pr checkout/view
...
Previously, the repository owner+name component of the URL was ignored
and only the pull request number was read. Now, the URL dictates which
base repository will be used.
2020-03-20 18:06:40 +01:00
Toshiya Doi
0ba0a0757d
Merge branch 'master' into view-the-current-state
2020-03-20 18:16:47 +09:00
Amanda Pinsker
57942fcaf8
Add unicode for merge states back in
2020-03-19 13:30:35 -07:00
Amanda Pinsker
be7ffe3099
Tweak unicode some more
2020-03-19 13:16:00 -07:00
Amanda Pinsker
ef17aa520d
Add unicode to pr status
2020-03-19 10:33:34 -07:00
Nate Smith
51eb2cb345
Merge branch 'master' into pr-count
2020-03-18 09:26:05 -07:00
Mislav Marohnić
a40fb04fc3
Allow pr status use when on detached HEAD
2020-03-18 14:14:45 +01:00
Mislav Marohnić
bec667964c
Allow pr status -R <repo> usage from outside of a git repo
2020-03-18 14:13:17 +01:00
Toshiya Doi
e50ba549d8
Rename OPEN state to Draft for a Draft PR
2020-03-18 09:55:47 +09:00
Toshiya Doi
0cfa4be86a
Add tests for utilities of PR/issue state format
2020-03-18 07:30:28 +09:00
vilmibm
e4b43b08b9
update usage text
2020-03-17 17:13:48 -05:00
vilmibm
c30b482bf0
switch defaults for pr view
2020-03-17 17:06:42 -05:00
Toshiya Doi
46a632c8f6
Fix utility function scopes
2020-03-18 04:52:03 +09:00
Toshiya Doi
9a6026e9fc
Format PR/Issue states with color
2020-03-16 04:32:41 +09:00