Nate Smith
c7f7bfc328
Merge pull request #787 from cli/issue-pr-create-metadata
...
Add flags to add additional metadata to `issue/pr create`
2020-05-08 15:04:15 -05:00
Nate Smith
5ba3baa3c8
Merge pull request #762 from doi-t/reviewers-in-pr-view
...
Add Reviewers to pr view in CLI
2020-05-08 14:46:08 -05:00
Nate Smith
77ed118022
Merge pull request #880 from cli/pr-status-crash
...
Fix `pr status -R` crash with closed PR on the default branch
2020-05-08 14:23:51 -05:00
Mislav Marohnić
d0f168f4c3
Merge remote-tracking branch 'origin/master' into issue-pr-create-metadata
2020-05-08 17:46:17 +02:00
vilmibm
c40f064baa
sigh
2020-05-07 14:58:00 -05:00
Mislav Marohnić
93c61a83b2
Fix pr status -R crash with closed PR on the default branch
...
At the time we have a reference to `baseRepo`, we might still not have
contacted the API nor obtained any information about the default branch
for the repository. This expands the `PullRequests()` query to always
report the default branch so we may choose how to render entries that
belong on the current branch.
2020-05-07 20:53:03 +02:00
vilmibm
d81e622700
lightest weight reviewing
...
this commit add very basic non-interactive PR reviewing. You can either
review the "current" or a passed PR (number or URL) as approved, changes
requested, or commented via CLI flags.
2020-05-07 13:30:34 -05:00
Corey Johnson
5cc60c669e
Take in a pointer
2020-05-04 10:19:54 -07:00
Corey Johnson
0bb1d2018a
Add code to reopen
2020-05-01 12:00:13 -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
Mislav Marohnić
c6d8a4c151
Fix mutations
2020-04-27 16:42:53 +02:00
Mislav Marohnić
42baf4c8c5
Support org projects and team reviewers
2020-04-27 14:09:05 +02:00
Toshiya Doi
d70358ea34
Support GitHub Team in requested reviewers
2020-04-22 21:58:01 +09:00
Mislav Marohnić
39c4a5bc1b
Remove unnecessary nil check
2020-04-17 20:29:18 +02:00
Mislav Marohnić
d3a89b8744
Expand issue create metadata flags to pr create
...
- Includes support `pr create --reviewer <login>`
- Hide "Preview in browser" menu option when any metadata are set
2020-04-17 20:23:57 +02:00
Toshiya Doi
2df5281f2f
Merge branch 'master' into reviewers-in-pr-view
2020-04-10 04:46:05 +09: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
Toshiya Doi
d07617817d
Query first 100 issue metadata by PR number and branch (3 --> 100)
2020-04-08 14:53:55 +09:00
Toshiya Doi
8fca78f584
Query first 100 requestedReviewer and last 100 reviews
2020-04-06 17:56:51 +09:00
Toshiya Doi
a4fcb634c2
Fix requestedReviewer struct
2020-04-06 17:53:41 +09:00
Toshiya Doi
92dea433e4
An attempt of collecting reviewers metadata
2020-04-04 13:28:47 +09:00
Toshiya Doi
d538f7a1be
Query pr metadata by number and branch
2020-04-04 13:08:22 +09:00
Toshiya Doi
125ff06b2c
Add metadata to PullRequest struct
2020-04-04 13:07:44 +09:00
Toshiya Doi
0095fe9a13
Merge branch 'master' into view-the-current-state
2020-04-02 23:52:41 +09:00
Mislav Marohnić
c0bc938ea4
Prevent crash when encountering "STALE" check conclusion
...
The "STALE" conclusion has shipped this January and is basically a
conclusion that can only be reported by GitHub and not explicitly set by
any integrations.
2020-03-27 09:54:11 +01:00
Toshiya Doi
7d42f46cda
Merge branch 'master' into view-the-current-state
2020-03-25 22:46:12 +09:00
vilmibm
2895252e3b
respect -B when checking for existing pull requests
2020-03-23 14:26:31 -05:00
Toshiya Doi
0ba0a0757d
Merge branch 'master' into view-the-current-state
2020-03-20 18:16:47 +09:00
Toshiya Doi
7b5a0b5694
Add a missing isDraft for querying PR by number
2020-03-18 07:32:18 +09:00
Toshiya Doi
d429babe2b
Add 'state' to queries for pull requests
2020-03-16 02:27:33 +09:00
UmairShahzad
f51669e228
Merge remote-tracking branch 'origin/master' into pr-count
2020-03-14 19:02:51 +05:00
Toshiya Doi
4c4aeb5ec6
Return the latest PR belonging to the current branch
2020-03-13 09:49:20 +09:00
Alisson Santos
7a0a6658d5
avoid nested ifs
2020-03-05 18:52:27 +01:00
Alisson Santos
101d985a16
remove duplicate from pages
2020-03-05 18:10:00 +01:00
Alisson Santos
dcedacd4f7
Remove duplicates
2020-03-05 13:55:36 +01:00
UmairShahzad
945d4ffb55
Merge branch 'master' of https://github.com/cli/cli into pr-count
2020-03-04 00:09:35 +05:00
Nate Smith
fdf940eeba
Merge pull request #530 from doi-t/issue-467
...
Ability to differentiate pull requests by their state
2020-03-02 16:12:55 -06: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
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
Toshiya Doi
8b31b283f5
Merge branch 'master' into issue-467
2020-02-26 15:37:32 +09:00
rista404
2a42f61d8d
Use gray color for PR number if PR is a draft
2020-02-25 18:47:44 +01:00
Dasio
9289ab99f2
Use var syntax when empty struct is initialized
2020-02-24 22:33:22 +01:00
Dasio
327dae95a3
Use break label instead of goto
2020-02-24 21:18:34 +01:00
Toshiya Doi
9c44eaeb6e
Define an order clause to sort PRs newest first
2020-02-25 01:27:19 +09:00
Toshiya Doi
b7893b1fd3
Query pullRequests of the current branch regardless of its state
2020-02-22 16:54:30 +09:00
UmairShahzad
bb0fe46db6
total match count in title
2020-02-20 01:54:51 +05:00
Mislav Marohnić
a710893fc1
Rename to cli/cli
2020-01-24 16:08:52 +01:00