From 068b4e6ca836d036470d4f5f420f579b0dab211f Mon Sep 17 00:00:00 2001 From: Maxime Wiewiora <48218208+maximevw@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:19:56 +0200 Subject: [PATCH] Add support for multiline review comments (#1833) * Add support for multi-line review comments On review comments or during the creation of a new review, support single and multi-line comments using `line` and `start_line` attributes. See: https://docs.github.com/en/rest/pulls/comments?apiVersion=2022-11-28#create-a-review-comment-for-a-pull-request and https://docs.github.com/en/rest/pulls/reviews?apiVersion=2022-11-28#create-a-review-for-a-pull-request * Add tests for multi-line review comments * Fix tests for multi-line comments on pull requests * Add builder to create review comments * Improve PR review comments implementation * Update src/main/java/org/kohsuke/github/GHPullRequestReviewCommentBuilder.java * Update src/main/java/org/kohsuke/github/GHPullRequestReviewCommentBuilder.java * Update src/main/java/org/kohsuke/github/GHPullRequestReviewCommentBuilder.java * Fix code formatting * Update src/test/java/org/kohsuke/github/GHPullRequestTest.java * Update src/test/java/org/kohsuke/github/GHPullRequestTest.java --------- Co-authored-by: Maxime Wiewiora Co-authored-by: Liam Newman --- pom.xml | 1 - .../org/kohsuke/github/GHPullRequest.java | 21 +- .../github/GHPullRequestReviewBuilder.java | 151 +++++++++- .../GHPullRequestReviewCommentBuilder.java | 127 ++++++++ .../org/kohsuke/github/GHPullRequestTest.java | 94 +++++- .../__files/4-r_h_g_pulls.json | 2 +- .../__files/1-user.json | 56 ++-- ..._g_pulls_comments_902875759_reactions.json | 26 -- .../__files/10-users_maximevw.json | 46 +++ ...g_pulls_comments_1641776783_reactions.json | 26 ++ ..._g_pulls_comments_902875759_reactions.json | 26 -- ...g_pulls_comments_1641776783_reactions.json | 26 ++ ..._g_pulls_comments_902875759_reactions.json | 26 -- ...g_pulls_comments_1641776783_reactions.json | 26 ++ ..._g_pulls_comments_902875759_reactions.json | 26 -- ...g_pulls_comments_1641776783_reactions.json | 26 ++ ..._g_pulls_comments_902875759_reactions.json | 26 -- ...g_pulls_comments_1641776783_reactions.json | 26 ++ ..._g_pulls_comments_902875759_reactions.json | 26 -- ...g_pulls_comments_1641776783_reactions.json | 26 ++ ..._g_pulls_comments_902875759_reactions.json | 26 -- .../__files/17-r_h_g_pulls_456_comments.json | 69 ----- ...g_pulls_comments_1641776783_reactions.json | 26 ++ ...g_pulls_comments_1641776783_reactions.json | 26 ++ .../__files/19-r_h_g_pulls_484_comments.json | 206 +++++++++++++ ..._g_pulls_comments_902875759_reactions.json | 184 ------------ .../__files/2-orgs_hub4j-test-org.json | 27 +- ..._g_pulls_comments_902875759_reactions.json | 26 -- ...g_pulls_comments_1641776783_reactions.json | 184 ++++++++++++ ..._g_pulls_comments_902875759_reactions.json | 210 ------------- ...g_pulls_comments_1641776783_reactions.json | 26 ++ ...g_pulls_comments_1641776783_reactions.json | 210 +++++++++++++ ..._g_pulls_comments_902875759_reactions.json | 184 ------------ ..._pulls_456_comments_902875759_replies.json | 68 ----- .../__files/25-r_h_g_pulls_456_comments.json | 137 --------- ...g_pulls_comments_1641776783_reactions.json | 184 ++++++++++++ ...pulls_484_comments_1641776783_replies.json | 69 +++++ .../26-r_h_g_pulls_comments_902875759.json | 67 ----- .../__files/27-r_h_g_pulls_456_comments.json | 137 --------- .../__files/27-r_h_g_pulls_484_comments.json | 275 ++++++++++++++++++ .../28-r_h_g_pulls_comments_1641776783.json | 68 +++++ .../__files/29-r_h_g_pulls_456_comments.json | 69 ----- .../__files/29-r_h_g_pulls_484_comments.json | 275 ++++++++++++++++++ .../__files/3-r_h_github-api.json | 73 +++-- .../__files/31-r_h_g_pulls_484_comments.json | 206 +++++++++++++ ...pulls_456.json => 32-r_h_g_pulls_484.json} | 92 +++--- .../__files/4-r_h_g_pulls.json | 86 +++--- .../__files/6-r_h_g_pulls_456_comments.json | 67 ----- .../__files/6-r_h_g_pulls_484_comments.json | 68 +++++ .../__files/7-r_h_g_pulls_456_comments.json | 69 ----- .../__files/7-r_h_g_pulls_484_comments.json | 68 +++++ .../__files/8-r_h_g_pulls_484_comments.json | 68 +++++ .../__files/8-users_kisaga.json | 46 --- .../__files/9-r_h_g_pulls_484_comments.json | 206 +++++++++++++ ..._g_pulls_comments_902875759_reactions.json | 26 -- .../mappings/1-user.json | 25 +- ..._g_pulls_comments_902875759_reactions.json | 57 ---- .../mappings/10-users_maximevw.json | 51 ++++ ...g_pulls_comments_1641776783_reactions.json | 57 ++++ ..._g_pulls_comments_902875759_reactions.json | 54 ---- ...g_pulls_comments_1641776783_reactions.json | 60 ++++ ..._g_pulls_comments_902875759_reactions.json | 54 ---- ...g_pulls_comments_1641776783_reactions.json | 57 ++++ ..._g_pulls_comments_902875759_reactions.json | 54 ---- ...g_pulls_comments_1641776783_reactions.json | 57 ++++ ..._g_pulls_comments_902875759_reactions.json | 54 ---- ...g_pulls_comments_1641776783_reactions.json | 57 ++++ ..._g_pulls_comments_902875759_reactions.json | 54 ---- ...g_pulls_comments_1641776783_reactions.json | 57 ++++ ..._g_pulls_comments_902875759_reactions.json | 54 ---- .../mappings/17-r_h_g_pulls_456_comments.json | 50 ---- ...g_pulls_comments_1641776783_reactions.json | 57 ++++ ...g_pulls_comments_1641776783_reactions.json | 57 ++++ ...omments_902875759_reactions_170855255.json | 40 --- .../mappings/19-r_h_g_pulls_484_comments.json | 53 ++++ ..._g_pulls_comments_902875759_reactions.json | 50 ---- .../mappings/2-orgs_hub4j-test-org.json | 23 +- ...mments_1641776783_reactions_251847271.json | 43 +++ ..._g_pulls_comments_902875759_reactions.json | 56 ---- ...g_pulls_comments_1641776783_reactions.json | 53 ++++ ..._g_pulls_comments_902875759_reactions.json | 50 ---- ...g_pulls_comments_1641776783_reactions.json | 59 ++++ ...omments_902875759_reactions_170855273.json | 40 --- ...g_pulls_comments_1641776783_reactions.json | 53 ++++ ..._g_pulls_comments_902875759_reactions.json | 49 ---- ..._pulls_456_comments_902875759_replies.json | 55 ---- ...mments_1641776783_reactions_251847278.json | 43 +++ .../mappings/25-r_h_g_pulls_456_comments.json | 50 ---- ...g_pulls_comments_1641776783_reactions.json | 52 ++++ ...pulls_484_comments_1641776783_replies.json | 58 ++++ .../26-r_h_g_pulls_comments_902875759.json | 54 ---- .../mappings/27-r_h_g_pulls_456_comments.json | 50 ---- .../mappings/27-r_h_g_pulls_484_comments.json | 53 ++++ .../28-r_h_g_pulls_comments_1641776783.json | 57 ++++ .../28-r_h_g_pulls_comments_902875759.json | 40 --- .../mappings/29-r_h_g_pulls_456_comments.json | 49 ---- .../mappings/29-r_h_g_pulls_484_comments.json | 53 ++++ .../mappings/3-r_h_github-api.json | 25 +- .../mappings/30-r_h_g_pulls_456.json | 54 ---- .../30-r_h_g_pulls_comments_1641776783.json | 43 +++ .../mappings/31-r_h_g_pulls_484_comments.json | 52 ++++ .../mappings/32-r_h_g_pulls_484.json | 57 ++++ .../mappings/4-r_h_g_pulls.json | 25 +- .../mappings/5-r_h_g_pulls_456_comments.json | 50 ---- .../mappings/5-r_h_g_pulls_484_comments.json | 53 ++++ .../mappings/6-r_h_g_pulls_456_comments.json | 55 ---- .../mappings/6-r_h_g_pulls_484_comments.json | 58 ++++ .../mappings/7-r_h_g_pulls_456_comments.json | 50 ---- .../mappings/7-r_h_g_pulls_484_comments.json | 58 ++++ .../mappings/8-r_h_g_pulls_484_comments.json | 58 ++++ .../mappings/8-users_kisaga.json | 48 --- .../mappings/9-r_h_g_pulls_484_comments.json | 53 ++++ ..._g_pulls_comments_902875759_reactions.json | 54 ---- .../pullRequestReviews/__files/1-user.json | 46 +++ ...10-r_h_g_pulls_475_reviews_1926195021.json | 38 --- .../__files/10-r_h_g_pulls_482_reviews.json | 38 +++ ...11-r_h_g_pulls_482_reviews_2121311995.json | 38 +++ ...st-org.json => 2-orgs_hub4j-test-org.json} | 4 +- ..._github-api.json => 3-r_h_github-api.json} | 46 +-- ...{3-r_h_g_pulls.json => 4-r_h_g_pulls.json} | 76 ++--- .../__files/5-r_h_g_pulls_475_reviews.json | 38 --- .../__files/6-r_h_g_pulls_475_reviews.json | 40 --- .../__files/6-r_h_g_pulls_482_reviews.json | 38 +++ ...g_pulls_475_reviews_1926195017_events.json | 39 --- .../__files/7-r_h_g_pulls_482_reviews.json | 40 +++ ...pulls_475_reviews_1926195017_comments.json | 63 ---- ...g_pulls_482_reviews_2121304234_events.json | 39 +++ .../__files/9-r_h_g_pulls_475_reviews.json | 38 --- ...pulls_482_reviews_2121304234_comments.json | 185 ++++++++++++ .../pullRequestReviews/mappings/1-user.json | 51 ++++ ...s.json => 10-r_h_g_pulls_482_reviews.json} | 27 +- ...1-r_h_g_pulls_482_reviews_2121311995.json} | 27 +- ...st-org.json => 2-orgs_hub4j-test-org.json} | 23 +- ..._github-api.json => 3-r_h_github-api.json} | 25 +- ...{3-r_h_g_pulls.json => 4-r_h_g_pulls.json} | 25 +- ...ws.json => 5-r_h_g_pulls_482_reviews.json} | 29 +- ...ws.json => 6-r_h_g_pulls_482_reviews.json} | 29 +- ...ws.json => 7-r_h_g_pulls_482_reviews.json} | 31 +- ..._pulls_482_reviews_2121304234_events.json} | 27 +- ...pulls_482_reviews_2121304234_comments.json | 50 ++++ .../wiremock/reactions/__files/10-user.json | 46 +++ .../wiremock/reactions/mappings/10-user.json | 51 ++++ .../__files/7-user.json | 46 +++ .../mappings/7-user.json | 51 ++++ ...team_3451996.json => 7-o_7_t_3451996.json} | 0 .../__files/8-user.json | 46 +++ ...team_3451996.json => 7-o_7_t_3451996.json} | 2 +- .../mappings/8-user.json} | 26 +- 148 files changed, 5459 insertions(+), 3539 deletions(-) create mode 100644 src/main/java/org/kohsuke/github/GHPullRequestReviewCommentBuilder.java delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-users_maximevw.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_902875759_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_comments_1641776783_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/18-r_h_g_pulls_comments_1641776783_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_484_comments.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_comments_902875759_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/20-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/22-r_h_g_pulls_comments_1641776783_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_902875759_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/24-r_h_g_pulls_456_comments_902875759_replies.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_comments_1641776783_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_484_comments_1641776783_replies.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_comments_902875759.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_484_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/28-r_h_g_pulls_comments_1641776783.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_484_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/31-r_h_g_pulls_484_comments.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/{30-r_h_g_pulls_456.json => 32-r_h_g_pulls_484.json} (89%) delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_484_comments.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_484_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-r_h_g_pulls_484_comments.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-users_kisaga.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_484_comments.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_comments_902875759_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-users_maximevw.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_902875759_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_comments_1641776783_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_902875759_reactions_170855255.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_484_comments.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_1641776783_reactions_251847271.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_902875759_reactions_170855273.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_1641776783_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_902875759_reactions.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_456_comments_902875759_replies.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_comments_1641776783_reactions_251847278.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_comments_1641776783_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_484_comments_1641776783_replies.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_comments_902875759.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_484_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_1641776783.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_902875759.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_484_comments.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_456.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_comments_1641776783.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/31-r_h_g_pulls_484_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/32-r_h_g_pulls_484.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_484_comments.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_484_comments.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_456_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_484_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-r_h_g_pulls_484_comments.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-users_kisaga.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_484_comments.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_comments_902875759_reactions.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-user.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_475_reviews_1926195021.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_482_reviews.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/11-r_h_g_pulls_482_reviews_2121311995.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/{1-orgs_hub4j-test-org.json => 2-orgs_hub4j-test-org.json} (98%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/{2-r_h_github-api.json => 3-r_h_github-api.json} (96%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/{3-r_h_g_pulls.json => 4-r_h_g_pulls.json} (91%) delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/5-r_h_g_pulls_475_reviews.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_475_reviews.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_482_reviews.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_475_reviews_1926195017_events.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_482_reviews.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_475_reviews_1926195017_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_482_reviews_2121304234_events.json delete mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_475_reviews.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_482_reviews_2121304234_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-user.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/{9-r_h_g_pulls_475_reviews.json => 10-r_h_g_pulls_482_reviews.json} (68%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/{10-r_h_g_pulls_475_reviews_1926195021.json => 11-r_h_g_pulls_482_reviews_2121311995.json} (63%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/{1-orgs_hub4j-test-org.json => 2-orgs_hub4j-test-org.json} (70%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/{2-r_h_github-api.json => 3-r_h_github-api.json} (68%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/{3-r_h_g_pulls.json => 4-r_h_g_pulls.json} (74%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/{4-r_h_g_pulls_475_reviews.json => 5-r_h_g_pulls_482_reviews.json} (67%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/{5-r_h_g_pulls_475_reviews.json => 6-r_h_g_pulls_482_reviews.json} (62%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/{6-r_h_g_pulls_475_reviews.json => 7-r_h_g_pulls_482_reviews.json} (65%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/{7-r_h_g_pulls_475_reviews_1926195017_events.json => 8-r_h_g_pulls_482_reviews_2121304234_events.json} (66%) create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_482_reviews_2121304234_comments.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/__files/10-user.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/mappings/10-user.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/__files/7-user.json create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/mappings/7-user.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/{7-organizations_7544739_team_3451996.json => 7-o_7_t_3451996.json} (100%) create mode 100644 src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/8-user.json rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/{7-organizations_7544739_team_3451996.json => 7-o_7_t_3451996.json} (96%) rename src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/{pullRequestReviews/mappings/8-r_h_g_pulls_475_reviews_1926195017_comments.json => testPullRequestTeamReviewRequests/mappings/8-user.json} (63%) diff --git a/pom.xml b/pom.xml index 3e051b6310..a3d83746be 100644 --- a/pom.xml +++ b/pom.xml @@ -190,7 +190,6 @@ org.kohsuke.github.GHCompare.User - org.kohsuke.github.GHPullRequestReviewBuilder.DraftReviewComment org.kohsuke.github.GHIssue.PullRequest org.kohsuke.github.GHCommitSearchBuilder org.kohsuke.github.GHRepositorySearchBuilder diff --git a/src/main/java/org/kohsuke/github/GHPullRequest.java b/src/main/java/org/kohsuke/github/GHPullRequest.java index ba2a75e61f..4d6e30fc08 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequest.java +++ b/src/main/java/org/kohsuke/github/GHPullRequest.java @@ -522,6 +522,15 @@ public GHPullRequestReviewBuilder createReview() { return new GHPullRequestReviewBuilder(this); } + /** + * Create gh pull request review comment builder. + * + * @return the gh pull request review comment builder. + */ + public GHPullRequestReviewCommentBuilder createReviewComment() { + return new GHPullRequestReviewCommentBuilder(this); + } + /** * Create review comment gh pull request review comment. * @@ -536,18 +545,12 @@ public GHPullRequestReviewBuilder createReview() { * @return the gh pull request review comment * @throws IOException * the io exception + * @deprecated use {@link #createReviewComment()} */ + @Deprecated public GHPullRequestReviewComment createReviewComment(String body, String sha, String path, int position) throws IOException { - return root().createRequest() - .method("POST") - .with("body", body) - .with("commit_id", sha) - .with("path", path) - .with("position", position) - .withUrlPath(getApiRoute() + COMMENTS_ACTION) - .fetch(GHPullRequestReviewComment.class) - .wrapUp(this); + return createReviewComment().body(body).commitId(sha).path(path).position(position).create(); } /** diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java index fefcf0b4ca..c536dbfdc3 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java @@ -14,7 +14,7 @@ public class GHPullRequestReviewBuilder { private final GHPullRequest pr; private final Requester builder; - private final List comments = new ArrayList(); + private final List comments = new ArrayList<>(); /** * Instantiates a new GH pull request review builder. @@ -75,12 +75,12 @@ public GHPullRequestReviewBuilder event(GHPullRequestReviewEvent event) { * Comment gh pull request review builder. * * @param body - * The relative path to the file that necessitates a review comment. + * Text of the review comment. * @param path + * The relative path to the file that necessitates a review comment. + * @param position * The position in the diff where you want to add a review comment. Note this value is not the same as * the line number in the file. For help finding the position value, read the note below. - * @param position - * Text of the review comment. * @return the gh pull request review builder */ public GHPullRequestReviewBuilder comment(String body, String path, int position) { @@ -88,6 +88,40 @@ public GHPullRequestReviewBuilder comment(String body, String path, int position return this; } + /** + * Add a multi-line comment to the gh pull request review builder. + * + * @param body + * Text of the review comment. + * @param path + * The relative path to the file that necessitates a review comment. + * @param startLine + * The first line in the pull request diff that the multi-line comment applies to. + * @param endLine + * The last line of the range that the comment applies to. + * @return the gh pull request review builder + */ + public GHPullRequestReviewBuilder multiLineComment(String body, String path, int startLine, int endLine) { + this.comments.add(new MultilineDraftReviewComment(body, path, startLine, endLine)); + return this; + } + + /** + * Add a single line comment to the gh pull request review builder. + * + * @param body + * Text of the review comment. + * @param path + * The relative path to the file that necessitates a review comment. + * @param line + * The line of the blob in the pull request diff that the comment applies to. + * @return the gh pull request review builder + */ + public GHPullRequestReviewBuilder singleLineComment(String body, String path, int line) { + this.comments.add(new SingleLineDraftReviewComment(body, path, line)); + return this; + } + /** * Create gh pull request review. * @@ -103,7 +137,29 @@ public GHPullRequestReview create() throws IOException { .wrapUp(pr); } - private static class DraftReviewComment { + /** + * Common properties of the review comments, regardless of how the comment is positioned on the gh pull request. + */ + private interface ReviewComment { + /** + * Gets body. + * + * @return the body. + */ + String getBody(); + + /** + * Gets path. + * + * @return the path. + */ + String getPath(); + } + + /** + * Single line comment using the relative position in the diff. + */ + static class DraftReviewComment implements ReviewComment { private String body; private String path; private int position; @@ -114,20 +170,10 @@ private static class DraftReviewComment { this.position = position; } - /** - * Gets body. - * - * @return the body - */ public String getBody() { return body; } - /** - * Gets path. - * - * @return the path - */ public String getPath() { return path; } @@ -141,4 +187,79 @@ public int getPosition() { return position; } } + + /** + * Multi-line comment. + */ + static class MultilineDraftReviewComment implements ReviewComment { + private final String body; + private final String path; + private final int line; + private final int start_line; + + MultilineDraftReviewComment(final String body, final String path, final int startLine, final int line) { + this.body = body; + this.path = path; + this.line = line; + this.start_line = startLine; + } + + public String getBody() { + return this.body; + } + + public String getPath() { + return this.path; + } + + /** + * Gets end line of the comment. + * + * @return the end line of the comment. + */ + public int getLine() { + return line; + } + + /** + * Gets start line of the comment. + * + * @return the start line of the comment. + */ + public int getStartLine() { + return start_line; + } + } + + /** + * Single line comment. + */ + static class SingleLineDraftReviewComment implements ReviewComment { + private final String body; + private final String path; + private final int line; + + SingleLineDraftReviewComment(final String body, final String path, final int line) { + this.body = body; + this.path = path; + this.line = line; + } + + public String getBody() { + return this.body; + } + + public String getPath() { + return this.path; + } + + /** + * Gets line of the comment. + * + * @return the line of the comment. + */ + public int getLine() { + return line; + } + } } diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewCommentBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewCommentBuilder.java new file mode 100644 index 0000000000..a3b267c9f9 --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewCommentBuilder.java @@ -0,0 +1,127 @@ +package org.kohsuke.github; + +import java.io.IOException; + +// TODO: Auto-generated Javadoc + +/** + * Builds up a creation of new {@link GHPullRequestReviewComment}. + * + * @see GHPullRequest#createReviewComment() + */ +public class GHPullRequestReviewCommentBuilder { + private final GHPullRequest pr; + private final Requester builder; + + /** + * Instantiates a new GH pull request review comment builder. + * + * @param pr + * the pr + */ + GHPullRequestReviewCommentBuilder(GHPullRequest pr) { + this.pr = pr; + this.builder = pr.root().createRequest(); + } + + /** + * The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment + * outdated if a subsequent commit modifies the line you specify as the position. Defaults to the most recent commit + * in the pull request when you do not specify a value. + * + * @param commitId + * the commit id + * @return the gh pull request review comment builder + */ + public GHPullRequestReviewCommentBuilder commitId(String commitId) { + builder.with("commit_id", commitId); + return this; + } + + /** + * The text of the pull request review comment. + * + * @param body + * the body + * @return the gh pull request review comment builder + */ + public GHPullRequestReviewCommentBuilder body(String body) { + builder.with("body", body); + return this; + } + + /** + * The relative path to the file that necessitates a comment. + * + * @param path + * the path + * @return the gh pull request review comment builder + */ + public GHPullRequestReviewCommentBuilder path(String path) { + builder.with("path", path); + return this; + } + + /** + * The position in the diff where you want to add a review comment. + * + * @param position + * the position + * @return the gh pull request review comment builder + * @implNote As position is deprecated in GitHub API, only keep this for internal usage (for retro-compatibility + * with {@link GHPullRequest#createReviewComment(String, String, String, int)}). + */ + GHPullRequestReviewCommentBuilder position(int position) { + builder.with("position", position); + return this; + } + + /** + * A single line of the blob in the pull request diff that the comment applies to. + *

+ * {@link #line(int)} and {@link #lines(int, int)} will overwrite each other's values. + *

+ * + * @param line + * the line number + * @return the gh pull request review comment builder + */ + public GHPullRequestReviewCommentBuilder line(int line) { + builder.with("line", line); + builder.remove("start_line"); + return this; + } + + /** + * The range of lines in the pull request diff that this comment applies to. + *

+ * {@link #line(int)} and {@link #lines(int, int)} will overwrite each other's values. + *

+ * + * @param startLine + * the start line number of the comment + * @param endLine + * the end line number of the comment + * @return the gh pull request review comment builder + */ + public GHPullRequestReviewCommentBuilder lines(int startLine, int endLine) { + builder.with("start_line", startLine); + builder.with("line", endLine); + return this; + } + + /** + * Create gh pull request review comment. + * + * @return the gh pull request review comment builder + * @throws IOException + * the io exception + */ + public GHPullRequestReviewComment create() throws IOException { + return builder.method("POST") + .withUrlPath(pr.getApiRoute() + "/comments") + .fetch(GHPullRequestReviewComment.class) + .wrapUp(pr); + } + +} diff --git a/src/test/java/org/kohsuke/github/GHPullRequestTest.java b/src/test/java/org/kohsuke/github/GHPullRequestTest.java index ec8cfdf8f8..c1e94336f8 100644 --- a/src/test/java/org/kohsuke/github/GHPullRequestTest.java +++ b/src/test/java/org/kohsuke/github/GHPullRequestTest.java @@ -13,7 +13,18 @@ import java.util.List; import java.util.Optional; -import static org.hamcrest.Matchers.*; +import static org.hamcrest.Matchers.contains; +import static org.hamcrest.Matchers.containsInAnyOrder; +import static org.hamcrest.Matchers.containsString; +import static org.hamcrest.Matchers.empty; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.hasProperty; +import static org.hamcrest.Matchers.hasSize; +import static org.hamcrest.Matchers.instanceOf; +import static org.hamcrest.Matchers.is; +import static org.hamcrest.Matchers.not; +import static org.hamcrest.Matchers.notNullValue; +import static org.hamcrest.Matchers.nullValue; // TODO: Auto-generated Javadoc /** @@ -238,6 +249,8 @@ public void pullRequestReviews() throws Exception { GHPullRequestReview draftReview = p.createReview() .body("Some draft review") .comment("Some niggle", "README.md", 1) + .singleLineComment("A single line comment", "README.md", 2) + .multiLineComment("A multiline comment", "README.md", 2, 3) .create(); assertThat(draftReview.getState(), is(GHPullRequestReviewState.PENDING)); assertThat(draftReview.getBody(), is("Some draft review")); @@ -250,13 +263,51 @@ public void pullRequestReviews() throws Exception { assertThat(review.getCommitId(), notNullValue()); draftReview.submit("Some review comment", GHPullRequestReviewEvent.COMMENT); List comments = review.listReviewComments().toList(); - assertThat(comments.size(), equalTo(1)); + assertThat(comments.size(), equalTo(3)); GHPullRequestReviewComment comment = comments.get(0); assertThat(comment.getBody(), equalTo("Some niggle")); + comment = comments.get(1); + assertThat(comment.getBody(), equalTo("A single line comment")); + assertThat(comment.getPosition(), equalTo(4)); + comment = comments.get(2); + assertThat(comment.getBody(), equalTo("A multiline comment")); + assertThat(comment.getPosition(), equalTo(5)); draftReview = p.createReview().body("Some new review").comment("Some niggle", "README.md", 1).create(); draftReview.delete(); } + /** + * Comments objects in pull request review builder. + */ + @Test + public void commentsInPullRequestReviewBuilder() { + GHPullRequestReviewBuilder.DraftReviewComment draftReviewComment = new GHPullRequestReviewBuilder.DraftReviewComment( + "comment", + "path/to/file.txt", + 1); + assertThat(draftReviewComment.getBody(), equalTo("comment")); + assertThat(draftReviewComment.getPath(), equalTo("path/to/file.txt")); + assertThat(draftReviewComment.getPosition(), equalTo(1)); + + GHPullRequestReviewBuilder.SingleLineDraftReviewComment singleLineDraftReviewComment = new GHPullRequestReviewBuilder.SingleLineDraftReviewComment( + "comment", + "path/to/file.txt", + 2); + assertThat(singleLineDraftReviewComment.getBody(), equalTo("comment")); + assertThat(singleLineDraftReviewComment.getPath(), equalTo("path/to/file.txt")); + assertThat(singleLineDraftReviewComment.getLine(), equalTo(2)); + + GHPullRequestReviewBuilder.MultilineDraftReviewComment multilineDraftReviewComment = new GHPullRequestReviewBuilder.MultilineDraftReviewComment( + "comment", + "path/to/file.txt", + 1, + 2); + assertThat(multilineDraftReviewComment.getBody(), equalTo("comment")); + assertThat(multilineDraftReviewComment.getPath(), equalTo("path/to/file.txt")); + assertThat(multilineDraftReviewComment.getStartLine(), equalTo(1)); + assertThat(multilineDraftReviewComment.getLine(), equalTo(2)); + } + /** * Pull request review comments. * @@ -268,11 +319,25 @@ public void pullRequestReviewComments() throws Exception { String name = "pullRequestReviewComments"; GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "main", "## test"); try { - // System.out.println(p.getUrl()); assertThat(p.listReviewComments().toList(), is(empty())); + + // Call the deprecated method to ensure continued support p.createReviewComment("Sample review comment", p.getHead().getSha(), "README.md", 1); + p.createReviewComment() + .commitId(p.getHead().getSha()) + .body("A single line review comment") + .path("README.md") + .line(2) + .create(); + p.createReviewComment() + .commitId(p.getHead().getSha()) + .body("A multiline review comment") + .path("README.md") + .lines(2, 3) + .create(); List comments = p.listReviewComments().toList(); - assertThat(comments.size(), equalTo(1)); + assertThat(comments.size(), equalTo(3)); + GHPullRequestReviewComment comment = comments.get(0); assertThat(comment.getBody(), equalTo("Sample review comment")); assertThat(comment.getInReplyToId(), equalTo(-1L)); @@ -298,6 +363,15 @@ public void pullRequestReviewComments() throws Exception { assertThat(comment.getHtmlUrl().toString(), containsString("hub4j-test-org/github-api/pull/" + p.getNumber())); + comment = comments.get(1); + assertThat(comment.getBody(), equalTo("A single line review comment")); + assertThat(comment.getLine(), equalTo(2)); + + comment = comments.get(2); + assertThat(comment.getBody(), equalTo("A multiline review comment")); + assertThat(comment.getStartLine(), equalTo(2)); + assertThat(comment.getLine(), equalTo(3)); + comment.createReaction(ReactionContent.EYES); GHReaction toBeRemoved = comment.createReaction(ReactionContent.CONFUSED); comment.createReaction(ReactionContent.ROCKET); @@ -308,7 +382,7 @@ public void pullRequestReviewComments() throws Exception { comment.createReaction(ReactionContent.LAUGH); GHPullRequestReviewCommentReactions commentReactions = p.listReviewComments() .toList() - .get(0) + .get(2) .getReactions(); assertThat(commentReactions.getUrl().toString(), equalTo(comment.getUrl().toString().concat("/reactions"))); assertThat(commentReactions.getTotalCount(), equalTo(8)); @@ -341,19 +415,19 @@ public void pullRequestReviewComments() throws Exception { assertThat(reply.getInReplyToId(), equalTo(comment.getId())); comments = p.listReviewComments().toList(); - assertThat(comments.size(), equalTo(2)); + assertThat(comments.size(), equalTo(4)); comment.update("Updated review comment"); comments = p.listReviewComments().toList(); - comment = comments.get(0); + comment = comments.get(2); assertThat(comment.getBody(), equalTo("Updated review comment")); comment.delete(); comments = p.listReviewComments().toList(); // Reply is still present after delete of original comment, but no longer has replyToId - assertThat(comments.size(), equalTo(1)); - assertThat(comments.get(0).getId(), equalTo(reply.getId())); - assertThat(comments.get(0).getInReplyToId(), equalTo(-1L)); + assertThat(comments.size(), equalTo(3)); + assertThat(comments.get(2).getId(), equalTo(reply.getId())); + assertThat(comments.get(2).getInReplyToId(), equalTo(-1L)); } finally { p.close(); } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/__files/4-r_h_g_pulls.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/__files/4-r_h_g_pulls.json index 40101121d0..f981e39de2 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/__files/4-r_h_g_pulls.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/__files/4-r_h_g_pulls.json @@ -361,4 +361,4 @@ "additions": 1, "deletions": 1, "changed_files": 1 -} +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/1-user.json index 4994365297..4a175d1c5f 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/1-user.json @@ -1,42 +1,42 @@ { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?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", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", "type": "User", "site_admin": false, - "name": "Vasilis Gakias", - "company": null, + "name": "Maxime Wiewiora", + "company": "@neofacto", "blog": "", - "location": "greece", - "email": "vasileios.gakias@gmail.com", + "location": "France", + "email": null, "hireable": null, "bio": null, "twitter_username": null, - "public_repos": 14, + "public_repos": 6, "public_gists": 0, - "followers": 2, - "following": 2, - "created_at": "2016-11-10T23:20:00Z", - "updated_at": "2022-06-19T00:21:42Z", + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", "private_gists": 0, - "total_private_repos": 0, - "owned_private_repos": 0, - "disk_usage": 12317, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, "collaborators": 0, - "two_factor_authentication": false, + "two_factor_authentication": true, "plan": { "name": "free", "space": 976562499, diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 5853c04f14..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855255, - "node_id": "REA_lATODFTdCc410MpvzgovC1c", - "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-21T17:18:21Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-users_maximevw.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-users_maximevw.json new file mode 100644 index 0000000000..4a175d1c5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-users_maximevw.json @@ -0,0 +1,46 @@ +{ + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false, + "name": "Maxime Wiewiora", + "company": "@neofacto", + "blog": "", + "location": "France", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", + "private_gists": 0, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, + "collaborators": 0, + "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/11-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..5846bcbde8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847270, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mY", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2024-06-16T10:20:06Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index fa020ac370..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855257, - "node_id": "REA_lATODFTdCc410MpvzgovC1k", - "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-21T17:18:22Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..7b30530825 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847271, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mc", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2024-06-16T10:20:07Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 61daf80e73..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855259, - "node_id": "REA_lATODFTdCc410MpvzgovC1s", - "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-21T17:18:23Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..adb1a4a8c0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847272, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mg", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2024-06-16T10:20:07Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 88397d87e2..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855262, - "node_id": "REA_lATODFTdCc410MpvzgovC14", - "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-21T17:18:23Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..cf82217ca3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847273, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mk", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2024-06-16T10:20:07Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 9d4e4b26b0..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855266, - "node_id": "REA_lATODFTdCc410MpvzgovC2I", - "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-21T17:18:24Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..186a1e3026 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847274, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mo", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2024-06-16T10:20:08Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 3112bbcd98..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855267, - "node_id": "REA_lATODFTdCc410MpvzgovC2M", - "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-21T17:18:25Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..a2d03902b2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847275, + "node_id": "REA_lATODFTdCc5h24aPzg8C4ms", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2024-06-16T10:20:08Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 40782b3614..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855270, - "node_id": "REA_lATODFTdCc410MpvzgovC2Y", - "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-21T17:18:25Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_456_comments.json deleted file mode 100644 index 16583d680f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,69 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "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-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:19Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/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/17-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..2978cb7afa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847276, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mw", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2024-06-16T10:20:08Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/18-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/18-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..dec53e2a7c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/18-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847277, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m0", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2024-06-16T10:20:09Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..93118c5473 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_484_comments.json @@ -0,0 +1,206 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/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", + "original_position": 1, + "position": 1, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/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": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A multiline review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:05Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 8, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 1, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index e17184fe3b..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,184 +0,0 @@ -[ - { - "id": 170855251, - "node_id": "REA_lATODFTdCc410MpvzgovC1M", - "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-21T17:18:21Z" - }, - { - "id": 170855257, - "node_id": "REA_lATODFTdCc410MpvzgovC1k", - "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-21T17:18:22Z" - }, - { - "id": 170855259, - "node_id": "REA_lATODFTdCc410MpvzgovC1s", - "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-21T17:18:23Z" - }, - { - "id": 170855262, - "node_id": "REA_lATODFTdCc410MpvzgovC14", - "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-21T17:18:23Z" - }, - { - "id": 170855266, - "node_id": "REA_lATODFTdCc410MpvzgovC2I", - "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-21T17:18:24Z" - }, - { - "id": 170855267, - "node_id": "REA_lATODFTdCc410MpvzgovC2M", - "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-21T17:18:25Z" - }, - { - "id": 170855270, - "node_id": "REA_lATODFTdCc410MpvzgovC2Y", - "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-21T17:18:25Z" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/2-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/2-orgs_hub4j-test-org.json index 628aa16924..a6ece8248a 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/2-orgs_hub4j-test-org.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/2-orgs_hub4j-test-org.json @@ -20,19 +20,20 @@ "is_verified": false, "has_organization_projects": true, "has_repository_projects": true, - "public_repos": 50, + "public_repos": 27, "public_gists": 0, - "followers": 0, + "followers": 2, "following": 0, "html_url": "https://github.com/hub4j-test-org", "created_at": "2014-05-10T19:39:11Z", "updated_at": "2020-06-04T05:56:10Z", + "archived_at": null, "type": "Organization", - "total_private_repos": 4, - "owned_private_repos": 4, + "total_private_repos": 6, + "owned_private_repos": 6, "private_gists": 0, - "disk_usage": 11980, - "collaborators": 0, + "disk_usage": 12014, + "collaborators": 1, "billing_email": "kk@kohsuke.org", "default_repository_permission": "none", "members_can_create_repositories": false, @@ -43,13 +44,23 @@ "members_can_create_internal_repositories": false, "members_can_create_pages": true, "members_can_fork_private_repositories": false, + "web_commit_signoff_required": false, "members_can_create_public_pages": true, "members_can_create_private_pages": true, "plan": { "name": "free", "space": 976562499, "private_repos": 10000, - "filled_seats": 38, + "filled_seats": 52, "seats": 3 - } + }, + "advanced_security_enabled_for_new_repositories": false, + "dependabot_alerts_enabled_for_new_repositories": false, + "dependabot_security_updates_enabled_for_new_repositories": false, + "dependency_graph_enabled_for_new_repositories": false, + "secret_scanning_enabled_for_new_repositories": false, + "secret_scanning_push_protection_enabled_for_new_repositories": false, + "secret_scanning_push_protection_custom_link_enabled": false, + "secret_scanning_push_protection_custom_link": null, + "secret_scanning_validity_checks_enabled": false } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/20-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/20-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 83cab071ee..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/20-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855273, - "node_id": "REA_lATODFTdCc410MpvzgovC2k", - "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-21T17:18:28Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..ef38f2eb27 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,184 @@ +[ + { + "id": 251847270, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mY", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2024-06-16T10:20:06Z" + }, + { + "id": 251847272, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mg", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847273, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mk", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847274, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mo", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847275, + "node_id": "REA_lATODFTdCc5h24aPzg8C4ms", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847276, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mw", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847277, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m0", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2024-06-16T10:20:09Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index a34d79313a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,210 +0,0 @@ -[ - { - "id": 170855251, - "node_id": "REA_lATODFTdCc410MpvzgovC1M", - "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-21T17:18:21Z" - }, - { - "id": 170855257, - "node_id": "REA_lATODFTdCc410MpvzgovC1k", - "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-21T17:18:22Z" - }, - { - "id": 170855259, - "node_id": "REA_lATODFTdCc410MpvzgovC1s", - "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-21T17:18:23Z" - }, - { - "id": 170855262, - "node_id": "REA_lATODFTdCc410MpvzgovC14", - "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-21T17:18:23Z" - }, - { - "id": 170855266, - "node_id": "REA_lATODFTdCc410MpvzgovC2I", - "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-21T17:18:24Z" - }, - { - "id": 170855267, - "node_id": "REA_lATODFTdCc410MpvzgovC2M", - "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-21T17:18:25Z" - }, - { - "id": 170855270, - "node_id": "REA_lATODFTdCc410MpvzgovC2Y", - "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-21T17:18:25Z" - }, - { - "id": 170855273, - "node_id": "REA_lATODFTdCc410MpvzgovC2k", - "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-21T17:18:28Z" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/22-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/22-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..b9d6a999c3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/22-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847278, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m4", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2024-06-16T10:20:10Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..fd4cbe3726 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,210 @@ +[ + { + "id": 251847270, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mY", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2024-06-16T10:20:06Z" + }, + { + "id": 251847272, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mg", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847273, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mk", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847274, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mo", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847275, + "node_id": "REA_lATODFTdCc5h24aPzg8C4ms", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847276, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mw", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847277, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m0", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2024-06-16T10:20:09Z" + }, + { + "id": 251847278, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m4", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2024-06-16T10:20:10Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index e17184fe3b..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,184 +0,0 @@ -[ - { - "id": 170855251, - "node_id": "REA_lATODFTdCc410MpvzgovC1M", - "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-21T17:18:21Z" - }, - { - "id": 170855257, - "node_id": "REA_lATODFTdCc410MpvzgovC1k", - "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-21T17:18:22Z" - }, - { - "id": 170855259, - "node_id": "REA_lATODFTdCc410MpvzgovC1s", - "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-21T17:18:23Z" - }, - { - "id": 170855262, - "node_id": "REA_lATODFTdCc410MpvzgovC14", - "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-21T17:18:23Z" - }, - { - "id": 170855266, - "node_id": "REA_lATODFTdCc410MpvzgovC2I", - "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-21T17:18:24Z" - }, - { - "id": 170855267, - "node_id": "REA_lATODFTdCc410MpvzgovC2M", - "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-21T17:18:25Z" - }, - { - "id": 170855270, - "node_id": "REA_lATODFTdCc410MpvzgovC2Y", - "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-21T17:18:25Z" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/24-r_h_g_pulls_456_comments_902875759_replies.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/24-r_h_g_pulls_456_comments_902875759_replies.json deleted file mode 100644 index c5d258a5f3..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/24-r_h_g_pulls_456_comments_902875759_replies.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952", - "pull_request_review_id": 1013972708, - "id": 902875952, - "node_id": "PRRC_kwDODFTdCc410Msw", - "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-21T17:18:30Z", - "updated_at": "2022-06-21T17:18:30Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952/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": 902875759 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_456_comments.json deleted file mode 100644 index 1e68cd8679..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "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-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:19Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/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/902875952", - "pull_request_review_id": 1013972708, - "id": 902875952, - "node_id": "PRRC_kwDODFTdCc410Msw", - "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-21T17:18:30Z", - "updated_at": "2022-06-21T17:18:30Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952/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": 902875759 - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..ef38f2eb27 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,184 @@ +[ + { + "id": 251847270, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mY", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2024-06-16T10:20:06Z" + }, + { + "id": 251847272, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mg", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847273, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mk", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847274, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mo", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847275, + "node_id": "REA_lATODFTdCc5h24aPzg8C4ms", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847276, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mw", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847277, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m0", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2024-06-16T10:20:09Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_484_comments_1641776783_replies.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_484_comments_1641776783_replies.json new file mode 100644 index 0000000000..3db53b9d29 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_484_comments_1641776783_replies.json @@ -0,0 +1,69 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796", + "pull_request_review_id": 2121317026, + "id": 1641776796, + "node_id": "PRRC_kwDODFTdCc5h24ac", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2024-06-16T10:20:11Z", + "updated_at": "2024-06-16T10:20:11Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "in_reply_to_id": 1641776783, + "original_position": 4, + "position": 4, + "subject_type": "line" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_comments_902875759.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_comments_902875759.json deleted file mode 100644 index 46f3e9befa..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_comments_902875759.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "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-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:32Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/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/27-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_456_comments.json deleted file mode 100644 index 68abe05f1e..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "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-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:32Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/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/902875952", - "pull_request_review_id": 1013972708, - "id": 902875952, - "node_id": "PRRC_kwDODFTdCc410Msw", - "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-21T17:18:30Z", - "updated_at": "2022-06-21T17:18:30Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952/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": 902875759 - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..774afb45f6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_484_comments.json @@ -0,0 +1,275 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/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", + "original_position": 1, + "position": 1, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/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": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A multiline review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:05Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 7, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 0, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796", + "pull_request_review_id": 2121317026, + "id": 1641776796, + "node_id": "PRRC_kwDODFTdCc5h24ac", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2024-06-16T10:20:11Z", + "updated_at": "2024-06-16T10:20:11Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "in_reply_to_id": 1641776783, + "original_position": 4, + "position": 4, + "subject_type": "line" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/28-r_h_g_pulls_comments_1641776783.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/28-r_h_g_pulls_comments_1641776783.json new file mode 100644 index 0000000000..d3aaf4165c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/28-r_h_g_pulls_comments_1641776783.json @@ -0,0 +1,68 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Updated review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:12Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 7, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 0, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_456_comments.json deleted file mode 100644 index 27adb209e6..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,69 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952", - "pull_request_review_id": 1013972708, - "id": 902875952, - "node_id": "PRRC_kwDODFTdCc410Msw", - "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-21T17:18:30Z", - "updated_at": "2022-06-21T17:18:30Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952/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/29-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..bf3a299218 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_484_comments.json @@ -0,0 +1,275 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/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", + "original_position": 1, + "position": 1, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/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": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Updated review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:12Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 7, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 0, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796", + "pull_request_review_id": 2121317026, + "id": 1641776796, + "node_id": "PRRC_kwDODFTdCc5h24ac", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2024-06-16T10:20:11Z", + "updated_at": "2024-06-16T10:20:11Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "in_reply_to_id": 1641776783, + "original_position": 4, + "position": 4, + "subject_type": "line" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/3-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/3-r_h_github-api.json index 984cd328d8..3f4776a33d 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/3-r_h_github-api.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/3-r_h_github-api.json @@ -65,14 +65,14 @@ "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": "2022-05-23T14:23:52Z", - "pushed_at": "2022-06-19T20:04:07Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:56:32Z", "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, + "size": 18977, "stargazers_count": 1, "watchers_count": 1, "language": "Java", @@ -81,6 +81,7 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, + "has_discussions": false, "forks_count": 0, "mirror_url": null, "archived": false, @@ -95,6 +96,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 0, @@ -116,6 +118,11 @@ "delete_branch_on_merge": false, "allow_update_branch": false, "use_squash_pr_title_as_default": false, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "custom_properties": {}, "organization": { "login": "hub4j-test-org", "id": 7544739, @@ -203,27 +210,28 @@ "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-06-21T16:37:05Z", - "pushed_at": "2022-06-21T07:07:41Z", + "updated_at": "2024-06-16T08:25:00Z", + "pushed_at": "2024-06-16T08:24:55Z", "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": 40107, - "stargazers_count": 907, - "watchers_count": 907, + "size": 50713, + "stargazers_count": 1110, + "watchers_count": 1110, "language": "Java", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": true, - "forks_count": 618, + "has_discussions": true, + "forks_count": 712, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 107, + "open_issues_count": 156, "license": { "key": "mit", "name": "MIT License", @@ -233,6 +241,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [ "api", "client-library", @@ -243,9 +252,9 @@ "java-api" ], "visibility": "public", - "forks": 618, - "open_issues": 107, - "watchers": 907, + "forks": 712, + "open_issues": 156, + "watchers": 1110, "default_branch": "main" }, "source": { @@ -315,27 +324,28 @@ "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-06-21T16:37:05Z", - "pushed_at": "2022-06-21T07:07:41Z", + "updated_at": "2024-06-16T08:25:00Z", + "pushed_at": "2024-06-16T08:24:55Z", "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": 40107, - "stargazers_count": 907, - "watchers_count": 907, + "size": 50713, + "stargazers_count": 1110, + "watchers_count": 1110, "language": "Java", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": true, - "forks_count": 618, + "has_discussions": true, + "forks_count": 712, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 107, + "open_issues_count": 156, "license": { "key": "mit", "name": "MIT License", @@ -345,6 +355,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [ "api", "client-library", @@ -355,11 +366,25 @@ "java-api" ], "visibility": "public", - "forks": 618, - "open_issues": 107, - "watchers": 907, + "forks": 712, + "open_issues": 156, + "watchers": 1110, "default_branch": "main" }, - "network_count": 618, + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 712, "subscribers_count": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/31-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/31-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..e16760f1b6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/31-r_h_g_pulls_484_comments.json @@ -0,0 +1,206 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/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", + "original_position": 1, + "position": 1, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/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": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796", + "pull_request_review_id": 2121317026, + "id": 1641776796, + "node_id": "PRRC_kwDODFTdCc5h24ac", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2024-06-16T10:20:11Z", + "updated_at": "2024-06-16T10:20:11Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/30-r_h_g_pulls_456.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/32-r_h_g_pulls_484.json similarity index 89% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/30-r_h_g_pulls_456.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/32-r_h_g_pulls_484.json index 2563ea499d..377e959f2d 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/30-r_h_g_pulls_456.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/32-r_h_g_pulls_484.json @@ -1,41 +1,41 @@ { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "id": 973840601, - "node_id": "PR_kwDODFTdCc46C6DZ", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456", - "diff_url": "https://github.com/hub4j-test-org/github-api/pull/456.diff", - "patch_url": "https://github.com/hub4j-test-org/github-api/pull/456.patch", - "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456", - "number": 456, + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "id": 1922732948, + "node_id": "PR_kwDODFTdCc5ympOU", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484", + "diff_url": "https://github.com/hub4j-test-org/github-api/pull/484.diff", + "patch_url": "https://github.com/hub4j-test-org/github-api/pull/484.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484", + "number": 484, "state": "closed", "locked": false, "title": "pullRequestReviewComments", "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?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", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", "type": "User", "site_admin": false }, "body": "## test", - "created_at": "2022-06-21T17:18:17Z", - "updated_at": "2022-06-21T17:18:34Z", - "closed_at": "2022-06-21T17:18:34Z", + "created_at": "2024-06-16T10:20:02Z", + "updated_at": "2024-06-16T10:20:14Z", + "closed_at": "2024-06-16T10:20:14Z", "merged_at": null, - "merge_commit_sha": "f8afb2619503d0880cb3d4433fecf56066cdf2fa", + "merge_commit_sha": "51409ad0122bde1ce1a621a45529eda940ec125c", "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/456/commits", - "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/comments", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/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/456/comments", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484/comments", "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7", "head": { "label": "hub4j-test-org:test/stable", @@ -139,14 +139,14 @@ "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": "2022-05-23T14:23:52Z", - "pushed_at": "2022-06-21T17:18:17Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T10:20:03Z", "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, + "size": 18977, "stargazers_count": 1, "watchers_count": 1, "language": "Java", @@ -155,6 +155,7 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, + "has_discussions": false, "forks_count": 0, "mirror_url": null, "archived": false, @@ -169,6 +170,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 0, @@ -180,7 +182,7 @@ "base": { "label": "hub4j-test-org:main", "ref": "main", - "sha": "8051615eff597f4e49f4f47625e6fc2b49f26bfc", + "sha": "c4b41922197a1d595bff30e89bb8540013ee4fd3", "user": { "login": "hub4j-test-org", "id": 7544739, @@ -268,14 +270,14 @@ "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": "2022-05-23T14:23:52Z", - "pushed_at": "2022-06-21T17:18:17Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T10:20:03Z", "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, + "size": 18977, "stargazers_count": 1, "watchers_count": 1, "language": "Java", @@ -284,6 +286,7 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, + "has_discussions": false, "forks_count": 0, "mirror_url": null, "archived": false, @@ -298,6 +301,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 0, @@ -308,25 +312,25 @@ }, "_links": { "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" }, "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456" + "href": "https://github.com/hub4j-test-org/github-api/pull/484" }, "issue": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484" }, "comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484/comments" }, "review_comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/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/456/commits" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/commits" }, "statuses": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7" @@ -341,7 +345,7 @@ "mergeable_state": "unstable", "merged_by": null, "comments": 0, - "review_comments": 1, + "review_comments": 3, "maintainer_can_modify": false, "commits": 3, "additions": 3, diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/4-r_h_g_pulls.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/4-r_h_g_pulls.json index 16dfde43be..53e1af6fad 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/4-r_h_g_pulls.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/4-r_h_g_pulls.json @@ -1,38 +1,38 @@ { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "id": 973840601, - "node_id": "PR_kwDODFTdCc46C6DZ", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456", - "diff_url": "https://github.com/hub4j-test-org/github-api/pull/456.diff", - "patch_url": "https://github.com/hub4j-test-org/github-api/pull/456.patch", - "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456", - "number": 456, + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "id": 1922732948, + "node_id": "PR_kwDODFTdCc5ympOU", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484", + "diff_url": "https://github.com/hub4j-test-org/github-api/pull/484.diff", + "patch_url": "https://github.com/hub4j-test-org/github-api/pull/484.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484", + "number": 484, "state": "open", "locked": false, "title": "pullRequestReviewComments", "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?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", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", "type": "User", "site_admin": false }, "body": "## test", - "created_at": "2022-06-21T17:18:17Z", - "updated_at": "2022-06-21T17:18:17Z", + "created_at": "2024-06-16T10:20:02Z", + "updated_at": "2024-06-16T10:20:02Z", "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/456/commits", - "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/comments", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/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/456/comments", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484/comments", "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7", "head": { "label": "hub4j-test-org:test/stable", @@ -139,14 +139,14 @@ "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": "2022-05-23T14:23:52Z", - "pushed_at": "2022-06-19T20:04:07Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:56:32Z", "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, + "size": 18977, "stargazers_count": 1, "watchers_count": 1, "language": "Java", @@ -155,6 +155,7 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, + "has_discussions": false, "forks_count": 0, "mirror_url": null, "archived": false, @@ -169,6 +170,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 0, @@ -180,7 +182,7 @@ "base": { "label": "hub4j-test-org:main", "ref": "main", - "sha": "8051615eff597f4e49f4f47625e6fc2b49f26bfc", + "sha": "c4b41922197a1d595bff30e89bb8540013ee4fd3", "user": { "login": "hub4j-test-org", "id": 7544739, @@ -268,14 +270,14 @@ "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": "2022-05-23T14:23:52Z", - "pushed_at": "2022-06-19T20:04:07Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:56:32Z", "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, + "size": 18977, "stargazers_count": 1, "watchers_count": 1, "language": "Java", @@ -284,6 +286,7 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, + "has_discussions": false, "forks_count": 0, "mirror_url": null, "archived": false, @@ -298,6 +301,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 0, @@ -308,25 +312,25 @@ }, "_links": { "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" }, "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456" + "href": "https://github.com/hub4j-test-org/github-api/pull/484" }, "issue": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484" }, "comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484/comments" }, "review_comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/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/456/commits" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/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/6-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_456_comments.json deleted file mode 100644 index b5f9885508..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "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-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:19Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/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/6-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..f7a13736d7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_484_comments.json @@ -0,0 +1,68 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/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", + "original_position": 1, + "position": 1, + "subject_type": "line" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_456_comments.json deleted file mode 100644 index 4bc8a27daa..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,69 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "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-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:19Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/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/7-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..71a5b44c51 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_484_comments.json @@ -0,0 +1,68 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/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": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..69f4be08ca --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-r_h_g_pulls_484_comments.json @@ -0,0 +1,68 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A multiline review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:05Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-users_kisaga.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-users_kisaga.json deleted file mode 100644 index 4994365297..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-users_kisaga.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "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/9-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..39a3779189 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_484_comments.json @@ -0,0 +1,206 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/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", + "original_position": 1, + "position": 1, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/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": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A multiline review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:05Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index b9772e2d0f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855251, - "node_id": "REA_lATODFTdCc410MpvzgovC1M", - "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-21T17:18:21Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/1-user.json index 0c89d151bb..1cce745d2a 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/1-user.json @@ -1,5 +1,5 @@ { - "id": "3609dba6-8516-4729-b4f3-09a0d352e3aa", + "id": "013f6982-90cb-415e-9837-7318d42bc630", "name": "user", "request": { "url": "/user", @@ -15,34 +15,37 @@ "bodyFileName": "1-user.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:13 GMT", + "Date": "Sun, 16 Jun 2024 10:20:00 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", + "ETag": "W/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4999", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "1", + "X-RateLimit-Remaining": "4819", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "181", "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", "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": "AF5C:10EEE:C39D6:D5504:62B1FD55" + "X-GitHub-Request-Id": "CA9F:7844E:158CD1CA:15B41E11:666EBC50" } }, - "uuid": "3609dba6-8516-4729-b4f3-09a0d352e3aa", + "uuid": "013f6982-90cb-415e-9837-7318d42bc630", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 95c8d25a5a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "id": "a98d69d3-69d9-401b-8382-8700dd69658e", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"confused\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "10-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18: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": "\"4bb664a12ecdec449205f732e493e0b967130eca58f62d0f40959218ffcaa574\"", - "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": "4986", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "14", - "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": "AF70:FA76:4F82B6:512B8F:62B1FD5D" - } - }, - "uuid": "a98d69d3-69d9-401b-8382-8700dd69658e", - "persistent": true, - "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-2", - "insertionIndex": 10 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-users_maximevw.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-users_maximevw.json new file mode 100644 index 0000000000..9c2744df05 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-users_maximevw.json @@ -0,0 +1,51 @@ +{ + "id": "3adfbca1-80ac-48a7-842c-b317ef885d0f", + "name": "users_maximevw", + "request": { + "url": "/users/maximevw", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "10-users_maximevw.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4806", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "194", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAA9:2DA98F:206484B3:209AE4D0:666EBC56" + } + }, + "uuid": "3adfbca1-80ac-48a7-842c-b317ef885d0f", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..b3a2a0b43d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "e47f8410-fddd-483f-b6e9-f0c41643ca0e", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"eyes\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "11-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"8097fe8ac132adb15391f579ca8c50ce93aa261b30b68f58921ff126767eade0\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4805", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "195", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAAA:1768C1:66A8024:676B1DF:666EBC56" + } + }, + "uuid": "e47f8410-fddd-483f-b6e9-f0c41643ca0e", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 4b42ab5e0c..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "eeab61fe-6ac9-4c95-9fc7-e8cd6e373fcc", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"rocket\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "11-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18: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": "\"4b2d342135a3ae806e9a1b2eac1a06b18d23a89d674dc9d5f22dfbe2f33658f0\"", - "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": "4985", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "15", - "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": "AF72:DDCC:3B69BE:3CFD28:62B1FD5E" - } - }, - "uuid": "eeab61fe-6ac9-4c95-9fc7-e8cd6e373fcc", - "persistent": true, - "insertionIndex": 11 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..5df155a3e0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,60 @@ +{ + "id": "bf0a5f84-73b0-42f2-be02-e20c838b7d80", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"confused\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "12-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"f53278b4a95e840f55c740f2d3d2804715f6920899b57efb889238542fc4d489\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4804", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "196", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAAB:2DA98F:20648952:209AE98A:666EBC56" + } + }, + "uuid": "bf0a5f84-73b0-42f2-be02-e20c838b7d80", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-2", + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 1d6c40d1c2..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "91798d64-09f0-49ef-90fe-03523248212e", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"hooray\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "12-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18: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": "\"ee486cbb5507982be6d2d430523d5bae7d0ff184a9110640a038ff3d8865672a\"", - "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": "4984", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "16", - "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": "AF74:400C:4C95D5:4E45FB:62B1FD5E" - } - }, - "uuid": "91798d64-09f0-49ef-90fe-03523248212e", - "persistent": true, - "insertionIndex": 12 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..07fe93827b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "f370352f-e6a7-4618-a463-d638ba5a152e", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"rocket\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "13-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"0d44a061301d1bcc933285e20ec968c32e46d914ef3374128fbdc2ff6ae1665a\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4803", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "197", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAAC:2EA35F:1EE5060B:1F1B658D:666EBC57" + } + }, + "uuid": "f370352f-e6a7-4618-a463-d638ba5a152e", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index bc104b4511..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "cad3de94-5c27-4974-9024-060c947d756b", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"heart\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "13-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18: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": "\"f8fdfebcabd4003a9c02baedc54795453a0d475aa555047801ba623afdfd7b23\"", - "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": "4983", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "17", - "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": "AF76:0C3F:563EB5:57FD54:62B1FD5F" - } - }, - "uuid": "cad3de94-5c27-4974-9024-060c947d756b", - "persistent": true, - "insertionIndex": 13 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..04d8cfc2f0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "3bc234d1-c213-45b8-8eee-5b94cf21cfbf", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"hooray\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "14-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"47f76ffb799d669c30e8a24e354868d055006aba30e984efcba695f106c8edb8\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4802", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "198", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAAD:7844E:158D06B9:15B4534D:666EBC57" + } + }, + "uuid": "3bc234d1-c213-45b8-8eee-5b94cf21cfbf", + "persistent": true, + "insertionIndex": 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 375cc6b594..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "704056db-53ab-4856-9372-f42303344d33", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"-1\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "14-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18: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": "\"7128974b9114934f390f2431433340b61f858c1ca1ff779f4d66ce641aa9a0e1\"", - "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": "4982", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "18", - "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": "AF78:C342:1D2B84:1E6EF4:62B1FD60" - } - }, - "uuid": "704056db-53ab-4856-9372-f42303344d33", - "persistent": true, - "insertionIndex": 14 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..45d8de9aed --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "df13e5f6-46af-416f-9607-a6bcf4ec3116", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"heart\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "15-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:08 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": "\"7d8244326a7e6bdd3dd15dc222509b2fe95d3ac1f5e7f0c801b96021aa2433a0\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4801", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "199", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAAE:2EA35F:1EE50BD9:1F1B6B5D:666EBC57" + } + }, + "uuid": "df13e5f6-46af-416f-9607-a6bcf4ec3116", + "persistent": true, + "insertionIndex": 15 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 6a78dc9cac..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "7b1f91b5-e3af-4ba6-a167-e072c50f034d", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"+1\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "15-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18: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": "\"7c65a98fc7dca7d089d476aacf4207ed48db491f943b13f1731a3e1a79068ae0\"", - "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": "4981", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "19", - "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": "AF7A:FA73:C4E88:D6D68:62B1FD60" - } - }, - "uuid": "7b1f91b5-e3af-4ba6-a167-e072c50f034d", - "persistent": true, - "insertionIndex": 15 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..d7d9201e93 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "96fb55ef-6de9-49ce-aa9d-d46c6d67204d", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"-1\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "16-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:08 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": "\"b96e2201c85fb5c77c400fa470a25728ad551bfb0d06579f4982447d3d6056a3\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4800", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "200", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAAF:1F6CBC:1AE2C04F:1B11A28C:666EBC58" + } + }, + "uuid": "96fb55ef-6de9-49ce-aa9d-d46c6d67204d", + "persistent": true, + "insertionIndex": 16 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 51d0c701de..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "ae34b71c-9d98-4774-9de0-e9e2138fa9f8", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"laugh\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "16-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18: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": "\"e8940d2d1f195c8045e783b98ab7c0455de09965355337fc83bcc10da0681316\"", - "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": "4980", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "20", - "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": "AF7C:307C:3A3C6F:3BB292:62B1FD61" - } - }, - "uuid": "ae34b71c-9d98-4774-9de0-e9e2138fa9f8", - "persistent": true, - "insertionIndex": 16 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_456_comments.json deleted file mode 100644 index 9bbde10dd4..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "85861b33-c13c-446b-88e7-95d2de3b0c47", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "17-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:26 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/\"b17862e11b769cb4aeb5be57ec9428150b5b22a089fc9445cb3f60913d89a83e\"", - "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": "1655835493", - "X-RateLimit-Used": "21", - "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": "AF7E:307B:1DDEEF:1F24B5:62B1FD62" - } - }, - "uuid": "85861b33-c13c-446b-88e7-95d2de3b0c47", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-3", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-4", - "insertionIndex": 17 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..3a6a7bf95f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "e4ba5757-edc7-4782-98b4-0ee6ce6dff80", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"+1\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "17-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:08 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": "\"d53879e0e1fa3303c002f0dee3abc12b91d6fe909cbabbe5b03746e0921078ba\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4799", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "201", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAB0:0FA7:146C9845:1492BAE1:666EBC58" + } + }, + "uuid": "e4ba5757-edc7-4782-98b4-0ee6ce6dff80", + "persistent": true, + "insertionIndex": 17 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..33a7d4279e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "5af056e2-bd91-4f21-8da0-83a288c09423", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"laugh\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "18-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"f6a49e7fe32bbefd10336ef0ce3bdd92ed4db1ae5f3f207be72cbfa8044984c2\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4798", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "202", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAB2:3AF55A:C2CD3ED:C444582:666EBC58" + } + }, + "uuid": "5af056e2-bd91-4f21-8da0-83a288c09423", + "persistent": true, + "insertionIndex": 18 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_902875759_reactions_170855255.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_902875759_reactions_170855255.json deleted file mode 100644 index ba479c7d66..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_902875759_reactions_170855255.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "9bd41cb3-3253-4048-b7a2-1af59a2e7f3e", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions_170855255", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions/170855255", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:27 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": "4978", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "22", - "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": "AF80:F6CA:5C7943:5E384F:62B1FD62" - } - }, - "uuid": "9bd41cb3-3253-4048-b7a2-1af59a2e7f3e", - "persistent": true, - "insertionIndex": 18 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..328af31770 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_484_comments.json @@ -0,0 +1,53 @@ +{ + "id": "4089d957-d5e0-45b7-9f41-ace0e27fc5aa", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "19-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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/\"d995b285ca591a82f6aead67e217ab1f46fb82bb89ae8769b180e26a63aacbec\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4797", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "203", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAB3:2399E4:1EE175D8:1F179DD5:666EBC59" + } + }, + "uuid": "4089d957-d5e0-45b7-9f41-ace0e27fc5aa", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-3", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-4", + "insertionIndex": 19 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 677510ae98..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "746ab178-541e-4dca-9183-b10598bf3ccf", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "19-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:27 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/\"b6ff492e1af9b061cffc7f5c9a251fbd428c9ebb996765012582d54b8799977a\"", - "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": "4977", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "23", - "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": "AF82:13949:5101BF:52B8BD:62B1FD63" - } - }, - "uuid": "746ab178-541e-4dca-9183-b10598bf3ccf", - "persistent": true, - "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-2", - "insertionIndex": 19 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/2-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/2-orgs_hub4j-test-org.json index bebe3b2a77..8519a0a5ed 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/2-orgs_hub4j-test-org.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/2-orgs_hub4j-test-org.json @@ -1,5 +1,5 @@ { - "id": "c0c08e2f-2181-4906-b788-ecc6d3f7a1ae", + "id": "d2146565-0d4b-42f5-a373-cd7d76c3708d", "name": "orgs_hub4j-test-org", "request": { "url": "/orgs/hub4j-test-org", @@ -15,34 +15,37 @@ "bodyFileName": "2-orgs_hub4j-test-org.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:16 GMT", + "Date": "Sun, 16 Jun 2024 10:20:01 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/\"5494d1fbf995fc6e1df1d8f680702d945f50908b62ab4b4760b0b38bd1505057\"", + "ETag": "W/\"1a25138946edf22ffb0d2a4077820d7ce4ede3f21fcb684ab25abfedf6fe863c\"", "Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4994", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "6", + "X-RateLimit-Remaining": "4814", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "186", "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", "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": "AF60:6281:4D717E:4F2335:62B1FD57" + "X-GitHub-Request-Id": "CAA1:3AF55A:C2C9AAC:C440C06:666EBC51" } }, - "uuid": "c0c08e2f-2181-4906-b788-ecc6d3f7a1ae", + "uuid": "d2146565-0d4b-42f5-a373-cd7d76c3708d", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_1641776783_reactions_251847271.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_1641776783_reactions_251847271.json new file mode 100644 index 0000000000..f4b75f5217 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_1641776783_reactions_251847271.json @@ -0,0 +1,43 @@ +{ + "id": "b87b75bb-0820-490c-978a-e008f12f4571", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions_251847271", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions/251847271", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:09 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4796", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "204", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAB4:2213B1:1F6DE8B5:1FA4114C:666EBC59" + } + }, + "uuid": "b87b75bb-0820-490c-978a-e008f12f4571", + "persistent": true, + "insertionIndex": 20 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index fb76b32ed3..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "id": "41f4ffbd-3ac6-46dc-937a-3280e61e02de", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"confused\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "20-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:28 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": "\"cf22b35bf81a14d22b24cc6defe32310647a67e41979d0619d2a945c8660b795\"", - "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": "4976", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "24", - "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": "AF84:400C:4C9C17:4E4C69:62B1FD63" - } - }, - "uuid": "41f4ffbd-3ac6-46dc-937a-3280e61e02de", - "persistent": true, - "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions", - "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-2", - "insertionIndex": 20 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..a972fdd507 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,53 @@ +{ + "id": "560f2d21-a22d-4d46-a2c4-c0c2d0ebacfb", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "21-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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/\"4ea41994990195926e66d6eea9cf7706e134e51b6ba86c0b8075e0cd12ec783c\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4795", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "205", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAB5:340707:1EB2C14A:1EE8EBF1:666EBC5A" + } + }, + "uuid": "560f2d21-a22d-4d46-a2c4-c0c2d0ebacfb", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-2", + "insertionIndex": 21 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index cc0fe30f39..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "d0d80ef0-4ed2-426c-a569-45a7a871301d", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "21-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:28 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/\"d4a6e926798ba7f082f8499aefcd20a98e61eee4fbf391067627b75e9b2e7d58\"", - "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": "1655835493", - "X-RateLimit-Used": "25", - "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": "AF86:0C3F:564540:580411:62B1FD64" - } - }, - "uuid": "d0d80ef0-4ed2-426c-a569-45a7a871301d", - "persistent": true, - "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions", - "requiredScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-2", - "newScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-3", - "insertionIndex": 21 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..25c2bb91bf --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,59 @@ +{ + "id": "191e5380-b2d1-421f-bd27-136e3f7ab22a", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"confused\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "22-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"da086e7f978ec062d2e5c29c44d18c53ba98087eeb68d68bbee556f5711c1cee\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4794", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "206", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAB6:3353D6:1E0FFF85:1E462CBF:666EBC5A" + } + }, + "uuid": "191e5380-b2d1-421f-bd27-136e3f7ab22a", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions", + "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-2", + "insertionIndex": 22 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_902875759_reactions_170855273.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_902875759_reactions_170855273.json deleted file mode 100644 index d35f516970..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_902875759_reactions_170855273.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "8283bae4-a7cb-47db-825f-32c28f9e3405", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions_170855273", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions/170855273", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:29 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": "4974", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "26", - "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": "AF88:13948:352972:369BE1:62B1FD65" - } - }, - "uuid": "8283bae4-a7cb-47db-825f-32c28f9e3405", - "persistent": true, - "insertionIndex": 22 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..ab7554b481 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,53 @@ +{ + "id": "932a7c78-7c4c-49be-9771-a1f243be0bee", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "23-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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/\"22721ff4a4ce804fd6170e75fb94c30f99a5e332d4ba588d1084cd29f3b85d73\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4793", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "207", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAB7:AC87C:AA219EE:AB74FBB:666EBC5A" + } + }, + "uuid": "932a7c78-7c4c-49be-9771-a1f243be0bee", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions", + "requiredScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-2", + "newScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-3", + "insertionIndex": 23 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 29e164f5cd..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "id": "be8ab32b-e885-4806-b87f-3db5973ef7e4", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "23-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:29 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/\"b6ff492e1af9b061cffc7f5c9a251fbd428c9ebb996765012582d54b8799977a\"", - "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": "1655835493", - "X-RateLimit-Used": "27", - "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": "AF8A:6280:3800FF:398241:62B1FD65" - } - }, - "uuid": "be8ab32b-e885-4806-b87f-3db5973ef7e4", - "persistent": true, - "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions", - "requiredScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-3", - "insertionIndex": 23 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_456_comments_902875759_replies.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_456_comments_902875759_replies.json deleted file mode 100644 index 88881cf0d7..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_456_comments_902875759_replies.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "id": "37ca8b73-12d2-49a3-8313-f0d431df04cb", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments_902875759_replies", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments/902875759/replies", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"body\":\"This is a reply.\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "24-r_h_g_pulls_456_comments_902875759_replies.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:31 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": "\"50c45442ba1c3250fe571c1279aa8974e99f137be5f8c4b25bc2bff97a31e30d\"", - "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": "1655835493", - "X-RateLimit-Used": "28", - "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": "AF8C:5CC2:53C762:557D24:62B1FD66", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952" - } - }, - "uuid": "37ca8b73-12d2-49a3-8313-f0d431df04cb", - "persistent": true, - "insertionIndex": 24 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_comments_1641776783_reactions_251847278.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_comments_1641776783_reactions_251847278.json new file mode 100644 index 0000000000..8b02fe6ec1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_comments_1641776783_reactions_251847278.json @@ -0,0 +1,43 @@ +{ + "id": "ebe188df-1069-4080-ae3e-b331a256f621", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions_251847278", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions/251847278", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:11 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4792", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "208", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAB8:AC87C:AA21BB1:AB75184:666EBC5A" + } + }, + "uuid": "ebe188df-1069-4080-ae3e-b331a256f621", + "persistent": true, + "insertionIndex": 24 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_456_comments.json deleted file mode 100644 index 97a38807b4..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "d5f1a1b2-c1cc-4ed1-aaee-5008cebe3559", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "25-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:31 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/\"51c5cdd4e6dceaf9812dba5221f851b5ea8de5b79a0cc551f6ba3fff235e3c5b\"", - "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": "4971", - "X-RateLimit-Reset": "1655835493", - "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": "AF8E:BA0A:31BD35:332F9A:62B1FD67" - } - }, - "uuid": "d5f1a1b2-c1cc-4ed1-aaee-5008cebe3559", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-4", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-5", - "insertionIndex": 25 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..59ea797615 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,52 @@ +{ + "id": "a566668d-1430-45e3-9306-6d84495447c8", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "25-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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/\"4ea41994990195926e66d6eea9cf7706e134e51b6ba86c0b8075e0cd12ec783c\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4791", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "209", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAB9:3E2E9D:6D87B81:6E5EB3E:666EBC5B" + } + }, + "uuid": "a566668d-1430-45e3-9306-6d84495447c8", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions", + "requiredScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-3", + "insertionIndex": 25 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_484_comments_1641776783_replies.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_484_comments_1641776783_replies.json new file mode 100644 index 0000000000..a8c6b9eaef --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_484_comments_1641776783_replies.json @@ -0,0 +1,58 @@ +{ + "id": "97c7ee1e-28e2-4cf7-a71d-25d8ab93c339", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments_1641776783_replies", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments/1641776783/replies", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"body\":\"This is a reply.\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "26-r_h_g_pulls_484_comments_1641776783_replies.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"aeaa4945d4887a704be675d270a99ec7eac2f0679ea0c8b16fce1f6167b683dc\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4790", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "210", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CABA:3AF55A:C2CE8E9:C445A85:666EBC5B", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796" + } + }, + "uuid": "97c7ee1e-28e2-4cf7-a71d-25d8ab93c339", + "persistent": true, + "insertionIndex": 26 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_comments_902875759.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_comments_902875759.json deleted file mode 100644 index 936661b85f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_comments_902875759.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "51880262-5604-45fb-b2df-e451862c07bc", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "method": "PATCH", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"body\":\"Updated review comment\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 200, - "bodyFileName": "26-r_h_g_pulls_comments_902875759.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:32 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/\"3d5bb596716385bf97ed2a4ab88e3787b046ad094a2b4d1f2adad85ea09c2687\"", - "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": "1655835493", - "X-RateLimit-Used": "30", - "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": "AF90:13949:5107E6:52BF05:62B1FD67" - } - }, - "uuid": "51880262-5604-45fb-b2df-e451862c07bc", - "persistent": true, - "insertionIndex": 26 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_456_comments.json deleted file mode 100644 index 3787eaec80..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "c16019df-b04e-44ee-8e05-6aec9d395fd7", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "27-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:32 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/\"29ae28d5d668de75ea1082c3a8d7461eacd827103677598b4320a9a92ec6e08d\"", - "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": "1655835493", - "X-RateLimit-Used": "31", - "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": "AF92:9DB8:51D25C:537C96:62B1FD68" - } - }, - "uuid": "c16019df-b04e-44ee-8e05-6aec9d395fd7", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-5", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-6", - "insertionIndex": 27 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..9a85325a6d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_484_comments.json @@ -0,0 +1,53 @@ +{ + "id": "6828db79-f9ad-44c5-ab92-d99e4863925a", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "27-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "W/\"dd3919aa1374d417a3c52ee6336ab2653c8131d879807dcb7fa327f6b2261f35\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4789", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "211", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CABB:3795B1:1F6FE260:1FA642E1:666EBC5C" + } + }, + "uuid": "6828db79-f9ad-44c5-ab92-d99e4863925a", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-4", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-5", + "insertionIndex": 27 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_1641776783.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_1641776783.json new file mode 100644 index 0000000000..dea1ab184b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_1641776783.json @@ -0,0 +1,57 @@ +{ + "id": "666037a3-9f54-4635-8b1c-602637bc191e", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "method": "PATCH", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"body\":\"Updated review comment\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "28-r_h_g_pulls_comments_1641776783.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "W/\"2a4e3a37247de036d7732ec5049830cd88cff29b480d916de95e27af9150b81c\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4788", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "212", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CABC:1F6CBC:1AE2E250:1B11C4D0:666EBC5C" + } + }, + "uuid": "666037a3-9f54-4635-8b1c-602637bc191e", + "persistent": true, + "insertionIndex": 28 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_902875759.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_902875759.json deleted file mode 100644 index 6c717e5df6..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_902875759.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "3b867da2-e92f-4798-9f98-b92a428630d3", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:33 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": "4968", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "32", - "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": "AF94:10EF1:530A33:54C7FD:62B1FD69" - } - }, - "uuid": "3b867da2-e92f-4798-9f98-b92a428630d3", - "persistent": true, - "insertionIndex": 28 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_456_comments.json deleted file mode 100644 index 898f7d35e9..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "id": "f692d85c-3ad3-4217-a83b-0ee54f002468", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "29-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:34 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/\"795f2a7f1d3bac3b49904945b4c6865e1b3a4098b74587a4d78c73a2b0ed4a80\"", - "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": "1655835493", - "X-RateLimit-Used": "33", - "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": "AF96:FA74:1C6330:1DA6C6:62B1FD6A" - } - }, - "uuid": "f692d85c-3ad3-4217-a83b-0ee54f002468", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-6", - "insertionIndex": 29 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..a0af390a73 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_484_comments.json @@ -0,0 +1,53 @@ +{ + "id": "8e0fa311-809f-4d3d-b62e-7d7f086aabc8", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "29-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "W/\"1e46062e16a5a34a62ea0ab765f6e68e16acd3936d5c0d1c827a37dbf0c4768f\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4787", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "213", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CABD:2EA35F:1EE536C3:1F1B9699:666EBC5D" + } + }, + "uuid": "8e0fa311-809f-4d3d-b62e-7d7f086aabc8", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-5", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-6", + "insertionIndex": 29 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/3-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/3-r_h_github-api.json index 8bfad0e960..9935dbf289 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/3-r_h_github-api.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/3-r_h_github-api.json @@ -1,5 +1,5 @@ { - "id": "1893f17b-1315-4dc4-8fe2-96bd3e747e84", + "id": "f35438e2-f0c6-4f2d-9008-e9cf077f0f98", "name": "repos_hub4j-test-org_github-api", "request": { "url": "/repos/hub4j-test-org/github-api", @@ -15,34 +15,37 @@ "bodyFileName": "3-r_h_github-api.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:16 GMT", + "Date": "Sun, 16 Jun 2024 10:20:02 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/\"cb99d6332ac5c8b2c09a1b93d8c078ce24f73cb0b79858a1516f6f939aae0a72\"", - "Last-Modified": "Mon, 23 May 2022 14:23:52 GMT", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "ETag": "W/\"cc6d0fe1a2532d022712082d96ea7fad2f6f3cebe92b9972d26c0cc69e8a6b2a\"", + "Last-Modified": "Fri, 22 Mar 2024 23:30:32 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "repo", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4993", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "7", + "X-RateLimit-Remaining": "4813", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "187", "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", "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": "AF62:DDCC:3B63EA:3CF72D:62B1FD58" + "X-GitHub-Request-Id": "CAA2:5E86B:8023F40:8118E7A:666EBC51" } }, - "uuid": "1893f17b-1315-4dc4-8fe2-96bd3e747e84", + "uuid": "f35438e2-f0c6-4f2d-9008-e9cf077f0f98", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_456.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_456.json deleted file mode 100644 index 569ddf9ebf..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_456.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "2ef0656b-ee95-4cb0-9b2b-30a96164114b", - "name": "repos_hub4j-test-org_github-api_pulls_456", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456", - "method": "PATCH", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"state\":\"closed\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 200, - "bodyFileName": "30-r_h_g_pulls_456.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:36 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/\"14e4628277ee83d18534ba6608492413533702d07c90b617ad7a2c72e1fa8722\"", - "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": "1655835493", - "X-RateLimit-Used": "34", - "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": "AF98:BA0B:4D3E8B:4EEBAE:62B1FD6A" - } - }, - "uuid": "2ef0656b-ee95-4cb0-9b2b-30a96164114b", - "persistent": true, - "insertionIndex": 30 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_comments_1641776783.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_comments_1641776783.json new file mode 100644 index 0000000000..e707e7a77f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_comments_1641776783.json @@ -0,0 +1,43 @@ +{ + "id": "6bfe4e17-295f-4656-b8c7-65b299464e2a", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:14 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4786", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "214", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CABE:3AF55A:C2CF907:C446AAA:666EBC5D" + } + }, + "uuid": "6bfe4e17-295f-4656-b8c7-65b299464e2a", + "persistent": true, + "insertionIndex": 30 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/31-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/31-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..171119899d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/31-r_h_g_pulls_484_comments.json @@ -0,0 +1,52 @@ +{ + "id": "4c3acc2d-7f24-436a-b30a-efbb7aec063a", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "31-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "W/\"f0283a2591bdc11131647a412df16f250a4c8cec7026bd8bc0a76fe0b3fe3df3\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4785", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "215", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CABF:0EF4:1CED5048:1D21696B:666EBC5E" + } + }, + "uuid": "4c3acc2d-7f24-436a-b30a-efbb7aec063a", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-6", + "insertionIndex": 31 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/32-r_h_g_pulls_484.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/32-r_h_g_pulls_484.json new file mode 100644 index 0000000000..cd28087aa3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/32-r_h_g_pulls_484.json @@ -0,0 +1,57 @@ +{ + "id": "ad1058c8-1747-4552-a905-25f8a0aea4c4", + "name": "repos_hub4j-test-org_github-api_pulls_484", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484", + "method": "PATCH", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "32-r_h_g_pulls_484.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "W/\"95b52407e61f123ba1881b3dc23c523e57dad5ef9daeb2c28be2983c4de403c9\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4784", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "216", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAC0:1768C1:66ABC94:676EEB1:666EBC5E" + } + }, + "uuid": "ad1058c8-1747-4552-a905-25f8a0aea4c4", + "persistent": true, + "insertionIndex": 32 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/4-r_h_g_pulls.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/4-r_h_g_pulls.json index b77f862f58..4551f97848 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/4-r_h_g_pulls.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/4-r_h_g_pulls.json @@ -1,5 +1,5 @@ { - "id": "b24c0aff-401f-4e35-add3-2d27e799860c", + "id": "c33e044c-aeba-4730-a34f-2959b9fdb665", "name": "repos_hub4j-test-org_github-api_pulls", "request": { "url": "/repos/hub4j-test-org/github-api/pulls", @@ -22,34 +22,37 @@ "bodyFileName": "4-r_h_g_pulls.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:17 GMT", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"801196cbb450ae48f1d688f815e6830d4e6a687017f5373765f170cd3af6b501\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "ETag": "\"b924fb17a54b909bae43a2754576f9bf62fda2439537c149818d7c3186defaa9\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; param=shadow-cat-preview; format=json", + "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4992", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "8", + "X-RateLimit-Remaining": "4812", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "188", "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", "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": "AF64:9DB3:1B392:2BAFF:62B1FD58", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" + "X-GitHub-Request-Id": "CAA3:7844E:158CDF6C:15B42BE5:666EBC52", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" } }, - "uuid": "b24c0aff-401f-4e35-add3-2d27e799860c", + "uuid": "c33e044c-aeba-4730-a34f-2959b9fdb665", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_456_comments.json deleted file mode 100644 index e92c3c5ab8..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "e563f1db-bc81-41c8-a710-187ae27783c4", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "body": "[]", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18: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": "\"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": "4991", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "9", - "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": "AF66:10EF1:52F61F:54B37F:62B1FD5A" - } - }, - "uuid": "e563f1db-bc81-41c8-a710-187ae27783c4", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-2", - "insertionIndex": 5 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..2d9d205060 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_484_comments.json @@ -0,0 +1,53 @@ +{ + "id": "d7b1db5e-d26a-4122-bf11-d883fa8a237f", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"1b5805e5b5590e41a379084e0302960f5b511ecf3553fc6d28e46f603b15210e\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4811", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "189", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAA4:2EA35F:1EE4E57A:1F1B44EE:666EBC53" + } + }, + "uuid": "d7b1db5e-d26a-4122-bf11-d883fa8a237f", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-2", + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_456_comments.json deleted file mode 100644 index c1f9d39838..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "id": "006f3169-0085-45a1-b7ba-8a246c639b03", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"path\":\"README.md\",\"position\":1,\"body\":\"Sample review comment\",\"commit_id\":\"07374fe73aff1c2024a8d4114b32406c7a8e89b7\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "6-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18: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": "\"36a5ee598a508736adcb8410419b27920cc05df644e0a393a293378ac9d5479f\"", - "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": "4990", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "10", - "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": "AF68:4006:15415:25A5D:62B1FD5A", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - } - }, - "uuid": "006f3169-0085-45a1-b7ba-8a246c639b03", - "persistent": true, - "insertionIndex": 6 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..159c6be9de --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_484_comments.json @@ -0,0 +1,58 @@ +{ + "id": "33e4c312-78c3-4d69-ba9f-0fb46d2e353e", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"README.md\",\"position\":1,\"body\":\"Sample review comment\",\"commit_id\":\"07374fe73aff1c2024a8d4114b32406c7a8e89b7\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "6-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:04 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": "\"3d0ba55bf943c522629d751ebf47bef805a02ce2e62e4345f203f25fb3cae2f0\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4810", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "190", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAA5:253CFA:1EC487BF:1EFAE8BA:666EBC53", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + } + }, + "uuid": "33e4c312-78c3-4d69-ba9f-0fb46d2e353e", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_456_comments.json deleted file mode 100644 index 5f67fdc202..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "567785f1-9e06-4054-86c9-4a10605ec52a", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "7-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:20 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/\"53d5962598630d2c8c75bc71115eb7887c93b96424168d2183c1e9b2beedff65\"", - "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": "4989", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "11", - "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": "AF6A:BA0B:4D2C30:4ED8D6:62B1FD5B" - } - }, - "uuid": "567785f1-9e06-4054-86c9-4a10605ec52a", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-2", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-3", - "insertionIndex": 7 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..c62816d287 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_484_comments.json @@ -0,0 +1,58 @@ +{ + "id": "43f15589-cf59-4ed5-a2b8-8f6b7ebae791", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"README.md\",\"line\":2,\"body\":\"A single line review comment\",\"commit_id\":\"07374fe73aff1c2024a8d4114b32406c7a8e89b7\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "7-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"f4ad16b622a43c19bbb4347683a37b2421bfd9b13c0b46ea9370fd964f759702\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4809", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "191", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAA6:340707:1EB296E6:1EE8C145:666EBC54", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + } + }, + "uuid": "43f15589-cf59-4ed5-a2b8-8f6b7ebae791", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..2b80fe4f36 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-r_h_g_pulls_484_comments.json @@ -0,0 +1,58 @@ +{ + "id": "efe94b1b-7f9c-4bba-9af2-0a7a59a498ab", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"README.md\",\"line\":3,\"start_line\":2,\"body\":\"A multiline review comment\",\"commit_id\":\"07374fe73aff1c2024a8d4114b32406c7a8e89b7\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "8-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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": "\"3f2d9a517ab5baa36940a98c5f9a861848e0feb5ef0fd58c654801b8c3015590\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4808", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "192", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAA7:1768C1:66A75E7:676A78B:666EBC55", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + } + }, + "uuid": "efe94b1b-7f9c-4bba-9af2-0a7a59a498ab", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-users_kisaga.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-users_kisaga.json deleted file mode 100644 index 500da65c48..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-users_kisaga.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "id": "0892a1ba-a9f8-44fe-a199-1c8d3274548f", - "name": "users_kisaga", - "request": { - "url": "/users/kisaga", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "8-users_kisaga.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:20 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": "4988", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "12", - "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": "AF6C:21C5:567FD6:58294B:62B1FD5C" - } - }, - "uuid": "0892a1ba-a9f8-44fe-a199-1c8d3274548f", - "persistent": true, - "insertionIndex": 8 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..ba8b9d6b46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_484_comments.json @@ -0,0 +1,53 @@ +{ + "id": "b90b66bc-ebae-478f-8591-47c4a97723d1", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "9-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20: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/\"bc851e53d17184ccbb0dc54aa5331a034a774e0f1aff0a4b0df3485e2f986948\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4807", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "193", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "CAA8:3353D6:1E0FE118:1E460E21:666EBC55" + } + }, + "uuid": "b90b66bc-ebae-478f-8591-47c4a97723d1", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-2", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-3", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 502dd240f6..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "6148fd96-101d-45af-984a-53407454b15c", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"eyes\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "9-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18: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": "\"e21c10f436977c155cb2612b9a13066a568a4c8b1e82c1ca3b0218bd50064771\"", - "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": "4987", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "13", - "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": "AF6E:0C3E:33A10C:351889:62B1FD5D" - } - }, - "uuid": "6148fd96-101d-45af-984a-53407454b15c", - "persistent": true, - "insertionIndex": 9 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-user.json new file mode 100644 index 0000000000..4a175d1c5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-user.json @@ -0,0 +1,46 @@ +{ + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false, + "name": "Maxime Wiewiora", + "company": "@neofacto", + "blog": "", + "location": "France", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", + "private_gists": 0, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, + "collaborators": 0, + "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/pullRequestReviews/__files/10-r_h_g_pulls_475_reviews_1926195021.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_475_reviews_1926195021.json deleted file mode 100644 index 9a8107f60a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_475_reviews_1926195021.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "id": 1926195021, - "node_id": "PRR_kwDODFTdCc5yz2dN", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&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": "Some new review", - "state": "PENDING", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195021", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195021" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_482_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_482_reviews.json new file mode 100644 index 0000000000..45c2bb2416 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_482_reviews.json @@ -0,0 +1,38 @@ +{ + "id": 2121311995, + "node_id": "PRR_kwDODFTdCc5-cKb7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some new review", + "state": "PENDING", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121311995", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121311995" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/11-r_h_g_pulls_482_reviews_2121311995.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/11-r_h_g_pulls_482_reviews_2121311995.json new file mode 100644 index 0000000000..45c2bb2416 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/11-r_h_g_pulls_482_reviews_2121311995.json @@ -0,0 +1,38 @@ +{ + "id": 2121311995, + "node_id": "PRR_kwDODFTdCc5-cKb7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some new review", + "state": "PENDING", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121311995", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121311995" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-orgs_hub4j-test-org.json similarity index 98% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-orgs_hub4j-test-org.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-orgs_hub4j-test-org.json index 749c1ff664..a6ece8248a 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-orgs_hub4j-test-org.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-orgs_hub4j-test-org.json @@ -20,7 +20,7 @@ "is_verified": false, "has_organization_projects": true, "has_repository_projects": true, - "public_repos": 26, + "public_repos": 27, "public_gists": 0, "followers": 2, "following": 0, @@ -51,7 +51,7 @@ "name": "free", "space": 976562499, "private_repos": 10000, - "filled_seats": 50, + "filled_seats": 52, "seats": 3 }, "advanced_security_enabled_for_new_repositories": false, diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_github-api.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-r_h_github-api.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_github-api.json index 9e8a5a346f..39ddcf878d 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-r_h_github-api.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_github-api.json @@ -65,8 +65,8 @@ "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": "2023-01-31T10:03:44Z", - "pushed_at": "2024-03-09T12:57:12Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:42:30Z", "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", @@ -210,16 +210,16 @@ "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": "2024-03-03T08:57:47Z", - "pushed_at": "2024-03-09T13:21:50Z", + "updated_at": "2024-06-16T08:25:00Z", + "pushed_at": "2024-06-16T08:24:55Z", "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": 47162, - "stargazers_count": 1086, - "watchers_count": 1086, + "size": 50713, + "stargazers_count": 1110, + "watchers_count": 1110, "language": "Java", "has_issues": true, "has_projects": true, @@ -227,11 +227,11 @@ "has_wiki": true, "has_pages": true, "has_discussions": true, - "forks_count": 701, + "forks_count": 712, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 152, + "open_issues_count": 156, "license": { "key": "mit", "name": "MIT License", @@ -252,9 +252,9 @@ "java-api" ], "visibility": "public", - "forks": 701, - "open_issues": 152, - "watchers": 1086, + "forks": 712, + "open_issues": 156, + "watchers": 1110, "default_branch": "main" }, "source": { @@ -324,16 +324,16 @@ "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": "2024-03-03T08:57:47Z", - "pushed_at": "2024-03-09T13:21:50Z", + "updated_at": "2024-06-16T08:25:00Z", + "pushed_at": "2024-06-16T08:24:55Z", "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": 47162, - "stargazers_count": 1086, - "watchers_count": 1086, + "size": 50713, + "stargazers_count": 1110, + "watchers_count": 1110, "language": "Java", "has_issues": true, "has_projects": true, @@ -341,11 +341,11 @@ "has_wiki": true, "has_pages": true, "has_discussions": true, - "forks_count": 701, + "forks_count": 712, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 152, + "open_issues_count": 156, "license": { "key": "mit", "name": "MIT License", @@ -366,9 +366,9 @@ "java-api" ], "visibility": "public", - "forks": 701, - "open_issues": 152, - "watchers": 1086, + "forks": 712, + "open_issues": 156, + "watchers": 1110, "default_branch": "main" }, "security_and_analysis": { @@ -385,6 +385,6 @@ "status": "disabled" } }, - "network_count": 701, + "network_count": 712, "subscribers_count": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_g_pulls.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/4-r_h_g_pulls.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_g_pulls.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/4-r_h_g_pulls.json index a57f49c2c6..4a97cbb036 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_g_pulls.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/4-r_h_g_pulls.json @@ -1,38 +1,38 @@ { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "id": 1764042569, - "node_id": "PR_kwDODFTdCc5pJSdJ", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475", - "diff_url": "https://github.com/hub4j-test-org/github-api/pull/475.diff", - "patch_url": "https://github.com/hub4j-test-org/github-api/pull/475.patch", - "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/475", - "number": 475, + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "id": 1922717147, + "node_id": "PR_kwDODFTdCc5ymlXb", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482", + "diff_url": "https://github.com/hub4j-test-org/github-api/pull/482.diff", + "patch_url": "https://github.com/hub4j-test-org/github-api/pull/482.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/482", + "number": 482, "state": "open", "locked": false, "title": "testPullRequestReviews", "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?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/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", "type": "User", "site_admin": false }, "body": "## test", - "created_at": "2024-03-09T13:29:41Z", - "updated_at": "2024-03-09T13:29:41Z", + "created_at": "2024-06-16T09:55:52Z", + "updated_at": "2024-06-16T09:55:52Z", "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/475/commits", - "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475/comments", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482/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/475/comments", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/482/comments", "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7", "head": { "label": "hub4j-test-org:test/stable", @@ -139,8 +139,8 @@ "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": "2023-01-31T10:03:44Z", - "pushed_at": "2024-03-09T12:57:12Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:42:30Z", "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", @@ -270,8 +270,8 @@ "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": "2023-01-31T10:03:44Z", - "pushed_at": "2024-03-09T12:57:12Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:42:30Z", "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", @@ -312,25 +312,25 @@ }, "_links": { "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" }, "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475" + "href": "https://github.com/hub4j-test-org/github-api/pull/482" }, "issue": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/475" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/482" }, "comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/475/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/482/comments" }, "review_comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482/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/475/commits" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482/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/pullRequestReviews/__files/5-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/5-r_h_g_pulls_475_reviews.json deleted file mode 100644 index a8ba753d04..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/5-r_h_g_pulls_475_reviews.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "id": 1926195017, - "node_id": "PRR_kwDODFTdCc5yz2dJ", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&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": "Some draft review", - "state": "PENDING", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_475_reviews.json deleted file mode 100644 index 172dd48b6c..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_475_reviews.json +++ /dev/null @@ -1,40 +0,0 @@ -[ - { - "id": 1926195017, - "node_id": "PRR_kwDODFTdCc5yz2dJ", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&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": "Some draft review", - "state": "PENDING", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_482_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_482_reviews.json new file mode 100644 index 0000000000..12bad1384c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_482_reviews.json @@ -0,0 +1,38 @@ +{ + "id": 2121304234, + "node_id": "PRR_kwDODFTdCc5-cIiq", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some draft review", + "state": "PENDING", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_475_reviews_1926195017_events.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_475_reviews_1926195017_events.json deleted file mode 100644 index 4f4be79792..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_475_reviews_1926195017_events.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "id": 1926195017, - "node_id": "PRR_kwDODFTdCc5yz2dJ", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&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": "Some review comment", - "state": "COMMENTED", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "submitted_at": "2024-03-09T13:29:44Z", - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_482_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_482_reviews.json new file mode 100644 index 0000000000..a775b10515 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_482_reviews.json @@ -0,0 +1,40 @@ +[ + { + "id": 2121304234, + "node_id": "PRR_kwDODFTdCc5-cIiq", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some draft review", + "state": "PENDING", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_475_reviews_1926195017_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_475_reviews_1926195017_comments.json deleted file mode 100644 index a8102905a0..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_475_reviews_1926195017_comments.json +++ /dev/null @@ -1,63 +0,0 @@ -[ - { - "id": 1518573431, - "node_id": "PRRC_kwDODFTdCc5ag5d3", - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1518573431", - "pull_request_review_id": 1926195017, - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&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": "Some niggle", - "created_at": "2024-03-09T13:29:43Z", - "updated_at": "2024-03-09T13:29:44Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#discussion_r1518573431", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1518573431" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#discussion_r1518573431" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1518573431/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - } - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_482_reviews_2121304234_events.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_482_reviews_2121304234_events.json new file mode 100644 index 0000000000..6241395296 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_482_reviews_2121304234_events.json @@ -0,0 +1,39 @@ +{ + "id": 2121304234, + "node_id": "PRR_kwDODFTdCc5-cIiq", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some review comment", + "state": "COMMENTED", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "submitted_at": "2024-06-16T09:55:55Z", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_475_reviews.json deleted file mode 100644 index 9a8107f60a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_475_reviews.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "id": 1926195021, - "node_id": "PRR_kwDODFTdCc5yz2dN", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&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": "Some new review", - "state": "PENDING", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195021", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195021" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_482_reviews_2121304234_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_482_reviews_2121304234_comments.json new file mode 100644 index 0000000000..836f41dcc4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_482_reviews_2121304234_comments.json @@ -0,0 +1,185 @@ +[ + { + "id": 1641771497, + "node_id": "PRRC_kwDODFTdCc5h23Hp", + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771497", + "pull_request_review_id": 2121304234, + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some niggle", + "created_at": "2024-06-16T09:55:53Z", + "updated_at": "2024-06-16T09:55:55Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771497", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771497" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771497" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771497/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + } + }, + { + "id": 1641771499, + "node_id": "PRRC_kwDODFTdCc5h23Hr", + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771499", + "pull_request_review_id": 2121304234, + "diff_hunk": "@@ -2,2 +1,4 @@\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "position": 4, + "original_position": 4, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line comment", + "created_at": "2024-06-16T09:55:53Z", + "updated_at": "2024-06-16T09:55:55Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771499", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771499" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771499" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771499/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + } + }, + { + "id": 1641771500, + "node_id": "PRRC_kwDODFTdCc5h23Hs", + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771500", + "pull_request_review_id": 2121304234, + "diff_hunk": "@@ -2,2 +1,4 @@\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "position": 5, + "original_position": 5, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A multiline comment", + "created_at": "2024-06-16T09:55:53Z", + "updated_at": "2024-06-16T09:55:55Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771500", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771500" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771500" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771500/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + } + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-user.json new file mode 100644 index 0000000000..c1693bd622 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-user.json @@ -0,0 +1,51 @@ +{ + "id": "ae8e1c81-d2ce-4e3b-8ef0-bead12942fca", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 09:55:50 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/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4378", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "622", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "C5D8:0FA7:1444E7D2:146ACC90:666EB6A6" + } + }, + "uuid": "ae8e1c81-d2ce-4e3b-8ef0-bead12942fca", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_482_reviews.json similarity index 68% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_475_reviews.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_482_reviews.json index 3e1dc934f8..4856026f1b 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_475_reviews.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_482_reviews.json @@ -1,8 +1,8 @@ { - "id": "c47a19f1-4c37-4fb2-84c9-09f9554a4738", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews", + "id": "52e817b3-f666-416f-bdd8-9dcc4584d26d", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews", "method": "POST", "headers": { "Accept": { @@ -19,25 +19,26 @@ }, "response": { "status": 200, - "bodyFileName": "9-r_h_g_pulls_475_reviews.json", + "bodyFileName": "10-r_h_g_pulls_482_reviews.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:45 GMT", + "Date": "Sun, 16 Jun 2024 10:09:44 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/\"f4b487b2907023f655db7ed06eb47f861564347109551e144fb34b9026e7dcf9\"", - "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/\"ff790a9d0b473686691dbde88cdc06fd6f0048f145c28231c5e7c7948d9ccc01\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4953", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "47", + "X-RateLimit-Remaining": "3808", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "1192", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -47,10 +48,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": "8356:21CA73:E245284:E3D93AC:65EC6449" + "X-GitHub-Request-Id": "C8D7:39C3A8:1E7F2317:1EB5684B:666EB9E8" } }, - "uuid": "c47a19f1-4c37-4fb2-84c9-09f9554a4738", + "uuid": "52e817b3-f666-416f-bdd8-9dcc4584d26d", "persistent": true, - "insertionIndex": 9 + "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_475_reviews_1926195021.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/11-r_h_g_pulls_482_reviews_2121311995.json similarity index 63% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_475_reviews_1926195021.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/11-r_h_g_pulls_482_reviews_2121311995.json index a8714a1611..caeaf7eb22 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_475_reviews_1926195021.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/11-r_h_g_pulls_482_reviews_2121311995.json @@ -1,8 +1,8 @@ { - "id": "2a0521b3-e234-4275-9ca7-c528f8259d87", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews_1926195021", + "id": "ea34f4f2-27de-49e4-a58b-181e0f06fb46", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews_2121311995", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews/1926195021", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews/2121311995", "method": "DELETE", "headers": { "Accept": { @@ -12,25 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "10-r_h_g_pulls_475_reviews_1926195021.json", + "bodyFileName": "11-r_h_g_pulls_482_reviews_2121311995.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:46 GMT", + "Date": "Sun, 16 Jun 2024 10:09:45 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/\"f4b487b2907023f655db7ed06eb47f861564347109551e144fb34b9026e7dcf9\"", - "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/\"ff790a9d0b473686691dbde88cdc06fd6f0048f145c28231c5e7c7948d9ccc01\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "public_repo, repo", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4952", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "48", + "X-RateLimit-Remaining": "3807", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "1193", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,10 +41,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": "8362:2EA360:578A0C0:5830B22:65EC6449" + "X-GitHub-Request-Id": "C8D8:5E86B:7F23204:80166D4:666EB9E8" } }, - "uuid": "2a0521b3-e234-4275-9ca7-c528f8259d87", + "uuid": "ea34f4f2-27de-49e4-a58b-181e0f06fb46", "persistent": true, - "insertionIndex": 10 + "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-orgs_hub4j-test-org.json similarity index 70% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-orgs_hub4j-test-org.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-orgs_hub4j-test-org.json index f44ded366b..7f5e1d091c 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-orgs_hub4j-test-org.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-orgs_hub4j-test-org.json @@ -1,5 +1,5 @@ { - "id": "b294b5e8-218e-4337-9271-d31ae67be2ca", + "id": "b531d035-88fb-4219-965a-d47fb1426016", "name": "orgs_hub4j-test-org", "request": { "url": "/orgs/hub4j-test-org", @@ -12,26 +12,27 @@ }, "response": { "status": 200, - "bodyFileName": "1-orgs_hub4j-test-org.json", + "bodyFileName": "2-orgs_hub4j-test-org.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:41 GMT", + "Date": "Sun, 16 Jun 2024 09:55:51 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/\"19982b123aa27e3186d4142a976fd226b48a2c2dc6b65260e1b971e7361a5c8e\"", + "ETag": "W/\"1a25138946edf22ffb0d2a4077820d7ce4ede3f21fcb684ab25abfedf6fe863c\"", "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": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4961", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "39", + "X-RateLimit-Remaining": "4373", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "627", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -41,10 +42,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": "A14E:3D6430:E483F17:E6180AD:65EC6445" + "X-GitHub-Request-Id": "C5DA:39C3A8:1E67DE9E:1E9E0086:666EB6A7" } }, - "uuid": "b294b5e8-218e-4337-9271-d31ae67be2ca", + "uuid": "b531d035-88fb-4219-965a-d47fb1426016", "persistent": true, - "insertionIndex": 1 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_github-api.json similarity index 68% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-r_h_github-api.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_github-api.json index c0c01318c0..a4805a0530 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-r_h_github-api.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_github-api.json @@ -1,5 +1,5 @@ { - "id": "b343d4f0-3db1-455d-b967-1a383fad2b68", + "id": "747e9d0e-d725-4d87-b63f-e0d79e1afc43", "name": "repos_hub4j-test-org_github-api", "request": { "url": "/repos/hub4j-test-org/github-api", @@ -12,26 +12,27 @@ }, "response": { "status": 200, - "bodyFileName": "2-r_h_github-api.json", + "bodyFileName": "3-r_h_github-api.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:41 GMT", + "Date": "Sun, 16 Jun 2024 09:55:52 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/\"d69a5805c6d97804ef8dbcf9cfa8a002efd5f3b27f12f30cff472f3a0956a9c1\"", - "Last-Modified": "Tue, 31 Jan 2023 10:03:44 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/\"b0cc862bde1ff25b534b12dbe43d40afc807595da6bbd8ba7a68f780bfb546d2\"", + "Last-Modified": "Fri, 22 Mar 2024 23:30:32 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4960", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "40", + "X-RateLimit-Remaining": "4372", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "628", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -41,10 +42,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": "A150:E2829:DBC16C1:DD52E63:65EC6445" + "X-GitHub-Request-Id": "C5DB:3795B1:1F47552C:1F7D779A:666EB6A7" } }, - "uuid": "b343d4f0-3db1-455d-b967-1a383fad2b68", + "uuid": "747e9d0e-d725-4d87-b63f-e0d79e1afc43", "persistent": true, - "insertionIndex": 2 + "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_g_pulls.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls.json similarity index 74% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_g_pulls.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls.json index 121b083c73..2ee83f15d4 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_g_pulls.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls.json @@ -1,5 +1,5 @@ { - "id": "7775c633-0a23-478e-aa6b-e95f65ec9cf0", + "id": "6cd1ba24-2cdb-443c-aa7d-89845f656cc1", "name": "repos_hub4j-test-org_github-api_pulls", "request": { "url": "/repos/hub4j-test-org/github-api/pulls", @@ -19,25 +19,26 @@ }, "response": { "status": 201, - "bodyFileName": "3-r_h_g_pulls.json", + "bodyFileName": "4-r_h_g_pulls.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:42 GMT", + "Date": "Sun, 16 Jun 2024 09:55:52 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": "\"b1eecd0523d052757ad1268c33725ba94f475f416b3993760742d5e560ce6c83\"", - "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": "\"f9f359c0b19bd419a398b46bbc092928f59aaef3005b7f945ddb96ef2cdd3717\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; param=shadow-cat-preview; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4959", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "41", + "X-RateLimit-Remaining": "4371", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "629", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -47,11 +48,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": "A15A:3648D8:E155576:E2E974A:65EC6445", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" + "X-GitHub-Request-Id": "C5DC:253CFA:1E9C4A19:1ED26D6C:666EB6A8", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" } }, - "uuid": "7775c633-0a23-478e-aa6b-e95f65ec9cf0", + "uuid": "6cd1ba24-2cdb-443c-aa7d-89845f656cc1", "persistent": true, - "insertionIndex": 3 + "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_482_reviews.json similarity index 67% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls_475_reviews.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_482_reviews.json index 5ab14cf678..d900e29025 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls_475_reviews.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_482_reviews.json @@ -1,8 +1,8 @@ { - "id": "5c467e98-45ef-48d4-bb1f-60c387d2eadb", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews", + "id": "5152dd1c-fa4c-4a8c-b0b3-df0e248aac3c", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews", "method": "GET", "headers": { "Accept": { @@ -15,22 +15,23 @@ "body": "[]", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:42 GMT", + "Date": "Sun, 16 Jun 2024 09:55:53 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": "\"1b5805e5b5590e41a379084e0302960f5b511ecf3553fc6d28e46f603b15210e\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4958", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "42", + "X-RateLimit-Remaining": "4370", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "630", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,13 +41,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": "A16A:5EC0F:DF16F19:E0A85A5:65EC6446" + "X-GitHub-Request-Id": "C5DD:3795B1:1F475C3A:1F7D7EB4:666EB6A9" } }, - "uuid": "5c467e98-45ef-48d4-bb1f-60c387d2eadb", + "uuid": "5152dd1c-fa4c-4a8c-b0b3-df0e248aac3c", "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-475-reviews", + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-482-reviews", "requiredScenarioState": "Started", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-475-reviews-2", - "insertionIndex": 4 + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-482-reviews-2", + "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_482_reviews.json similarity index 62% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_475_reviews.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_482_reviews.json index efef3f5828..747532411f 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_475_reviews.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_482_reviews.json @@ -1,8 +1,8 @@ { - "id": "33e37bae-8cf2-4afc-ab98-9bc7b3c8a7a3", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews", + "id": "67d09d77-c9ee-4c8a-8570-39b3a8415c40", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews", "method": "POST", "headers": { "Accept": { @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"comments\":[{\"body\":\"Some niggle\",\"path\":\"README.md\",\"position\":1}],\"body\":\"Some draft review\"}", + "equalToJson": "{\"comments\":[{\"body\":\"Some niggle\",\"path\":\"README.md\",\"position\":1},{\"body\":\"A single line comment\",\"path\":\"README.md\",\"line\":2},{\"body\":\"A multiline comment\",\"path\":\"README.md\",\"line\":3,\"start_line\":2}],\"body\":\"Some draft review\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -19,25 +19,26 @@ }, "response": { "status": 200, - "bodyFileName": "5-r_h_g_pulls_475_reviews.json", + "bodyFileName": "6-r_h_g_pulls_482_reviews.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:43 GMT", + "Date": "Sun, 16 Jun 2024 09:55:54 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/\"c454859282735c8662d1a205cc8163591fe6d21faf3d561e60b9b92975becb6b\"", - "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/\"b94ef0eeeaefe771d12aaa0fa07cd4e22284db93b05d8b221cb6db0109beb031\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4957", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "43", + "X-RateLimit-Remaining": "4369", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "631", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -47,10 +48,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": "A17A:3BEAE9:E4A2735:E632F20:65EC6446" + "X-GitHub-Request-Id": "C5DE:0FA7:1444FC98:146AE179:666EB6A9" } }, - "uuid": "33e37bae-8cf2-4afc-ab98-9bc7b3c8a7a3", + "uuid": "67d09d77-c9ee-4c8a-8570-39b3a8415c40", "persistent": true, - "insertionIndex": 5 + "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_482_reviews.json similarity index 65% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_475_reviews.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_482_reviews.json index 156b152556..35a2f8804c 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_475_reviews.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_482_reviews.json @@ -1,8 +1,8 @@ { - "id": "ddefb205-42dc-4141-8c2b-fac707c063fd", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews", + "id": "bb043981-2c62-4eda-a619-018913a4e038", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews", "method": "GET", "headers": { "Accept": { @@ -12,25 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "6-r_h_g_pulls_475_reviews.json", + "bodyFileName": "7-r_h_g_pulls_482_reviews.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:43 GMT", + "Date": "Sun, 16 Jun 2024 09:55:54 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/\"8ca9151a732f5547445631885b7ab951fe59b045bf6624dbca0ff05461a5ed79\"", - "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/\"73d4101eabd7ce63fd0a4a974b9aab88b05d1336d7e88a00639eefc4595edbc2\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4956", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "44", + "X-RateLimit-Remaining": "4368", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "632", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,12 +41,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": "A17E:50746:E78766D:E918C56:65EC6447" + "X-GitHub-Request-Id": "C5DF:5E86B:7DC19D4:7EB2B77:666EB6AA" } }, - "uuid": "ddefb205-42dc-4141-8c2b-fac707c063fd", + "uuid": "bb043981-2c62-4eda-a619-018913a4e038", "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-475-reviews", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-475-reviews-2", - "insertionIndex": 6 + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-482-reviews", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-482-reviews-2", + "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_475_reviews_1926195017_events.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_482_reviews_2121304234_events.json similarity index 66% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_475_reviews_1926195017_events.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_482_reviews_2121304234_events.json index 14a438a77e..4a2bd8e943 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_475_reviews_1926195017_events.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_482_reviews_2121304234_events.json @@ -1,8 +1,8 @@ { - "id": "378b1981-7dcb-4e61-8818-a536d980ac1b", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews_1926195017_events", + "id": "5f0aa5a6-02d0-4ac0-9e2d-60b13fa2e7f9", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews_2121304234_events", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews/1926195017/events", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews/2121304234/events", "method": "POST", "headers": { "Accept": { @@ -19,25 +19,26 @@ }, "response": { "status": 200, - "bodyFileName": "7-r_h_g_pulls_475_reviews_1926195017_events.json", + "bodyFileName": "8-r_h_g_pulls_482_reviews_2121304234_events.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:44 GMT", + "Date": "Sun, 16 Jun 2024 09:55:55 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/\"dbea4fb1107d17977ebe332acaa5375dc80760e468bfd2b1cfa62180577cf34c\"", - "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/\"9416a7df936948ae4a9d9fac9b6168dd4dcad4fba0ca4a7aa67f717ccddeff9f\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "public_repo, repo", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4955", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "45", + "X-RateLimit-Remaining": "4367", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "633", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -47,10 +48,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": "A18C:3D6430:E485580:E619717:65EC6447" + "X-GitHub-Request-Id": "C5E0:3E2E9D:6B2C20C:6BFF3EA:666EB6AA" } }, - "uuid": "378b1981-7dcb-4e61-8818-a536d980ac1b", + "uuid": "5f0aa5a6-02d0-4ac0-9e2d-60b13fa2e7f9", "persistent": true, - "insertionIndex": 7 + "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_482_reviews_2121304234_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_482_reviews_2121304234_comments.json new file mode 100644 index 0000000000..353b70e5a8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_482_reviews_2121304234_comments.json @@ -0,0 +1,50 @@ +{ + "id": "03fe67cc-4cee-4f34-9f67-39590f0e8705", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews_2121304234_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews/2121304234/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "9-r_h_g_pulls_482_reviews_2121304234_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 09:55:56 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/\"4f8f144e118dfe44063b888e4fbb42a7f16476784cd45e795a406ea90574fd55\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4366", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "634", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "C5E1:3AF55A:C04266A:C1B5A8D:666EB6AB" + } + }, + "uuid": "03fe67cc-4cee-4f34-9f67-39590f0e8705", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/__files/10-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/__files/10-user.json new file mode 100644 index 0000000000..4a175d1c5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/__files/10-user.json @@ -0,0 +1,46 @@ +{ + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false, + "name": "Maxime Wiewiora", + "company": "@neofacto", + "blog": "", + "location": "France", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", + "private_gists": 0, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, + "collaborators": 0, + "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/reactions/mappings/10-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/mappings/10-user.json new file mode 100644 index 0000000000..2eb8ab0735 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/mappings/10-user.json @@ -0,0 +1,51 @@ +{ + "id": "f8fd38eb-2e49-4cf8-9847-b1dbee854ec8", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "10-user.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 09:29:44 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/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4761", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "239", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "C3DC:2213B1:1F17BE39:1F4D6722:666EB088" + } + }, + "uuid": "f8fd38eb-2e49-4cf8-9847-b1dbee854ec8", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/__files/7-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/__files/7-user.json new file mode 100644 index 0000000000..4a175d1c5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/__files/7-user.json @@ -0,0 +1,46 @@ +{ + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false, + "name": "Maxime Wiewiora", + "company": "@neofacto", + "blog": "", + "location": "France", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", + "private_gists": 0, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, + "collaborators": 0, + "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/refreshFromSearchResults/mappings/7-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/mappings/7-user.json new file mode 100644 index 0000000000..2c1cd076d9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/mappings/7-user.json @@ -0,0 +1,51 @@ +{ + "id": "2275abb7-f86b-45b4-b089-dfc44a0be822", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "7-user.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 09:29:43 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/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4768", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "232", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "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": "C3D4:11EF2B:263DD72:26A21D8:666EB087" + } + }, + "uuid": "2275abb7-f86b-45b4-b089-dfc44a0be822", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/7-organizations_7544739_team_3451996.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/7-o_7_t_3451996.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/7-organizations_7544739_team_3451996.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/7-o_7_t_3451996.json diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/8-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/8-user.json new file mode 100644 index 0000000000..4a175d1c5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/8-user.json @@ -0,0 +1,46 @@ +{ + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false, + "name": "Maxime Wiewiora", + "company": "@neofacto", + "blog": "", + "location": "France", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", + "private_gists": 0, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, + "collaborators": 0, + "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/testPullRequestTeamReviewRequests/mappings/7-organizations_7544739_team_3451996.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-o_7_t_3451996.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-organizations_7544739_team_3451996.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-o_7_t_3451996.json index 8c2ad2d6cc..dc7b617bd3 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-organizations_7544739_team_3451996.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-o_7_t_3451996.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "7-organizations_7544739_team_3451996.json", + "bodyFileName": "7-o_7_t_3451996.json", "headers": { "Server": "GitHub.com", "Date": "Fri, 04 Mar 2022 11:02:10 GMT", diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_475_reviews_1926195017_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/8-user.json similarity index 63% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_475_reviews_1926195017_comments.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/8-user.json index 4b26d0a256..121dac31cc 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_475_reviews_1926195017_comments.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/8-user.json @@ -1,8 +1,8 @@ { - "id": "48e032f1-450a-46d5-a6ab-b9f68aad7d61", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews_1926195017_comments", + "id": "d14da5e5-a21f-4769-a66f-2aee4ad27c06", + "name": "user", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews/1926195017/comments", + "url": "/user", "method": "GET", "headers": { "Accept": { @@ -12,25 +12,27 @@ }, "response": { "status": 200, - "bodyFileName": "8-r_h_g_pulls_475_reviews_1926195017_comments.json", + "bodyFileName": "8-user.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:44 GMT", + "Date": "Sun, 16 Jun 2024 09:29:53 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/\"af087a506bf6858528abb1d501fc83120d8fe9769669e21eee2c4f8e73c04992\"", - "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/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4954", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "46", + "X-RateLimit-Remaining": "4730", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "270", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,10 +42,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": "834A:2F72EC:3F5B750:3FDF0AD:65EC6448" + "X-GitHub-Request-Id": "C402:2AA61C:16FAA640:172485B5:666EB091" } }, - "uuid": "48e032f1-450a-46d5-a6ab-b9f68aad7d61", + "uuid": "d14da5e5-a21f-4769-a66f-2aee4ad27c06", "persistent": true, "insertionIndex": 8 } \ No newline at end of file