From f43de91d04b7a1787fd64091f23f44b234e64bf2 Mon Sep 17 00:00:00 2001 From: kisaga Date: Fri, 3 Jun 2022 00:00:24 +0300 Subject: [PATCH] added fields in GHPullRequestReviewComment related which were missing modified test, took snapshot and modified manually the author_association from NONE to MEMBER --- .../github/GHPullRequestReviewComment.java | 121 ++++++++++ .../GHPullRequestReviewCommentReactions.java | 120 ++++++++++ .../org/kohsuke/github/GHPullRequestTest.java | 41 +++- ...-org-1.json => orgs_hub4j-test-org-2.json} | 28 +-- ...=> repos_hub4j-test-org_github-api-3.json} | 66 +++--- ...os_hub4j-test-org_github-api_pulls-4.json} | 88 ++++---- ...-org_github-api_pulls_450_comments-14.json | 137 ------------ ...-org_github-api_pulls_450_comments-16.json | 137 ------------ ...-org_github-api_pulls_450_comments-18.json | 69 ------ ...t-org_github-api_pulls_450_comments-5.json | 67 ------ ...t-org_github-api_pulls_450_comments-6.json | 69 ------ ...lls_450_comments_846624633_replies-13.json | 68 ------ ...b4j-test-org_github-api_pulls_455-30.json} | 92 ++++---- ...-org_github-api_pulls_455_comments-17.json | 69 ++++++ ...-org_github-api_pulls_455_comments-25.json | 137 ++++++++++++ ...-org_github-api_pulls_455_comments-27.json | 137 ++++++++++++ ...-org_github-api_pulls_455_comments-29.json | 69 ++++++ ...t-org_github-api_pulls_455_comments-6.json | 67 ++++++ ...t-org_github-api_pulls_455_comments-7.json | 69 ++++++ ...lls_455_comments_901151503_replies-24.json | 68 ++++++ ...ithub-api_pulls_comments_846624633-15.json | 67 ------ ...pulls_comments_846624633_reactions-10.json | 28 --- ..._pulls_comments_846624633_reactions-9.json | 26 --- ...ithub-api_pulls_comments_901151503-26.json | 67 ++++++ ...pulls_comments_901151503_reactions-10.json | 26 +++ ...pulls_comments_901151503_reactions-11.json | 26 +++ ...pulls_comments_901151503_reactions-12.json | 26 +++ ...pulls_comments_901151503_reactions-13.json | 26 +++ ...pulls_comments_901151503_reactions-14.json | 26 +++ ...pulls_comments_901151503_reactions-15.json | 26 +++ ...pulls_comments_901151503_reactions-16.json | 26 +++ ...pulls_comments_901151503_reactions-19.json | 184 +++++++++++++++ ...pulls_comments_901151503_reactions-20.json | 26 +++ ...pulls_comments_901151503_reactions-21.json | 210 ++++++++++++++++++ ...pulls_comments_901151503_reactions-23.json | 184 +++++++++++++++ ..._pulls_comments_901151503_reactions-9.json | 26 +++ .../__files/user-1.json | 46 ++++ .../__files/users_gsmet-7.json | 46 ---- .../__files/users_kisaga-8.json | 46 ++++ ...-org-1.json => orgs_hub4j-test-org-2.json} | 23 +- ...=> repos_hub4j-test-org_github-api-3.json} | 25 ++- ...os_hub4j-test-org_github-api_pulls-4.json} | 25 ++- ...b4j-test-org_github-api_pulls_455-30.json} | 27 +-- ...org_github-api_pulls_455_comments-17.json} | 33 +-- ...org_github-api_pulls_455_comments-25.json} | 33 +-- ...-org_github-api_pulls_455_comments-27.json | 50 +++++ ...org_github-api_pulls_455_comments-29.json} | 31 +-- ...-org_github-api_pulls_455_comments-5.json} | 29 +-- ...-org_github-api_pulls_455_comments-6.json} | 29 +-- ...-org_github-api_pulls_455_comments-7.json} | 33 +-- ...ls_455_comments_901151503_replies-24.json} | 29 +-- ...pulls_comments_846624633_reactions-12.json | 48 ---- ...thub-api_pulls_comments_901151503-26.json} | 27 +-- ...thub-api_pulls_comments_901151503-28.json} | 23 +- ...ulls_comments_901151503_reactions-10.json} | 44 ++-- ...pulls_comments_901151503_reactions-11.json | 54 +++++ ...pulls_comments_901151503_reactions-12.json | 54 +++++ ...pulls_comments_901151503_reactions-13.json | 54 +++++ ...pulls_comments_901151503_reactions-14.json | 54 +++++ ...pulls_comments_901151503_reactions-15.json | 54 +++++ ...pulls_comments_901151503_reactions-16.json | 54 +++++ ...ulls_comments_901151503_reactions-19.json} | 31 +-- ...pulls_comments_901151503_reactions-20.json | 56 +++++ ...pulls_comments_901151503_reactions-21.json | 50 +++++ ...pulls_comments_901151503_reactions-23.json | 49 ++++ ...pulls_comments_901151503_reactions-9.json} | 27 +-- ...ents_901151503_reactions_170482119-18.json | 40 ++++ ...nts_901151503_reactions_170482131-22.json} | 23 +- .../mappings/user-1.json | 48 ++++ ...users_gsmet-7.json => users_kisaga-8.json} | 29 +-- 70 files changed, 2878 insertions(+), 1165 deletions(-) create mode 100644 src/main/java/org/kohsuke/github/GHPullRequestReviewCommentReactions.java rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/{orgs_hub4j-test-org-1.json => orgs_hub4j-test-org-2.json} (60%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/{repos_hub4j-test-org_github-api-2.json => repos_hub4j-test-org_github-api-3.json} (94%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/{repos_hub4j-test-org_github-api_pulls-3.json => repos_hub4j-test-org_github-api_pulls-4.json} (91%) delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-14.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-16.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-18.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-5.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-6.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/{repos_hub4j-test-org_github-api_pulls_450-19.json => repos_hub4j-test-org_github-api_pulls_455-30.json} (90%) create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-17.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-25.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-27.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-29.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-6.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-7.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments_901151503_replies-24.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503-26.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-10.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-11.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-12.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-13.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-14.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-15.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-16.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-19.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-20.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-21.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-23.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-9.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/user-1.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_gsmet-7.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_kisaga-8.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{orgs_hub4j-test-org-1.json => orgs_hub4j-test-org-2.json} (64%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api-2.json => repos_hub4j-test-org_github-api-3.json} (60%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls-3.json => repos_hub4j-test-org_github-api_pulls-4.json} (68%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_450-19.json => repos_hub4j-test-org_github-api_pulls_455-30.json} (59%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_450_comments-6.json => repos_hub4j-test-org_github-api_pulls_455_comments-17.json} (57%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_450_comments-14.json => repos_hub4j-test-org_github-api_pulls_455_comments-25.json} (57%) create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-27.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_450_comments-18.json => repos_hub4j-test-org_github-api_pulls_455_comments-29.json} (57%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_450_comments-4.json => repos_hub4j-test-org_github-api_pulls_455_comments-5.json} (60%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_450_comments-5.json => repos_hub4j-test-org_github-api_pulls_455_comments-6.json} (61%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_450_comments-16.json => repos_hub4j-test-org_github-api_pulls_455_comments-7.json} (57%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json => repos_hub4j-test-org_github-api_pulls_455_comments_901151503_replies-24.json} (58%) delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-12.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json => repos_hub4j-test-org_github-api_pulls_comments_901151503-26.json} (62%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_comments_846624633-17.json => repos_hub4j-test-org_github-api_pulls_comments_901151503-28.json} (55%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json => repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-10.json} (52%) create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-11.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-12.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-13.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-14.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-15.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-16.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-8.json => repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-19.json} (50%) create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-20.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-21.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-23.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json => repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-9.json} (60%) create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions_170482119-18.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions_158534106-11.json => repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions_170482131-22.json} (54%) create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/user-1.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/{users_gsmet-7.json => users_kisaga-8.json} (57%) diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java index c46d7dd4f2..bb88d9f6d7 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java @@ -24,6 +24,7 @@ package org.kohsuke.github; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; +import org.kohsuke.github.internal.EnumUtils; import java.io.IOException; import java.net.URL; @@ -43,16 +44,27 @@ public class GHPullRequestReviewComment extends GHObject implements Reactable { GHPullRequest owner; + private Long pull_request_review_id = -1L; private String body; private GHUser user; private String path; private String html_url; + private String pull_request_url; private int position = -1; private int original_position = -1; private long in_reply_to_id = -1L; + private Integer start_line = -1; + private Integer original_start_line = -1; + private String start_side; + private int line = -1; + private int original_line = -1; + private String side; private String diff_hunk; private String commit_id; private String original_commit_id; + private String body_html; + private String body_text; + private GHPullRequestReviewCommentReactions reactions; private GHCommentAuthorAssociation author_association; /** @@ -212,6 +224,115 @@ protected String getApiRoute(boolean includePullNumber) { + (includePullNumber ? "/" + owner.getNumber() : "") + "/comments/" + getId(); } + /** + * Gets The first line of the range for a multi-line comment. + * + * @return the start line + */ + public int getStartLine() { + return start_line != null ? start_line : -1; + } + + /** + * Gets The first line of the range for a multi-line comment. + * + * @return the original start line + */ + public int getOriginalStartLine() { + return original_start_line != null ? original_start_line : -1; + } + + /** + * Gets The side of the first line of the range for a multi-line comment. + * + * @return {@link Side} the side of the first line + */ + public Side getStartSide() { + return Side.from(start_side); + } + + /** + * Gets The line of the blob to which the comment applies. The last line of the range for a multi-line comment. + * + * @return the line to which the comment applies + */ + public int getLine() { + return line; + } + + /** + * Gets The line of the blob to which the comment applies. The last line of the range for a multi-line comment. + * + * @return the line to which the comment applies + */ + public int getOriginalLine() { + return original_line; + } + + /** + * Gets The side of the diff to which the comment applies. The side of the last line of the range for a multi-line + * comment + * + * @return {@link Side} the side if the diff to which the comment applies + */ + public Side getSide() { + return Side.from(side); + } + + /** + * Gets The ID of the pull request review to which the comment belongs. + * + * @return {@link Long} the ID of the pull request review + */ + public Long getPullRequestReviewId() { + return pull_request_review_id != null ? pull_request_review_id : -1; + } + + /** + * Gets URL for the pull request that the review comment belongs to. + * + * @return {@link URL} the URL of the pull request + */ + public URL getPullRequestUrl() { + return GitHubClient.parseURL(pull_request_url); + } + + /** + * Gets The body in html format. + * + * @return {@link String} the body in html format + */ + public String getBodyHtml() { + return body_html; + } + + /** + * Gets The body text. + * + * @return {@link String} the body text + */ + public String getBodyText() { + return body_text; + } + + /** + * Gets the Reaction Rollup + * + * @return {@link GHPullRequestReviewCommentReactions} the reaction rollup + */ + public GHPullRequestReviewCommentReactions getReactions() { + return reactions; + } + + public static enum Side { + RIGHT, LEFT, UNKNOWN; + + public static Side from(String value) { + return EnumUtils.getEnumOrDefault(Side.class, value, Side.UNKNOWN); + } + + } + /** * Updates the comment. * diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewCommentReactions.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewCommentReactions.java new file mode 100644 index 0000000000..a410b75530 --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewCommentReactions.java @@ -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 API + * documentation + * @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; + } +} diff --git a/src/test/java/org/kohsuke/github/GHPullRequestTest.java b/src/test/java/org/kohsuke/github/GHPullRequestTest.java index 4c6ae3d491..3295a5ade1 100644 --- a/src/test/java/org/kohsuke/github/GHPullRequestTest.java +++ b/src/test/java/org/kohsuke/github/GHPullRequestTest.java @@ -136,24 +136,59 @@ public void pullRequestReviewComments() throws Exception { assertThat(comment.getOriginalCommitId(), equalTo("07374fe73aff1c2024a8d4114b32406c7a8e89b7")); assertThat(comment.getAuthorAssociation(), equalTo(GHCommentAuthorAssociation.MEMBER)); assertThat(comment.getUser(), notNullValue()); + assertThat(comment.getStartLine(), equalTo(-1)); + assertThat(comment.getOriginalStartLine(), equalTo(-1)); + assertThat(comment.getStartSide(), equalTo(GHPullRequestReviewComment.Side.UNKNOWN)); + assertThat(comment.getLine(), equalTo(1)); + assertThat(comment.getOriginalLine(), equalTo(1)); + assertThat(comment.getSide(), equalTo(GHPullRequestReviewComment.Side.LEFT)); + assertThat(comment.getPullRequestUrl(), notNullValue()); + assertThat(comment.getPullRequestUrl().toString(), containsString("hub4j-test-org/github-api/pulls/")); + assertThat(comment.getBodyHtml(), nullValue()); + assertThat(comment.getBodyText(), nullValue()); // Assert htmlUrl is not null assertThat(comment.getHtmlUrl(), notNullValue()); assertThat(comment.getHtmlUrl().toString(), containsString("hub4j-test-org/github-api/pull/" + p.getNumber())); + comment.createReaction(ReactionContent.EYES); + GHReaction toBeRemoved = comment.createReaction(ReactionContent.CONFUSED); + comment.createReaction(ReactionContent.ROCKET); + comment.createReaction(ReactionContent.HOORAY); + comment.createReaction(ReactionContent.HEART); + comment.createReaction(ReactionContent.MINUS_ONE); + comment.createReaction(ReactionContent.PLUS_ONE); + comment.createReaction(ReactionContent.LAUGH); + GHPullRequestReviewCommentReactions commentReactions = p.listReviewComments() + .toList() + .get(0) + .getReactions(); + assertThat(commentReactions.getUrl().toString(), equalTo(comment.getUrl().toString().concat("/reactions"))); + assertThat(commentReactions.getTotalCount(), equalTo(8)); + assertThat(commentReactions.getPlusOne(), equalTo(1)); + assertThat(commentReactions.getMinusOne(), equalTo(1)); + assertThat(commentReactions.getLaugh(), equalTo(1)); + assertThat(commentReactions.getHooray(), equalTo(1)); + assertThat(commentReactions.getConfused(), equalTo(1)); + assertThat(commentReactions.getHeart(), equalTo(1)); + assertThat(commentReactions.getRocket(), equalTo(1)); + assertThat(commentReactions.getEyes(), equalTo(1)); + + comment.deleteReaction(toBeRemoved); + List reactions = comment.listReactions().toList(); - assertThat(reactions, is(empty())); + assertThat(reactions.size(), equalTo(7)); GHReaction reaction = comment.createReaction(ReactionContent.CONFUSED); assertThat(reaction.getContent(), equalTo(ReactionContent.CONFUSED)); reactions = comment.listReactions().toList(); - assertThat(reactions.size(), equalTo(1)); + assertThat(reactions.size(), equalTo(8)); comment.deleteReaction(reaction); reactions = comment.listReactions().toList(); - assertThat(reactions.size(), equalTo(0)); + assertThat(reactions.size(), equalTo(7)); GHPullRequestReviewComment reply = comment.reply("This is a reply."); assertThat(reply.getInReplyToId(), equalTo(comment.getId())); diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-1.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-2.json similarity index 60% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-1.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-2.json index 162ceb1c73..23e6767b85 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-1.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-2.json @@ -20,36 +20,12 @@ "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, - "private_gists": 0, - "disk_usage": 11979, - "collaborators": 0, - "billing_email": "kk@kohsuke.org", - "default_repository_permission": "none", - "members_can_create_repositories": false, - "two_factor_requirement_enabled": false, - "members_allowed_repository_creation_type": "none", - "members_can_create_public_repositories": false, - "members_can_create_private_repositories": false, - "members_can_create_internal_repositories": false, - "members_can_create_pages": true, - "members_can_fork_private_repositories": false, - "members_can_create_public_pages": true, - "members_can_create_private_pages": true, - "plan": { - "name": "free", - "space": 976562499, - "private_repos": 10000, - "filled_seats": 35, - "seats": 3 - } + "type": "Organization" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-2.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-3.json similarity index 94% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-2.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-3.json index 7451fc9078..7311c99b15 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-2.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-3.json @@ -65,16 +65,16 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2021-11-09T20:13:29Z", - "pushed_at": "2022-03-04T11:02:08Z", + "updated_at": "2022-05-23T14:23:52Z", + "pushed_at": "2022-06-19T18:53:54Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", "svn_url": "https://github.com/hub4j-test-org/github-api", "homepage": "http://github-api.kohsuke.org/", "size": 19045, - "stargazers_count": 0, - "watchers_count": 0, + "stargazers_count": 1, + "watchers_count": 1, "language": "Java", "has_issues": true, "has_projects": true, @@ -99,22 +99,16 @@ "visibility": "public", "forks": 0, "open_issues": 7, - "watchers": 0, + "watchers": 1, "default_branch": "main", "permissions": { - "admin": true, - "maintain": true, - "push": true, - "triage": true, + "admin": false, + "maintain": false, + "push": false, + "triage": false, "pull": true }, "temp_clone_token": "", - "allow_squash_merge": true, - "allow_merge_commit": true, - "allow_rebase_merge": true, - "allow_auto_merge": false, - "delete_branch_on_merge": false, - "allow_update_branch": false, "organization": { "login": "hub4j-test-org", "id": 7544739, @@ -202,27 +196,27 @@ "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", "created_at": "2010-04-19T04:13:03Z", - "updated_at": "2022-04-05T15:53:55Z", - "pushed_at": "2022-04-09T10:25:56Z", + "updated_at": "2022-06-15T19:41:21Z", + "pushed_at": "2022-06-16T12:28:14Z", "git_url": "git://github.com/hub4j/github-api.git", "ssh_url": "git@github.com:hub4j/github-api.git", "clone_url": "https://github.com/hub4j/github-api.git", "svn_url": "https://github.com/hub4j/github-api", "homepage": "https://github-api.kohsuke.org/", - "size": 39875, - "stargazers_count": 878, - "watchers_count": 878, + "size": 39920, + "stargazers_count": 908, + "watchers_count": 908, "language": "Java", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": true, - "forks_count": 601, + "forks_count": 618, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 100, + "open_issues_count": 117, "license": { "key": "mit", "name": "MIT License", @@ -242,9 +236,9 @@ "java-api" ], "visibility": "public", - "forks": 601, - "open_issues": 100, - "watchers": 878, + "forks": 618, + "open_issues": 117, + "watchers": 908, "default_branch": "main" }, "source": { @@ -314,27 +308,27 @@ "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", "created_at": "2010-04-19T04:13:03Z", - "updated_at": "2022-04-05T15:53:55Z", - "pushed_at": "2022-04-09T10:25:56Z", + "updated_at": "2022-06-15T19:41:21Z", + "pushed_at": "2022-06-16T12:28:14Z", "git_url": "git://github.com/hub4j/github-api.git", "ssh_url": "git@github.com:hub4j/github-api.git", "clone_url": "https://github.com/hub4j/github-api.git", "svn_url": "https://github.com/hub4j/github-api", "homepage": "https://github-api.kohsuke.org/", - "size": 39875, - "stargazers_count": 878, - "watchers_count": 878, + "size": 39920, + "stargazers_count": 908, + "watchers_count": 908, "language": "Java", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": true, - "forks_count": 601, + "forks_count": 618, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 100, + "open_issues_count": 117, "license": { "key": "mit", "name": "MIT License", @@ -354,11 +348,11 @@ "java-api" ], "visibility": "public", - "forks": 601, - "open_issues": 100, - "watchers": 878, + "forks": 618, + "open_issues": 117, + "watchers": 908, "default_branch": "main" }, - "network_count": 601, + "network_count": 618, "subscribers_count": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-3.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-4.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-3.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-4.json index c718c1e64d..7a13836acf 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-3.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-4.json @@ -1,38 +1,38 @@ { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "id": 904870051, - "node_id": "PR_kwDODFTdCc417zij", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450", - "diff_url": "https://github.com/hub4j-test-org/github-api/pull/450.diff", - "patch_url": "https://github.com/hub4j-test-org/github-api/pull/450.patch", - "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450", - "number": 450, + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "id": 971557519, + "node_id": "PR_kwDODFTdCc456MqP", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455", + "diff_url": "https://github.com/hub4j-test-org/github-api/pull/455.diff", + "patch_url": "https://github.com/hub4j-test-org/github-api/pull/455.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/455", + "number": 455, "state": "open", "locked": false, "title": "pullRequestReviewComments", "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", "type": "User", "site_admin": false }, "body": "## test", - "created_at": "2022-04-09T12:15:11Z", - "updated_at": "2022-04-09T12:15:11Z", + "created_at": "2022-06-19T20:04:06Z", + "updated_at": "2022-06-19T20:04:06Z", "closed_at": null, "merged_at": null, "merge_commit_sha": null, @@ -43,10 +43,10 @@ "labels": [], "milestone": null, "draft": false, - "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/commits", - "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/comments", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455/comments", "review_comment_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450/comments", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/455/comments", "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7", "head": { "label": "hub4j-test-org:test/stable", @@ -139,16 +139,16 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2021-11-09T20:13:29Z", - "pushed_at": "2022-03-04T11:02:08Z", + "updated_at": "2022-05-23T14:23:52Z", + "pushed_at": "2022-06-19T18:53:54Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", "svn_url": "https://github.com/hub4j-test-org/github-api", "homepage": "http://github-api.kohsuke.org/", "size": 19045, - "stargazers_count": 0, - "watchers_count": 0, + "stargazers_count": 1, + "watchers_count": 1, "language": "Java", "has_issues": true, "has_projects": true, @@ -173,7 +173,7 @@ "visibility": "public", "forks": 0, "open_issues": 8, - "watchers": 0, + "watchers": 1, "default_branch": "main" } }, @@ -268,16 +268,16 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2021-11-09T20:13:29Z", - "pushed_at": "2022-03-04T11:02:08Z", + "updated_at": "2022-05-23T14:23:52Z", + "pushed_at": "2022-06-19T18:53:54Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", "svn_url": "https://github.com/hub4j-test-org/github-api", "homepage": "http://github-api.kohsuke.org/", "size": 19045, - "stargazers_count": 0, - "watchers_count": 0, + "stargazers_count": 1, + "watchers_count": 1, "language": "Java", "has_issues": true, "has_projects": true, @@ -302,31 +302,31 @@ "visibility": "public", "forks": 0, "open_issues": 8, - "watchers": 0, + "watchers": 1, "default_branch": "main" } }, "_links": { "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" }, "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450" + "href": "https://github.com/hub4j-test-org/github-api/pull/455" }, "issue": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/455" }, "comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/455/comments" }, "review_comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455/comments" }, "review_comment": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments{/number}" }, "commits": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/commits" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455/commits" }, "statuses": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7" diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-14.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-14.json deleted file mode 100644 index 4cda5a84e8..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-14.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633", - "pull_request_review_id": 937124048, - "id": 846624633, - "node_id": "PRRC_kwDODFTdCc4ydnd5", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Sample review comment", - "created_at": "2022-04-09T12:15:13Z", - "updated_at": "2022-04-09T12:15:13Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - }, - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637", - "pull_request_review_id": 937124051, - "id": 846624637, - "node_id": "PRRC_kwDODFTdCc4ydnd9", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "This is a reply.", - "created_at": "2022-04-09T12:15:15Z", - "updated_at": "2022-04-09T12:15:15Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT", - "in_reply_to_id": 846624633 - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-16.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-16.json deleted file mode 100644 index 7bdf214904..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-16.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633", - "pull_request_review_id": 937124048, - "id": 846624633, - "node_id": "PRRC_kwDODFTdCc4ydnd5", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Updated review comment", - "created_at": "2022-04-09T12:15:13Z", - "updated_at": "2022-04-09T12:15:16Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - }, - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637", - "pull_request_review_id": 937124051, - "id": 846624637, - "node_id": "PRRC_kwDODFTdCc4ydnd9", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "This is a reply.", - "created_at": "2022-04-09T12:15:15Z", - "updated_at": "2022-04-09T12:15:15Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT", - "in_reply_to_id": 846624633 - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-18.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-18.json deleted file mode 100644 index 790346e225..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-18.json +++ /dev/null @@ -1,69 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637", - "pull_request_review_id": 937124051, - "id": 846624637, - "node_id": "PRRC_kwDODFTdCc4ydnd9", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "This is a reply.", - "created_at": "2022-04-09T12:15:15Z", - "updated_at": "2022-04-09T12:15:15Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-5.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-5.json deleted file mode 100644 index ceb0c285e0..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-5.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633", - "pull_request_review_id": 937124048, - "id": 846624633, - "node_id": "PRRC_kwDODFTdCc4ydnd5", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Sample review comment", - "created_at": "2022-04-09T12:15:13Z", - "updated_at": "2022-04-09T12:15:13Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-6.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-6.json deleted file mode 100644 index 1800a49e08..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-6.json +++ /dev/null @@ -1,69 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633", - "pull_request_review_id": 937124048, - "id": 846624633, - "node_id": "PRRC_kwDODFTdCc4ydnd5", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Sample review comment", - "created_at": "2022-04-09T12:15:13Z", - "updated_at": "2022-04-09T12:15:13Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json deleted file mode 100644 index d3a084746f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637", - "pull_request_review_id": 937124051, - "id": 846624637, - "node_id": "PRRC_kwDODFTdCc4ydnd9", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "This is a reply.", - "created_at": "2022-04-09T12:15:15Z", - "updated_at": "2022-04-09T12:15:15Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT", - "in_reply_to_id": 846624633 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450-19.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455-30.json similarity index 90% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450-19.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455-30.json index 741972649d..247297b731 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450-19.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455-30.json @@ -1,41 +1,41 @@ { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "id": 904870051, - "node_id": "PR_kwDODFTdCc417zij", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450", - "diff_url": "https://github.com/hub4j-test-org/github-api/pull/450.diff", - "patch_url": "https://github.com/hub4j-test-org/github-api/pull/450.patch", - "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450", - "number": 450, + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "id": 971557519, + "node_id": "PR_kwDODFTdCc456MqP", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455", + "diff_url": "https://github.com/hub4j-test-org/github-api/pull/455.diff", + "patch_url": "https://github.com/hub4j-test-org/github-api/pull/455.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/455", + "number": 455, "state": "closed", "locked": false, "title": "pullRequestReviewComments", "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", "type": "User", "site_admin": false }, "body": "## test", - "created_at": "2022-04-09T12:15:11Z", - "updated_at": "2022-04-09T12:15:18Z", - "closed_at": "2022-04-09T12:15:18Z", + "created_at": "2022-06-19T20:04:06Z", + "updated_at": "2022-06-19T20:04:25Z", + "closed_at": "2022-06-19T20:04:25Z", "merged_at": null, - "merge_commit_sha": "1b4f92fc0c970eab91ebee6e8e63d51c657ecb83", + "merge_commit_sha": "31dd1b06f75c2b72bd1e7f066720ba174d5bc33a", "assignee": null, "assignees": [], "requested_reviewers": [], @@ -43,10 +43,10 @@ "labels": [], "milestone": null, "draft": false, - "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/commits", - "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/comments", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455/comments", "review_comment_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450/comments", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/455/comments", "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7", "head": { "label": "hub4j-test-org:test/stable", @@ -139,16 +139,16 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2021-11-09T20:13:29Z", - "pushed_at": "2022-04-09T12:15:12Z", + "updated_at": "2022-05-23T14:23:52Z", + "pushed_at": "2022-06-19T20:04:07Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", "svn_url": "https://github.com/hub4j-test-org/github-api", "homepage": "http://github-api.kohsuke.org/", "size": 19045, - "stargazers_count": 0, - "watchers_count": 0, + "stargazers_count": 1, + "watchers_count": 1, "language": "Java", "has_issues": true, "has_projects": true, @@ -173,7 +173,7 @@ "visibility": "public", "forks": 0, "open_issues": 7, - "watchers": 0, + "watchers": 1, "default_branch": "main" } }, @@ -268,16 +268,16 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2021-11-09T20:13:29Z", - "pushed_at": "2022-04-09T12:15:12Z", + "updated_at": "2022-05-23T14:23:52Z", + "pushed_at": "2022-06-19T20:04:07Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", "svn_url": "https://github.com/hub4j-test-org/github-api", "homepage": "http://github-api.kohsuke.org/", "size": 19045, - "stargazers_count": 0, - "watchers_count": 0, + "stargazers_count": 1, + "watchers_count": 1, "language": "Java", "has_issues": true, "has_projects": true, @@ -302,31 +302,31 @@ "visibility": "public", "forks": 0, "open_issues": 7, - "watchers": 0, + "watchers": 1, "default_branch": "main" } }, "_links": { "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" }, "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450" + "href": "https://github.com/hub4j-test-org/github-api/pull/455" }, "issue": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/455" }, "comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/455/comments" }, "review_comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455/comments" }, "review_comment": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments{/number}" }, "commits": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/commits" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455/commits" }, "statuses": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7" diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-17.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-17.json new file mode 100644 index 0000000000..84a910f921 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-17.json @@ -0,0 +1,69 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503", + "pull_request_review_id": 1011563012, + "id": 901151503, + "node_id": "PRRC_kwDODFTdCc41tnsP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2022-06-19T20:04:08Z", + "updated_at": "2022-06-19T20:04:08Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "total_count": 8, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 1, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-25.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-25.json new file mode 100644 index 0000000000..9c1151030b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-25.json @@ -0,0 +1,137 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503", + "pull_request_review_id": 1011563012, + "id": 901151503, + "node_id": "PRRC_kwDODFTdCc41tnsP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2022-06-19T20:04:08Z", + "updated_at": "2022-06-19T20:04:08Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "total_count": 7, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 0, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534", + "pull_request_review_id": 1011563029, + "id": 901151534, + "node_id": "PRRC_kwDODFTdCc41tnsu", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2022-06-19T20:04:20Z", + "updated_at": "2022-06-19T20:04:20Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151534", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151534" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "in_reply_to_id": 901151503 + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-27.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-27.json new file mode 100644 index 0000000000..5b765b9cbd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-27.json @@ -0,0 +1,137 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503", + "pull_request_review_id": 1011563012, + "id": 901151503, + "node_id": "PRRC_kwDODFTdCc41tnsP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "body": "Updated review comment", + "created_at": "2022-06-19T20:04:08Z", + "updated_at": "2022-06-19T20:04:22Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "total_count": 7, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 0, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534", + "pull_request_review_id": 1011563029, + "id": 901151534, + "node_id": "PRRC_kwDODFTdCc41tnsu", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2022-06-19T20:04:20Z", + "updated_at": "2022-06-19T20:04:20Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151534", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151534" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "in_reply_to_id": 901151503 + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-29.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-29.json new file mode 100644 index 0000000000..eec211969c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-29.json @@ -0,0 +1,69 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534", + "pull_request_review_id": 1011563029, + "id": 901151534, + "node_id": "PRRC_kwDODFTdCc41tnsu", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2022-06-19T20:04:20Z", + "updated_at": "2022-06-19T20:04:20Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151534", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151534" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-6.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-6.json new file mode 100644 index 0000000000..f33bc902c7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-6.json @@ -0,0 +1,67 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503", + "pull_request_review_id": 1011563012, + "id": 901151503, + "node_id": "PRRC_kwDODFTdCc41tnsP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2022-06-19T20:04:08Z", + "updated_at": "2022-06-19T20:04:08Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-7.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-7.json new file mode 100644 index 0000000000..64644aba7a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments-7.json @@ -0,0 +1,69 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503", + "pull_request_review_id": 1011563012, + "id": 901151503, + "node_id": "PRRC_kwDODFTdCc41tnsP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2022-06-19T20:04:08Z", + "updated_at": "2022-06-19T20:04:08Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments_901151503_replies-24.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments_901151503_replies-24.json new file mode 100644 index 0000000000..be109a9f5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_455_comments_901151503_replies-24.json @@ -0,0 +1,68 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534", + "pull_request_review_id": 1011563029, + "id": 901151534, + "node_id": "PRRC_kwDODFTdCc41tnsu", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2022-06-19T20:04:20Z", + "updated_at": "2022-06-19T20:04:20Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151534", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151534" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "in_reply_to_id": 901151503 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json deleted file mode 100644 index 48ddd1bc34..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633", - "pull_request_review_id": 937124048, - "id": 846624633, - "node_id": "PRRC_kwDODFTdCc4ydnd5", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Updated review comment", - "created_at": "2022-04-09T12:15:13Z", - "updated_at": "2022-04-09T12:15:16Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json deleted file mode 100644 index 8f583f3b19..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "id": 158534106, - "node_id": "REA_lATODFTdCc4ydnd5zglzCdo", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "content": "confused", - "created_at": "2022-04-09T12:15:14Z" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json deleted file mode 100644 index 3060dcda5e..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 158534106, - "node_id": "REA_lATODFTdCc4ydnd5zglzCdo", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "content": "confused", - "created_at": "2022-04-09T12:15:14Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503-26.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503-26.json new file mode 100644 index 0000000000..e469237e70 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503-26.json @@ -0,0 +1,67 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503", + "pull_request_review_id": 1011563012, + "id": 901151503, + "node_id": "PRRC_kwDODFTdCc41tnsP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "body": "Updated review comment", + "created_at": "2022-06-19T20:04:08Z", + "updated_at": "2022-06-19T20:04:22Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/455#discussion_r901151503" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "total_count": 7, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 0, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-10.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-10.json new file mode 100644 index 0000000000..f4fa09a25a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-10.json @@ -0,0 +1,26 @@ +{ + "id": 170482119, + "node_id": "REA_lATODFTdCc41tnsPzgopWcc", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2022-06-19T20:04:11Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-11.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-11.json new file mode 100644 index 0000000000..01041e63a9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-11.json @@ -0,0 +1,26 @@ +{ + "id": 170482120, + "node_id": "REA_lATODFTdCc41tnsPzgopWcg", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2022-06-19T20:04:12Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-12.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-12.json new file mode 100644 index 0000000000..064a626ff1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-12.json @@ -0,0 +1,26 @@ +{ + "id": 170482121, + "node_id": "REA_lATODFTdCc41tnsPzgopWck", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2022-06-19T20:04:12Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-13.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-13.json new file mode 100644 index 0000000000..971c2ad8ac --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-13.json @@ -0,0 +1,26 @@ +{ + "id": 170482122, + "node_id": "REA_lATODFTdCc41tnsPzgopWco", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2022-06-19T20:04:13Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-14.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-14.json new file mode 100644 index 0000000000..48d3cb00fa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-14.json @@ -0,0 +1,26 @@ +{ + "id": 170482123, + "node_id": "REA_lATODFTdCc41tnsPzgopWcs", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2022-06-19T20:04:13Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-15.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-15.json new file mode 100644 index 0000000000..a8a2d1be29 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-15.json @@ -0,0 +1,26 @@ +{ + "id": 170482125, + "node_id": "REA_lATODFTdCc41tnsPzgopWc0", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2022-06-19T20:04:14Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-16.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-16.json new file mode 100644 index 0000000000..b4b54d3e53 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-16.json @@ -0,0 +1,26 @@ +{ + "id": 170482128, + "node_id": "REA_lATODFTdCc41tnsPzgopWdA", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2022-06-19T20:04:15Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-19.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-19.json new file mode 100644 index 0000000000..ac74413dba --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-19.json @@ -0,0 +1,184 @@ +[ + { + "id": 170482117, + "node_id": "REA_lATODFTdCc41tnsPzgopWcU", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2022-06-19T20:04:10Z" + }, + { + "id": 170482120, + "node_id": "REA_lATODFTdCc41tnsPzgopWcg", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2022-06-19T20:04:12Z" + }, + { + "id": 170482121, + "node_id": "REA_lATODFTdCc41tnsPzgopWck", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2022-06-19T20:04:12Z" + }, + { + "id": 170482122, + "node_id": "REA_lATODFTdCc41tnsPzgopWco", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2022-06-19T20:04:13Z" + }, + { + "id": 170482123, + "node_id": "REA_lATODFTdCc41tnsPzgopWcs", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2022-06-19T20:04:13Z" + }, + { + "id": 170482125, + "node_id": "REA_lATODFTdCc41tnsPzgopWc0", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2022-06-19T20:04:14Z" + }, + { + "id": 170482128, + "node_id": "REA_lATODFTdCc41tnsPzgopWdA", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2022-06-19T20:04:15Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-20.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-20.json new file mode 100644 index 0000000000..5ee4ebcf31 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-20.json @@ -0,0 +1,26 @@ +{ + "id": 170482131, + "node_id": "REA_lATODFTdCc41tnsPzgopWdM", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2022-06-19T20:04:17Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-21.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-21.json new file mode 100644 index 0000000000..d3201f0695 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-21.json @@ -0,0 +1,210 @@ +[ + { + "id": 170482117, + "node_id": "REA_lATODFTdCc41tnsPzgopWcU", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2022-06-19T20:04:10Z" + }, + { + "id": 170482120, + "node_id": "REA_lATODFTdCc41tnsPzgopWcg", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2022-06-19T20:04:12Z" + }, + { + "id": 170482121, + "node_id": "REA_lATODFTdCc41tnsPzgopWck", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2022-06-19T20:04:12Z" + }, + { + "id": 170482122, + "node_id": "REA_lATODFTdCc41tnsPzgopWco", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2022-06-19T20:04:13Z" + }, + { + "id": 170482123, + "node_id": "REA_lATODFTdCc41tnsPzgopWcs", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2022-06-19T20:04:13Z" + }, + { + "id": 170482125, + "node_id": "REA_lATODFTdCc41tnsPzgopWc0", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2022-06-19T20:04:14Z" + }, + { + "id": 170482128, + "node_id": "REA_lATODFTdCc41tnsPzgopWdA", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2022-06-19T20:04:15Z" + }, + { + "id": 170482131, + "node_id": "REA_lATODFTdCc41tnsPzgopWdM", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2022-06-19T20:04:17Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-23.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-23.json new file mode 100644 index 0000000000..ac74413dba --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-23.json @@ -0,0 +1,184 @@ +[ + { + "id": 170482117, + "node_id": "REA_lATODFTdCc41tnsPzgopWcU", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2022-06-19T20:04:10Z" + }, + { + "id": 170482120, + "node_id": "REA_lATODFTdCc41tnsPzgopWcg", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2022-06-19T20:04:12Z" + }, + { + "id": 170482121, + "node_id": "REA_lATODFTdCc41tnsPzgopWck", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2022-06-19T20:04:12Z" + }, + { + "id": 170482122, + "node_id": "REA_lATODFTdCc41tnsPzgopWco", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2022-06-19T20:04:13Z" + }, + { + "id": 170482123, + "node_id": "REA_lATODFTdCc41tnsPzgopWcs", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2022-06-19T20:04:13Z" + }, + { + "id": 170482125, + "node_id": "REA_lATODFTdCc41tnsPzgopWc0", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2022-06-19T20:04:14Z" + }, + { + "id": 170482128, + "node_id": "REA_lATODFTdCc41tnsPzgopWdA", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2022-06-19T20:04:15Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-9.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-9.json new file mode 100644 index 0000000000..c487dd076a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-9.json @@ -0,0 +1,26 @@ +{ + "id": 170482117, + "node_id": "REA_lATODFTdCc41tnsPzgopWcU", + "user": { + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2022-06-19T20:04:10Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/user-1.json new file mode 100644 index 0000000000..4994365297 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/user-1.json @@ -0,0 +1,46 @@ +{ + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false, + "name": "Vasilis Gakias", + "company": null, + "blog": "", + "location": "greece", + "email": "vasileios.gakias@gmail.com", + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 14, + "public_gists": 0, + "followers": 2, + "following": 2, + "created_at": "2016-11-10T23:20:00Z", + "updated_at": "2022-06-19T00:21:42Z", + "private_gists": 0, + "total_private_repos": 0, + "owned_private_repos": 0, + "disk_usage": 12317, + "collaborators": 0, + "two_factor_authentication": false, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_gsmet-7.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_gsmet-7.json deleted file mode 100644 index 6fa76a1f24..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_gsmet-7.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false, - "name": "Guillaume Smet", - "company": "Red Hat", - "blog": "https://lesincroyableslivres.fr/", - "location": "Lyon, France", - "email": "guillaume.smet@gmail.com", - "hireable": null, - "bio": "Happy camper at Red Hat, working on Quarkus and the Hibernate portfolio.", - "twitter_username": "gsmet_", - "public_repos": 147, - "public_gists": 15, - "followers": 172, - "following": 3, - "created_at": "2011-12-22T11:03:22Z", - "updated_at": "2022-04-06T15:07:12Z", - "private_gists": 14, - "total_private_repos": 4, - "owned_private_repos": 1, - "disk_usage": 70882, - "collaborators": 1, - "two_factor_authentication": true, - "plan": { - "name": "free", - "space": 976562499, - "collaborators": 0, - "private_repos": 10000 - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_kisaga-8.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_kisaga-8.json new file mode 100644 index 0000000000..4994365297 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_kisaga-8.json @@ -0,0 +1,46 @@ +{ + "login": "kisaga", + "id": 23390439, + "node_id": "MDQ6VXNlcjIzMzkwNDM5", + "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kisaga", + "html_url": "https://github.com/kisaga", + "followers_url": "https://api.github.com/users/kisaga/followers", + "following_url": "https://api.github.com/users/kisaga/following{/other_user}", + "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", + "organizations_url": "https://api.github.com/users/kisaga/orgs", + "repos_url": "https://api.github.com/users/kisaga/repos", + "events_url": "https://api.github.com/users/kisaga/events{/privacy}", + "received_events_url": "https://api.github.com/users/kisaga/received_events", + "type": "User", + "site_admin": false, + "name": "Vasilis Gakias", + "company": null, + "blog": "", + "location": "greece", + "email": "vasileios.gakias@gmail.com", + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 14, + "public_gists": 0, + "followers": 2, + "following": 2, + "created_at": "2016-11-10T23:20:00Z", + "updated_at": "2022-06-19T00:21:42Z", + "private_gists": 0, + "total_private_repos": 0, + "owned_private_repos": 0, + "disk_usage": 12317, + "collaborators": 0, + "two_factor_authentication": false, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-1.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-2.json similarity index 64% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-1.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-2.json index 0036251e18..d9bda15f72 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-1.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-2.json @@ -1,5 +1,5 @@ { - "id": "4b84c118-4a9c-45ee-8cbe-52b6a3763adf", + "id": "fd6d256d-fe59-4620-a95d-535002265bd4", "name": "orgs_hub4j-test-org", "request": { "url": "/orgs/hub4j-test-org", @@ -12,25 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "orgs_hub4j-test-org-1.json", + "bodyFileName": "orgs_hub4j-test-org-2.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:11 GMT", + "Date": "Sun, 19 Jun 2022 20:04:05 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"861b38147d37bd59e507771e76ec048def20dd6e5ac5b75aceb01c8b9f0ef4f5\"", + "ETag": "W/\"08de0e00355960cc5af663326f69216f54057446497351e602e562ee6f050cea\"", "Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4982", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "18", + "X-RateLimit-Remaining": "4805", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "195", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF26:E0D5:8A28DE:8F7145:625178CE" + "X-GitHub-Request-Id": "9A80:12286:55568F:577CFA:62AF8135" } }, - "uuid": "4b84c118-4a9c-45ee-8cbe-52b6a3763adf", + "uuid": "fd6d256d-fe59-4620-a95d-535002265bd4", "persistent": true, - "insertionIndex": 1 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-2.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-3.json similarity index 60% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-2.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-3.json index 5f2c551e0f..05f56ed27f 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-2.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-3.json @@ -1,5 +1,5 @@ { - "id": "af7bd5d9-e014-496e-973f-f44f48f8d639", + "id": "7d939592-569b-4d45-8e9e-a5ac17af913f", "name": "repos_hub4j-test-org_github-api", "request": { "url": "/repos/hub4j-test-org/github-api", @@ -12,25 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api-2.json", + "bodyFileName": "repos_hub4j-test-org_github-api-3.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:11 GMT", + "Date": "Sun, 19 Jun 2022 20:04:06 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"1c2c68b5cb572680f51498796d0b11bee390107942cb9d9c88b25679760a86c7\"", - "Last-Modified": "Tue, 09 Nov 2021 20:13:29 GMT", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"9978a8ed8f043109f27e7e054b9696533f014049debaf8bb781e1dfe18a0a53a\"", + "Last-Modified": "Mon, 23 May 2022 14:23:52 GMT", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4981", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "19", + "X-RateLimit-Remaining": "4804", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "196", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF28:5187:88B618:8DFE6A:625178CF" + "X-GitHub-Request-Id": "9A82:CCEC:57226B:594DC4:62AF8135" } }, - "uuid": "af7bd5d9-e014-496e-973f-f44f48f8d639", + "uuid": "7d939592-569b-4d45-8e9e-a5ac17af913f", "persistent": true, - "insertionIndex": 2 + "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-3.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-4.json similarity index 68% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-3.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-4.json index a8695af2b2..509f400956 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-3.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-4.json @@ -1,5 +1,5 @@ { - "id": "89d3f876-6802-4140-b2d9-cad6e5a66930", + "id": "8115c504-1e1f-4344-bd8b-42de6ea01af5", "name": "repos_hub4j-test-org_github-api_pulls", "request": { "url": "/repos/hub4j-test-org/github-api/pulls", @@ -19,24 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls-3.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls-4.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:12 GMT", + "Date": "Sun, 19 Jun 2022 20:04:07 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"68840492424616213106fcff4e8b52e7e574d2b1799abeb22e1ee3cc4f65e5b0\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"d6d6c4c8d9e38562dff8ce9d0841e8d0475ce3f447af859ba4ec629118effd35\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; param=shadow-cat-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4980", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "20", + "X-RateLimit-Remaining": "4803", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "197", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -44,11 +45,11 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF2A:5C30:19CC336:1A3AF94:625178CF", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + "X-GitHub-Request-Id": "9A84:87A2:4DA4F5:4FBE15:62AF8136", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/455" } }, - "uuid": "89d3f876-6802-4140-b2d9-cad6e5a66930", + "uuid": "8115c504-1e1f-4344-bd8b-42de6ea01af5", "persistent": true, - "insertionIndex": 3 + "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450-19.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455-30.json similarity index 59% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450-19.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455-30.json index 7af46ed577..9d7508395e 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450-19.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455-30.json @@ -1,8 +1,8 @@ { - "id": "e76e5f8a-7440-4747-9db3-8cc42782620e", - "name": "repos_hub4j-test-org_github-api_pulls_450", + "id": "6852add9-1b8e-4472-9a98-63287f0ee4d2", + "name": "repos_hub4j-test-org_github-api_pulls_455", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/450", + "url": "/repos/hub4j-test-org/github-api/pulls/455", "method": "PATCH", "headers": { "Accept": { @@ -19,24 +19,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450-19.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_455-30.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:19 GMT", + "Date": "Sun, 19 Jun 2022 20:04:25 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"399c2e3c022b7bf249d0200e9176625d86810ac54e14542e88945ad9df7b0e84\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"ded94f4ef39f81b3ba97018d19d9fda23cda1b5ed3fff2be6de6ccabba8889bc\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4964", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "36", + "X-RateLimit-Remaining": "4777", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "223", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -44,10 +45,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF4E:39AA:E9643A:EF75F6:625178D6" + "X-GitHub-Request-Id": "9ABC:10435:1425DB:15B8A3:62AF8149" } }, - "uuid": "e76e5f8a-7440-4747-9db3-8cc42782620e", + "uuid": "6852add9-1b8e-4472-9a98-63287f0ee4d2", "persistent": true, - "insertionIndex": 19 + "insertionIndex": 30 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-6.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-17.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-6.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-17.json index 76e67d8969..c8326c5c15 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-6.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-17.json @@ -1,8 +1,8 @@ { - "id": "9b869e00-5373-4fb4-99cc-78a9a4d07476", - "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "id": "5b68c268-b0e5-47be-8c5a-9480d7a32342", + "name": "repos_hub4j-test-org_github-api_pulls_455_comments", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "url": "/repos/hub4j-test-org/github-api/pulls/455/comments", "method": "GET", "headers": { "Accept": { @@ -12,24 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments-6.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_455_comments-17.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:13 GMT", + "Date": "Sun, 19 Jun 2022 20:04:16 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"a5079bbf1657991249b9611ffb3cda3ae41e08b4b8bc0f4c4703fba99fbb0dec\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"e2d3e6176f28ed56e56762dd9ad66d5975bd1378073af06592e5b5fa519fc32e\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4977", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "23", + "X-RateLimit-Remaining": "4790", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "210", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,13 +38,13 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF30:ECE0:7B8551:80CDD1:625178D1" + "X-GitHub-Request-Id": "9AA2:12286:5563BF:578A85:62AF813F" } }, - "uuid": "9b869e00-5373-4fb4-99cc-78a9a4d07476", + "uuid": "5b68c268-b0e5-47be-8c5a-9480d7a32342", "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-2", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-3", - "insertionIndex": 6 + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments-3", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments-4", + "insertionIndex": 17 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-14.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-25.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-14.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-25.json index 7c967dd7ae..5e3850cc5a 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-14.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-25.json @@ -1,8 +1,8 @@ { - "id": "688a8bee-65e8-4230-9e8b-9a7b4edf8f5a", - "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "id": "c7b9f62b-58de-4047-9d1e-c3b8ec2bed4b", + "name": "repos_hub4j-test-org_github-api_pulls_455_comments", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "url": "/repos/hub4j-test-org/github-api/pulls/455/comments", "method": "GET", "headers": { "Accept": { @@ -12,24 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments-14.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_455_comments-25.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:16 GMT", + "Date": "Sun, 19 Jun 2022 20:04:21 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"8710e53c6a4f5e8cb30cd02074a24ed05e154c81a9105e6c7fe8bdea7d708947\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"effdbef45ef6224c45e62e00ad1bbf89c554b51f06e4409895ced432359845a9\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4969", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "31", + "X-RateLimit-Remaining": "4782", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "218", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,13 +38,13 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF42:11728:24F9D:6D1C2:625178D4" + "X-GitHub-Request-Id": "9AB2:BD00:30701A:32443E:62AF8145" } }, - "uuid": "688a8bee-65e8-4230-9e8b-9a7b4edf8f5a", + "uuid": "c7b9f62b-58de-4047-9d1e-c3b8ec2bed4b", "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-3", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-4", - "insertionIndex": 14 + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments-4", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments-5", + "insertionIndex": 25 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-27.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-27.json new file mode 100644 index 0000000000..62bb701bec --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-27.json @@ -0,0 +1,50 @@ +{ + "id": "2b5d11ae-e2d2-47d9-a3e8-69f1d3bdf7e5", + "name": "repos_hub4j-test-org_github-api_pulls_455_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/455/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_455_comments-27.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:23 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"f268fcc19482c49fd9821dd9dc12a68ec763f0f5c552c625cc2d17c8af3e70f0\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4780", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "220", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9AB6:138E:5411BB:5633AE:62AF8146" + } + }, + "uuid": "2b5d11ae-e2d2-47d9-a3e8-69f1d3bdf7e5", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments-5", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments-6", + "insertionIndex": 27 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-18.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-29.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-18.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-29.json index 938dd53399..5e9dae3ad1 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-18.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-29.json @@ -1,8 +1,8 @@ { - "id": "ec9a9df9-8cbf-4211-b061-d3452cfd1454", - "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "id": "0f35bfab-9eb9-4dc5-9a46-83847ed991ed", + "name": "repos_hub4j-test-org_github-api_pulls_455_comments", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "url": "/repos/hub4j-test-org/github-api/pulls/455/comments", "method": "GET", "headers": { "Accept": { @@ -12,24 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments-18.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_455_comments-29.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:18 GMT", + "Date": "Sun, 19 Jun 2022 20:04:24 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"edab203c9bce79c86872fcace8d269e5060b9c125aadfccefbe871e663b7c1c2\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"f10975856718fa9814d59eedf4c2feca1f1719873d9eeb1000c240a3079b2b16\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4965", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "35", + "X-RateLimit-Remaining": "4778", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "222", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,12 +38,12 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF4C:5188:EA0328:F0143F:625178D6" + "X-GitHub-Request-Id": "9ABA:0C88:3125BA:32FACE:62AF8148" } }, - "uuid": "ec9a9df9-8cbf-4211-b061-d3452cfd1454", + "uuid": "0f35bfab-9eb9-4dc5-9a46-83847ed991ed", "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-5", - "insertionIndex": 18 + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments-6", + "insertionIndex": 29 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-4.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-5.json similarity index 60% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-4.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-5.json index 66d15a4a6d..7c354cf609 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-4.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-5.json @@ -1,8 +1,8 @@ { - "id": "bf14e708-e9c6-44f5-97e7-ec6c46ba4976", - "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "id": "ac2ada52-7298-492f-8c93-a808cb9d19af", + "name": "repos_hub4j-test-org_github-api_pulls_455_comments", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "url": "/repos/hub4j-test-org/github-api/pulls/455/comments", "method": "GET", "headers": { "Accept": { @@ -15,21 +15,22 @@ "body": "[]", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:12 GMT", + "Date": "Sun, 19 Jun 2022 20:04:07 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"e33d671b99cfd3b69cbea6599065ce3f5431730434d2452958e0865316fdb5be\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"20fc4441d036edca28dbcc065f9e32b03003e2a9085ffd64254446cf3cf0604f\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4979", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "21", + "X-RateLimit-Remaining": "4802", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "198", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,13 +38,13 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF2C:5C30:19CC4C4:1A3B129:625178D0" + "X-GitHub-Request-Id": "9A86:12285:333CE4:3512E0:62AF8137" } }, - "uuid": "bf14e708-e9c6-44f5-97e7-ec6c46ba4976", + "uuid": "ac2ada52-7298-492f-8c93-a808cb9d19af", "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments", + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments", "requiredScenarioState": "Started", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-2", - "insertionIndex": 4 + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments-2", + "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-5.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-6.json similarity index 61% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-5.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-6.json index 43705a131b..04c57461c3 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-5.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-6.json @@ -1,8 +1,8 @@ { - "id": "9fd65261-6489-4fab-bc3d-c475bd9d0d65", - "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "id": "63746b4e-359d-454e-ad7f-e8a82ee2240f", + "name": "repos_hub4j-test-org_github-api_pulls_455_comments", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "url": "/repos/hub4j-test-org/github-api/pulls/455/comments", "method": "POST", "headers": { "Accept": { @@ -19,24 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments-5.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_455_comments-6.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:13 GMT", + "Date": "Sun, 19 Jun 2022 20:04:09 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"43b4e6146c9e9e1755b9a4de3f42b00f2c8235931a60c1b30154ec06e6a9290d\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"03997054a5137ebbda77b69ed047f0febccbb99a741b21baadfb0216665aae91\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4978", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "22", + "X-RateLimit-Remaining": "4801", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "199", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -44,11 +45,11 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF2E:C0CA:18919B4:19034D3:625178D0", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" + "X-GitHub-Request-Id": "9A88:37A3:2F3053:30FA6C:62AF8138", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151503" } }, - "uuid": "9fd65261-6489-4fab-bc3d-c475bd9d0d65", + "uuid": "63746b4e-359d-454e-ad7f-e8a82ee2240f", "persistent": true, - "insertionIndex": 5 + "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-16.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-7.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-16.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-7.json index 14ece4fa0f..e11e5fe956 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-16.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments-7.json @@ -1,8 +1,8 @@ { - "id": "6e4fb0b4-c771-4728-bd07-79e2afed9108", - "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "id": "81d300ff-cafc-4c1e-9a3b-aa7256a5d1d5", + "name": "repos_hub4j-test-org_github-api_pulls_455_comments", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "url": "/repos/hub4j-test-org/github-api/pulls/455/comments", "method": "GET", "headers": { "Accept": { @@ -12,24 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments-16.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_455_comments-7.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:17 GMT", + "Date": "Sun, 19 Jun 2022 20:04:09 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"6f4ddc206cbb07f1bb428abed4f999d54e4173bef1e79779f01b146e301cab19\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"71d2c6ce3afe22233bdabcc28dc0d254792066af115cfa4d4f380c444a519821\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4967", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "33", + "X-RateLimit-Remaining": "4800", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "200", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,13 +38,13 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF46:020E:1B9F471:1C125DB:625178D5" + "X-GitHub-Request-Id": "9A8A:4F1C:1AEDC59:1B99C91:62AF8139" } }, - "uuid": "6e4fb0b4-c771-4728-bd07-79e2afed9108", + "uuid": "81d300ff-cafc-4c1e-9a3b-aa7256a5d1d5", "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-4", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-5", - "insertionIndex": 16 + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments-2", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-455-comments-3", + "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments_901151503_replies-24.json similarity index 58% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments_901151503_replies-24.json index bb2baa99bc..6d69a1a4f2 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_455_comments_901151503_replies-24.json @@ -1,8 +1,8 @@ { - "id": "5838af27-7458-4d23-8891-b604cdbfc226", - "name": "repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies", + "id": "7e9dd2b5-2860-49e8-abb3-e11a4e20a9ab", + "name": "repos_hub4j-test-org_github-api_pulls_455_comments_901151503_replies", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/450/comments/846624633/replies", + "url": "/repos/hub4j-test-org/github-api/pulls/455/comments/901151503/replies", "method": "POST", "headers": { "Accept": { @@ -19,24 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_455_comments_901151503_replies-24.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:16 GMT", + "Date": "Sun, 19 Jun 2022 20:04:21 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"b084031e7bce31f52fa9ac44e1c459d48890405b660e08b7112aa27b9df8edbe\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"f4a209523f54eb9cfab2dcb70e3dfc0d6a424a48509c021acf350414ed147005\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4970", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "30", + "X-RateLimit-Remaining": "4783", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "217", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -44,11 +45,11 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF40:ECF2:FE7DEA:10484D5:625178D3", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637" + "X-GitHub-Request-Id": "9AB0:4F1C:1AEEACA:1B9AB51:62AF8143", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/901151534" } }, - "uuid": "5838af27-7458-4d23-8891-b604cdbfc226", + "uuid": "7e9dd2b5-2860-49e8-abb3-e11a4e20a9ab", "persistent": true, - "insertionIndex": 13 + "insertionIndex": 24 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-12.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-12.json deleted file mode 100644 index 5a52023df5..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-12.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "id": "299750d0-5f58-4107-ac52-5abd07ec5399", - "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" - } - } - }, - "response": { - "status": 200, - "body": "[]", - "headers": { - "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:15 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"1edf80ecd98d11d98113d5aa3cef7021f4a60d76d4a01328e8d3552451f43ce4\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4971", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "29", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF3E:6F18:1774C1B:17E58B5:625178D3" - } - }, - "uuid": "299750d0-5f58-4107-ac52-5abd07ec5399", - "persistent": true, - "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions", - "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions-3", - "insertionIndex": 12 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503-26.json similarity index 62% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503-26.json index 3ec700f20c..0f02e97cc0 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503-26.json @@ -1,8 +1,8 @@ { - "id": "7d4604de-66f8-4b0f-8ed6-68ad50f6198b", - "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633", + "id": "670412e5-a753-4630-af5c-51f606d38a51", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633", + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503", "method": "PATCH", "headers": { "Accept": { @@ -19,24 +19,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503-26.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:17 GMT", + "Date": "Sun, 19 Jun 2022 20:04:22 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"cfe05223b8754f8565f9561ec6cceb396bab4d9a715901639759d100e9245f7b\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"4d65715b747cd8e0ae210304761000cea7c24fe3055fd22040ea97c85b79d7d2\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4968", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "32", + "X-RateLimit-Remaining": "4781", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "219", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -44,10 +45,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF44:93CC:3347E4:381853:625178D4" + "X-GitHub-Request-Id": "9AB4:87A2:4DB86A:4FD1F0:62AF8146" } }, - "uuid": "7d4604de-66f8-4b0f-8ed6-68ad50f6198b", + "uuid": "670412e5-a753-4630-af5c-51f606d38a51", "persistent": true, - "insertionIndex": 15 + "insertionIndex": 26 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-17.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503-28.json similarity index 55% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-17.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503-28.json index 35f340e4db..a13ab456ae 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-17.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503-28.json @@ -1,8 +1,8 @@ { - "id": "415948c0-a8be-4ea1-8941-320544683414", - "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633", + "id": "1ba8b3c2-e11f-4ee9-86ed-d70088a10052", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633", + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503", "method": "DELETE", "headers": { "Accept": { @@ -14,14 +14,15 @@ "status": 204, "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:18 GMT", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "Date": "Sun, 19 Jun 2022 20:04:24 GMT", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4966", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "34", + "X-RateLimit-Remaining": "4779", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "221", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -30,10 +31,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "BF4A:E0D5:8A2CAF:8F753C:625178D5" + "X-GitHub-Request-Id": "9AB8:E2EE:20F037F:223CE0C:62AF8147" } }, - "uuid": "415948c0-a8be-4ea1-8941-320544683414", + "uuid": "1ba8b3c2-e11f-4ee9-86ed-d70088a10052", "persistent": true, - "insertionIndex": 17 + "insertionIndex": 28 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-10.json similarity index 52% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-10.json index dab44cdc59..3c5566e893 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-10.json @@ -1,35 +1,43 @@ { - "id": "70939cf8-8f75-4e59-9256-8ee42f189524", - "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions", + "id": "93935363-3964-4ce6-aaa5-87475b6a5240", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", - "method": "GET", + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "method": "POST", "headers": { "Accept": { "equalTo": "application/vnd.github.squirrel-girl-preview+json" } - } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"confused\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] }, "response": { - "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json", + "status": 201, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-10.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:14 GMT", + "Date": "Sun, 19 Jun 2022 20:04:11 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"22723d49ff74aa1c54569ef296aeda406c960c316d11cf7ba181866b642546f4\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"7a28ad922d238a03e148f33bdd44217140724f3c0f9c8ff43f8cba8e611a20b7\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4973", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "27", + "X-RateLimit-Remaining": "4797", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "203", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,13 +45,13 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF3A:020B:2F04DA:33D3B6:625178D2" + "X-GitHub-Request-Id": "9A90:12285:334018:35161C:62AF813B" } }, - "uuid": "70939cf8-8f75-4e59-9256-8ee42f189524", + "uuid": "93935363-3964-4ce6-aaa5-87475b6a5240", "persistent": true, - "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions", - "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions-2", - "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions-3", + "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions-2", "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-11.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-11.json new file mode 100644 index 0000000000..c3a53d127d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-11.json @@ -0,0 +1,54 @@ +{ + "id": "8cacbaa3-9f1c-4f33-a898-2a3b182c5aee", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"rocket\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-11.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:12 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"6eda0b795afe23839d0a56b0ae6bdf99d42cedf88a5b86c028da43a1d6fd0b25\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4796", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "204", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9A92:BD00:306714:323B00:62AF813B" + } + }, + "uuid": "8cacbaa3-9f1c-4f33-a898-2a3b182c5aee", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-12.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-12.json new file mode 100644 index 0000000000..f5fe73fcac --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-12.json @@ -0,0 +1,54 @@ +{ + "id": "c741cc3a-fe65-4308-95ca-eb2cc5ace98c", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"hooray\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-12.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:12 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"320773778cea135a966918ddecf06d2a9b88a2e2860ab1c0306b1b96ccf8fd49\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4795", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "205", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9A98:1F35:338AF39:3549C6D:62AF813C" + } + }, + "uuid": "c741cc3a-fe65-4308-95ca-eb2cc5ace98c", + "persistent": true, + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-13.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-13.json new file mode 100644 index 0000000000..0bd387d92c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-13.json @@ -0,0 +1,54 @@ +{ + "id": "c2ef68ad-0738-4648-ac0d-012d1ce89118", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"heart\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-13.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:13 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"c003f8da12f6c8a5a3173add154f3dbc12f767b09710bac1c7ae6d847fffa30a\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4794", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "206", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9A9A:4F1C:1AEE174:1B9A1C4:62AF813C" + } + }, + "uuid": "c2ef68ad-0738-4648-ac0d-012d1ce89118", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-14.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-14.json new file mode 100644 index 0000000000..bc73402ca1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-14.json @@ -0,0 +1,54 @@ +{ + "id": "c6d20050-0c47-4151-9ab5-4db625b04a41", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"-1\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-14.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:13 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"502108dfee95f802746229ad90f7cfa9c087c06d74c87b53a6d5f1d307c4c6bd\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4793", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "207", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9A9C:0367:33D969A:3533760:62AF813D" + } + }, + "uuid": "c6d20050-0c47-4151-9ab5-4db625b04a41", + "persistent": true, + "insertionIndex": 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-15.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-15.json new file mode 100644 index 0000000000..f77e12d0c2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-15.json @@ -0,0 +1,54 @@ +{ + "id": "cef79d47-d6e7-487b-99f2-850f4740405a", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"+1\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-15.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:14 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"86f4ee7adb2a9890e50762670f091cd835c57edb26605570b46d6d2867b7cbd5\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4792", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "208", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9A9E:10436:2B389F:2D0401:62AF813E" + } + }, + "uuid": "cef79d47-d6e7-487b-99f2-850f4740405a", + "persistent": true, + "insertionIndex": 15 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-16.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-16.json new file mode 100644 index 0000000000..cb843b2834 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-16.json @@ -0,0 +1,54 @@ +{ + "id": "3e9e8c0a-6e74-42d4-b240-1192810a829c", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"laugh\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-16.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:15 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"fd0d45c84afb53348b34851b59715834ab51f89cf128432764ba1e83636cb2bc\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4791", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "209", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9AA0:0360:1C3F72:2B29C0:62AF813E" + } + }, + "uuid": "3e9e8c0a-6e74-42d4-b240-1192810a829c", + "persistent": true, + "insertionIndex": 16 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-8.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-19.json similarity index 50% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-8.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-19.json index 5c8dca174f..e0cc96d2fe 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-8.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-19.json @@ -1,8 +1,8 @@ { - "id": "eb2f1f85-6af8-4dd3-88cd-f082810aeff3", - "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions", + "id": "acd77419-68ca-4911-a233-a1d8d17bfbba", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", "method": "GET", "headers": { "Accept": { @@ -12,24 +12,25 @@ }, "response": { "status": 200, - "body": "[]", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-19.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:14 GMT", + "Date": "Sun, 19 Jun 2022 20:04:17 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"1edf80ecd98d11d98113d5aa3cef7021f4a60d76d4a01328e8d3552451f43ce4\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"aee079f99f85f875d82d45dedb51e748da44423882e5ae4e05c1b3df350044ae\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4975", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "25", + "X-RateLimit-Remaining": "4788", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "212", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,13 +38,13 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF34:5C2F:F456DF:FA731C:625178D2" + "X-GitHub-Request-Id": "9AA6:256A:55FEE1:5821D0:62AF8141" } }, - "uuid": "eb2f1f85-6af8-4dd3-88cd-f082810aeff3", + "uuid": "acd77419-68ca-4911-a233-a1d8d17bfbba", "persistent": true, - "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions", + "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions", "requiredScenarioState": "Started", - "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions-2", - "insertionIndex": 8 + "newScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions-2", + "insertionIndex": 19 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-20.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-20.json new file mode 100644 index 0000000000..ef3c473dcd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-20.json @@ -0,0 +1,56 @@ +{ + "id": "2af5ae1d-e0e4-4c8e-9a21-eed587eb3632", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"confused\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-20.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:17 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"06e0ed03a5603dee18802d263718d67809c8b18cecea8558dfbbac727dfc8947\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4787", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "213", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9AA8:10435:142392:15B629:62AF8141" + } + }, + "uuid": "2af5ae1d-e0e4-4c8e-9a21-eed587eb3632", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions", + "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions-2", + "insertionIndex": 20 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-21.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-21.json new file mode 100644 index 0000000000..bd0067223b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-21.json @@ -0,0 +1,50 @@ +{ + "id": "d44d25ac-cde4-46c4-b337-8723fa0d9c40", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-21.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:18 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"d36711b20e6a5e3303fa8ff00753922b363b050b7d53aed8579e1f993fc03006\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4786", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "214", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9AAA:256A:560012:58230C:62AF8142" + } + }, + "uuid": "d44d25ac-cde4-46c4-b337-8723fa0d9c40", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions", + "requiredScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions-2", + "newScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions-3", + "insertionIndex": 21 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-23.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-23.json new file mode 100644 index 0000000000..cddf58aa4f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-23.json @@ -0,0 +1,49 @@ +{ + "id": "01721bfc-0492-42e4-844a-0a4898ebf5e7", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-23.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:19 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"aee079f99f85f875d82d45dedb51e748da44423882e5ae4e05c1b3df350044ae\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4784", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "216", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9AAE:4F14:F2352:169F95:62AF8143" + } + }, + "uuid": "01721bfc-0492-42e4-844a-0a4898ebf5e7", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions", + "requiredScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-901151503-reactions-3", + "insertionIndex": 23 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-9.json similarity index 60% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-9.json index f571e74a36..8750dea8c8 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-9.json @@ -1,8 +1,8 @@ { - "id": "0e508b89-abf3-440e-b24e-26f7b2d76c84", - "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions", + "id": "08b25110-b293-406c-8080-071412c13a12", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions", "method": "POST", "headers": { "Accept": { @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"content\":\"confused\"}", + "equalToJson": "{\"content\":\"eyes\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -19,24 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions-9.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:14 GMT", + "Date": "Sun, 19 Jun 2022 20:04:10 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"ae9288e2df123795faa1b32ddb5e80ae7493cc7e64a6508a9edc21242a352f70\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"f10391e7d59de29dff9e2bc8daa954c917f59730bcc5cbfb6454653e7ca696b4\"", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4974", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "26", + "X-RateLimit-Remaining": "4798", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "202", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -44,10 +45,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF36:1172D:10107B5:10737FF:625178D2" + "X-GitHub-Request-Id": "9A8E:2568:169243:182A30:62AF813A" } }, - "uuid": "0e508b89-abf3-440e-b24e-26f7b2d76c84", + "uuid": "08b25110-b293-406c-8080-071412c13a12", "persistent": true, "insertionIndex": 9 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions_170482119-18.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions_170482119-18.json new file mode 100644 index 0000000000..6091ec4529 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions_170482119-18.json @@ -0,0 +1,40 @@ +{ + "id": "fd42c27e-c103-4e2d-b0ea-ab21e22d5930", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions_170482119", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions/170482119", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:16 GMT", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4789", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "211", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "9AA4:BD01:4A6913:4C7F51:62AF8140" + } + }, + "uuid": "fd42c27e-c103-4e2d-b0ea-ab21e22d5930", + "persistent": true, + "insertionIndex": 18 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions_158534106-11.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions_170482131-22.json similarity index 54% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions_158534106-11.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions_170482131-22.json index 88deaf8afb..10a1923fb0 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions_158534106-11.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions_170482131-22.json @@ -1,8 +1,8 @@ { - "id": "b155959e-9d88-4005-8b62-0b5bed5f472b", - "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions_158534106", + "id": "72f35f2a-67c8-496f-806a-1e41a0fe7264", + "name": "repos_hub4j-test-org_github-api_pulls_comments_901151503_reactions_170482131", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions/158534106", + "url": "/repos/hub4j-test-org/github-api/pulls/comments/901151503/reactions/170482131", "method": "DELETE", "headers": { "Accept": { @@ -14,14 +14,15 @@ "status": 204, "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:15 GMT", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "Date": "Sun, 19 Jun 2022 20:04:19 GMT", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4972", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "28", + "X-RateLimit-Remaining": "4785", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "215", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -30,10 +31,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "BF3C:AE8F:16D6665:1744FC2:625178D2" + "X-GitHub-Request-Id": "9AAC:0363:1E3F902:1F6C5E1:62AF8142" } }, - "uuid": "b155959e-9d88-4005-8b62-0b5bed5f472b", + "uuid": "72f35f2a-67c8-496f-806a-1e41a0fe7264", "persistent": true, - "insertionIndex": 11 + "insertionIndex": 22 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/user-1.json new file mode 100644 index 0000000000..5e72783604 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/user-1.json @@ -0,0 +1,48 @@ +{ + "id": "e2c95640-42e4-4fba-a84e-b9c52dd9f438", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "user-1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 19 Jun 2022 20:04:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"c08249a37ca4953ffb58ac5b74889c6ce74c4d10ed91dd199fa45e1b93196eef\"", + "Last-Modified": "Sun, 19 Jun 2022 00:21:42 GMT", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4810", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "190", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "9A7C:12283:86069:9DA8A:62AF8132" + } + }, + "uuid": "e2c95640-42e4-4fba-a84e-b9c52dd9f438", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_gsmet-7.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_kisaga-8.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_gsmet-7.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_kisaga-8.json index 1ee128743a..2adfd7e27a 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_gsmet-7.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_kisaga-8.json @@ -1,8 +1,8 @@ { - "id": "fbbefaa4-e379-4bf4-8e00-98075d7733a5", - "name": "users_gsmet", + "id": "3ebd2841-f530-493d-b627-15676516b08a", + "name": "users_kisaga", "request": { - "url": "/users/gsmet", + "url": "/users/kisaga", "method": "GET", "headers": { "Accept": { @@ -12,25 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "users_gsmet-7.json", + "bodyFileName": "users_kisaga-8.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Apr 2022 12:15:14 GMT", + "Date": "Sun, 19 Jun 2022 20:04:10 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"605a6e2d9d7f031745f48efc2d00aca72a7f359a6b0da5b1722467b9cf322aa9\"", - "Last-Modified": "Wed, 06 Apr 2022 15:07:12 GMT", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"c08249a37ca4953ffb58ac5b74889c6ce74c4d10ed91dd199fa45e1b93196eef\"", + "Last-Modified": "Sun, 19 Jun 2022 00:21:42 GMT", + "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4976", - "X-RateLimit-Reset": "1649510049", - "X-RateLimit-Used": "24", + "X-RateLimit-Remaining": "4799", + "X-RateLimit-Reset": "1655670071", + "X-RateLimit-Used": "201", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "BF32:6F18:1774A3E:17E56CF:625178D2" + "X-GitHub-Request-Id": "9A8C:1F32:18E28D4:1A6D847:62AF813A" } }, - "uuid": "fbbefaa4-e379-4bf4-8e00-98075d7733a5", + "uuid": "3ebd2841-f530-493d-b627-15676516b08a", "persistent": true, - "insertionIndex": 7 + "insertionIndex": 8 } \ No newline at end of file