-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1469 from kisaga/issue/enhance-pull-request-comme…
…nt-model added fields in GHPullRequestReviewComment which were missing
- Loading branch information
Showing
70 changed files
with
2,885 additions
and
1,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 120 additions & 0 deletions
120
src/main/java/org/kohsuke/github/GHPullRequestReviewCommentReactions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
package org.kohsuke.github; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.net.URL; | ||
|
||
/** | ||
* Reactions for a Pull Request Review comment. | ||
* | ||
* @author Vasilis Gakias | ||
* @see <a href="https://docs.github.com/en/rest/pulls/comments#get-a-review-comment-for-a-pull-request">API | ||
* documentation in the response schema</a> | ||
* @see GHPullRequestReviewComment | ||
*/ | ||
public class GHPullRequestReviewCommentReactions { | ||
|
||
private String url; | ||
|
||
private int total_count = -1; | ||
@JsonProperty("+1") | ||
private int plus_one = -1; | ||
@JsonProperty("-1") | ||
private int minus_one = -1; | ||
private int laugh = -1; | ||
private int confused = -1; | ||
private int heart = -1; | ||
private int hooray = -1; | ||
private int eyes = -1; | ||
private int rocket = -1; | ||
|
||
/** | ||
* Gets the URL of the comment's reactions | ||
* | ||
* @return the URL of the comment's reactions | ||
*/ | ||
public URL getUrl() { | ||
return GitHubClient.parseURL(url); | ||
} | ||
|
||
/** | ||
* Gets the total count of reactions | ||
* | ||
* @return the number of total reactions | ||
*/ | ||
public int getTotalCount() { | ||
return total_count; | ||
} | ||
|
||
/** | ||
* Gets the number of +1 reactions | ||
* | ||
* @return the number of +1 reactions | ||
*/ | ||
public int getPlusOne() { | ||
return plus_one; | ||
} | ||
|
||
/** | ||
* Gets the number of -1 reactions | ||
* | ||
* @return the number of -1 reactions | ||
*/ | ||
public int getMinusOne() { | ||
return minus_one; | ||
} | ||
|
||
/** | ||
* Gets the number of laugh reactions | ||
* | ||
* @return the number of laugh reactions | ||
*/ | ||
public int getLaugh() { | ||
return laugh; | ||
} | ||
|
||
/** | ||
* Gets the number of confused reactions | ||
* | ||
* @return the number of confused reactions | ||
*/ | ||
public int getConfused() { | ||
return confused; | ||
} | ||
|
||
/** | ||
* Gets the number of heart reactions | ||
* | ||
* @return the number of heart reactions | ||
*/ | ||
public int getHeart() { | ||
return heart; | ||
} | ||
|
||
/** | ||
* Gets the number of hooray reactions | ||
* | ||
* @return the number of hooray reactions | ||
*/ | ||
public int getHooray() { | ||
return hooray; | ||
} | ||
|
||
/** | ||
* Gets the number of eyes reactions | ||
* | ||
* @return the number of eyes reactions | ||
*/ | ||
public int getEyes() { | ||
return eyes; | ||
} | ||
|
||
/** | ||
* Gets the number of rocket reactions | ||
* | ||
* @return the number of rocket reactions | ||
*/ | ||
public int getRocket() { | ||
return rocket; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,18 +20,18 @@ | |
"is_verified": false, | ||
"has_organization_projects": true, | ||
"has_repository_projects": true, | ||
"public_repos": 49, | ||
"public_repos": 50, | ||
"public_gists": 0, | ||
"followers": 0, | ||
"following": 0, | ||
"html_url": "https://github.com/hub4j-test-org", | ||
"created_at": "2014-05-10T19:39:11Z", | ||
"updated_at": "2020-06-04T05:56:10Z", | ||
"type": "Organization", | ||
"total_private_repos": 3, | ||
"owned_private_repos": 3, | ||
"total_private_repos": 4, | ||
"owned_private_repos": 4, | ||
"private_gists": 0, | ||
"disk_usage": 11979, | ||
"disk_usage": 11980, | ||
"collaborators": 0, | ||
"billing_email": "[email protected]", | ||
"default_repository_permission": "none", | ||
|
@@ -49,7 +49,7 @@ | |
"name": "free", | ||
"space": 976562499, | ||
"private_repos": 10000, | ||
"filled_seats": 35, | ||
"filled_seats": 38, | ||
"seats": 3 | ||
} | ||
} |
Oops, something went wrong.