From d9c59584ffb380c2fcb442f5922f8e0cae15b60c Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 12 Aug 2023 00:12:41 +0300 Subject: [PATCH 01/17] Split pull request search from issue; extend with filters --- .../github/GHPullRequestSearchBuilder.java | 577 ++++++++++++++++++ .../java/org/kohsuke/github/GHRepository.java | 11 + src/main/java/org/kohsuke/github/GitHub.java | 9 + src/test/java/org/kohsuke/github/AppTest.java | 42 ++ .../org/kohsuke/github/GHRepositoryTest.java | 52 +- .../github/WireMockStatusReporterTest.java | 2 +- ...-06c332bc-761f-4c7e-b4df-0c395d2a685f.json | 132 ++++ ...-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json | 132 ++++ ...-52509c60-5b87-4c52-90f1-63859a9672f4.json | 52 ++ ...-657e2c73-d50a-44a9-8919-44b97f555c38.json | 10 + ...-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json | 10 + ...-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json | 342 +++++++++++ ...-4073e833-9064-4118-96ca-7b3c72d88da2.json | 75 +++ ...-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json | 75 +++ ...-4578672a-1031-4a6e-bb79-243442cbf24f.json | 34 ++ ...-06c332bc-761f-4c7e-b4df-0c395d2a685f.json | 52 ++ ...-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json | 53 ++ ...-52509c60-5b87-4c52-90f1-63859a9672f4.json | 56 ++ ...-657e2c73-d50a-44a9-8919-44b97f555c38.json | 57 ++ ...-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json | 51 ++ ...-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json | 57 ++ ...-3e0cb468-abb9-4f76-8525-b64526e539e4.json | 56 ++ ...-4073e833-9064-4118-96ca-7b3c72d88da2.json | 50 ++ ...-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json | 51 ++ ...-7761add1-0f5f-4425-bed9-abfcf7cebeb0.json | 48 ++ ...-4578672a-1031-4a6e-bb79-243442cbf24f.json | 50 ++ 26 files changed, 2128 insertions(+), 8 deletions(-) create mode 100644 src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-4578672a-1031-4a6e-bb79-243442cbf24f.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-3e0cb468-abb9-4f76-8525-b64526e539e4.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-7761add1-0f5f-4425-bed9-abfcf7cebeb0.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-4578672a-1031-4a6e-bb79-243442cbf24f.json diff --git a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java new file mode 100644 index 0000000000..e51b8cbcaf --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java @@ -0,0 +1,577 @@ +package org.kohsuke.github; + +import java.time.LocalDate; +import java.time.format.DateTimeFormatter; + +import static org.kohsuke.github.GHPullRequestSearchBuilder.ReviewStatus.*; + +/** + * Search for pull requests by main search terms in order to narrow down search results. + * + * @author Konstantin Gromov + * @see Search + * issues & PRs + */ +public class GHPullRequestSearchBuilder extends GHSearchBuilder { + /** + * Instantiates a new GH search builder. + * + * @param root the root + */ + GHPullRequestSearchBuilder(GitHub root) { + super(root, PullRequestSearchResult.class); + } + + /** + * Mentions gh pull request search builder. + * + * @param u the gh user + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder mentions(GHUser u) { + return mentions(u.getLogin()); + } + + /** + * Mentions gh pull request search builder. + * + * @param login the login + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder mentions(String login) { + q("mentions", login); + return this; + } + + /** + * Is open gh pull request search builder. + * + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder isOpen() { + return q("is:open"); + } + + /** + * Is closed gh pull request search builder. + * + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder isClosed() { + return q("is:closed"); + } + + /** + * Is merged gh pull request search builder. + * + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder isMerged() { + return q("is:merged"); + } + + /** + * Is draft gh pull request search builder. + * + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder isDraft() { + return q("draft:true"); + } + + /** + * Repository gh pull request search builder. + * + * @param repository the repository + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder repo(GHRepository repository) { + q("repo", repository.getFullName()); + return this; + } + + /** + * Author gh pull request search builder. + * + * @param user the user as pr author + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder author(GHUser user) { + return this.author(user.getLogin()); + } + + /** + * Username as author gh pull request search builder. + * + * @param username the username as pr author + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder author(String username) { + q("author", username); + return this; + } + + /** + * CreatedByMe gh pull request search builder. + * + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder createdByMe() { + q("author:@me"); + return this; + } + + /** + * Head gh pull request search builder. + * + * @param branch the head branch + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder head(GHBranch branch) { + return this.head(branch.getName()); + } + + /** + * Head gh pull request search builder. + * + * @param branch the head branch + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder head(String branch) { + q("head", branch); + return this; + } + + /** + * Base gh pull request search builder. + * + * @param branch the base branch + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder base(GHBranch branch) { + return this.base(branch.getName()); + } + + /** + * Base gh pull request search builder. + * + * @param branch the base branch + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder base(String branch) { + q("base", branch); + return this; + } + + /** + * Created gh pull request search builder. + * + * @param created the createdAt + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder created(LocalDate created) { + q("created", created.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * CreatedBefore gh pull request search builder. + * + * @param created the createdAt + * @param inclusive whether to include date + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder createdBefore(LocalDate created, boolean inclusive) { + String comparisonSign = inclusive ? "<=" : "<"; + q("created:" + comparisonSign + created.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * CreatedAfter gh pull request search builder. + * + * @param created the createdAt + * @param inclusive whether to include date + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder createdAfter(LocalDate created, boolean inclusive) { + String comparisonSign = inclusive ? ">=" : ">"; + q("created:" + comparisonSign + created.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * Created gh pull request search builder. + * + * @param from the createdAt starting from + * @param to the createdAt ending to + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder created(LocalDate from, LocalDate to) { + String createdRange = from.format(DateTimeFormatter.ISO_DATE) + ".." + to.format(DateTimeFormatter.ISO_DATE); + q("created", createdRange); + return this; + } + + /** + * Merged gh pull request search builder. + * + * @param merged the merged + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder merged(LocalDate merged) { + q("merged", merged.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * MergedBefore gh pull request search builder. + * + * @param merged the merged + * @param inclusive whether to include date + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder mergedBefore(LocalDate merged, boolean inclusive) { + String comparisonSign = inclusive ? "<=" : "<"; + q("merged:" + comparisonSign + merged.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * MergedAfter gh pull request search builder. + * + * @param merged the merged + * @param inclusive whether to include date + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder mergedAfter(LocalDate merged, boolean inclusive) { + String comparisonSign = inclusive ? ">=" : ">"; + q("merged:" + comparisonSign + merged.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * Merged gh pull request search builder. + * + * @param from the merged starting from + * @param to the merged ending to + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder merged(LocalDate from, LocalDate to) { + String mergedRange = from.format(DateTimeFormatter.ISO_DATE) + ".." + to.format(DateTimeFormatter.ISO_DATE); + q("merged", mergedRange); + return this; + } + + /** + * Closed gh pull request search builder. + * + * @param closed the closed + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder closed(LocalDate closed) { + q("closed", closed.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * ClosedBefore gh pull request search builder. + * + * @param closed the closed + * @param inclusive whether to include date + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder closedBefore(LocalDate closed, boolean inclusive) { + String comparisonSign = inclusive ? "<=" : "<"; + q("closed:" + comparisonSign + closed.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * ClosedAfter gh pull request search builder. + * + * @param closed the closed + * @param inclusive whether to include date + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder closedAfter(LocalDate closed, boolean inclusive) { + String comparisonSign = inclusive ? ">=" : ">"; + q("closed:" + comparisonSign + closed.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * Closed gh pull request search builder. + * + * @param from the closed starting from + * @param to the closed ending to + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder closed(LocalDate from, LocalDate to) { + String closedRange = from.format(DateTimeFormatter.ISO_DATE) + ".." + to.format(DateTimeFormatter.ISO_DATE); + q("closed", closedRange); + return this; + } + + /** + * Updated gh pull request search builder. + * + * @param updated the updated + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder updated(LocalDate updated) { + q("updated", updated.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + + /** + * UpdatedBefore gh pull request search builder. + * + * @param updated the updated + * @param inclusive whether to include date + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder updatedBefore(LocalDate updated, boolean inclusive) { + String comparisonSign = inclusive ? "<=" : "<"; + q("updated:" + comparisonSign + updated.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * UpdatedAfter gh pull request search builder. + * + * @param updated the updated + * @param inclusive whether to include date + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder updatedAfter(LocalDate updated, boolean inclusive) { + String comparisonSign = inclusive ? ">=" : ">"; + q("updated:" + comparisonSign + updated.format(DateTimeFormatter.ISO_DATE)); + return this; + } + + /** + * Updated gh pull request search builder. + * + * @param from the updated starting from + * @param to the updated ending to + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder updated(LocalDate from, LocalDate to) { + String updatedRange = from.format(DateTimeFormatter.ISO_DATE) + ".." + to.format(DateTimeFormatter.ISO_DATE); + q("updated", updatedRange); + return this; + } + + /** + * Label gh pull request search builder. + * + * @param label the label + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder label(String label) { + q("label", label); + return this; + } + + /** + * Labels gh pull request search builder. + * + * @param labels the labels + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder inLabels(Iterable labels) { + q("label", String.join(",", labels)); + return this; + } + + /** + * Title like search term + * + * @param title the title to be matched + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder titleLike(String title) { + q(title + " in:title"); + return this; + } + + /** + * Commit gh pull request search builder. + * + * @param sha the commit SHA + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder commit(String sha) { + q("SHA", sha); + return this; + } + + /** + * none review + * + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder notReviewed() { + q("review", ABSENT.getStatus()); + return this; + } + + /** + * required review + * + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder reviewRequired() { + q("review", REQUIRED.getStatus()); + return this; + } + + /** + * approved review + * + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder reviewApproved() { + q("review", APPROVED.getStatus()); + return this; + } + + /** + * rejected review + * + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder reviewRejected() { + q("review", REJECTED.getStatus()); + return this; + } + + public GHPullRequestSearchBuilder reviewedBy(GHUser user) { + return this.reviewedBy(user.getLogin()); + } + + /** + * reviewed by username + * + * @param username the username + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder reviewedBy(String username) { + q("reviewed-by", username); + return this; + } + + /** + * requested for user + * + * @param user the user + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder requestedFor(GHUser user) { + return this.requestedFor(user.getLogin()); + } + + /** + * requested for user + * + * @param username the username + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder requestedFor(String username) { + q("review-requested", username); + return this; + } + + /** + * requested for me + * + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder requestedForMe() { + q("user-review-requested:@me"); + return this; + } + + /** + * Order gh pull request search builder. + * + * @param direction the direction + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder order(GHDirection direction) { + req.with("order", direction); + return this; + } + + /** + * Sort gh pull request search builder. + * + * @param sort the sort + * @return the gh pull request search builder + */ + public GHPullRequestSearchBuilder sort(GHPullRequestSearchBuilder.Sort sort) { + req.with("sort", sort); + return this; + } + + @Override + public GHPullRequestSearchBuilder q(String term) { + super.q(term); + return this; + } + + @Override + public PagedSearchIterable list() { + this.q("is:pr"); + return super.list(); + } + + @Override + protected String getApiUrl() { + return "/search/issues"; + } + + public enum Sort { + + /** The comments. */ + COMMENTS, + /** The created. */ + CREATED, + /** The updated. */ + UPDATED, + /** The relevance. */ + RELEVANCE + + } + enum ReviewStatus { + ABSENT("none"), REQUIRED("required"), APPROVED("approved"), REJECTED("changes_requested"); + + private final String status; + + ReviewStatus(String status) { + this.status = status; + } + public String getStatus() { + return status; + } + + } + + static GHPullRequestSearchBuilder from(GHPullRequestSearchBuilder searchBuilder) { + GHPullRequestSearchBuilder builder = new GHPullRequestSearchBuilder(searchBuilder.root()); + searchBuilder.terms.forEach(builder::q); + return builder; + } + + private static class PullRequestSearchResult extends SearchResult { + + private GHPullRequest[] items; + + @Override + GHPullRequest[] getItems(GitHub root) { + return items; + } + } +} diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index deaf4aeaff..08bc2e8e07 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -1678,6 +1678,17 @@ public GHPullRequestQueryBuilder queryPullRequests() { return new GHPullRequestQueryBuilder(this); } + /** + * Retrieves pull requests according to search terms. + * + * @param search + * {@link GHPullRequestSearchBuilder} + * @return pull requests as the paged iterable + */ + public PagedSearchIterable searchPullRequests(GHPullRequestSearchBuilder search) { + return GHPullRequestSearchBuilder.from(search).repo(this).list(); + } + /** * Creates a new pull request. * diff --git a/src/main/java/org/kohsuke/github/GitHub.java b/src/main/java/org/kohsuke/github/GitHub.java index ba33462b3a..e0d01bcc6f 100644 --- a/src/main/java/org/kohsuke/github/GitHub.java +++ b/src/main/java/org/kohsuke/github/GitHub.java @@ -1337,6 +1337,15 @@ public GHIssueSearchBuilder searchIssues() { return new GHIssueSearchBuilder(this); } + /** + * Search for pull requests. + * + * @return gh pull request search builder + */ + public GHPullRequestSearchBuilder searchPullRequests() { + return new GHPullRequestSearchBuilder(this); + } + /** * Search users. * diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java index f2d68fe7fb..ba77e19557 100755 --- a/src/test/java/org/kohsuke/github/AppTest.java +++ b/src/test/java/org/kohsuke/github/AppTest.java @@ -16,6 +16,8 @@ import java.io.InputStream; import java.net.URL; import java.nio.charset.StandardCharsets; +import java.time.LocalDate; +import java.time.ZoneId; import java.util.*; import java.util.Map.Entry; import java.util.stream.Collectors; @@ -1429,6 +1431,46 @@ public void testIssueSearch() throws IOException { } } + @Test + public void testPullRequestSearch() throws Exception { + GHRepository repository = getTestRepository(); + String mainHead = repository.getRef("heads/main").getObject().getSha(); + GHRef devBranch = repository.createRef("refs/heads/kgromov-test", mainHead); + repository.createContent() + .content("Empty content") + .message("test search") + .path(devBranch.getRef()) + .branch(devBranch.getRef()) + .commit(); + LocalDate createdDate = LocalDate.now(); + GHPullRequest newPR = repository + .createPullRequest("New PR", devBranch.getRef(), "refs/heads/main", "Hello, merged PR"); + Thread.sleep(1000); + List pullRequests = gitHub.searchPullRequests() + .createdByMe() + .isOpen() + .created(createdDate, LocalDate.now()) + .list() + .toList(); + assertThat(pullRequests.size(), greaterThan(0)); + for (GHPullRequest pullRequest : pullRequests) { + assertThat(pullRequest.getTitle(), is("New PR")); + assertThat(pullRequest.getUser().getLogin(), is(repository.getOwner().getLogin())); + assertThat(pullRequest.getState(), is(GHIssueState.OPEN)); + LocalDate createdAt = pullRequest.getCreatedAt().toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); + assertThat(createdAt, greaterThanOrEqualTo(createdDate)); + } + + LocalDate newPrCreatedAt = newPR.getCreatedAt().toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); + int totalCount = gitHub.searchPullRequests() + .createdByMe() + .isOpen() + .createdAfter(newPrCreatedAt, false) + .list() + .getTotalCount(); + assertThat(totalCount, is(0)); + } + /** * Test readme. * diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java index d9bd5165d7..6d56e01fea 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java @@ -13,18 +13,16 @@ import java.io.IOException; import java.io.InputStream; import java.net.URL; -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; +import java.time.LocalDate; +import java.time.ZoneId; +import java.util.*; import java.util.stream.Collectors; import static org.hamcrest.Matchers.*; import static org.hamcrest.core.IsInstanceOf.instanceOf; import static org.junit.Assert.assertThrows; -import static org.kohsuke.github.GHVerification.Reason.*; +import static org.kohsuke.github.GHVerification.Reason.GPGVERIFY_ERROR; +import static org.kohsuke.github.GHVerification.Reason.UNKNOWN_SIGNATURE_TYPE; // TODO: Auto-generated Javadoc /** @@ -1657,4 +1655,44 @@ public void cannotRetrievePermissionMaintainUser() throws IOException { GHPermissionType permission = r.getPermission("alecharp"); assertThat(permission.toString(), is("UNKNOWN")); } + + @Test + public void testSearchPullRequests() throws Exception { + GHRepository repository = getTempRepository(); + String mainHead = repository.getRef("heads/main").getObject().getSha(); + GHRef devBranch = repository.createRef("refs/heads/dev", mainHead); + repository.createContent() + .content("Empty content") + .message("test search") + .path(devBranch.getRef()) + .branch(devBranch.getRef()) + .commit(); + + GHPullRequest ghPullRequest = repository + .createPullRequest("Temp PR", devBranch.getRef(), "refs/heads/main", "Hello, merged PR"); + ghPullRequest.merge("Merged test PR"); + Thread.sleep(1000); + LocalDate from = LocalDate.parse("2023-08-01"); + LocalDate to = LocalDate.now(); + GHPullRequestSearchBuilder searchBuilder = gitHub.searchPullRequests() + .createdByMe() + .isMerged() + .merged(from, to) + .sort(GHPullRequestSearchBuilder.Sort.CREATED); + PagedSearchIterable pullRequests = repository.searchPullRequests(searchBuilder); + assertThat(pullRequests.getTotalCount(), greaterThan(0)); + for (GHPullRequest pullRequest : pullRequests) { + assertThat(pullRequest.getTitle(), is("Temp PR")); + assertThat(pullRequest.getRepository(), is(repository)); + assertThat(pullRequest.getUser().getLogin(), is(repository.getOwner().getLogin())); + assertThat(pullRequest.getState(), is(GHIssueState.CLOSED)); + LocalDate closedAt = pullRequest.getClosedAt().toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); + assertThat(closedAt, greaterThanOrEqualTo(from)); + assertThat(closedAt, lessThanOrEqualTo(to)); + } + + searchBuilder = gitHub.searchPullRequests().createdByMe().isOpen().createdAfter(from, true); + pullRequests = repository.searchPullRequests(searchBuilder); + assertThat(pullRequests.getTotalCount(), is(0)); + } } diff --git a/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java b/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java index f2033f5ae2..07eab6a2f0 100644 --- a/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java +++ b/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java @@ -147,7 +147,7 @@ public void BasicBehaviors_whenProxying() throws Exception { assertThat(e, Matchers.instanceOf(GHFileNotFoundException.class)); assertThat(e.getMessage(), containsString( - "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#get-a-repository\"}")); + "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/repos/repos#get-a-repository\"}")); } /** diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json new file mode 100644 index 0000000000..b22f9f68cb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json @@ -0,0 +1,132 @@ +{ + "id": 677534369, + "node_id": "R_kgDOKGJaoQ", + "name": "temp-testSearchPullRequests", + "full_name": "kgromov/temp-testSearchPullRequests", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "description": "A test repository for testing the github-api project: temp-testSearchPullRequests", + "fork": false, + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "forks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/forks", + "keys_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/teams", + "hooks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/events", + "assignees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/tags", + "blobs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscription", + "commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/merges", + "archive_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/downloads", + "issues_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", + "created_at": "2023-08-11T20:36:47Z", + "updated_at": "2023-08-11T20:36:48Z", + "pushed_at": "2023-08-11T20:36:55Z", + "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", + "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", + "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", + "svn_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "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", + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + } + }, + "network_count": 0, + "subscribers_count": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json new file mode 100644 index 0000000000..750afa1818 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json @@ -0,0 +1,132 @@ +{ + "id": 677534369, + "node_id": "R_kgDOKGJaoQ", + "name": "temp-testSearchPullRequests", + "full_name": "kgromov/temp-testSearchPullRequests", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "description": "A test repository for testing the github-api project: temp-testSearchPullRequests", + "fork": false, + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "forks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/forks", + "keys_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/teams", + "hooks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/events", + "assignees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/tags", + "blobs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscription", + "commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/merges", + "archive_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/downloads", + "issues_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", + "created_at": "2023-08-11T20:36:47Z", + "updated_at": "2023-08-11T20:36:48Z", + "pushed_at": "2023-08-11T20:36:48Z", + "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", + "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", + "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", + "svn_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "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", + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + } + }, + "network_count": 0, + "subscribers_count": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json new file mode 100644 index 0000000000..22c889a9ec --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json @@ -0,0 +1,52 @@ +{ + "content": { + "name": "dev", + "path": "refs/heads/dev", + "sha": "c6efc981d368b755bff4a1059fc3b43a78e62f88", + "size": 13, + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/dev?ref=refs/heads/dev", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/blob/refs/heads/dev/refs/heads/dev", + "git_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs/c6efc981d368b755bff4a1059fc3b43a78e62f88", + "download_url": "https://raw.githubusercontent.com/kgromov/temp-testSearchPullRequests/refs/heads/dev/refs/heads/dev", + "type": "file", + "_links": { + "self": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/dev?ref=refs/heads/dev", + "git": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs/c6efc981d368b755bff4a1059fc3b43a78e62f88", + "html": "https://github.com/kgromov/temp-testSearchPullRequests/blob/refs/heads/dev/refs/heads/dev" + } + }, + "commit": { + "sha": "80a06f153879c7fddd30c594c24fd2b7668a4364", + "node_id": "C_kwDOKGJaodoAKDgwYTA2ZjE1Mzg3OWM3ZmRkZDMwYzU5NGMyNGZkMmI3NjY4YTQzNjQ", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/80a06f153879c7fddd30c594c24fd2b7668a4364", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/80a06f153879c7fddd30c594c24fd2b7668a4364", + "author": { + "name": "Konstantin Gromov", + "email": "rocky89@ukr.net", + "date": "2023-08-11T20:36:53Z" + }, + "committer": { + "name": "Konstantin Gromov", + "email": "rocky89@ukr.net", + "date": "2023-08-11T20:36:53Z" + }, + "tree": { + "sha": "a9bfff1d1682287382f133ee27f9c2bb5efcfb42", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees/a9bfff1d1682287382f133ee27f9c2bb5efcfb42" + }, + "message": "test search", + "parents": [ + { + "sha": "de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json new file mode 100644 index 0000000000..c398c08634 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/dev", + "node_id": "REF_kwDOKGJaoa5yZWZzL2hlYWRzL2Rldg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/dev", + "object": { + "sha": "de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351", + "type": "commit", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json new file mode 100644 index 0000000000..0f697f28c5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/main", + "node_id": "REF_kwDOKGJaoa9yZWZzL2hlYWRzL21haW4", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/main", + "object": { + "sha": "de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351", + "type": "commit", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json new file mode 100644 index 0000000000..aec57c3a9f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json @@ -0,0 +1,342 @@ +{ + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "id": 1472323848, + "node_id": "PR_kwDOKGJaoc5XweEI", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "issue_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "number": 1, + "state": "open", + "locked": false, + "title": "Temp PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "body": "Hello, merged PR", + "created_at": "2023-08-11T20:36:54Z", + "updated_at": "2023-08-11T20:36:54Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "draft": false, + "commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/commits", + "review_comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/comments", + "review_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/80a06f153879c7fddd30c594c24fd2b7668a4364", + "head": { + "label": "kgromov:dev", + "ref": "dev", + "sha": "80a06f153879c7fddd30c594c24fd2b7668a4364", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 677534369, + "node_id": "R_kgDOKGJaoQ", + "name": "temp-testSearchPullRequests", + "full_name": "kgromov/temp-testSearchPullRequests", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "description": "A test repository for testing the github-api project: temp-testSearchPullRequests", + "fork": false, + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "forks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/forks", + "keys_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/teams", + "hooks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/events", + "assignees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/tags", + "blobs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscription", + "commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/merges", + "archive_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/downloads", + "issues_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", + "created_at": "2023-08-11T20:36:47Z", + "updated_at": "2023-08-11T20:36:48Z", + "pushed_at": "2023-08-11T20:36:53Z", + "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", + "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", + "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", + "svn_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "main" + } + }, + "base": { + "label": "kgromov:main", + "ref": "main", + "sha": "de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 677534369, + "node_id": "R_kgDOKGJaoQ", + "name": "temp-testSearchPullRequests", + "full_name": "kgromov/temp-testSearchPullRequests", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "description": "A test repository for testing the github-api project: temp-testSearchPullRequests", + "fork": false, + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "forks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/forks", + "keys_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/teams", + "hooks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/events", + "assignees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/tags", + "blobs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscription", + "commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/merges", + "archive_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/downloads", + "issues_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", + "created_at": "2023-08-11T20:36:47Z", + "updated_at": "2023-08-11T20:36:48Z", + "pushed_at": "2023-08-11T20:36:53Z", + "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", + "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", + "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", + "svn_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "main" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1" + }, + "html": { + "href": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1" + }, + "issue": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1" + }, + "comments": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/80a06f153879c7fddd30c594c24fd2b7668a4364" + } + }, + "author_association": "OWNER", + "auto_merge": null, + "active_lock_reason": null, + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 0, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json new file mode 100644 index 0000000000..41d4f6750b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json @@ -0,0 +1,75 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1847398784, + "node_id": "PR_kwDOKGJaoc5XweEI", + "number": 1, + "title": "Temp PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [], + "state": "closed", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-08-11T20:36:54Z", + "updated_at": "2023-08-11T20:36:55Z", + "closed_at": "2023-08-11T20:36:55Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": "2023-08-11T20:36:55Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json new file mode 100644 index 0000000000..41d4f6750b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json @@ -0,0 +1,75 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1847398784, + "node_id": "PR_kwDOKGJaoc5XweEI", + "number": 1, + "title": "Temp PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [], + "state": "closed", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-08-11T20:36:54Z", + "updated_at": "2023-08-11T20:36:55Z", + "closed_at": "2023-08-11T20:36:55Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": "2023-08-11T20:36:55Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-4578672a-1031-4a6e-bb79-243442cbf24f.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-4578672a-1031-4a6e-bb79-243442cbf24f.json new file mode 100644 index 0000000000..86cf419395 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-4578672a-1031-4a6e-bb79-243442cbf24f.json @@ -0,0 +1,34 @@ +{ + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false, + "name": "Konstantin Gromov", + "company": null, + "blog": "https://www.linkedin.com/in/konstantin-gromov-52466359/", + "location": "Odessa", + "email": "konst.gromov@gmail.com", + "hireable": null, + "bio": "Software developer at EG", + "twitter_username": null, + "public_repos": 91, + "public_gists": 11, + "followers": 0, + "following": 6, + "created_at": "2014-10-22T14:20:36Z", + "updated_at": "2023-07-28T20:37:46Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json new file mode 100644 index 0000000000..f7bbc799eb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json @@ -0,0 +1,52 @@ +{ + "id": "06c332bc-761f-4c7e-b4df-0c395d2a685f", + "name": "repos_kgromov_temp-testsearchpullrequests", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36:58 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/\"776398db4540bd90140a837b11433ed3a10c92e4fb54dada38a1807cdb88e888\"", + "Last-Modified": "Fri, 11 Aug 2023 20:36:48 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4926", + "X-RateLimit-Reset": "1691788130", + "X-RateLimit-Used": "74", + "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": "C74C:E1BB:FF2C08E:1015D2DE:64D69BEA" + } + }, + "uuid": "06c332bc-761f-4c7e-b4df-0c395d2a685f", + "persistent": true, + "scenarioName": "scenario-1-repos-kgromov-temp-testSearchPullRequests", + "requiredScenarioState": "scenario-1-repos-kgromov-temp-testSearchPullRequests-2", + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json new file mode 100644 index 0000000000..1ecd5e25c9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json @@ -0,0 +1,53 @@ +{ + "id": "9db6ffe2-451f-43b2-9f20-3cbe9794bfae", + "name": "repos_kgromov_temp-testsearchpullrequests", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36: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/\"7ec3701c8756035aa14970b2b8e89083095bbcbf6dc44620191a8cd5352fd62f\"", + "Last-Modified": "Fri, 11 Aug 2023 20:36:48 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4932", + "X-RateLimit-Reset": "1691788130", + "X-RateLimit-Used": "68", + "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": "C744:F81C:1AC70C4:1B076BF:64D69BE4" + } + }, + "uuid": "9db6ffe2-451f-43b2-9f20-3cbe9794bfae", + "persistent": true, + "scenarioName": "scenario-1-repos-kgromov-temp-testSearchPullRequests", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-kgromov-temp-testSearchPullRequests-2", + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json new file mode 100644 index 0000000000..640adff10d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json @@ -0,0 +1,56 @@ +{ + "id": "52509c60-5b87-4c52-90f1-63859a9672f4", + "name": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/dev", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"refs/heads/dev\",\"message\":\"test search\",\"branch\":\"refs/heads/dev\",\"content\":\"RW1wdHkgY29udGVudA==\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36: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": "\"3d5c64cdac6a6407140b71525fc650468e8a97fe3563a067e213d40751f834aa\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4929", + "X-RateLimit-Reset": "1691788130", + "X-RateLimit-Used": "71", + "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": "C747:12B3E:2B018CF:2B62B63:64D69BE5" + } + }, + "uuid": "52509c60-5b87-4c52-90f1-63859a9672f4", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json new file mode 100644 index 0000000000..e37a8684e5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json @@ -0,0 +1,57 @@ +{ + "id": "657e2c73-d50a-44a9-8919-44b97f555c38", + "name": "repos_kgromov_temp-testsearchpullrequests_git_refs", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/git/refs", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/dev\",\"sha\":\"de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36: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": "\"d62ccbfabec60fa61e358576a2ec615e183bd5266092b4fb7494def58f743cc0\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4930", + "X-RateLimit-Reset": "1691788130", + "X-RateLimit-Used": "70", + "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": "C746:E1BB:FF2B01A:1015C224:64D69BE4", + "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/dev" + } + }, + "uuid": "657e2c73-d50a-44a9-8919-44b97f555c38", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json new file mode 100644 index 0000000000..811123fbdd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json @@ -0,0 +1,51 @@ +{ + "id": "ddbdf200-b1b1-4e5e-9274-03b5fd72e104", + "name": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/main", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36: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/\"9e181f49c0d601a5ecd0d42788180afe3b7a8728d5a5271921d96e8eb3e5a594\"", + "Last-Modified": "Fri, 11 Aug 2023 20:36:48 GMT", + "X-Poll-Interval": "300", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4931", + "X-RateLimit-Reset": "1691788130", + "X-RateLimit-Used": "69", + "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": "C745:E1BB:FF2AEEF:1015C118:64D69BE4" + } + }, + "uuid": "ddbdf200-b1b1-4e5e-9274-03b5fd72e104", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json new file mode 100644 index 0000000000..6ad76695c9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json @@ -0,0 +1,57 @@ +{ + "id": "ebe0248c-9c5d-40db-978d-359f3aac9fdd", + "name": "repos_kgromov_temp-testsearchpullrequests_pulls", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/pulls", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.shadow-cat-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"refs/heads/dev\",\"draft\":false,\"maintainer_can_modify\":true,\"title\":\"Temp PR\",\"body\":\"Hello, merged PR\",\"base\":\"refs/heads/main\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36: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": "\"058a77c131808038a66ed032fd75e826fa43046d81c6e7715eefd82bc4661555\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "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": "4928", + "X-RateLimit-Reset": "1691788130", + "X-RateLimit-Used": "72", + "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": "C748:12B3E:2B01A15:2B62CB4:64D69BE5", + "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1" + } + }, + "uuid": "ebe0248c-9c5d-40db-978d-359f3aac9fdd", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-3e0cb468-abb9-4f76-8525-b64526e539e4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-3e0cb468-abb9-4f76-8525-b64526e539e4.json new file mode 100644 index 0000000000..0912a643df --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-3e0cb468-abb9-4f76-8525-b64526e539e4.json @@ -0,0 +1,56 @@ +{ + "id": "3e0cb468-abb9-4f76-8525-b64526e539e4", + "name": "repos_kgromov_temp-testsearchpullrequests_pulls_1_merge", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/pulls/1/merge", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"commit_message\":\"Merged test PR\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 200, + "body": "{\"sha\":\"8a94734d6838441a8217b96fd39c3447e1e0d33f\",\"merged\":true,\"message\":\"Pull Request successfully merged\"}", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36: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/\"9a902be961129ef0626f677b3a8d7ddd17deb44c2a088c86dcd1b69ab556636d\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4927", + "X-RateLimit-Reset": "1691788130", + "X-RateLimit-Used": "73", + "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": "C749:F85B:13134015:133EE8CA:64D69BE7" + } + }, + "uuid": "3e0cb468-abb9-4f76-8525-b64526e539e4", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json new file mode 100644 index 0000000000..03f3cf0b2b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json @@ -0,0 +1,50 @@ +{ + "id": "4073e833-9064-4118-96ca-7b3c72d88da2", + "name": "search_issues", + "request": { + "url": "/search/issues?q=author%3A%40me+is%3Amerged+merged%3A2023-08-01..2023-08-11+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "28", + "X-RateLimit-Reset": "1691786277", + "X-RateLimit-Used": "2", + "X-RateLimit-Resource": "search", + "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": "C74B:9021:5A732F0:5B4D2DB:64D69BEA" + } + }, + "uuid": "4073e833-9064-4118-96ca-7b3c72d88da2", + "persistent": true, + "scenarioName": "scenario-2-search-issues", + "requiredScenarioState": "scenario-2-search-issues-2", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json new file mode 100644 index 0000000000..c58aa24680 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json @@ -0,0 +1,51 @@ +{ + "id": "4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807", + "name": "search_issues", + "request": { + "url": "/search/issues?q=author%3A%40me+is%3Amerged+merged%3A2023-08-01..2023-08-11+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36:57 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "29", + "X-RateLimit-Reset": "1691786277", + "X-RateLimit-Used": "1", + "X-RateLimit-Resource": "search", + "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": "C74A:6CA9:BF38488:C0ED99F:64D69BE9" + } + }, + "uuid": "4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807", + "persistent": true, + "scenarioName": "scenario-2-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-search-issues-2", + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-7761add1-0f5f-4425-bed9-abfcf7cebeb0.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-7761add1-0f5f-4425-bed9-abfcf7cebeb0.json new file mode 100644 index 0000000000..65ee46f3fe --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-7761add1-0f5f-4425-bed9-abfcf7cebeb0.json @@ -0,0 +1,48 @@ +{ + "id": "7761add1-0f5f-4425-bed9-abfcf7cebeb0", + "name": "search_issues", + "request": { + "url": "/search/issues?q=author%3A%40me+is%3Aopen+created%3A%3E%3D2023-08-01+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "body": "{\"total_count\":0,\"incomplete_results\":false,\"items\":[]}", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "27", + "X-RateLimit-Reset": "1691786277", + "X-RateLimit-Used": "3", + "X-RateLimit-Resource": "search", + "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": "C74D:F81C:1AC8164:1B087A3:64D69BEB" + } + }, + "uuid": "7761add1-0f5f-4425-bed9-abfcf7cebeb0", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-4578672a-1031-4a6e-bb79-243442cbf24f.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-4578672a-1031-4a6e-bb79-243442cbf24f.json new file mode 100644 index 0000000000..c01bb440f3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-4578672a-1031-4a6e-bb79-243442cbf24f.json @@ -0,0 +1,50 @@ +{ + "id": "4578672a-1031-4a6e-bb79-243442cbf24f", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "user-4578672a-1031-4a6e-bb79-243442cbf24f.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 11 Aug 2023 20:36:47 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/\"156b3f82e70bfef93cf9c8b4f2d9e3b4561039992455ddf4588cb78dd564d24b\"", + "Last-Modified": "Fri, 28 Jul 2023 20:37:46 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4935", + "X-RateLimit-Reset": "1691788130", + "X-RateLimit-Used": "65", + "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": "C742:C82B:5510377:55DEAEB:64D69BDE" + } + }, + "uuid": "4578672a-1031-4a6e-bb79-243442cbf24f", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file From e145af8b03ba4a32fe4a1a302f788125d4f84c7c Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Wed, 16 Aug 2023 14:47:16 -0700 Subject: [PATCH 02/17] Apply spotless updates --- .../github/GHPullRequestSearchBuilder.java | 142 ++++++++++++------ 1 file changed, 94 insertions(+), 48 deletions(-) diff --git a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java index e51b8cbcaf..20e23c40f2 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java @@ -16,7 +16,8 @@ public class GHPullRequestSearchBuilder extends GHSearchBuilder { /** * Instantiates a new GH search builder. * - * @param root the root + * @param root + * the root */ GHPullRequestSearchBuilder(GitHub root) { super(root, PullRequestSearchResult.class); @@ -25,7 +26,8 @@ public class GHPullRequestSearchBuilder extends GHSearchBuilder { /** * Mentions gh pull request search builder. * - * @param u the gh user + * @param u + * the gh user * @return the gh pull request search builder */ public GHPullRequestSearchBuilder mentions(GHUser u) { @@ -35,7 +37,8 @@ public GHPullRequestSearchBuilder mentions(GHUser u) { /** * Mentions gh pull request search builder. * - * @param login the login + * @param login + * the login * @return the gh pull request search builder */ public GHPullRequestSearchBuilder mentions(String login) { @@ -82,7 +85,8 @@ public GHPullRequestSearchBuilder isDraft() { /** * Repository gh pull request search builder. * - * @param repository the repository + * @param repository + * the repository * @return the gh pull request search builder */ public GHPullRequestSearchBuilder repo(GHRepository repository) { @@ -93,7 +97,8 @@ public GHPullRequestSearchBuilder repo(GHRepository repository) { /** * Author gh pull request search builder. * - * @param user the user as pr author + * @param user + * the user as pr author * @return the gh pull request search builder */ public GHPullRequestSearchBuilder author(GHUser user) { @@ -103,7 +108,8 @@ public GHPullRequestSearchBuilder author(GHUser user) { /** * Username as author gh pull request search builder. * - * @param username the username as pr author + * @param username + * the username as pr author * @return the gh pull request search builder */ public GHPullRequestSearchBuilder author(String username) { @@ -124,7 +130,8 @@ public GHPullRequestSearchBuilder createdByMe() { /** * Head gh pull request search builder. * - * @param branch the head branch + * @param branch + * the head branch * @return the gh pull request search builder */ public GHPullRequestSearchBuilder head(GHBranch branch) { @@ -134,7 +141,8 @@ public GHPullRequestSearchBuilder head(GHBranch branch) { /** * Head gh pull request search builder. * - * @param branch the head branch + * @param branch + * the head branch * @return the gh pull request search builder */ public GHPullRequestSearchBuilder head(String branch) { @@ -145,7 +153,8 @@ public GHPullRequestSearchBuilder head(String branch) { /** * Base gh pull request search builder. * - * @param branch the base branch + * @param branch + * the base branch * @return the gh pull request search builder */ public GHPullRequestSearchBuilder base(GHBranch branch) { @@ -155,7 +164,8 @@ public GHPullRequestSearchBuilder base(GHBranch branch) { /** * Base gh pull request search builder. * - * @param branch the base branch + * @param branch + * the base branch * @return the gh pull request search builder */ public GHPullRequestSearchBuilder base(String branch) { @@ -166,7 +176,8 @@ public GHPullRequestSearchBuilder base(String branch) { /** * Created gh pull request search builder. * - * @param created the createdAt + * @param created + * the createdAt * @return the gh pull request search builder */ public GHPullRequestSearchBuilder created(LocalDate created) { @@ -177,8 +188,10 @@ public GHPullRequestSearchBuilder created(LocalDate created) { /** * CreatedBefore gh pull request search builder. * - * @param created the createdAt - * @param inclusive whether to include date + * @param created + * the createdAt + * @param inclusive + * whether to include date * @return the gh pull request search builder */ public GHPullRequestSearchBuilder createdBefore(LocalDate created, boolean inclusive) { @@ -190,8 +203,10 @@ public GHPullRequestSearchBuilder createdBefore(LocalDate created, boolean inclu /** * CreatedAfter gh pull request search builder. * - * @param created the createdAt - * @param inclusive whether to include date + * @param created + * the createdAt + * @param inclusive + * whether to include date * @return the gh pull request search builder */ public GHPullRequestSearchBuilder createdAfter(LocalDate created, boolean inclusive) { @@ -203,8 +218,10 @@ public GHPullRequestSearchBuilder createdAfter(LocalDate created, boolean inclus /** * Created gh pull request search builder. * - * @param from the createdAt starting from - * @param to the createdAt ending to + * @param from + * the createdAt starting from + * @param to + * the createdAt ending to * @return the gh pull request search builder */ public GHPullRequestSearchBuilder created(LocalDate from, LocalDate to) { @@ -216,7 +233,8 @@ public GHPullRequestSearchBuilder created(LocalDate from, LocalDate to) { /** * Merged gh pull request search builder. * - * @param merged the merged + * @param merged + * the merged * @return the gh pull request search builder */ public GHPullRequestSearchBuilder merged(LocalDate merged) { @@ -227,8 +245,10 @@ public GHPullRequestSearchBuilder merged(LocalDate merged) { /** * MergedBefore gh pull request search builder. * - * @param merged the merged - * @param inclusive whether to include date + * @param merged + * the merged + * @param inclusive + * whether to include date * @return the gh pull request search builder */ public GHPullRequestSearchBuilder mergedBefore(LocalDate merged, boolean inclusive) { @@ -240,8 +260,10 @@ public GHPullRequestSearchBuilder mergedBefore(LocalDate merged, boolean inclusi /** * MergedAfter gh pull request search builder. * - * @param merged the merged - * @param inclusive whether to include date + * @param merged + * the merged + * @param inclusive + * whether to include date * @return the gh pull request search builder */ public GHPullRequestSearchBuilder mergedAfter(LocalDate merged, boolean inclusive) { @@ -253,8 +275,10 @@ public GHPullRequestSearchBuilder mergedAfter(LocalDate merged, boolean inclusiv /** * Merged gh pull request search builder. * - * @param from the merged starting from - * @param to the merged ending to + * @param from + * the merged starting from + * @param to + * the merged ending to * @return the gh pull request search builder */ public GHPullRequestSearchBuilder merged(LocalDate from, LocalDate to) { @@ -266,7 +290,8 @@ public GHPullRequestSearchBuilder merged(LocalDate from, LocalDate to) { /** * Closed gh pull request search builder. * - * @param closed the closed + * @param closed + * the closed * @return the gh pull request search builder */ public GHPullRequestSearchBuilder closed(LocalDate closed) { @@ -277,8 +302,10 @@ public GHPullRequestSearchBuilder closed(LocalDate closed) { /** * ClosedBefore gh pull request search builder. * - * @param closed the closed - * @param inclusive whether to include date + * @param closed + * the closed + * @param inclusive + * whether to include date * @return the gh pull request search builder */ public GHPullRequestSearchBuilder closedBefore(LocalDate closed, boolean inclusive) { @@ -290,8 +317,10 @@ public GHPullRequestSearchBuilder closedBefore(LocalDate closed, boolean inclusi /** * ClosedAfter gh pull request search builder. * - * @param closed the closed - * @param inclusive whether to include date + * @param closed + * the closed + * @param inclusive + * whether to include date * @return the gh pull request search builder */ public GHPullRequestSearchBuilder closedAfter(LocalDate closed, boolean inclusive) { @@ -303,8 +332,10 @@ public GHPullRequestSearchBuilder closedAfter(LocalDate closed, boolean inclusiv /** * Closed gh pull request search builder. * - * @param from the closed starting from - * @param to the closed ending to + * @param from + * the closed starting from + * @param to + * the closed ending to * @return the gh pull request search builder */ public GHPullRequestSearchBuilder closed(LocalDate from, LocalDate to) { @@ -316,7 +347,8 @@ public GHPullRequestSearchBuilder closed(LocalDate from, LocalDate to) { /** * Updated gh pull request search builder. * - * @param updated the updated + * @param updated + * the updated * @return the gh pull request search builder */ public GHPullRequestSearchBuilder updated(LocalDate updated) { @@ -324,12 +356,13 @@ public GHPullRequestSearchBuilder updated(LocalDate updated) { return this; } - /** * UpdatedBefore gh pull request search builder. * - * @param updated the updated - * @param inclusive whether to include date + * @param updated + * the updated + * @param inclusive + * whether to include date * @return the gh pull request search builder */ public GHPullRequestSearchBuilder updatedBefore(LocalDate updated, boolean inclusive) { @@ -341,8 +374,10 @@ public GHPullRequestSearchBuilder updatedBefore(LocalDate updated, boolean inclu /** * UpdatedAfter gh pull request search builder. * - * @param updated the updated - * @param inclusive whether to include date + * @param updated + * the updated + * @param inclusive + * whether to include date * @return the gh pull request search builder */ public GHPullRequestSearchBuilder updatedAfter(LocalDate updated, boolean inclusive) { @@ -354,8 +389,10 @@ public GHPullRequestSearchBuilder updatedAfter(LocalDate updated, boolean inclus /** * Updated gh pull request search builder. * - * @param from the updated starting from - * @param to the updated ending to + * @param from + * the updated starting from + * @param to + * the updated ending to * @return the gh pull request search builder */ public GHPullRequestSearchBuilder updated(LocalDate from, LocalDate to) { @@ -367,7 +404,8 @@ public GHPullRequestSearchBuilder updated(LocalDate from, LocalDate to) { /** * Label gh pull request search builder. * - * @param label the label + * @param label + * the label * @return the gh pull request search builder */ public GHPullRequestSearchBuilder label(String label) { @@ -378,7 +416,8 @@ public GHPullRequestSearchBuilder label(String label) { /** * Labels gh pull request search builder. * - * @param labels the labels + * @param labels + * the labels * @return the gh pull request search builder */ public GHPullRequestSearchBuilder inLabels(Iterable labels) { @@ -389,7 +428,8 @@ public GHPullRequestSearchBuilder inLabels(Iterable labels) { /** * Title like search term * - * @param title the title to be matched + * @param title + * the title to be matched * @return the gh pull request search builder */ public GHPullRequestSearchBuilder titleLike(String title) { @@ -400,7 +440,8 @@ public GHPullRequestSearchBuilder titleLike(String title) { /** * Commit gh pull request search builder. * - * @param sha the commit SHA + * @param sha + * the commit SHA * @return the gh pull request search builder */ public GHPullRequestSearchBuilder commit(String sha) { @@ -455,7 +496,8 @@ public GHPullRequestSearchBuilder reviewedBy(GHUser user) { /** * reviewed by username * - * @param username the username + * @param username + * the username * @return the gh pull request search builder */ public GHPullRequestSearchBuilder reviewedBy(String username) { @@ -466,7 +508,8 @@ public GHPullRequestSearchBuilder reviewedBy(String username) { /** * requested for user * - * @param user the user + * @param user + * the user * @return the gh pull request search builder */ public GHPullRequestSearchBuilder requestedFor(GHUser user) { @@ -476,7 +519,8 @@ public GHPullRequestSearchBuilder requestedFor(GHUser user) { /** * requested for user * - * @param username the username + * @param username + * the username * @return the gh pull request search builder */ public GHPullRequestSearchBuilder requestedFor(String username) { @@ -497,7 +541,8 @@ public GHPullRequestSearchBuilder requestedForMe() { /** * Order gh pull request search builder. * - * @param direction the direction + * @param direction + * the direction * @return the gh pull request search builder */ public GHPullRequestSearchBuilder order(GHDirection direction) { @@ -508,7 +553,8 @@ public GHPullRequestSearchBuilder order(GHDirection direction) { /** * Sort gh pull request search builder. * - * @param sort the sort + * @param sort + * the sort * @return the gh pull request search builder */ public GHPullRequestSearchBuilder sort(GHPullRequestSearchBuilder.Sort sort) { From bdc3866c67a787d9ef0a517d3bf1236683b1d43c Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Wed, 16 Aug 2023 14:54:54 -0700 Subject: [PATCH 03/17] Apply suggestions from code review --- .../org/kohsuke/github/GHPullRequestSearchBuilder.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java index 20e23c40f2..ad3c878494 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java @@ -489,6 +489,13 @@ public GHPullRequestSearchBuilder reviewRejected() { return this; } + /** + * reviewed by user + * + * @param user + * the user + * @return the gh pull request search builder + */ public GHPullRequestSearchBuilder reviewedBy(GHUser user) { return this.reviewedBy(user.getLogin()); } @@ -579,6 +586,9 @@ protected String getApiUrl() { return "/search/issues"; } + /** + * The sort order values. + */ public enum Sort { /** The comments. */ From 4d02a3c6387c5b01462e2f747d96b456a533641b Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Thu, 17 Aug 2023 11:00:18 -0700 Subject: [PATCH 04/17] Update src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java --- .../java/org/kohsuke/github/GHPullRequestSearchBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java index ad3c878494..bf45a52061 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java @@ -10,7 +10,7 @@ * * @author Konstantin Gromov * @see Search - * issues & PRs + * issues and PRs */ public class GHPullRequestSearchBuilder extends GHSearchBuilder { /** From 321b6ead86d6349f8be8de70da96444985dd469b Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Thu, 17 Aug 2023 11:06:52 -0700 Subject: [PATCH 05/17] Update src/test/java/org/kohsuke/github/GHRepositoryTest.java --- src/test/java/org/kohsuke/github/GHRepositoryTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java index 41d6e55be8..02a8a2d4c2 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java @@ -1708,6 +1708,12 @@ public void cannotRetrievePermissionMaintainUser() throws IOException { assertThat(permission.toString(), is("UNKNOWN")); } + /** + * Test searching for pull requests. + * + * @throws IOException + * the exception + */ @Test public void testSearchPullRequests() throws Exception { GHRepository repository = getTempRepository(); From 8b59aa4c9de32b7c7d7cf99ee8c3f5afe06c7102 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Thu, 17 Aug 2023 11:08:38 -0700 Subject: [PATCH 06/17] Update src/test/java/org/kohsuke/github/AppTest.java --- src/test/java/org/kohsuke/github/AppTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java index ba77e19557..ad93f9004a 100755 --- a/src/test/java/org/kohsuke/github/AppTest.java +++ b/src/test/java/org/kohsuke/github/AppTest.java @@ -1431,6 +1431,12 @@ public void testIssueSearch() throws IOException { } } + /** + * Test searching for pull requests. + * + * @throws IOException + * the exception + */ @Test public void testPullRequestSearch() throws Exception { GHRepository repository = getTestRepository(); From c355a140c1443bb0a908636629c4a064e0dc6019 Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 23 Aug 2023 00:40:44 +0300 Subject: [PATCH 07/17] Update snapshots fot GHRepository#testPullRequestSearch and AppTest#testPullRequestsSearch --- src/test/java/org/kohsuke/github/AppTest.java | 3 +- ...-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json | 132 +++++++ ...-dab37504-ac22-4006-9d54-edb9370da7f9.json | 52 +++ ...-f1351870-10b6-4c1c-ab69-a0601a042525.json | 10 + ...-307fbc38-fce8-4c46-a375-da4dabb27f61.json | 10 + ...-dfa4e203-ce09-49da-9307-1089e6a38996.json | 79 ++++ ...-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json | 342 ++++++++++++++++++ ...-45b6e9d5-856e-4daa-a98d-7b433c418926.json | 85 +++++ ...7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json} | 2 +- ...-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json | 50 +++ ...-dab37504-ac22-4006-9d54-edb9370da7f9.json | 56 +++ ...-f1351870-10b6-4c1c-ab69-a0601a042525.json | 57 +++ ...-307fbc38-fce8-4c46-a375-da4dabb27f61.json | 51 +++ ...-dfa4e203-ce09-49da-9307-1089e6a38996.json | 56 +++ ...-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json | 57 +++ ...-45b6e9d5-856e-4daa-a98d-7b433c418926.json | 48 +++ ...-f2423970-92eb-4887-98cd-bf1f92fc9af0.json | 48 +++ ...7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json} | 18 +- ...643757b3-01d8-4e79-a849-513a69849eb3.json} | 10 +- ...83046abb-1458-406f-bc9f-bfedd53e79e2.json} | 10 +- ...5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json} | 18 +- ...c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json} | 6 +- ...bd7f03d1-23fd-4d65-a41e-f765a9b37621.json} | 6 +- ...d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json} | 36 +- ...30c862c8-23f9-403d-b8e7-4471069c742d.json} | 12 +- ...ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json} | 12 +- ...-fe00cd16-9679-412b-9f40-5bddfef7d036.json | 34 ++ ...643757b3-01d8-4e79-a849-513a69849eb3.json} | 20 +- ...83046abb-1458-406f-bc9f-bfedd53e79e2.json} | 20 +- ...5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json} | 18 +- ...c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json} | 20 +- ...bd7f03d1-23fd-4d65-a41e-f765a9b37621.json} | 20 +- ...d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json} | 18 +- ...993e1ef6-ba3b-4bae-a365-6066bed98e4b.json} | 18 +- ...2466009e-cb2f-4870-b09f-cde89f674143.json} | 14 +- ...30c862c8-23f9-403d-b8e7-4471069c742d.json} | 18 +- ...ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json} | 18 +- ...-fe00cd16-9679-412b-9f40-5bddfef7d036.json | 50 +++ 38 files changed, 1376 insertions(+), 158 deletions(-) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json rename src/test/resources/org/kohsuke/github/{GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-4578672a-1031-4a6e-bb79-243442cbf24f.json => AppTest/wiremock/testPullRequestSearch/__files/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json} (98%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json rename src/test/resources/org/kohsuke/github/{GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-4578672a-1031-4a6e-bb79-243442cbf24f.json => AppTest/wiremock/testPullRequestSearch/mappings/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json} (77%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json => repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json} (97%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json => repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json} (97%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json => repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json => repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json} (57%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json => repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json} (57%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json => repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json} (96%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json => search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json} (92%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json => search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json} (92%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json => repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json} (75%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json => repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json} (76%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json => repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json} (81%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json => repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json} (77%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json => repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json} (77%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json => repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json} (82%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-3e0cb468-abb9-4f76-8525-b64526e539e4.json => repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-993e1ef6-ba3b-4bae-a365-6066bed98e4b.json} (80%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-7761add1-0f5f-4425-bed9-abfcf7cebeb0.json => search_issues-2466009e-cb2f-4870-b09f-cde89f674143.json} (84%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json => search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json => search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json} (79%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java index ad93f9004a..847a68ec3f 100755 --- a/src/test/java/org/kohsuke/github/AppTest.java +++ b/src/test/java/org/kohsuke/github/AppTest.java @@ -1451,11 +1451,12 @@ public void testPullRequestSearch() throws Exception { LocalDate createdDate = LocalDate.now(); GHPullRequest newPR = repository .createPullRequest("New PR", devBranch.getRef(), "refs/heads/main", "Hello, merged PR"); + newPR.setLabels("test"); Thread.sleep(1000); List pullRequests = gitHub.searchPullRequests() .createdByMe() .isOpen() - .created(createdDate, LocalDate.now()) + .label("test") .list() .toList(); assertThat(pullRequests.size(), greaterThan(0)); diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json new file mode 100644 index 0000000000..bc4fa8e9f7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json @@ -0,0 +1,132 @@ +{ + "id": 681836119, + "node_id": "R_kgDOKKP-Vw", + "name": "github-api-test", + "full_name": "kgromov/github-api-test", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/github-api-test", + "description": "A test repository for testing the github-api project: github-api-test", + "fork": false, + "url": "https://api.github.com/repos/kgromov/github-api-test", + "forks_url": "https://api.github.com/repos/kgromov/github-api-test/forks", + "keys_url": "https://api.github.com/repos/kgromov/github-api-test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/github-api-test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/github-api-test/teams", + "hooks_url": "https://api.github.com/repos/kgromov/github-api-test/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/github-api-test/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/github-api-test/events", + "assignees_url": "https://api.github.com/repos/kgromov/github-api-test/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/github-api-test/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/github-api-test/tags", + "blobs_url": "https://api.github.com/repos/kgromov/github-api-test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/github-api-test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/github-api-test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/github-api-test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/github-api-test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/github-api-test/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/github-api-test/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/github-api-test/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/github-api-test/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/github-api-test/subscription", + "commits_url": "https://api.github.com/repos/kgromov/github-api-test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/github-api-test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/github-api-test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/github-api-test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/github-api-test/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/github-api-test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/github-api-test/merges", + "archive_url": "https://api.github.com/repos/kgromov/github-api-test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/github-api-test/downloads", + "issues_url": "https://api.github.com/repos/kgromov/github-api-test/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/github-api-test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/github-api-test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/github-api-test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/github-api-test/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/github-api-test/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/github-api-test/deployments", + "created_at": "2023-08-22T21:37:03Z", + "updated_at": "2023-08-22T21:37:03Z", + "pushed_at": "2023-08-22T21:37:03Z", + "git_url": "git://github.com/kgromov/github-api-test.git", + "ssh_url": "git@github.com:kgromov/github-api-test.git", + "clone_url": "https://github.com/kgromov/github-api-test.git", + "svn_url": "https://github.com/kgromov/github-api-test", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "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", + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + } + }, + "network_count": 0, + "subscribers_count": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json new file mode 100644 index 0000000000..03c83c9d48 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json @@ -0,0 +1,52 @@ +{ + "content": { + "name": "kgromov-test", + "path": "refs/heads/kgromov-test", + "sha": "c6efc981d368b755bff4a1059fc3b43a78e62f88", + "size": 13, + "url": "https://api.github.com/repos/kgromov/github-api-test/contents/refs/heads/kgromov-test?ref=refs/heads/kgromov-test", + "html_url": "https://github.com/kgromov/github-api-test/blob/refs/heads/kgromov-test/refs/heads/kgromov-test", + "git_url": "https://api.github.com/repos/kgromov/github-api-test/git/blobs/c6efc981d368b755bff4a1059fc3b43a78e62f88", + "download_url": "https://raw.githubusercontent.com/kgromov/github-api-test/refs/heads/kgromov-test/refs/heads/kgromov-test", + "type": "file", + "_links": { + "self": "https://api.github.com/repos/kgromov/github-api-test/contents/refs/heads/kgromov-test?ref=refs/heads/kgromov-test", + "git": "https://api.github.com/repos/kgromov/github-api-test/git/blobs/c6efc981d368b755bff4a1059fc3b43a78e62f88", + "html": "https://github.com/kgromov/github-api-test/blob/refs/heads/kgromov-test/refs/heads/kgromov-test" + } + }, + "commit": { + "sha": "b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161", + "node_id": "C_kwDOKKP-V9oAKGI3ZGUyYWRjYzZkNzFkM2FiOTlkY2RkNGMyYjQwNTg3Y2QxZjExNjE", + "url": "https://api.github.com/repos/kgromov/github-api-test/git/commits/b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161", + "html_url": "https://github.com/kgromov/github-api-test/commit/b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161", + "author": { + "name": "Konstantin Gromov", + "email": "rocky89@ukr.net", + "date": "2023-08-22T21:37:08Z" + }, + "committer": { + "name": "Konstantin Gromov", + "email": "rocky89@ukr.net", + "date": "2023-08-22T21:37:08Z" + }, + "tree": { + "sha": "99d76a9b31e7ca9e4db53ff0badf7071075a2de3", + "url": "https://api.github.com/repos/kgromov/github-api-test/git/trees/99d76a9b31e7ca9e4db53ff0badf7071075a2de3" + }, + "message": "test search", + "parents": [ + { + "sha": "4fb597b337d5425f72db2f1927d204a071be686f", + "url": "https://api.github.com/repos/kgromov/github-api-test/git/commits/4fb597b337d5425f72db2f1927d204a071be686f", + "html_url": "https://github.com/kgromov/github-api-test/commit/4fb597b337d5425f72db2f1927d204a071be686f" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json new file mode 100644 index 0000000000..e630b48499 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/kgromov-test", + "node_id": "REF_kwDOKKP-V7dyZWZzL2hlYWRzL2tncm9tb3YtdGVzdA", + "url": "https://api.github.com/repos/kgromov/github-api-test/git/refs/heads/kgromov-test", + "object": { + "sha": "4fb597b337d5425f72db2f1927d204a071be686f", + "type": "commit", + "url": "https://api.github.com/repos/kgromov/github-api-test/git/commits/4fb597b337d5425f72db2f1927d204a071be686f" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json new file mode 100644 index 0000000000..377e10e0b6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/main", + "node_id": "REF_kwDOKKP-V69yZWZzL2hlYWRzL21haW4", + "url": "https://api.github.com/repos/kgromov/github-api-test/git/refs/heads/main", + "object": { + "sha": "4fb597b337d5425f72db2f1927d204a071be686f", + "type": "commit", + "url": "https://api.github.com/repos/kgromov/github-api-test/git/commits/4fb597b337d5425f72db2f1927d204a071be686f" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json new file mode 100644 index 0000000000..2ade0d2684 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json @@ -0,0 +1,79 @@ +{ + "url": "https://api.github.com/repos/kgromov/github-api-test/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/github-api-test", + "labels_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/events", + "html_url": "https://github.com/kgromov/github-api-test/pull/1", + "id": 1862242135, + "node_id": "PR_kwDOKKP-V85Yimer", + "number": 1, + "title": "New PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5874970723, + "node_id": "LA_kwDOKKP-V88AAAABXizwYw", + "url": "https://api.github.com/repos/kgromov/github-api-test/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-08-22T21:37:09Z", + "updated_at": "2023-08-22T21:37:10Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/github-api-test/pulls/1", + "html_url": "https://github.com/kgromov/github-api-test/pull/1", + "diff_url": "https://github.com/kgromov/github-api-test/pull/1.diff", + "patch_url": "https://github.com/kgromov/github-api-test/pull/1.patch", + "merged_at": null + }, + "body": "Hello, merged PR", + "closed_by": null, + "reactions": { + "url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json new file mode 100644 index 0000000000..94c013df98 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json @@ -0,0 +1,342 @@ +{ + "url": "https://api.github.com/repos/kgromov/github-api-test/pulls/1", + "id": 1485465515, + "node_id": "PR_kwDOKKP-V85Yimer", + "html_url": "https://github.com/kgromov/github-api-test/pull/1", + "diff_url": "https://github.com/kgromov/github-api-test/pull/1.diff", + "patch_url": "https://github.com/kgromov/github-api-test/pull/1.patch", + "issue_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1", + "number": 1, + "state": "open", + "locked": false, + "title": "New PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "body": "Hello, merged PR", + "created_at": "2023-08-22T21:37:09Z", + "updated_at": "2023-08-22T21:37:09Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "draft": false, + "commits_url": "https://api.github.com/repos/kgromov/github-api-test/pulls/1/commits", + "review_comments_url": "https://api.github.com/repos/kgromov/github-api-test/pulls/1/comments", + "review_comment_url": "https://api.github.com/repos/kgromov/github-api-test/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/comments", + "statuses_url": "https://api.github.com/repos/kgromov/github-api-test/statuses/b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161", + "head": { + "label": "kgromov:kgromov-test", + "ref": "kgromov-test", + "sha": "b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 681836119, + "node_id": "R_kgDOKKP-Vw", + "name": "github-api-test", + "full_name": "kgromov/github-api-test", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/github-api-test", + "description": "A test repository for testing the github-api project: github-api-test", + "fork": false, + "url": "https://api.github.com/repos/kgromov/github-api-test", + "forks_url": "https://api.github.com/repos/kgromov/github-api-test/forks", + "keys_url": "https://api.github.com/repos/kgromov/github-api-test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/github-api-test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/github-api-test/teams", + "hooks_url": "https://api.github.com/repos/kgromov/github-api-test/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/github-api-test/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/github-api-test/events", + "assignees_url": "https://api.github.com/repos/kgromov/github-api-test/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/github-api-test/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/github-api-test/tags", + "blobs_url": "https://api.github.com/repos/kgromov/github-api-test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/github-api-test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/github-api-test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/github-api-test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/github-api-test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/github-api-test/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/github-api-test/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/github-api-test/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/github-api-test/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/github-api-test/subscription", + "commits_url": "https://api.github.com/repos/kgromov/github-api-test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/github-api-test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/github-api-test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/github-api-test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/github-api-test/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/github-api-test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/github-api-test/merges", + "archive_url": "https://api.github.com/repos/kgromov/github-api-test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/github-api-test/downloads", + "issues_url": "https://api.github.com/repos/kgromov/github-api-test/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/github-api-test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/github-api-test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/github-api-test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/github-api-test/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/github-api-test/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/github-api-test/deployments", + "created_at": "2023-08-22T21:37:03Z", + "updated_at": "2023-08-22T21:37:03Z", + "pushed_at": "2023-08-22T21:37:08Z", + "git_url": "git://github.com/kgromov/github-api-test.git", + "ssh_url": "git@github.com:kgromov/github-api-test.git", + "clone_url": "https://github.com/kgromov/github-api-test.git", + "svn_url": "https://github.com/kgromov/github-api-test", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "main" + } + }, + "base": { + "label": "kgromov:main", + "ref": "main", + "sha": "4fb597b337d5425f72db2f1927d204a071be686f", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 681836119, + "node_id": "R_kgDOKKP-Vw", + "name": "github-api-test", + "full_name": "kgromov/github-api-test", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/github-api-test", + "description": "A test repository for testing the github-api project: github-api-test", + "fork": false, + "url": "https://api.github.com/repos/kgromov/github-api-test", + "forks_url": "https://api.github.com/repos/kgromov/github-api-test/forks", + "keys_url": "https://api.github.com/repos/kgromov/github-api-test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/github-api-test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/github-api-test/teams", + "hooks_url": "https://api.github.com/repos/kgromov/github-api-test/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/github-api-test/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/github-api-test/events", + "assignees_url": "https://api.github.com/repos/kgromov/github-api-test/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/github-api-test/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/github-api-test/tags", + "blobs_url": "https://api.github.com/repos/kgromov/github-api-test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/github-api-test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/github-api-test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/github-api-test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/github-api-test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/github-api-test/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/github-api-test/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/github-api-test/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/github-api-test/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/github-api-test/subscription", + "commits_url": "https://api.github.com/repos/kgromov/github-api-test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/github-api-test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/github-api-test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/github-api-test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/github-api-test/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/github-api-test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/github-api-test/merges", + "archive_url": "https://api.github.com/repos/kgromov/github-api-test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/github-api-test/downloads", + "issues_url": "https://api.github.com/repos/kgromov/github-api-test/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/github-api-test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/github-api-test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/github-api-test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/github-api-test/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/github-api-test/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/github-api-test/deployments", + "created_at": "2023-08-22T21:37:03Z", + "updated_at": "2023-08-22T21:37:03Z", + "pushed_at": "2023-08-22T21:37:08Z", + "git_url": "git://github.com/kgromov/github-api-test.git", + "ssh_url": "git@github.com:kgromov/github-api-test.git", + "clone_url": "https://github.com/kgromov/github-api-test.git", + "svn_url": "https://github.com/kgromov/github-api-test", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "main" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/kgromov/github-api-test/pulls/1" + }, + "html": { + "href": "https://github.com/kgromov/github-api-test/pull/1" + }, + "issue": { + "href": "https://api.github.com/repos/kgromov/github-api-test/issues/1" + }, + "comments": { + "href": "https://api.github.com/repos/kgromov/github-api-test/issues/1/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/kgromov/github-api-test/pulls/1/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/kgromov/github-api-test/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/kgromov/github-api-test/pulls/1/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/kgromov/github-api-test/statuses/b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161" + } + }, + "author_association": "OWNER", + "auto_merge": null, + "active_lock_reason": null, + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 0, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json new file mode 100644 index 0000000000..dfec865e42 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json @@ -0,0 +1,85 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/github-api-test/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/github-api-test", + "labels_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/events", + "html_url": "https://github.com/kgromov/github-api-test/pull/1", + "id": 1862242135, + "node_id": "PR_kwDOKKP-V85Yimer", + "number": 1, + "title": "New PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5874970723, + "node_id": "LA_kwDOKKP-V88AAAABXizwYw", + "url": "https://api.github.com/repos/kgromov/github-api-test/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-08-22T21:37:09Z", + "updated_at": "2023-08-22T21:37:10Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/github-api-test/pulls/1", + "html_url": "https://github.com/kgromov/github-api-test/pull/1", + "diff_url": "https://github.com/kgromov/github-api-test/pull/1.diff", + "patch_url": "https://github.com/kgromov/github-api-test/pull/1.patch", + "merged_at": null + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-4578672a-1031-4a6e-bb79-243442cbf24f.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json similarity index 98% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-4578672a-1031-4a6e-bb79-243442cbf24f.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json index 86cf419395..877db885fc 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-4578672a-1031-4a6e-bb79-243442cbf24f.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json @@ -28,7 +28,7 @@ "public_repos": 91, "public_gists": 11, "followers": 0, - "following": 6, + "following": 8, "created_at": "2014-10-22T14:20:36Z", "updated_at": "2023-07-28T20:37:46Z" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json new file mode 100644 index 0000000000..8c3ed5f997 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json @@ -0,0 +1,50 @@ +{ + "id": "3d4d26ab-bb8d-43bc-878a-781cc651e9d1", + "name": "repos_kgromov_github-api-test", + "request": { + "url": "/repos/kgromov/github-api-test", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 22 Aug 2023 21:37: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": "W/\"2c5ee522e01bb4181fa63a46ca5c2dfdefc05e70873928f71a67413a95a3e5ad\"", + "Last-Modified": "Tue, 22 Aug 2023 21:37:03 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4917", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "83", + "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": "E249:9D83:185B0B4:188FFB2:64E52A83" + } + }, + "uuid": "3d4d26ab-bb8d-43bc-878a-781cc651e9d1", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json new file mode 100644 index 0000000000..8903ca9f39 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json @@ -0,0 +1,56 @@ +{ + "id": "dab37504-ac22-4006-9d54-edb9370da7f9", + "name": "repos_kgromov_github-api-test_contents_refs_heads_kgromov-test", + "request": { + "url": "/repos/kgromov/github-api-test/contents/refs/heads/kgromov-test", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"refs/heads/kgromov-test\",\"message\":\"test search\",\"branch\":\"refs/heads/kgromov-test\",\"content\":\"RW1wdHkgY29udGVudA==\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 22 Aug 2023 21:37: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": "\"ff5df07e22d3ba6d8ffa95221b5b46a35e01c5c0b3d187af3cfac8fbc669b98c\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4914", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "86", + "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": "E24C:8D1A:162CCDC:1661C0B:64E52A84" + } + }, + "uuid": "dab37504-ac22-4006-9d54-edb9370da7f9", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json new file mode 100644 index 0000000000..8254f2fe18 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json @@ -0,0 +1,57 @@ +{ + "id": "f1351870-10b6-4c1c-ab69-a0601a042525", + "name": "repos_kgromov_github-api-test_git_refs", + "request": { + "url": "/repos/kgromov/github-api-test/git/refs", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/kgromov-test\",\"sha\":\"4fb597b337d5425f72db2f1927d204a071be686f\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 22 Aug 2023 21:37: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": "\"b89aa6c2c35e69748f4a667c5750f9a1c41e4463e21490215a11285861173afc\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4915", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "85", + "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": "E24B:FD76:D65A8:D93EF:64E52A84", + "Location": "https://api.github.com/repos/kgromov/github-api-test/git/refs/heads/kgromov-test" + } + }, + "uuid": "f1351870-10b6-4c1c-ab69-a0601a042525", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json new file mode 100644 index 0000000000..eeb77c2d43 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json @@ -0,0 +1,51 @@ +{ + "id": "307fbc38-fce8-4c46-a375-da4dabb27f61", + "name": "repos_kgromov_github-api-test_git_refs_heads_main", + "request": { + "url": "/repos/kgromov/github-api-test/git/refs/heads/main", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 22 Aug 2023 21:37: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": "W/\"65aaaf8e7eb966b9b04475ca7f3b41b8d6bf4b2cc1c66b694ebf21658c0e4afc\"", + "Last-Modified": "Tue, 22 Aug 2023 21:37:03 GMT", + "X-Poll-Interval": "300", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4916", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "84", + "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": "E24A:FD76:D64BF:D9315:64E52A83" + } + }, + "uuid": "307fbc38-fce8-4c46-a375-da4dabb27f61", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json new file mode 100644 index 0000000000..2a4681f405 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json @@ -0,0 +1,56 @@ +{ + "id": "dfa4e203-ce09-49da-9307-1089e6a38996", + "name": "repos_kgromov_github-api-test_issues_1", + "request": { + "url": "/repos/kgromov/github-api-test/issues/1", + "method": "PATCH", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"labels\":[\"test\"]}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 22 Aug 2023 21:37: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/\"5542c5d607753b4c72a0bf417cc66d06299fba7b249fd110bb44aeb88257badf\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4912", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "88", + "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": "E24E:11B8A:1898434:18CD449:64E52A86" + } + }, + "uuid": "dfa4e203-ce09-49da-9307-1089e6a38996", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json new file mode 100644 index 0000000000..8fdf00eb6a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json @@ -0,0 +1,57 @@ +{ + "id": "9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc", + "name": "repos_kgromov_github-api-test_pulls", + "request": { + "url": "/repos/kgromov/github-api-test/pulls", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.shadow-cat-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"refs/heads/kgromov-test\",\"draft\":false,\"maintainer_can_modify\":true,\"title\":\"New PR\",\"body\":\"Hello, merged PR\",\"base\":\"refs/heads/main\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 22 Aug 2023 21:37: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": "\"75ff59835497bed98a5f1afe4c77144d1d0fc0113915add18472f2087a75db67\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "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": "4913", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "87", + "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": "E24D:8D1A:162CF05:1661E2A:64E52A85", + "Location": "https://api.github.com/repos/kgromov/github-api-test/pulls/1" + } + }, + "uuid": "9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json new file mode 100644 index 0000000000..24c5bc8a76 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json @@ -0,0 +1,48 @@ +{ + "id": "45b6e9d5-856e-4daa-a98d-7b433c418926", + "name": "search_issues", + "request": { + "url": "/search/issues?q=author%3A%40me+is%3Aopen+label%3Atest+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 22 Aug 2023 21:37:12 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "27", + "X-RateLimit-Reset": "1692740251", + "X-RateLimit-Used": "3", + "X-RateLimit-Resource": "search", + "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": "E24F:226F:144BB31:14809A0:64E52A88" + } + }, + "uuid": "45b6e9d5-856e-4daa-a98d-7b433c418926", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json new file mode 100644 index 0000000000..64f5ee8333 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json @@ -0,0 +1,48 @@ +{ + "id": "f2423970-92eb-4887-98cd-bf1f92fc9af0", + "name": "search_issues", + "request": { + "url": "/search/issues?q=author%3A%40me+is%3Aopen+created%3A%3E2023-08-23+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "body": "{\"total_count\":0,\"incomplete_results\":false,\"items\":[]}", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 22 Aug 2023 21:37:13 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "26", + "X-RateLimit-Reset": "1692740251", + "X-RateLimit-Used": "4", + "X-RateLimit-Resource": "search", + "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": "E250:F335:17A941D:17DE3E4:64E52A89" + } + }, + "uuid": "f2423970-92eb-4887-98cd-bf1f92fc9af0", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-4578672a-1031-4a6e-bb79-243442cbf24f.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-4578672a-1031-4a6e-bb79-243442cbf24f.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json index c01bb440f3..d4a3ec6f05 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-4578672a-1031-4a6e-bb79-243442cbf24f.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json @@ -1,5 +1,5 @@ { - "id": "4578672a-1031-4a6e-bb79-243442cbf24f", + "id": "7e6a8032-578e-4ba3-ab7b-7fea58979a4c", "name": "user", "request": { "url": "/user", @@ -12,26 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "user-4578672a-1031-4a6e-bb79-243442cbf24f.json", + "bodyFileName": "user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:47 GMT", + "Date": "Tue, 22 Aug 2023 21:37: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/\"156b3f82e70bfef93cf9c8b4f2d9e3b4561039992455ddf4588cb78dd564d24b\"", + "ETag": "W/\"6ca483824c0beb8bcb118bf3795f39894416285cbd30bc5803b2826d133971ce\"", "Last-Modified": "Fri, 28 Jul 2023 20:37:46 GMT", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4935", - "X-RateLimit-Reset": "1691788130", - "X-RateLimit-Used": "65", + "X-RateLimit-Remaining": "4920", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "80", "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 +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": "C742:C82B:5510377:55DEAEB:64D69BDE" + "X-GitHub-Request-Id": "E247:E7D2:19049BB:1939F23:64E52A7E" } }, - "uuid": "4578672a-1031-4a6e-bb79-243442cbf24f", + "uuid": "7e6a8032-578e-4ba3-ab7b-7fea58979a4c", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json similarity index 97% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json index b22f9f68cb..28c8fdeb2e 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json @@ -1,6 +1,6 @@ { - "id": 677534369, - "node_id": "R_kgDOKGJaoQ", + "id": 681833870, + "node_id": "R_kgDOKKP1jg", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -64,9 +64,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-08-11T20:36:47Z", - "updated_at": "2023-08-11T20:36:48Z", - "pushed_at": "2023-08-11T20:36:55Z", + "created_at": "2023-08-22T21:27:48Z", + "updated_at": "2023-08-22T21:27:49Z", + "pushed_at": "2023-08-22T21:27:56Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json similarity index 97% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json index 750afa1818..25e06fc2b5 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json @@ -1,6 +1,6 @@ { - "id": 677534369, - "node_id": "R_kgDOKGJaoQ", + "id": 681833870, + "node_id": "R_kgDOKKP1jg", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -64,9 +64,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-08-11T20:36:47Z", - "updated_at": "2023-08-11T20:36:48Z", - "pushed_at": "2023-08-11T20:36:48Z", + "created_at": "2023-08-22T21:27:48Z", + "updated_at": "2023-08-22T21:27:49Z", + "pushed_at": "2023-08-22T21:27:49Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json index 22c889a9ec..edde05d21c 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json @@ -16,19 +16,19 @@ } }, "commit": { - "sha": "80a06f153879c7fddd30c594c24fd2b7668a4364", - "node_id": "C_kwDOKGJaodoAKDgwYTA2ZjE1Mzg3OWM3ZmRkZDMwYzU5NGMyNGZkMmI3NjY4YTQzNjQ", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/80a06f153879c7fddd30c594c24fd2b7668a4364", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/80a06f153879c7fddd30c594c24fd2b7668a4364", + "sha": "30782d8cd999539904ca996ffeef52cece823ae3", + "node_id": "C_kwDOKKP1jtoAKDMwNzgyZDhjZDk5OTUzOTkwNGNhOTk2ZmZlZWY1MmNlY2U4MjNhZTM", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/30782d8cd999539904ca996ffeef52cece823ae3", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/30782d8cd999539904ca996ffeef52cece823ae3", "author": { "name": "Konstantin Gromov", "email": "rocky89@ukr.net", - "date": "2023-08-11T20:36:53Z" + "date": "2023-08-22T21:27:54Z" }, "committer": { "name": "Konstantin Gromov", "email": "rocky89@ukr.net", - "date": "2023-08-11T20:36:53Z" + "date": "2023-08-22T21:27:54Z" }, "tree": { "sha": "a9bfff1d1682287382f133ee27f9c2bb5efcfb42", @@ -37,9 +37,9 @@ "message": "test search", "parents": [ { - "sha": "de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351" + "sha": "32fe94ae1f6aa15b4302e22a51e28522e32ca593", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/32fe94ae1f6aa15b4302e22a51e28522e32ca593", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/32fe94ae1f6aa15b4302e22a51e28522e32ca593" } ], "verification": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json index c398c08634..e04ecc87ee 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/dev", - "node_id": "REF_kwDOKGJaoa5yZWZzL2hlYWRzL2Rldg", + "node_id": "REF_kwDOKKP1jq5yZWZzL2hlYWRzL2Rldg", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/dev", "object": { - "sha": "de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351", + "sha": "32fe94ae1f6aa15b4302e22a51e28522e32ca593", "type": "commit", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351" + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/32fe94ae1f6aa15b4302e22a51e28522e32ca593" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json index 0f697f28c5..072273502b 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/main", - "node_id": "REF_kwDOKGJaoa9yZWZzL2hlYWRzL21haW4", + "node_id": "REF_kwDOKKP1jq9yZWZzL2hlYWRzL21haW4", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/main", "object": { - "sha": "de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351", + "sha": "32fe94ae1f6aa15b4302e22a51e28522e32ca593", "type": "commit", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351" + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/32fe94ae1f6aa15b4302e22a51e28522e32ca593" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json index aec57c3a9f..8b42e02048 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json @@ -1,7 +1,7 @@ { "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", - "id": 1472323848, - "node_id": "PR_kwDOKGJaoc5XweEI", + "id": 1485457375, + "node_id": "PR_kwDOKKP1js5Yikff", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", @@ -31,8 +31,8 @@ "site_admin": false }, "body": "Hello, merged PR", - "created_at": "2023-08-11T20:36:54Z", - "updated_at": "2023-08-11T20:36:54Z", + "created_at": "2023-08-22T21:27:55Z", + "updated_at": "2023-08-22T21:27:55Z", "closed_at": null, "merged_at": null, "merge_commit_sha": null, @@ -47,11 +47,11 @@ "review_comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/comments", "review_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/comments{/number}", "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", - "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/80a06f153879c7fddd30c594c24fd2b7668a4364", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/30782d8cd999539904ca996ffeef52cece823ae3", "head": { "label": "kgromov:dev", "ref": "dev", - "sha": "80a06f153879c7fddd30c594c24fd2b7668a4364", + "sha": "30782d8cd999539904ca996ffeef52cece823ae3", "user": { "login": "kgromov", "id": 9352794, @@ -73,8 +73,8 @@ "site_admin": false }, "repo": { - "id": 677534369, - "node_id": "R_kgDOKGJaoQ", + "id": 681833870, + "node_id": "R_kgDOKKP1jg", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -138,9 +138,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-08-11T20:36:47Z", - "updated_at": "2023-08-11T20:36:48Z", - "pushed_at": "2023-08-11T20:36:53Z", + "created_at": "2023-08-22T21:27:48Z", + "updated_at": "2023-08-22T21:27:49Z", + "pushed_at": "2023-08-22T21:27:54Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", @@ -176,7 +176,7 @@ "base": { "label": "kgromov:main", "ref": "main", - "sha": "de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351", + "sha": "32fe94ae1f6aa15b4302e22a51e28522e32ca593", "user": { "login": "kgromov", "id": 9352794, @@ -198,8 +198,8 @@ "site_admin": false }, "repo": { - "id": 677534369, - "node_id": "R_kgDOKGJaoQ", + "id": 681833870, + "node_id": "R_kgDOKKP1jg", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -263,9 +263,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-08-11T20:36:47Z", - "updated_at": "2023-08-11T20:36:48Z", - "pushed_at": "2023-08-11T20:36:53Z", + "created_at": "2023-08-22T21:27:48Z", + "updated_at": "2023-08-22T21:27:49Z", + "pushed_at": "2023-08-22T21:27:54Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", @@ -321,7 +321,7 @@ "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/commits" }, "statuses": { - "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/80a06f153879c7fddd30c594c24fd2b7668a4364" + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/30782d8cd999539904ca996ffeef52cece823ae3" } }, "author_association": "OWNER", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json similarity index 92% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json index 41d4f6750b..989bc6b216 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1847398784, - "node_id": "PR_kwDOKGJaoc5XweEI", + "id": 1862232999, + "node_id": "PR_kwDOKKP1js5Yikff", "number": 1, "title": "Temp PR", "user": { @@ -40,9 +40,9 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-08-11T20:36:54Z", - "updated_at": "2023-08-11T20:36:55Z", - "closed_at": "2023-08-11T20:36:55Z", + "created_at": "2023-08-22T21:27:55Z", + "updated_at": "2023-08-22T21:27:56Z", + "closed_at": "2023-08-22T21:27:56Z", "author_association": "OWNER", "active_lock_reason": null, "draft": false, @@ -51,7 +51,7 @@ "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", - "merged_at": "2023-08-11T20:36:55Z" + "merged_at": "2023-08-22T21:27:56Z" }, "body": "Hello, merged PR", "reactions": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json similarity index 92% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json index 41d4f6750b..989bc6b216 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1847398784, - "node_id": "PR_kwDOKGJaoc5XweEI", + "id": 1862232999, + "node_id": "PR_kwDOKKP1js5Yikff", "number": 1, "title": "Temp PR", "user": { @@ -40,9 +40,9 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-08-11T20:36:54Z", - "updated_at": "2023-08-11T20:36:55Z", - "closed_at": "2023-08-11T20:36:55Z", + "created_at": "2023-08-22T21:27:55Z", + "updated_at": "2023-08-22T21:27:56Z", + "closed_at": "2023-08-22T21:27:56Z", "author_association": "OWNER", "active_lock_reason": null, "draft": false, @@ -51,7 +51,7 @@ "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", - "merged_at": "2023-08-11T20:36:55Z" + "merged_at": "2023-08-22T21:27:56Z" }, "body": "Hello, merged PR", "reactions": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json new file mode 100644 index 0000000000..877db885fc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json @@ -0,0 +1,34 @@ +{ + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false, + "name": "Konstantin Gromov", + "company": null, + "blog": "https://www.linkedin.com/in/konstantin-gromov-52466359/", + "location": "Odessa", + "email": "konst.gromov@gmail.com", + "hireable": null, + "bio": "Software developer at EG", + "twitter_username": null, + "public_repos": 91, + "public_gists": 11, + "followers": 0, + "following": 8, + "created_at": "2014-10-22T14:20:36Z", + "updated_at": "2023-07-28T20:37:46Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json similarity index 75% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json index f7bbc799eb..16e7672fe8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json @@ -1,5 +1,5 @@ { - "id": "06c332bc-761f-4c7e-b4df-0c395d2a685f", + "id": "643757b3-01d8-4e79-a849-513a69849eb3", "name": "repos_kgromov_temp-testsearchpullrequests", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests", @@ -12,26 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-06c332bc-761f-4c7e-b4df-0c395d2a685f.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:58 GMT", + "Date": "Tue, 22 Aug 2023 21:27:59 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/\"776398db4540bd90140a837b11433ed3a10c92e4fb54dada38a1807cdb88e888\"", - "Last-Modified": "Fri, 11 Aug 2023 20:36:48 GMT", + "ETag": "W/\"bd405203ce1c1a961864dfe57bf251c64678f556b36d8ca9408661f3d42d5060\"", + "Last-Modified": "Tue, 22 Aug 2023 21:27:49 GMT", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4926", - "X-RateLimit-Reset": "1691788130", - "X-RateLimit-Used": "74", + "X-RateLimit-Remaining": "4934", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "66", "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 +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": "C74C:E1BB:FF2C08E:1015D2DE:64D69BEA" + "X-GitHub-Request-Id": "E1A8:226F:13F1751:1425471:64E5285F" } }, - "uuid": "06c332bc-761f-4c7e-b4df-0c395d2a685f", + "uuid": "643757b3-01d8-4e79-a849-513a69849eb3", "persistent": true, "scenarioName": "scenario-1-repos-kgromov-temp-testSearchPullRequests", "requiredScenarioState": "scenario-1-repos-kgromov-temp-testSearchPullRequests-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json similarity index 76% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json index 1ecd5e25c9..7a55f14030 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json @@ -1,5 +1,5 @@ { - "id": "9db6ffe2-451f-43b2-9f20-3cbe9794bfae", + "id": "83046abb-1458-406f-bc9f-bfedd53e79e2", "name": "repos_kgromov_temp-testsearchpullrequests", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests", @@ -12,26 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-9db6ffe2-451f-43b2-9f20-3cbe9794bfae.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:52 GMT", + "Date": "Tue, 22 Aug 2023 21:27: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/\"7ec3701c8756035aa14970b2b8e89083095bbcbf6dc44620191a8cd5352fd62f\"", - "Last-Modified": "Fri, 11 Aug 2023 20:36:48 GMT", + "ETag": "W/\"6be9e5a472ae13c024afc3644d6b7145c24dd73d3096fb5643e19a4a1577ed2e\"", + "Last-Modified": "Tue, 22 Aug 2023 21:27:49 GMT", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4932", - "X-RateLimit-Reset": "1691788130", - "X-RateLimit-Used": "68", + "X-RateLimit-Remaining": "4940", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "60", "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 +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": "C744:F81C:1AC70C4:1B076BF:64D69BE4" + "X-GitHub-Request-Id": "E1A0:66CD:17240AD:1757EC7:64E52858" } }, - "uuid": "9db6ffe2-451f-43b2-9f20-3cbe9794bfae", + "uuid": "83046abb-1458-406f-bc9f-bfedd53e79e2", "persistent": true, "scenarioName": "scenario-1-repos-kgromov-temp-testSearchPullRequests", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json similarity index 81% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json index 640adff10d..546f7cf985 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json @@ -1,5 +1,5 @@ { - "id": "52509c60-5b87-4c52-90f1-63859a9672f4", + "id": "5801e3c5-a664-4fc2-9a18-ba6f72ca05b9", "name": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/dev", @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-52509c60-5b87-4c52-90f1-63859a9672f4.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:53 GMT", + "Date": "Tue, 22 Aug 2023 21:27: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": "\"3d5c64cdac6a6407140b71525fc650468e8a97fe3563a067e213d40751f834aa\"", + "ETag": "\"b1e3f88d5b8226763a4205f07d41b2b27dc2796e7c5e318f52f1d773b0ba430f\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4929", - "X-RateLimit-Reset": "1691788130", - "X-RateLimit-Used": "71", + "X-RateLimit-Remaining": "4937", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "63", "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 +47,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": "C747:12B3E:2B018CF:2B62B63:64D69BE5" + "X-GitHub-Request-Id": "E1A3:13837:17B465F:17E8483:64E52859" } }, - "uuid": "52509c60-5b87-4c52-90f1-63859a9672f4", + "uuid": "5801e3c5-a664-4fc2-9a18-ba6f72ca05b9", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json index e37a8684e5..39df4a2a17 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json @@ -1,5 +1,5 @@ { - "id": "657e2c73-d50a-44a9-8919-44b97f555c38", + "id": "c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae", "name": "repos_kgromov_temp-testsearchpullrequests_git_refs", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/dev\",\"sha\":\"de1c9bebdf0ae4d3a3962f6e1aa6154979b8a351\"}", + "equalToJson": "{\"ref\":\"refs/heads/dev\",\"sha\":\"32fe94ae1f6aa15b4302e22a51e28522e32ca593\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs-657e2c73-d50a-44a9-8919-44b97f555c38.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:53 GMT", + "Date": "Tue, 22 Aug 2023 21:27: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": "\"d62ccbfabec60fa61e358576a2ec615e183bd5266092b4fb7494def58f743cc0\"", + "ETag": "\"e7cfb96a9556ff771add9c1619f02af4f01c80e36b9acfa30677c78033c2a0d2\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4930", - "X-RateLimit-Reset": "1691788130", - "X-RateLimit-Used": "70", + "X-RateLimit-Remaining": "4938", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "62", "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 +47,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": "C746:E1BB:FF2B01A:1015C224:64D69BE4", + "X-GitHub-Request-Id": "E1A2:BB2B:15603E2:1594206:64E52859", "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/dev" } }, - "uuid": "657e2c73-d50a-44a9-8919-44b97f555c38", + "uuid": "c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json index 811123fbdd..510cb38709 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json @@ -1,5 +1,5 @@ { - "id": "ddbdf200-b1b1-4e5e-9274-03b5fd72e104", + "id": "bd7f03d1-23fd-4d65-a41e-f765a9b37621", "name": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/main", @@ -12,27 +12,27 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-ddbdf200-b1b1-4e5e-9274-03b5fd72e104.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:52 GMT", + "Date": "Tue, 22 Aug 2023 21:27: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/\"9e181f49c0d601a5ecd0d42788180afe3b7a8728d5a5271921d96e8eb3e5a594\"", - "Last-Modified": "Fri, 11 Aug 2023 20:36:48 GMT", + "ETag": "W/\"38fe2779bc4da5a50cd4c1cd30aafb4e68f16d0a0c9d70af02a4176a3d16096b\"", + "Last-Modified": "Tue, 22 Aug 2023 21:27:49 GMT", "X-Poll-Interval": "300", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4931", - "X-RateLimit-Reset": "1691788130", - "X-RateLimit-Used": "69", + "X-RateLimit-Remaining": "4939", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "61", "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": "*", @@ -42,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": "C745:E1BB:FF2AEEF:1015C118:64D69BE4" + "X-GitHub-Request-Id": "E1A1:226F:13F077C:1424463:64E52859" } }, - "uuid": "ddbdf200-b1b1-4e5e-9274-03b5fd72e104", + "uuid": "bd7f03d1-23fd-4d65-a41e-f765a9b37621", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json similarity index 82% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json index 6ad76695c9..787aa3b2b5 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json @@ -1,5 +1,5 @@ { - "id": "ebe0248c-9c5d-40db-978d-359f3aac9fdd", + "id": "d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd", "name": "repos_kgromov_temp-testsearchpullrequests_pulls", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/pulls", @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_pulls-ebe0248c-9c5d-40db-978d-359f3aac9fdd.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:54 GMT", + "Date": "Tue, 22 Aug 2023 21:27: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": "\"058a77c131808038a66ed032fd75e826fa43046d81c6e7715eefd82bc4661555\"", + "ETag": "\"908f1ac7f1a8d42239a092b1c25ded7cc46e1144e4ab8f648c3d9c2494378771\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "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": "4928", - "X-RateLimit-Reset": "1691788130", - "X-RateLimit-Used": "72", + "X-RateLimit-Remaining": "4936", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "64", "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 +47,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": "C748:12B3E:2B01A15:2B62CB4:64D69BE5", + "X-GitHub-Request-Id": "E1A4:6C4D:1591A04:15C57F0:64E5285A", "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1" } }, - "uuid": "ebe0248c-9c5d-40db-978d-359f3aac9fdd", + "uuid": "d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd", "persistent": true, "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-3e0cb468-abb9-4f76-8525-b64526e539e4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-993e1ef6-ba3b-4bae-a365-6066bed98e4b.json similarity index 80% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-3e0cb468-abb9-4f76-8525-b64526e539e4.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-993e1ef6-ba3b-4bae-a365-6066bed98e4b.json index 0912a643df..e460d08a62 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-3e0cb468-abb9-4f76-8525-b64526e539e4.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-993e1ef6-ba3b-4bae-a365-6066bed98e4b.json @@ -1,5 +1,5 @@ { - "id": "3e0cb468-abb9-4f76-8525-b64526e539e4", + "id": "993e1ef6-ba3b-4bae-a365-6066bed98e4b", "name": "repos_kgromov_temp-testsearchpullrequests_pulls_1_merge", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/pulls/1/merge", @@ -19,25 +19,25 @@ }, "response": { "status": 200, - "body": "{\"sha\":\"8a94734d6838441a8217b96fd39c3447e1e0d33f\",\"merged\":true,\"message\":\"Pull Request successfully merged\"}", + "body": "{\"sha\":\"dce3078db7d013bb497556aa2326fd7e7be326a1\",\"merged\":true,\"message\":\"Pull Request successfully merged\"}", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:56 GMT", + "Date": "Tue, 22 Aug 2023 21:27: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/\"9a902be961129ef0626f677b3a8d7ddd17deb44c2a088c86dcd1b69ab556636d\"", + "ETag": "W/\"bcbf1007436976ad976de0b968a69d7ebf7001781f63459edb1ddc3273665ef8\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4927", - "X-RateLimit-Reset": "1691788130", - "X-RateLimit-Used": "73", + "X-RateLimit-Remaining": "4935", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "65", "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 +47,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": "C749:F85B:13134015:133EE8CA:64D69BE7" + "X-GitHub-Request-Id": "E1A5:B938:1676390:16AA161:64E5285B" } }, - "uuid": "3e0cb468-abb9-4f76-8525-b64526e539e4", + "uuid": "993e1ef6-ba3b-4bae-a365-6066bed98e4b", "persistent": true, "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-7761add1-0f5f-4425-bed9-abfcf7cebeb0.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-2466009e-cb2f-4870-b09f-cde89f674143.json similarity index 84% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-7761add1-0f5f-4425-bed9-abfcf7cebeb0.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-2466009e-cb2f-4870-b09f-cde89f674143.json index 65ee46f3fe..548ab39f1a 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-7761add1-0f5f-4425-bed9-abfcf7cebeb0.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-2466009e-cb2f-4870-b09f-cde89f674143.json @@ -1,5 +1,5 @@ { - "id": "7761add1-0f5f-4425-bed9-abfcf7cebeb0", + "id": "2466009e-cb2f-4870-b09f-cde89f674143", "name": "search_issues", "request": { "url": "/search/issues?q=author%3A%40me+is%3Aopen+created%3A%3E%3D2023-08-01+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", @@ -15,7 +15,7 @@ "body": "{\"total_count\":0,\"incomplete_results\":false,\"items\":[]}", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:59 GMT", + "Date": "Tue, 22 Aug 2023 21:27:59 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", - "X-RateLimit-Remaining": "27", - "X-RateLimit-Reset": "1691786277", - "X-RateLimit-Used": "3", + "X-RateLimit-Remaining": "24", + "X-RateLimit-Reset": "1692739688", + "X-RateLimit-Used": "6", "X-RateLimit-Resource": "search", "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": "*", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C74D:F81C:1AC8164:1B087A3:64D69BEB" + "X-GitHub-Request-Id": "E1A9:B2F0:1601C32:1635A43:64E5285F" } }, - "uuid": "7761add1-0f5f-4425-bed9-abfcf7cebeb0", + "uuid": "2466009e-cb2f-4870-b09f-cde89f674143", "persistent": true, "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json index 03f3cf0b2b..eb82702d86 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json @@ -1,8 +1,8 @@ { - "id": "4073e833-9064-4118-96ca-7b3c72d88da2", + "id": "30c862c8-23f9-403d-b8e7-4471069c742d", "name": "search_issues", "request": { - "url": "/search/issues?q=author%3A%40me+is%3Amerged+merged%3A2023-08-01..2023-08-11+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=author%3A%40me+is%3Amerged+merged%3A2023-08-01..2023-08-23+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-4073e833-9064-4118-96ca-7b3c72d88da2.json", + "bodyFileName": "search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:58 GMT", + "Date": "Tue, 22 Aug 2023 21:27:59 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", - "X-RateLimit-Remaining": "28", - "X-RateLimit-Reset": "1691786277", - "X-RateLimit-Used": "2", + "X-RateLimit-Remaining": "25", + "X-RateLimit-Reset": "1692739688", + "X-RateLimit-Used": "5", "X-RateLimit-Resource": "search", "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": "*", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C74B:9021:5A732F0:5B4D2DB:64D69BEA" + "X-GitHub-Request-Id": "E1A7:BB2B:15611E1:1595020:64E5285E" } }, - "uuid": "4073e833-9064-4118-96ca-7b3c72d88da2", + "uuid": "30c862c8-23f9-403d-b8e7-4471069c742d", "persistent": true, "scenarioName": "scenario-2-search-issues", "requiredScenarioState": "scenario-2-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json similarity index 79% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json index c58aa24680..31638a601a 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json @@ -1,8 +1,8 @@ { - "id": "4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807", + "id": "ce2060dd-a6f0-47ed-9b8b-4f65129063c3", "name": "search_issues", "request": { - "url": "/search/issues?q=author%3A%40me+is%3Amerged+merged%3A2023-08-01..2023-08-11+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=author%3A%40me+is%3Amerged+merged%3A2023-08-01..2023-08-23+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807.json", + "bodyFileName": "search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 11 Aug 2023 20:36:57 GMT", + "Date": "Tue, 22 Aug 2023 21:27:58 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", - "X-RateLimit-Remaining": "29", - "X-RateLimit-Reset": "1691786277", - "X-RateLimit-Used": "1", + "X-RateLimit-Remaining": "26", + "X-RateLimit-Reset": "1692739688", + "X-RateLimit-Used": "4", "X-RateLimit-Resource": "search", "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": "*", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C74A:6CA9:BF38488:C0ED99F:64D69BE9" + "X-GitHub-Request-Id": "E1A6:13837:17B5294:17E90E1:64E5285E" } }, - "uuid": "4f33b8a3-4e9f-4bf8-8c10-1b00da5a6807", + "uuid": "ce2060dd-a6f0-47ed-9b8b-4f65129063c3", "persistent": true, "scenarioName": "scenario-2-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json new file mode 100644 index 0000000000..57c691bfa1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json @@ -0,0 +1,50 @@ +{ + "id": "fe00cd16-9679-412b-9f40-5bddfef7d036", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "user-fe00cd16-9679-412b-9f40-5bddfef7d036.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 22 Aug 2023 21:27:47 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/\"6ca483824c0beb8bcb118bf3795f39894416285cbd30bc5803b2826d133971ce\"", + "Last-Modified": "Fri, 28 Jul 2023 20:37:46 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4943", + "X-RateLimit-Reset": "1692741646", + "X-RateLimit-Used": "57", + "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": "E19E:6C4D:1590763:15C44F8:64E52853" + } + }, + "uuid": "fe00cd16-9679-412b-9f40-5bddfef7d036", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file From e933b4cbf59e76c7114f056e082267f86c64b614 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 26 Aug 2023 01:08:38 +0300 Subject: [PATCH 08/17] Change target to wiremock files explicitly to custom repo --- src/test/java/org/kohsuke/github/AppTest.java | 4 ++-- src/test/java/org/kohsuke/github/GHRepositoryTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java index 847a68ec3f..03be7ca44a 100755 --- a/src/test/java/org/kohsuke/github/AppTest.java +++ b/src/test/java/org/kohsuke/github/AppTest.java @@ -1439,7 +1439,7 @@ public void testIssueSearch() throws IOException { */ @Test public void testPullRequestSearch() throws Exception { - GHRepository repository = getTestRepository(); + GHRepository repository = gitHub.getRepository("kgromov/github-api-test"); String mainHead = repository.getRef("heads/main").getObject().getSha(); GHRef devBranch = repository.createRef("refs/heads/kgromov-test", mainHead); repository.createContent() @@ -1448,7 +1448,7 @@ public void testPullRequestSearch() throws Exception { .path(devBranch.getRef()) .branch(devBranch.getRef()) .commit(); - LocalDate createdDate = LocalDate.now(); + LocalDate createdDate = LocalDate.parse("2023-08-23"); GHPullRequest newPR = repository .createPullRequest("New PR", devBranch.getRef(), "refs/heads/main", "Hello, merged PR"); newPR.setLabels("test"); diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java index 02a8a2d4c2..0bf880a317 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java @@ -1716,7 +1716,7 @@ public void cannotRetrievePermissionMaintainUser() throws IOException { */ @Test public void testSearchPullRequests() throws Exception { - GHRepository repository = getTempRepository(); + GHRepository repository = gitHub.getRepository("kgromov/temp-testSearchPullRequests"); String mainHead = repository.getRef("heads/main").getObject().getSha(); GHRef devBranch = repository.createRef("refs/heads/dev", mainHead); repository.createContent() @@ -1731,7 +1731,7 @@ public void testSearchPullRequests() throws Exception { ghPullRequest.merge("Merged test PR"); Thread.sleep(1000); LocalDate from = LocalDate.parse("2023-08-01"); - LocalDate to = LocalDate.now(); + LocalDate to = LocalDate.parse("2023-08-23"); GHPullRequestSearchBuilder searchBuilder = gitHub.searchPullRequests() .createdByMe() .isMerged() From 7d8ca8905875c524d59a1a95bf67ec054340a19f Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 26 Aug 2023 01:38:37 +0300 Subject: [PATCH 09/17] Fix creationDate timezone issue for test data --- src/test/java/org/kohsuke/github/AppTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java index 03be7ca44a..b231cf2866 100755 --- a/src/test/java/org/kohsuke/github/AppTest.java +++ b/src/test/java/org/kohsuke/github/AppTest.java @@ -1448,7 +1448,7 @@ public void testPullRequestSearch() throws Exception { .path(devBranch.getRef()) .branch(devBranch.getRef()) .commit(); - LocalDate createdDate = LocalDate.parse("2023-08-23"); + LocalDate createdDate = LocalDate.parse("2023-08-22"); GHPullRequest newPR = repository .createPullRequest("New PR", devBranch.getRef(), "refs/heads/main", "Hello, merged PR"); newPR.setLabels("test"); From f2c5149d7f0587678a420e69ffe29bf97e9cd1a7 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 26 Aug 2023 01:51:58 +0300 Subject: [PATCH 10/17] Update CONTRIBUTING.md with small tips for snapshots taken from personal repository --- CONTRIBUTING.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5b52f26a8b..44d70014e3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -73,6 +73,9 @@ a Java VM option). For example: The above command will create snapshot WireMock data files under the path `src/test/resources/org/kohsuhke/github/YourTestClassName/wiremock`. Each method will get a separate directory that will hold the data files for that test method. +*Note:* if you are using personal github account don't forget to change `getTempRepository()` to `gitHub.getRepository("${your_account}/${test_method_name}")` +in order to match with snapshot file name for wiremock. To double-check run test without `-Dtest.github.org=false` flag after snapshot is saved. + Add all files including the generated data to your commit and submit a PR. ### Modifying existing tests From 9e039578847875db3d2875da40cb12810bcd47b3 Mon Sep 17 00:00:00 2001 From: konstantin Date: Mon, 28 Aug 2023 00:26:11 +0300 Subject: [PATCH 11/17] Fix created search param caused by timezone diff --- .../search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json index 64f5ee8333..76b600b126 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json @@ -2,7 +2,7 @@ "id": "f2423970-92eb-4887-98cd-bf1f92fc9af0", "name": "search_issues", "request": { - "url": "/search/issues?q=author%3A%40me+is%3Aopen+created%3A%3E2023-08-23+is%3Apr", + "url": "/search/issues?q=author%3A%40me+is%3Aopen+created%3A%3E2023-08-22+is%3Apr", "method": "GET", "headers": { "Accept": { From 74f407a26b21daf7688c657bfe4e2c57a31e0cec Mon Sep 17 00:00:00 2001 From: konstantin Date: Fri, 1 Sep 2023 01:59:59 +0300 Subject: [PATCH 12/17] Fix code coverage --- pom.xml | 1 + src/test/java/org/kohsuke/github/EnumTest.java | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/pom.xml b/pom.xml index 154f516e0b..6809e98228 100644 --- a/pom.xml +++ b/pom.xml @@ -185,6 +185,7 @@ org.kohsuke.github.GHCommitSearchBuilder org.kohsuke.github.GHRepositorySearchBuilder org.kohsuke.github.GHUserSearchBuilder + org.kohsuke.github.GHPullRequestSearchBuilder org.kohsuke.github.GHBranchProtection.RequiredSignatures diff --git a/src/test/java/org/kohsuke/github/EnumTest.java b/src/test/java/org/kohsuke/github/EnumTest.java index 59cf1f4d44..4073777fff 100644 --- a/src/test/java/org/kohsuke/github/EnumTest.java +++ b/src/test/java/org/kohsuke/github/EnumTest.java @@ -87,6 +87,13 @@ public void touchEnums() { assertThat(GHUserSearchBuilder.Sort.values().length, equalTo(3)); assertThat(GHIssueQueryBuilder.Sort.values().length, equalTo(3)); + + assertThat(GHPullRequestSearchBuilder.Sort.values().length, equalTo(4)); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.values().length, equalTo(4)); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.ABSENT.getStatus(), equalTo("none")); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.REQUIRED.getStatus(), equalTo("required")); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.APPROVED.getStatus(), equalTo("approved")); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.REJECTED.getStatus(), equalTo("changes_requested")); } } From 7c98382bce65bdf7deebc5e6474e2b5eaabcfd2c Mon Sep 17 00:00:00 2001 From: konstantin Date: Wed, 13 Sep 2023 01:19:00 +0300 Subject: [PATCH 13/17] Cover pull request search builder more than 90% --- pom.xml | 1 - .../github/GHPullRequestSearchBuilder.java | 237 +++--------- src/test/java/org/kohsuke/github/AppTest.java | 32 +- .../java/org/kohsuke/github/EnumTest.java | 7 - .../org/kohsuke/github/GHRepositoryTest.java | 143 ++++++-- ...-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json | 132 ------- ...-dab37504-ac22-4006-9d54-edb9370da7f9.json | 52 --- ...-f1351870-10b6-4c1c-ab69-a0601a042525.json | 10 - ...-307fbc38-fce8-4c46-a375-da4dabb27f61.json | 10 - ...-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json | 342 ------------------ ...1d748378-ea81-4a4d-9068-4d1c65303469.json} | 100 ++--- ...-70ccae4c-cd27-45b8-a390-d9f89b89a095.json | 52 +++ ...-d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json | 10 + ...-5b36ecc3-bd45-45a3-83c3-2a45392f39af.json | 10 + ...2d4d1182-63ad-4679-8400-09d6bb86972b.json} | 38 +- ...-9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json | 342 ++++++++++++++++++ ...e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json} | 38 +- ...033591e8-135e-417a-94a5-e21a9852e3f4.json} | 2 +- ...fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json} | 2 +- ...1d748378-ea81-4a4d-9068-4d1c65303469.json} | 24 +- ...70ccae4c-cd27-45b8-a390-d9f89b89a095.json} | 22 +- ...d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json} | 26 +- ...5b36ecc3-bd45-45a3-83c3-2a45392f39af.json} | 24 +- ...2d4d1182-63ad-4679-8400-09d6bb86972b.json} | 22 +- ...9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json} | 24 +- ...88d770e7-00cf-4e45-bfa7-6325985ae046.json} | 18 +- ...e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json} | 18 +- ...033591e8-135e-417a-94a5-e21a9852e3f4.json} | 18 +- ...-fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json | 50 +++ ...59314163-2543-4386-b9bd-8e0bfa1810f7.json} | 10 +- ...-2dba7301-deb7-4aed-b916-62bf0cb8b153.json | 53 +++ ...63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json} | 36 +- ...-2f019529-79f0-4ead-8863-47f4f8f781e5.json | 52 +++ ...-21888de2-c4fb-4666-9d04-2616634778c6.json | 10 + ...-3b80876f-5673-4dad-8e08-dc5a1446cb99.json | 10 + ...-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json | 10 - ...8cbcd7f7-01aa-4355-a478-38bd54344d10.json} | 6 +- ...-545ac0ff-717b-4b98-976e-f1edba7ae125.json | 79 ++++ ...-522c54ba-d2b8-41c6-a131-de0613068bd7.json | 79 ++++ ...-66f05bb3-1663-4725-8069-8bea635d4a29.json | 119 ++++++ ...-e30a8aad-4f2f-428e-901f-560f00e0a151.json | 44 +++ ...23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json} | 46 +-- ...-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json | 342 ++++++++++++++++++ ...-051617ba-2a65-4df1-8832-8f6bf88ef10b.json | 125 +++++++ ...-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json | 125 +++++++ ...-1c30da3f-c313-4412-8041-ef5e03ece107.json | 204 +++++++++++ ...-24dcaca4-15de-4355-b930-dcaeadbe7049.json | 204 +++++++++++ ...-250f059f-0f79-485a-bcef-b4f09241cb2d.json | 125 +++++++ ...-329cc3c7-8af4-4a6f-9efc-96caf610c448.json | 125 +++++++ ...-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json | 125 +++++++ ...-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json | 204 +++++++++++ ...-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json | 204 +++++++++++ ...-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json | 204 +++++++++++ ...-547f6dd4-5c44-407e-80b9-31c0946c5649.json | 125 +++++++ ...-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json | 125 +++++++ ...-82602db5-a742-4a9e-b67c-a287e50f7e05.json | 204 +++++++++++ ...90e45fa7-a539-4080-9ad7-766ccb7292a2.json} | 32 +- ...-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json | 125 +++++++ ...-9c672c12-a76e-41b6-a4d4-3ba416792e70.json | 125 +++++++ ...-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json | 125 +++++++ ...-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json | 125 +++++++ ...-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json | 204 +++++++++++ ...-c059f6f1-e31d-436c-87ba-8f9e534537ea.json | 125 +++++++ ...-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json | 125 +++++++ ...-dfb35787-f281-43c1-aa03-546d41b91804.json | 204 +++++++++++ ...eb3d246a-f8df-484b-89de-f448fb2aa18d.json} | 32 +- ...-f805cc74-e0b6-494d-9f8e-7388d40689e1.json | 204 +++++++++++ ...-fd9550e8-2307-4d76-8236-ff856a96e03e.json | 125 +++++++ ...-a52c5304-137c-46cd-a946-e62ab67c86ff.json | 34 ++ ...59314163-2543-4386-b9bd-8e0bfa1810f7.json} | 23 +- ...-643757b3-01d8-4e79-a849-513a69849eb3.json | 52 --- ...-2dba7301-deb7-4aed-b916-62bf0cb8b153.json | 49 +++ ...-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json | 56 +++ ...2f019529-79f0-4ead-8863-47f4f8f781e5.json} | 24 +- ...21888de2-c4fb-4666-9d04-2616634778c6.json} | 22 +- ...-3b80876f-5673-4dad-8e08-dc5a1446cb99.json | 57 +++ ...8cbcd7f7-01aa-4355-a478-38bd54344d10.json} | 20 +- ...-545ac0ff-717b-4b98-976e-f1edba7ae125.json | 56 +++ ...-522c54ba-d2b8-41c6-a131-de0613068bd7.json | 56 +++ ...-66f05bb3-1663-4725-8069-8bea635d4a29.json | 56 +++ ...-e30a8aad-4f2f-428e-901f-560f00e0a151.json | 57 +++ ...23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json} | 22 +- ...-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json | 57 +++ ...54522815-98f1-42d6-a391-c3d305c4f4e8.json} | 24 +- ...-051617ba-2a65-4df1-8832-8f6bf88ef10b.json | 50 +++ ...-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json | 51 +++ ...-1c30da3f-c313-4412-8041-ef5e03ece107.json | 50 +++ ...-24dcaca4-15de-4355-b930-dcaeadbe7049.json | 51 +++ ...-250f059f-0f79-485a-bcef-b4f09241cb2d.json | 50 +++ ...-329cc3c7-8af4-4a6f-9efc-96caf610c448.json | 51 +++ ...3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json} | 20 +- ...-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json | 51 +++ ...-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json | 50 +++ ...-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json | 51 +++ ...-547f6dd4-5c44-407e-80b9-31c0946c5649.json | 51 +++ ...-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json | 50 +++ ...82602db5-a742-4a9e-b67c-a287e50f7e05.json} | 22 +- ...-90e45fa7-a539-4080-9ad7-766ccb7292a2.json | 51 +++ ...-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json | 50 +++ ...-9c672c12-a76e-41b6-a4d4-3ba416792e70.json | 51 +++ ...-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json | 51 +++ ...a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json} | 20 +- ...-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json | 51 +++ ...-c059f6f1-e31d-436c-87ba-8f9e534537ea.json | 50 +++ ...-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json | 51 +++ ...-dfb35787-f281-43c1-aa03-546d41b91804.json | 51 +++ ...-eb3d246a-f8df-484b-89de-f448fb2aa18d.json | 50 +++ ...-f805cc74-e0b6-494d-9f8e-7388d40689e1.json | 51 +++ ...-fd9550e8-2307-4d76-8236-ff856a96e03e.json | 50 +++ ...a52c5304-137c-46cd-a946-e62ab67c86ff.json} | 18 +- 110 files changed, 6989 insertions(+), 1221 deletions(-) delete mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json delete mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json delete mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json delete mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json delete mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json rename src/test/resources/org/kohsuke/github/{GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json => AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch-1d748378-ea81-4a4d-9068-4d1c65303469.json} (58%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_contents_refs_heads_kgromov-test-70ccae4c-cd27-45b8-a390-d9f89b89a095.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_git_refs-d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_git_refs_heads_main-5b36ecc3-bd45-45a3-83c3-2a45392f39af.json rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/{repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json => repos_kgromov_temp-testpullrequestsearch_issues_1-2d4d1182-63ad-4679-8400-09d6bb86972b.json} (55%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_pulls-9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/{search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json => search_issues-e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json} (58%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/{user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json => user-033591e8-135e-417a-94a5-e21a9852e3f4.json} (98%) rename src/test/resources/org/kohsuke/github/{GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json => AppTest/wiremock/testPullRequestSearch/__files/users_kgromov-fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json} (98%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/{repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json => repos_kgromov_temp-testpullrequestsearch-1d748378-ea81-4a4d-9068-4d1c65303469.json} (69%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/{repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json => repos_kgromov_temp-testpullrequestsearch_contents_refs_heads_kgromov-test-70ccae4c-cd27-45b8-a390-d9f89b89a095.json} (71%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/{repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json => repos_kgromov_temp-testpullrequestsearch_git_refs-d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json} (67%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/{repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json => repos_kgromov_temp-testpullrequestsearch_git_refs_heads_main-5b36ecc3-bd45-45a3-83c3-2a45392f39af.json} (68%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/{repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json => repos_kgromov_temp-testpullrequestsearch_issues_1-2d4d1182-63ad-4679-8400-09d6bb86972b.json} (72%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/{repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json => repos_kgromov_temp-testpullrequestsearch_pulls-9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json} (72%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/{search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json => search_issues-88d770e7-00cf-4e45-bfa7-6325985ae046.json} (77%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/{search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json => search_issues-e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json} (74%) rename src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/{user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json => user-033591e8-135e-417a-94a5-e21a9852e3f4.json} (77%) create mode 100644 src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/users_kgromov-fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json => repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json} (97%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json => repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json} (57%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json => repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json} (57%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json => repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json} (95%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json => search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json} (81%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json => search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json} (81%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json => repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json} (68%) delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json => repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json} (73%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json => repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json} (75%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json => repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json} (77%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json => repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json} (74%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-993e1ef6-ba3b-4bae-a365-6066bed98e4b.json => repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-54522815-98f1-42d6-a391-c3d305c4f4e8.json} (74%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json => search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json} (73%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-2466009e-cb2f-4870-b09f-cde89f674143.json => search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json} (69%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json => search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json} (74%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{user-fe00cd16-9679-412b-9f40-5bddfef7d036.json => user-a52c5304-137c-46cd-a946-e62ab67c86ff.json} (77%) diff --git a/pom.xml b/pom.xml index 6809e98228..154f516e0b 100644 --- a/pom.xml +++ b/pom.xml @@ -185,7 +185,6 @@ org.kohsuke.github.GHCommitSearchBuilder org.kohsuke.github.GHRepositorySearchBuilder org.kohsuke.github.GHUserSearchBuilder - org.kohsuke.github.GHPullRequestSearchBuilder org.kohsuke.github.GHBranchProtection.RequiredSignatures diff --git a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java index bf45a52061..0da6e6b8ca 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java @@ -3,8 +3,6 @@ import java.time.LocalDate; import java.time.format.DateTimeFormatter; -import static org.kohsuke.github.GHPullRequestSearchBuilder.ReviewStatus.*; - /** * Search for pull requests by main search terms in order to narrow down search results. * @@ -24,118 +22,97 @@ public class GHPullRequestSearchBuilder extends GHSearchBuilder { } /** - * Mentions gh pull request search builder. - * - * @param u - * the gh user - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder mentions(GHUser u) { - return mentions(u.getLogin()); - } - - /** - * Mentions gh pull request search builder. + * Repository gh pull request search builder. * - * @param login - * the login + * @param repository + * the repository * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder mentions(String login) { - q("mentions", login); + public GHPullRequestSearchBuilder repo(GHRepository repository) { + q("repo", repository.getFullName()); return this; } /** - * Is open gh pull request search builder. - * - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder isOpen() { - return q("is:open"); - } - - /** - * Is closed gh pull request search builder. + * Author gh pull request search builder. * + * @param user + * the user as pr author * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder isClosed() { - return q("is:closed"); + public GHPullRequestSearchBuilder author(GHUser user) { + q("author", user.getLogin()); + return this; } /** - * Is merged gh pull request search builder. + * CreatedByMe gh pull request search builder. * * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder isMerged() { - return q("is:merged"); + public GHPullRequestSearchBuilder createdByMe() { + q("author:@me"); + return this; } /** - * Is draft gh pull request search builder. + * Assigned to gh pull request user. * + * @param u + * the gh user * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder isDraft() { - return q("draft:true"); + public GHPullRequestSearchBuilder assigned(GHUser u) { + q("assignee", u.getLogin()); + return this; } /** - * Repository gh pull request search builder. + * Mentions gh pull request search builder. * - * @param repository - * the repository + * @param u + * the gh user * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder repo(GHRepository repository) { - q("repo", repository.getFullName()); + public GHPullRequestSearchBuilder mentions(GHUser u) { + q("mentions", u.getLogin()); return this; } /** - * Author gh pull request search builder. + * Is open gh pull request search builder. * - * @param user - * the user as pr author * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder author(GHUser user) { - return this.author(user.getLogin()); + public GHPullRequestSearchBuilder isOpen() { + return q("is:open"); } /** - * Username as author gh pull request search builder. + * Is closed gh pull request search builder. * - * @param username - * the username as pr author * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder author(String username) { - q("author", username); - return this; + public GHPullRequestSearchBuilder isClosed() { + return q("is:closed"); } /** - * CreatedByMe gh pull request search builder. + * Is merged gh pull request search builder. * * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder createdByMe() { - q("author:@me"); - return this; + public GHPullRequestSearchBuilder isMerged() { + return q("is:merged"); } /** - * Head gh pull request search builder. + * Is draft gh pull request search builder. * - * @param branch - * the head branch * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder head(GHBranch branch) { - return this.head(branch.getName()); + public GHPullRequestSearchBuilder isDraft() { + return q("draft:true"); } /** @@ -145,8 +122,8 @@ public GHPullRequestSearchBuilder head(GHBranch branch) { * the head branch * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder head(String branch) { - q("head", branch); + public GHPullRequestSearchBuilder head(GHBranch branch) { + q("head", branch.getName()); return this; } @@ -158,18 +135,19 @@ public GHPullRequestSearchBuilder head(String branch) { * @return the gh pull request search builder */ public GHPullRequestSearchBuilder base(GHBranch branch) { - return this.base(branch.getName()); + q("base", branch.getName()); + return this; } /** - * Base gh pull request search builder. + * Commit gh pull request search builder. * - * @param branch - * the base branch + * @param sha + * the commit SHA * @return the gh pull request search builder */ - public GHPullRequestSearchBuilder base(String branch) { - q("base", branch); + public GHPullRequestSearchBuilder commit(String sha) { + q("SHA", sha); return this; } @@ -437,114 +415,6 @@ public GHPullRequestSearchBuilder titleLike(String title) { return this; } - /** - * Commit gh pull request search builder. - * - * @param sha - * the commit SHA - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder commit(String sha) { - q("SHA", sha); - return this; - } - - /** - * none review - * - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder notReviewed() { - q("review", ABSENT.getStatus()); - return this; - } - - /** - * required review - * - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder reviewRequired() { - q("review", REQUIRED.getStatus()); - return this; - } - - /** - * approved review - * - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder reviewApproved() { - q("review", APPROVED.getStatus()); - return this; - } - - /** - * rejected review - * - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder reviewRejected() { - q("review", REJECTED.getStatus()); - return this; - } - - /** - * reviewed by user - * - * @param user - * the user - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder reviewedBy(GHUser user) { - return this.reviewedBy(user.getLogin()); - } - - /** - * reviewed by username - * - * @param username - * the username - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder reviewedBy(String username) { - q("reviewed-by", username); - return this; - } - - /** - * requested for user - * - * @param user - * the user - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder requestedFor(GHUser user) { - return this.requestedFor(user.getLogin()); - } - - /** - * requested for user - * - * @param username - * the username - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder requestedFor(String username) { - q("review-requested", username); - return this; - } - - /** - * requested for me - * - * @return the gh pull request search builder - */ - public GHPullRequestSearchBuilder requestedForMe() { - q("user-review-requested:@me"); - return this; - } - /** * Order gh pull request search builder. * @@ -600,19 +470,6 @@ public enum Sort { /** The relevance. */ RELEVANCE - } - enum ReviewStatus { - ABSENT("none"), REQUIRED("required"), APPROVED("approved"), REJECTED("changes_requested"); - - private final String status; - - ReviewStatus(String status) { - this.status = status; - } - public String getStatus() { - return status; - } - } static GHPullRequestSearchBuilder from(GHPullRequestSearchBuilder searchBuilder) { diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java index b231cf2866..51a2827e68 100755 --- a/src/test/java/org/kohsuke/github/AppTest.java +++ b/src/test/java/org/kohsuke/github/AppTest.java @@ -16,8 +16,6 @@ import java.io.InputStream; import java.net.URL; import java.nio.charset.StandardCharsets; -import java.time.LocalDate; -import java.time.ZoneId; import java.util.*; import java.util.Map.Entry; import java.util.stream.Collectors; @@ -1439,40 +1437,34 @@ public void testIssueSearch() throws IOException { */ @Test public void testPullRequestSearch() throws Exception { - GHRepository repository = gitHub.getRepository("kgromov/github-api-test"); + GHRepository repository = gitHub.getRepository("kgromov/temp-testPullRequestSearch"); String mainHead = repository.getRef("heads/main").getObject().getSha(); - GHRef devBranch = repository.createRef("refs/heads/kgromov-test", mainHead); + GHRef headBranch = repository.createRef("refs/heads/kgromov-test", mainHead); repository.createContent() .content("Empty content") .message("test search") - .path(devBranch.getRef()) - .branch(devBranch.getRef()) + .path(headBranch.getRef()) + .branch(headBranch.getRef()) .commit(); - LocalDate createdDate = LocalDate.parse("2023-08-22"); GHPullRequest newPR = repository - .createPullRequest("New PR", devBranch.getRef(), "refs/heads/main", "Hello, merged PR"); + .createPullRequest("New PR", headBranch.getRef(), "refs/heads/main", "Hello, merged PR"); newPR.setLabels("test"); Thread.sleep(1000); + List pullRequests = gitHub.searchPullRequests() + .repo(repository) .createdByMe() .isOpen() .label("test") .list() .toList(); - assertThat(pullRequests.size(), greaterThan(0)); - for (GHPullRequest pullRequest : pullRequests) { - assertThat(pullRequest.getTitle(), is("New PR")); - assertThat(pullRequest.getUser().getLogin(), is(repository.getOwner().getLogin())); - assertThat(pullRequest.getState(), is(GHIssueState.OPEN)); - LocalDate createdAt = pullRequest.getCreatedAt().toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); - assertThat(createdAt, greaterThanOrEqualTo(createdDate)); - } + assertThat(pullRequests.size(), is(1)); + assertThat(pullRequests.get(0).getNumber(), is(newPR.getNumber())); - LocalDate newPrCreatedAt = newPR.getCreatedAt().toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); int totalCount = gitHub.searchPullRequests() - .createdByMe() - .isOpen() - .createdAfter(newPrCreatedAt, false) + .repo(repository) + .author(repository.getOwner()) + .isMerged() .list() .getTotalCount(); assertThat(totalCount, is(0)); diff --git a/src/test/java/org/kohsuke/github/EnumTest.java b/src/test/java/org/kohsuke/github/EnumTest.java index 4073777fff..59cf1f4d44 100644 --- a/src/test/java/org/kohsuke/github/EnumTest.java +++ b/src/test/java/org/kohsuke/github/EnumTest.java @@ -87,13 +87,6 @@ public void touchEnums() { assertThat(GHUserSearchBuilder.Sort.values().length, equalTo(3)); assertThat(GHIssueQueryBuilder.Sort.values().length, equalTo(3)); - - assertThat(GHPullRequestSearchBuilder.Sort.values().length, equalTo(4)); - assertThat(GHPullRequestSearchBuilder.ReviewStatus.values().length, equalTo(4)); - assertThat(GHPullRequestSearchBuilder.ReviewStatus.ABSENT.getStatus(), equalTo("none")); - assertThat(GHPullRequestSearchBuilder.ReviewStatus.REQUIRED.getStatus(), equalTo("required")); - assertThat(GHPullRequestSearchBuilder.ReviewStatus.APPROVED.getStatus(), equalTo("approved")); - assertThat(GHPullRequestSearchBuilder.ReviewStatus.REJECTED.getStatus(), equalTo("changes_requested")); } } diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java index 0bf880a317..b6ccd3974a 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java @@ -15,7 +15,6 @@ import java.io.InputStream; import java.net.URL; import java.time.LocalDate; -import java.time.ZoneId; import java.util.*; import java.util.stream.Collectors; @@ -1717,40 +1716,128 @@ public void cannotRetrievePermissionMaintainUser() throws IOException { @Test public void testSearchPullRequests() throws Exception { GHRepository repository = gitHub.getRepository("kgromov/temp-testSearchPullRequests"); + // prepare branches String mainHead = repository.getRef("heads/main").getObject().getSha(); - GHRef devBranch = repository.createRef("refs/heads/dev", mainHead); + GHRef draftBranch = repository.createRef("refs/heads/draft", mainHead); repository.createContent() + .content("Draft content") + .message("test search") + .path(draftBranch.getRef()) + .branch(draftBranch.getRef()) + .commit(); + GHRef branchToMerge = repository.createRef("refs/heads/branchToMerge", mainHead); + GHContentUpdateResponse commit = repository.createContent() .content("Empty content") .message("test search") - .path(devBranch.getRef()) - .branch(devBranch.getRef()) + .path(branchToMerge.getRef()) + .branch(branchToMerge.getRef()) .commit(); - - GHPullRequest ghPullRequest = repository - .createPullRequest("Temp PR", devBranch.getRef(), "refs/heads/main", "Hello, merged PR"); - ghPullRequest.merge("Merged test PR"); + // prepare pull requests + GHPullRequest draftPR = repository.createPullRequest("Temp draft PR", + draftBranch.getRef(), + "refs/heads/main", + "Hello, draft PR", + true, + true); + draftPR.setLabels("test"); + GHPullRequest mergedPR = repository + .createPullRequest("Temp merged PR", branchToMerge.getRef(), "refs/heads/main", "Hello, merged PR"); + mergedPR.setLabels("test"); + GHMyself myself = gitHub.getMyself(); + mergedPR.assignTo(myself); + mergedPR.comment("@" + myself.getLogin() + " approved"); + mergedPR.merge("Merged test PR"); Thread.sleep(1000); - LocalDate from = LocalDate.parse("2023-08-01"); - LocalDate to = LocalDate.parse("2023-08-23"); - GHPullRequestSearchBuilder searchBuilder = gitHub.searchPullRequests() - .createdByMe() - .isMerged() - .merged(from, to) + + // search by states + GHPullRequestSearchBuilder search = gitHub.searchPullRequests().repo(repository).isOpen().isDraft(); + PagedSearchIterable searchResult = repository.searchPullRequests(search); + this.verifySingleResult(searchResult, draftPR); + + search = gitHub.searchPullRequests().repo(repository).isClosed().isMerged(); + searchResult = repository.searchPullRequests(search); + this.verifySingleResult(searchResult, mergedPR); + + // search by dates + LocalDate from = LocalDate.parse("2023-09-01"); + LocalDate to = LocalDate.parse("2023-09-12"); + LocalDate afterRange = LocalDate.parse("2023-09-14"); + + search = gitHub.searchPullRequests() + .repo(repository) + .created(from, to) + .updated(from, to) + .sort(GHPullRequestSearchBuilder.Sort.UPDATED); + searchResult = repository.searchPullRequests(search); + this.verifyPluralResult(searchResult, mergedPR, draftPR); + + search = gitHub.searchPullRequests().repo(repository).merged(from, to).closed(from, to); + searchResult = repository.searchPullRequests(search); + this.verifySingleResult(searchResult, mergedPR); + + search = gitHub.searchPullRequests().repo(repository).created(to).updated(to).closed(to).merged(to); + searchResult = repository.searchPullRequests(search); + this.verifySingleResult(searchResult, mergedPR); + + search = gitHub.searchPullRequests() + .repo(repository) + .createdAfter(from, false) + .updatedAfter(from, false) + .mergedAfter(from, true) + .closedAfter(from, true); + searchResult = repository.searchPullRequests(search); + this.verifySingleResult(searchResult, mergedPR); + + search = gitHub.searchPullRequests() + .repo(repository) + .createdBefore(afterRange, false) + .updatedBefore(afterRange, false) + .closedBefore(afterRange, true) + .mergedBefore(afterRange, false); + searchResult = repository.searchPullRequests(search); + this.verifySingleResult(searchResult, mergedPR); + + // search by version control + Map branches = repository.getBranches(); + search = gitHub.searchPullRequests() + .base(branches.get("main")) + .head(branches.get("branchToMerge")) + .commit(commit.getCommit().getSha()); + searchResult = repository.searchPullRequests(search); + this.verifySingleResult(searchResult, mergedPR); + + // search by remaining filters + search = gitHub.searchPullRequests() + .repo(repository) + .titleLike("Temp") .sort(GHPullRequestSearchBuilder.Sort.CREATED); - PagedSearchIterable pullRequests = repository.searchPullRequests(searchBuilder); - assertThat(pullRequests.getTotalCount(), greaterThan(0)); - for (GHPullRequest pullRequest : pullRequests) { - assertThat(pullRequest.getTitle(), is("Temp PR")); - assertThat(pullRequest.getRepository(), is(repository)); - assertThat(pullRequest.getUser().getLogin(), is(repository.getOwner().getLogin())); - assertThat(pullRequest.getState(), is(GHIssueState.CLOSED)); - LocalDate closedAt = pullRequest.getClosedAt().toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); - assertThat(closedAt, greaterThanOrEqualTo(from)); - assertThat(closedAt, lessThanOrEqualTo(to)); - } + searchResult = repository.searchPullRequests(search); + this.verifyPluralResult(searchResult, draftPR, mergedPR); + + search = gitHub.searchPullRequests().repo(repository).inLabels(Set.of("test")).order(GHDirection.DESC); + searchResult = repository.searchPullRequests(search); + this.verifyPluralResult(searchResult, mergedPR, draftPR); + + search = gitHub.searchPullRequests().repo(repository).assigned(myself).mentions(myself); + searchResult = repository.searchPullRequests(search); + this.verifySingleResult(searchResult, mergedPR); + } + + private void verifyEmptyResult(PagedSearchIterable searchResult) { + assertThat(searchResult.getTotalCount(), is(0)); + } + + private void verifySingleResult(PagedSearchIterable searchResult, GHPullRequest expectedPR) + throws IOException { + assertThat(searchResult.getTotalCount(), is(1)); + assertThat(searchResult.toList().get(0).getNumber(), is(expectedPR.getNumber())); + } - searchBuilder = gitHub.searchPullRequests().createdByMe().isOpen().createdAfter(from, true); - pullRequests = repository.searchPullRequests(searchBuilder); - assertThat(pullRequests.getTotalCount(), is(0)); + private void verifyPluralResult(PagedSearchIterable searchResult, + GHPullRequest expectedPR1, + GHPullRequest expectedPR2) throws IOException { + assertThat(searchResult.getTotalCount(), is(2)); + assertThat(searchResult.toList().get(0).getNumber(), is(expectedPR1.getNumber())); + assertThat(searchResult.toList().get(1).getNumber(), is(expectedPR2.getNumber())); } } diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json deleted file mode 100644 index bc4fa8e9f7..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "id": 681836119, - "node_id": "R_kgDOKKP-Vw", - "name": "github-api-test", - "full_name": "kgromov/github-api-test", - "private": false, - "owner": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/kgromov/github-api-test", - "description": "A test repository for testing the github-api project: github-api-test", - "fork": false, - "url": "https://api.github.com/repos/kgromov/github-api-test", - "forks_url": "https://api.github.com/repos/kgromov/github-api-test/forks", - "keys_url": "https://api.github.com/repos/kgromov/github-api-test/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kgromov/github-api-test/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kgromov/github-api-test/teams", - "hooks_url": "https://api.github.com/repos/kgromov/github-api-test/hooks", - "issue_events_url": "https://api.github.com/repos/kgromov/github-api-test/issues/events{/number}", - "events_url": "https://api.github.com/repos/kgromov/github-api-test/events", - "assignees_url": "https://api.github.com/repos/kgromov/github-api-test/assignees{/user}", - "branches_url": "https://api.github.com/repos/kgromov/github-api-test/branches{/branch}", - "tags_url": "https://api.github.com/repos/kgromov/github-api-test/tags", - "blobs_url": "https://api.github.com/repos/kgromov/github-api-test/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kgromov/github-api-test/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kgromov/github-api-test/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kgromov/github-api-test/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kgromov/github-api-test/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kgromov/github-api-test/languages", - "stargazers_url": "https://api.github.com/repos/kgromov/github-api-test/stargazers", - "contributors_url": "https://api.github.com/repos/kgromov/github-api-test/contributors", - "subscribers_url": "https://api.github.com/repos/kgromov/github-api-test/subscribers", - "subscription_url": "https://api.github.com/repos/kgromov/github-api-test/subscription", - "commits_url": "https://api.github.com/repos/kgromov/github-api-test/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kgromov/github-api-test/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kgromov/github-api-test/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kgromov/github-api-test/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kgromov/github-api-test/contents/{+path}", - "compare_url": "https://api.github.com/repos/kgromov/github-api-test/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kgromov/github-api-test/merges", - "archive_url": "https://api.github.com/repos/kgromov/github-api-test/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kgromov/github-api-test/downloads", - "issues_url": "https://api.github.com/repos/kgromov/github-api-test/issues{/number}", - "pulls_url": "https://api.github.com/repos/kgromov/github-api-test/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kgromov/github-api-test/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kgromov/github-api-test/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kgromov/github-api-test/labels{/name}", - "releases_url": "https://api.github.com/repos/kgromov/github-api-test/releases{/id}", - "deployments_url": "https://api.github.com/repos/kgromov/github-api-test/deployments", - "created_at": "2023-08-22T21:37:03Z", - "updated_at": "2023-08-22T21:37:03Z", - "pushed_at": "2023-08-22T21:37:03Z", - "git_url": "git://github.com/kgromov/github-api-test.git", - "ssh_url": "git@github.com:kgromov/github-api-test.git", - "clone_url": "https://github.com/kgromov/github-api-test.git", - "svn_url": "https://github.com/kgromov/github-api-test", - "homepage": "http://github-api.kohsuke.org/", - "size": 0, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "has_discussions": false, - "forks_count": 0, - "mirror_url": null, - "archived": false, - "disabled": false, - "open_issues_count": 0, - "license": null, - "allow_forking": true, - "is_template": false, - "web_commit_signoff_required": false, - "topics": [], - "visibility": "public", - "forks": 0, - "open_issues": 0, - "watchers": 0, - "default_branch": "main", - "permissions": { - "admin": true, - "maintain": true, - "push": true, - "triage": true, - "pull": true - }, - "temp_clone_token": "", - "allow_squash_merge": true, - "allow_merge_commit": true, - "allow_rebase_merge": true, - "allow_auto_merge": false, - "delete_branch_on_merge": false, - "allow_update_branch": false, - "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", - "security_and_analysis": { - "secret_scanning": { - "status": "disabled" - }, - "secret_scanning_push_protection": { - "status": "disabled" - }, - "dependabot_security_updates": { - "status": "disabled" - } - }, - "network_count": 0, - "subscribers_count": 1 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json deleted file mode 100644 index 03c83c9d48..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "content": { - "name": "kgromov-test", - "path": "refs/heads/kgromov-test", - "sha": "c6efc981d368b755bff4a1059fc3b43a78e62f88", - "size": 13, - "url": "https://api.github.com/repos/kgromov/github-api-test/contents/refs/heads/kgromov-test?ref=refs/heads/kgromov-test", - "html_url": "https://github.com/kgromov/github-api-test/blob/refs/heads/kgromov-test/refs/heads/kgromov-test", - "git_url": "https://api.github.com/repos/kgromov/github-api-test/git/blobs/c6efc981d368b755bff4a1059fc3b43a78e62f88", - "download_url": "https://raw.githubusercontent.com/kgromov/github-api-test/refs/heads/kgromov-test/refs/heads/kgromov-test", - "type": "file", - "_links": { - "self": "https://api.github.com/repos/kgromov/github-api-test/contents/refs/heads/kgromov-test?ref=refs/heads/kgromov-test", - "git": "https://api.github.com/repos/kgromov/github-api-test/git/blobs/c6efc981d368b755bff4a1059fc3b43a78e62f88", - "html": "https://github.com/kgromov/github-api-test/blob/refs/heads/kgromov-test/refs/heads/kgromov-test" - } - }, - "commit": { - "sha": "b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161", - "node_id": "C_kwDOKKP-V9oAKGI3ZGUyYWRjYzZkNzFkM2FiOTlkY2RkNGMyYjQwNTg3Y2QxZjExNjE", - "url": "https://api.github.com/repos/kgromov/github-api-test/git/commits/b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161", - "html_url": "https://github.com/kgromov/github-api-test/commit/b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161", - "author": { - "name": "Konstantin Gromov", - "email": "rocky89@ukr.net", - "date": "2023-08-22T21:37:08Z" - }, - "committer": { - "name": "Konstantin Gromov", - "email": "rocky89@ukr.net", - "date": "2023-08-22T21:37:08Z" - }, - "tree": { - "sha": "99d76a9b31e7ca9e4db53ff0badf7071075a2de3", - "url": "https://api.github.com/repos/kgromov/github-api-test/git/trees/99d76a9b31e7ca9e4db53ff0badf7071075a2de3" - }, - "message": "test search", - "parents": [ - { - "sha": "4fb597b337d5425f72db2f1927d204a071be686f", - "url": "https://api.github.com/repos/kgromov/github-api-test/git/commits/4fb597b337d5425f72db2f1927d204a071be686f", - "html_url": "https://github.com/kgromov/github-api-test/commit/4fb597b337d5425f72db2f1927d204a071be686f" - } - ], - "verification": { - "verified": false, - "reason": "unsigned", - "signature": null, - "payload": null - } - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json deleted file mode 100644 index e630b48499..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ref": "refs/heads/kgromov-test", - "node_id": "REF_kwDOKKP-V7dyZWZzL2hlYWRzL2tncm9tb3YtdGVzdA", - "url": "https://api.github.com/repos/kgromov/github-api-test/git/refs/heads/kgromov-test", - "object": { - "sha": "4fb597b337d5425f72db2f1927d204a071be686f", - "type": "commit", - "url": "https://api.github.com/repos/kgromov/github-api-test/git/commits/4fb597b337d5425f72db2f1927d204a071be686f" - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json deleted file mode 100644 index 377e10e0b6..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ref": "refs/heads/main", - "node_id": "REF_kwDOKKP-V69yZWZzL2hlYWRzL21haW4", - "url": "https://api.github.com/repos/kgromov/github-api-test/git/refs/heads/main", - "object": { - "sha": "4fb597b337d5425f72db2f1927d204a071be686f", - "type": "commit", - "url": "https://api.github.com/repos/kgromov/github-api-test/git/commits/4fb597b337d5425f72db2f1927d204a071be686f" - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json deleted file mode 100644 index 94c013df98..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json +++ /dev/null @@ -1,342 +0,0 @@ -{ - "url": "https://api.github.com/repos/kgromov/github-api-test/pulls/1", - "id": 1485465515, - "node_id": "PR_kwDOKKP-V85Yimer", - "html_url": "https://github.com/kgromov/github-api-test/pull/1", - "diff_url": "https://github.com/kgromov/github-api-test/pull/1.diff", - "patch_url": "https://github.com/kgromov/github-api-test/pull/1.patch", - "issue_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1", - "number": 1, - "state": "open", - "locked": false, - "title": "New PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "body": "Hello, merged PR", - "created_at": "2023-08-22T21:37:09Z", - "updated_at": "2023-08-22T21:37:09Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": null, - "assignee": null, - "assignees": [], - "requested_reviewers": [], - "requested_teams": [], - "labels": [], - "milestone": null, - "draft": false, - "commits_url": "https://api.github.com/repos/kgromov/github-api-test/pulls/1/commits", - "review_comments_url": "https://api.github.com/repos/kgromov/github-api-test/pulls/1/comments", - "review_comment_url": "https://api.github.com/repos/kgromov/github-api-test/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/comments", - "statuses_url": "https://api.github.com/repos/kgromov/github-api-test/statuses/b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161", - "head": { - "label": "kgromov:kgromov-test", - "ref": "kgromov-test", - "sha": "b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 681836119, - "node_id": "R_kgDOKKP-Vw", - "name": "github-api-test", - "full_name": "kgromov/github-api-test", - "private": false, - "owner": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/kgromov/github-api-test", - "description": "A test repository for testing the github-api project: github-api-test", - "fork": false, - "url": "https://api.github.com/repos/kgromov/github-api-test", - "forks_url": "https://api.github.com/repos/kgromov/github-api-test/forks", - "keys_url": "https://api.github.com/repos/kgromov/github-api-test/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kgromov/github-api-test/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kgromov/github-api-test/teams", - "hooks_url": "https://api.github.com/repos/kgromov/github-api-test/hooks", - "issue_events_url": "https://api.github.com/repos/kgromov/github-api-test/issues/events{/number}", - "events_url": "https://api.github.com/repos/kgromov/github-api-test/events", - "assignees_url": "https://api.github.com/repos/kgromov/github-api-test/assignees{/user}", - "branches_url": "https://api.github.com/repos/kgromov/github-api-test/branches{/branch}", - "tags_url": "https://api.github.com/repos/kgromov/github-api-test/tags", - "blobs_url": "https://api.github.com/repos/kgromov/github-api-test/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kgromov/github-api-test/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kgromov/github-api-test/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kgromov/github-api-test/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kgromov/github-api-test/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kgromov/github-api-test/languages", - "stargazers_url": "https://api.github.com/repos/kgromov/github-api-test/stargazers", - "contributors_url": "https://api.github.com/repos/kgromov/github-api-test/contributors", - "subscribers_url": "https://api.github.com/repos/kgromov/github-api-test/subscribers", - "subscription_url": "https://api.github.com/repos/kgromov/github-api-test/subscription", - "commits_url": "https://api.github.com/repos/kgromov/github-api-test/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kgromov/github-api-test/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kgromov/github-api-test/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kgromov/github-api-test/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kgromov/github-api-test/contents/{+path}", - "compare_url": "https://api.github.com/repos/kgromov/github-api-test/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kgromov/github-api-test/merges", - "archive_url": "https://api.github.com/repos/kgromov/github-api-test/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kgromov/github-api-test/downloads", - "issues_url": "https://api.github.com/repos/kgromov/github-api-test/issues{/number}", - "pulls_url": "https://api.github.com/repos/kgromov/github-api-test/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kgromov/github-api-test/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kgromov/github-api-test/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kgromov/github-api-test/labels{/name}", - "releases_url": "https://api.github.com/repos/kgromov/github-api-test/releases{/id}", - "deployments_url": "https://api.github.com/repos/kgromov/github-api-test/deployments", - "created_at": "2023-08-22T21:37:03Z", - "updated_at": "2023-08-22T21:37:03Z", - "pushed_at": "2023-08-22T21:37:08Z", - "git_url": "git://github.com/kgromov/github-api-test.git", - "ssh_url": "git@github.com:kgromov/github-api-test.git", - "clone_url": "https://github.com/kgromov/github-api-test.git", - "svn_url": "https://github.com/kgromov/github-api-test", - "homepage": "http://github-api.kohsuke.org/", - "size": 0, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "has_discussions": false, - "forks_count": 0, - "mirror_url": null, - "archived": false, - "disabled": false, - "open_issues_count": 1, - "license": null, - "allow_forking": true, - "is_template": false, - "web_commit_signoff_required": false, - "topics": [], - "visibility": "public", - "forks": 0, - "open_issues": 1, - "watchers": 0, - "default_branch": "main" - } - }, - "base": { - "label": "kgromov:main", - "ref": "main", - "sha": "4fb597b337d5425f72db2f1927d204a071be686f", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 681836119, - "node_id": "R_kgDOKKP-Vw", - "name": "github-api-test", - "full_name": "kgromov/github-api-test", - "private": false, - "owner": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/kgromov/github-api-test", - "description": "A test repository for testing the github-api project: github-api-test", - "fork": false, - "url": "https://api.github.com/repos/kgromov/github-api-test", - "forks_url": "https://api.github.com/repos/kgromov/github-api-test/forks", - "keys_url": "https://api.github.com/repos/kgromov/github-api-test/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kgromov/github-api-test/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kgromov/github-api-test/teams", - "hooks_url": "https://api.github.com/repos/kgromov/github-api-test/hooks", - "issue_events_url": "https://api.github.com/repos/kgromov/github-api-test/issues/events{/number}", - "events_url": "https://api.github.com/repos/kgromov/github-api-test/events", - "assignees_url": "https://api.github.com/repos/kgromov/github-api-test/assignees{/user}", - "branches_url": "https://api.github.com/repos/kgromov/github-api-test/branches{/branch}", - "tags_url": "https://api.github.com/repos/kgromov/github-api-test/tags", - "blobs_url": "https://api.github.com/repos/kgromov/github-api-test/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kgromov/github-api-test/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kgromov/github-api-test/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kgromov/github-api-test/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kgromov/github-api-test/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kgromov/github-api-test/languages", - "stargazers_url": "https://api.github.com/repos/kgromov/github-api-test/stargazers", - "contributors_url": "https://api.github.com/repos/kgromov/github-api-test/contributors", - "subscribers_url": "https://api.github.com/repos/kgromov/github-api-test/subscribers", - "subscription_url": "https://api.github.com/repos/kgromov/github-api-test/subscription", - "commits_url": "https://api.github.com/repos/kgromov/github-api-test/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kgromov/github-api-test/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kgromov/github-api-test/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kgromov/github-api-test/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kgromov/github-api-test/contents/{+path}", - "compare_url": "https://api.github.com/repos/kgromov/github-api-test/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kgromov/github-api-test/merges", - "archive_url": "https://api.github.com/repos/kgromov/github-api-test/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kgromov/github-api-test/downloads", - "issues_url": "https://api.github.com/repos/kgromov/github-api-test/issues{/number}", - "pulls_url": "https://api.github.com/repos/kgromov/github-api-test/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kgromov/github-api-test/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kgromov/github-api-test/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kgromov/github-api-test/labels{/name}", - "releases_url": "https://api.github.com/repos/kgromov/github-api-test/releases{/id}", - "deployments_url": "https://api.github.com/repos/kgromov/github-api-test/deployments", - "created_at": "2023-08-22T21:37:03Z", - "updated_at": "2023-08-22T21:37:03Z", - "pushed_at": "2023-08-22T21:37:08Z", - "git_url": "git://github.com/kgromov/github-api-test.git", - "ssh_url": "git@github.com:kgromov/github-api-test.git", - "clone_url": "https://github.com/kgromov/github-api-test.git", - "svn_url": "https://github.com/kgromov/github-api-test", - "homepage": "http://github-api.kohsuke.org/", - "size": 0, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "has_discussions": false, - "forks_count": 0, - "mirror_url": null, - "archived": false, - "disabled": false, - "open_issues_count": 1, - "license": null, - "allow_forking": true, - "is_template": false, - "web_commit_signoff_required": false, - "topics": [], - "visibility": "public", - "forks": 0, - "open_issues": 1, - "watchers": 0, - "default_branch": "main" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/kgromov/github-api-test/pulls/1" - }, - "html": { - "href": "https://github.com/kgromov/github-api-test/pull/1" - }, - "issue": { - "href": "https://api.github.com/repos/kgromov/github-api-test/issues/1" - }, - "comments": { - "href": "https://api.github.com/repos/kgromov/github-api-test/issues/1/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/kgromov/github-api-test/pulls/1/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/kgromov/github-api-test/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/kgromov/github-api-test/pulls/1/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/kgromov/github-api-test/statuses/b7de2adcc6d71d3ab99dcdd4c2b40587cd1f1161" - } - }, - "author_association": "OWNER", - "auto_merge": null, - "active_lock_reason": null, - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": false, - "commits": 1, - "additions": 1, - "deletions": 0, - "changed_files": 1 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch-1d748378-ea81-4a4d-9068-4d1c65303469.json similarity index 58% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch-1d748378-ea81-4a4d-9068-4d1c65303469.json index 25e06fc2b5..16a3d50aa2 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch-1d748378-ea81-4a4d-9068-4d1c65303469.json @@ -1,8 +1,8 @@ { - "id": 681833870, - "node_id": "R_kgDOKKP1jg", - "name": "temp-testSearchPullRequests", - "full_name": "kgromov/temp-testSearchPullRequests", + "id": 690780740, + "node_id": "R_kgDOKSx6RA", + "name": "temp-testPullRequestSearch", + "full_name": "kgromov/temp-testPullRequestSearch", "private": false, "owner": { "login": "kgromov", @@ -24,53 +24,53 @@ "type": "User", "site_admin": false }, - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests", - "description": "A test repository for testing the github-api project: temp-testSearchPullRequests", + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch", + "description": "A test repository for testing the github-api project: temp-testPullRequestSearch", "fork": false, - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "forks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/forks", - "keys_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/teams", - "hooks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/hooks", - "issue_events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/events{/number}", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/events", - "assignees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/assignees{/user}", - "branches_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/branches{/branch}", - "tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/tags", - "blobs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/languages", - "stargazers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/stargazers", - "contributors_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contributors", - "subscribers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscribers", - "subscription_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscription", - "commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/{+path}", - "compare_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/merges", - "archive_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/downloads", - "issues_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues{/number}", - "pulls_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", - "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", - "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-08-22T21:27:48Z", - "updated_at": "2023-08-22T21:27:49Z", - "pushed_at": "2023-08-22T21:27:49Z", - "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", - "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", - "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", - "svn_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch", + "forks_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/forks", + "keys_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/teams", + "hooks_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/events", + "assignees_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/tags", + "blobs_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/subscription", + "commits_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/merges", + "archive_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/downloads", + "issues_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/deployments", + "created_at": "2023-09-12T21:36:38Z", + "updated_at": "2023-09-12T21:36:38Z", + "pushed_at": "2023-09-12T21:36:38Z", + "git_url": "git://github.com/kgromov/temp-testPullRequestSearch.git", + "ssh_url": "git@github.com:kgromov/temp-testPullRequestSearch.git", + "clone_url": "https://github.com/kgromov/temp-testPullRequestSearch.git", + "svn_url": "https://github.com/kgromov/temp-testPullRequestSearch", "homepage": "http://github-api.kohsuke.org/", "size": 0, "stargazers_count": 0, diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_contents_refs_heads_kgromov-test-70ccae4c-cd27-45b8-a390-d9f89b89a095.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_contents_refs_heads_kgromov-test-70ccae4c-cd27-45b8-a390-d9f89b89a095.json new file mode 100644 index 0000000000..1865b23bde --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_contents_refs_heads_kgromov-test-70ccae4c-cd27-45b8-a390-d9f89b89a095.json @@ -0,0 +1,52 @@ +{ + "content": { + "name": "kgromov-test", + "path": "refs/heads/kgromov-test", + "sha": "c6efc981d368b755bff4a1059fc3b43a78e62f88", + "size": 13, + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/contents/refs/heads/kgromov-test?ref=refs/heads/kgromov-test", + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch/blob/refs/heads/kgromov-test/refs/heads/kgromov-test", + "git_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/blobs/c6efc981d368b755bff4a1059fc3b43a78e62f88", + "download_url": "https://raw.githubusercontent.com/kgromov/temp-testPullRequestSearch/refs/heads/kgromov-test/refs/heads/kgromov-test", + "type": "file", + "_links": { + "self": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/contents/refs/heads/kgromov-test?ref=refs/heads/kgromov-test", + "git": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/blobs/c6efc981d368b755bff4a1059fc3b43a78e62f88", + "html": "https://github.com/kgromov/temp-testPullRequestSearch/blob/refs/heads/kgromov-test/refs/heads/kgromov-test" + } + }, + "commit": { + "sha": "b13674625cc8a8e663d1c4ab3776856387be0d6d", + "node_id": "C_kwDOKSx6RNoAKGIxMzY3NDYyNWNjOGE4ZTY2M2QxYzRhYjM3NzY4NTYzODdiZTBkNmQ", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/commits/b13674625cc8a8e663d1c4ab3776856387be0d6d", + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch/commit/b13674625cc8a8e663d1c4ab3776856387be0d6d", + "author": { + "name": "Konstantin Gromov", + "email": "rocky89@ukr.net", + "date": "2023-09-12T21:36:44Z" + }, + "committer": { + "name": "Konstantin Gromov", + "email": "rocky89@ukr.net", + "date": "2023-09-12T21:36:44Z" + }, + "tree": { + "sha": "7b355dd8ba3d679ea877b71fae20a70280554cb9", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/trees/7b355dd8ba3d679ea877b71fae20a70280554cb9" + }, + "message": "test search", + "parents": [ + { + "sha": "11ca01741fd0b293791f69ee19e523f3dc9a08d0", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/commits/11ca01741fd0b293791f69ee19e523f3dc9a08d0", + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch/commit/11ca01741fd0b293791f69ee19e523f3dc9a08d0" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_git_refs-d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_git_refs-d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json new file mode 100644 index 0000000000..897d4e747a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_git_refs-d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/kgromov-test", + "node_id": "REF_kwDOKSx6RLdyZWZzL2hlYWRzL2tncm9tb3YtdGVzdA", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/refs/heads/kgromov-test", + "object": { + "sha": "11ca01741fd0b293791f69ee19e523f3dc9a08d0", + "type": "commit", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/commits/11ca01741fd0b293791f69ee19e523f3dc9a08d0" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_git_refs_heads_main-5b36ecc3-bd45-45a3-83c3-2a45392f39af.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_git_refs_heads_main-5b36ecc3-bd45-45a3-83c3-2a45392f39af.json new file mode 100644 index 0000000000..3f71db8c28 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_git_refs_heads_main-5b36ecc3-bd45-45a3-83c3-2a45392f39af.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/main", + "node_id": "REF_kwDOKSx6RK9yZWZzL2hlYWRzL21haW4", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/refs/heads/main", + "object": { + "sha": "11ca01741fd0b293791f69ee19e523f3dc9a08d0", + "type": "commit", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/commits/11ca01741fd0b293791f69ee19e523f3dc9a08d0" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_issues_1-2d4d1182-63ad-4679-8400-09d6bb86972b.json similarity index 55% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_issues_1-2d4d1182-63ad-4679-8400-09d6bb86972b.json index 2ade0d2684..508963b5c9 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_issues_1-2d4d1182-63ad-4679-8400-09d6bb86972b.json @@ -1,12 +1,12 @@ { - "url": "https://api.github.com/repos/kgromov/github-api-test/issues/1", - "repository_url": "https://api.github.com/repos/kgromov/github-api-test", - "labels_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/comments", - "events_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/events", - "html_url": "https://github.com/kgromov/github-api-test/pull/1", - "id": 1862242135, - "node_id": "PR_kwDOKKP-V85Yimer", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch", + "labels_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1", + "id": 1893312725, + "node_id": "PR_kwDOKSx6RM5aLChA", "number": 1, "title": "New PR", "user": { @@ -31,9 +31,9 @@ }, "labels": [ { - "id": 5874970723, - "node_id": "LA_kwDOKKP-V88AAAABXizwYw", - "url": "https://api.github.com/repos/kgromov/github-api-test/labels/test", + "id": 5955506552, + "node_id": "LA_kwDOKSx6RM8AAAABYvnReA", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/labels/test", "name": "test", "color": "ededed", "default": false, @@ -46,23 +46,23 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-08-22T21:37:09Z", - "updated_at": "2023-08-22T21:37:10Z", + "created_at": "2023-09-12T21:36:45Z", + "updated_at": "2023-09-12T21:36:46Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, "draft": false, "pull_request": { - "url": "https://api.github.com/repos/kgromov/github-api-test/pulls/1", - "html_url": "https://github.com/kgromov/github-api-test/pull/1", - "diff_url": "https://github.com/kgromov/github-api-test/pull/1.diff", - "patch_url": "https://github.com/kgromov/github-api-test/pull/1.patch", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/1", + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1", + "diff_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1.patch", "merged_at": null }, "body": "Hello, merged PR", "closed_by": null, "reactions": { - "url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/reactions", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/reactions", "total_count": 0, "+1": 0, "-1": 0, @@ -73,7 +73,7 @@ "rocket": 0, "eyes": 0 }, - "timeline_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/timeline", + "timeline_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/timeline", "performed_via_github_app": null, "state_reason": null } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_pulls-9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_pulls-9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json new file mode 100644 index 0000000000..bd676ff114 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/repos_kgromov_temp-testpullrequestsearch_pulls-9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json @@ -0,0 +1,342 @@ +{ + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/1", + "id": 1512843328, + "node_id": "PR_kwDOKSx6RM5aLChA", + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1", + "diff_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1.patch", + "issue_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1", + "number": 1, + "state": "open", + "locked": false, + "title": "New PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "body": "Hello, merged PR", + "created_at": "2023-09-12T21:36:45Z", + "updated_at": "2023-09-12T21:36:45Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "draft": false, + "commits_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/1/commits", + "review_comments_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/1/comments", + "review_comment_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/comments", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/statuses/b13674625cc8a8e663d1c4ab3776856387be0d6d", + "head": { + "label": "kgromov:kgromov-test", + "ref": "kgromov-test", + "sha": "b13674625cc8a8e663d1c4ab3776856387be0d6d", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 690780740, + "node_id": "R_kgDOKSx6RA", + "name": "temp-testPullRequestSearch", + "full_name": "kgromov/temp-testPullRequestSearch", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch", + "description": "A test repository for testing the github-api project: temp-testPullRequestSearch", + "fork": false, + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch", + "forks_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/forks", + "keys_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/teams", + "hooks_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/events", + "assignees_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/tags", + "blobs_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/subscription", + "commits_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/merges", + "archive_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/downloads", + "issues_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/deployments", + "created_at": "2023-09-12T21:36:38Z", + "updated_at": "2023-09-12T21:36:38Z", + "pushed_at": "2023-09-12T21:36:44Z", + "git_url": "git://github.com/kgromov/temp-testPullRequestSearch.git", + "ssh_url": "git@github.com:kgromov/temp-testPullRequestSearch.git", + "clone_url": "https://github.com/kgromov/temp-testPullRequestSearch.git", + "svn_url": "https://github.com/kgromov/temp-testPullRequestSearch", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "main" + } + }, + "base": { + "label": "kgromov:main", + "ref": "main", + "sha": "11ca01741fd0b293791f69ee19e523f3dc9a08d0", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 690780740, + "node_id": "R_kgDOKSx6RA", + "name": "temp-testPullRequestSearch", + "full_name": "kgromov/temp-testPullRequestSearch", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch", + "description": "A test repository for testing the github-api project: temp-testPullRequestSearch", + "fork": false, + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch", + "forks_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/forks", + "keys_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/teams", + "hooks_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/events", + "assignees_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/tags", + "blobs_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/subscription", + "commits_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/merges", + "archive_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/downloads", + "issues_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/deployments", + "created_at": "2023-09-12T21:36:38Z", + "updated_at": "2023-09-12T21:36:38Z", + "pushed_at": "2023-09-12T21:36:44Z", + "git_url": "git://github.com/kgromov/temp-testPullRequestSearch.git", + "ssh_url": "git@github.com:kgromov/temp-testPullRequestSearch.git", + "clone_url": "https://github.com/kgromov/temp-testPullRequestSearch.git", + "svn_url": "https://github.com/kgromov/temp-testPullRequestSearch", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 1, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 1, + "watchers": 0, + "default_branch": "main" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/1" + }, + "html": { + "href": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1" + }, + "issue": { + "href": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1" + }, + "comments": { + "href": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/1/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/1/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/statuses/b13674625cc8a8e663d1c4ab3776856387be0d6d" + } + }, + "author_association": "OWNER", + "auto_merge": null, + "active_lock_reason": null, + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 0, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/search_issues-e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json similarity index 58% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/search_issues-e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json index dfec865e42..ebb2bd8692 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/search_issues-e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json @@ -3,14 +3,14 @@ "incomplete_results": false, "items": [ { - "url": "https://api.github.com/repos/kgromov/github-api-test/issues/1", - "repository_url": "https://api.github.com/repos/kgromov/github-api-test", - "labels_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/comments", - "events_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/events", - "html_url": "https://github.com/kgromov/github-api-test/pull/1", - "id": 1862242135, - "node_id": "PR_kwDOKKP-V85Yimer", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch", + "labels_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1", + "id": 1893312725, + "node_id": "PR_kwDOKSx6RM5aLChA", "number": 1, "title": "New PR", "user": { @@ -35,9 +35,9 @@ }, "labels": [ { - "id": 5874970723, - "node_id": "LA_kwDOKKP-V88AAAABXizwYw", - "url": "https://api.github.com/repos/kgromov/github-api-test/labels/test", + "id": 5955506552, + "node_id": "LA_kwDOKSx6RM8AAAABYvnReA", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/labels/test", "name": "test", "color": "ededed", "default": false, @@ -50,22 +50,22 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-08-22T21:37:09Z", - "updated_at": "2023-08-22T21:37:10Z", + "created_at": "2023-09-12T21:36:45Z", + "updated_at": "2023-09-12T21:36:46Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, "draft": false, "pull_request": { - "url": "https://api.github.com/repos/kgromov/github-api-test/pulls/1", - "html_url": "https://github.com/kgromov/github-api-test/pull/1", - "diff_url": "https://github.com/kgromov/github-api-test/pull/1.diff", - "patch_url": "https://github.com/kgromov/github-api-test/pull/1.patch", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/1", + "html_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1", + "diff_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testPullRequestSearch/pull/1.patch", "merged_at": null }, "body": "Hello, merged PR", "reactions": { - "url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/reactions", + "url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/reactions", "total_count": 0, "+1": 0, "-1": 0, @@ -76,7 +76,7 @@ "rocket": 0, "eyes": 0 }, - "timeline_url": "https://api.github.com/repos/kgromov/github-api-test/issues/1/timeline", + "timeline_url": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/issues/1/timeline", "performed_via_github_app": null, "state_reason": null, "score": 1 diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/user-033591e8-135e-417a-94a5-e21a9852e3f4.json similarity index 98% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/user-033591e8-135e-417a-94a5-e21a9852e3f4.json index 877db885fc..3394059e3c 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/user-033591e8-135e-417a-94a5-e21a9852e3f4.json @@ -25,7 +25,7 @@ "hireable": null, "bio": "Software developer at EG", "twitter_username": null, - "public_repos": 91, + "public_repos": 92, "public_gists": 11, "followers": 0, "following": 8, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/users_kgromov-fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json similarity index 98% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/users_kgromov-fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json index 877db885fc..42b81e367e 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/__files/users_kgromov-fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json @@ -25,7 +25,7 @@ "hireable": null, "bio": "Software developer at EG", "twitter_username": null, - "public_repos": 91, + "public_repos": 93, "public_gists": 11, "followers": 0, "following": 8, diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch-1d748378-ea81-4a4d-9068-4d1c65303469.json similarity index 69% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch-1d748378-ea81-4a4d-9068-4d1c65303469.json index 8c3ed5f997..9f0c0145d3 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch-1d748378-ea81-4a4d-9068-4d1c65303469.json @@ -1,8 +1,8 @@ { - "id": "3d4d26ab-bb8d-43bc-878a-781cc651e9d1", - "name": "repos_kgromov_github-api-test", + "id": "1d748378-ea81-4a4d-9068-4d1c65303469", + "name": "repos_kgromov_temp-testpullrequestsearch", "request": { - "url": "/repos/kgromov/github-api-test", + "url": "/repos/kgromov/temp-testPullRequestSearch", "method": "GET", "headers": { "Accept": { @@ -12,26 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_github-api-test-3d4d26ab-bb8d-43bc-878a-781cc651e9d1.json", + "bodyFileName": "repos_kgromov_temp-testpullrequestsearch-1d748378-ea81-4a4d-9068-4d1c65303469.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:37:07 GMT", + "Date": "Tue, 12 Sep 2023 21:36:42 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/\"2c5ee522e01bb4181fa63a46ca5c2dfdefc05e70873928f71a67413a95a3e5ad\"", - "Last-Modified": "Tue, 22 Aug 2023 21:37:03 GMT", + "ETag": "W/\"0714d0805652da6c9d6b7bdbff9c6b41c99163d3d698bcc33868adae2f1283b5\"", + "Last-Modified": "Tue, 12 Sep 2023 21:36:38 GMT", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4917", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "83", + "X-RateLimit-Remaining": "4946", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "54", "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 +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": "E249:9D83:185B0B4:188FFB2:64E52A83" + "X-GitHub-Request-Id": "FDA0:8845:1C3DDB2:1C7EEA6:6500D9EA" } }, - "uuid": "3d4d26ab-bb8d-43bc-878a-781cc651e9d1", + "uuid": "1d748378-ea81-4a4d-9068-4d1c65303469", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_contents_refs_heads_kgromov-test-70ccae4c-cd27-45b8-a390-d9f89b89a095.json similarity index 71% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_contents_refs_heads_kgromov-test-70ccae4c-cd27-45b8-a390-d9f89b89a095.json index 8903ca9f39..ade46f3839 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_contents_refs_heads_kgromov-test-70ccae4c-cd27-45b8-a390-d9f89b89a095.json @@ -1,8 +1,8 @@ { - "id": "dab37504-ac22-4006-9d54-edb9370da7f9", - "name": "repos_kgromov_github-api-test_contents_refs_heads_kgromov-test", + "id": "70ccae4c-cd27-45b8-a390-d9f89b89a095", + "name": "repos_kgromov_temp-testpullrequestsearch_contents_refs_heads_kgromov-test", "request": { - "url": "/repos/kgromov/github-api-test/contents/refs/heads/kgromov-test", + "url": "/repos/kgromov/temp-testPullRequestSearch/contents/refs/heads/kgromov-test", "method": "PUT", "headers": { "Accept": { @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_github-api-test_contents_refs_heads_kgromov-test-dab37504-ac22-4006-9d54-edb9370da7f9.json", + "bodyFileName": "repos_kgromov_temp-testpullrequestsearch_contents_refs_heads_kgromov-test-70ccae4c-cd27-45b8-a390-d9f89b89a095.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:37:09 GMT", + "Date": "Tue, 12 Sep 2023 21:36: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": "\"ff5df07e22d3ba6d8ffa95221b5b46a35e01c5c0b3d187af3cfac8fbc669b98c\"", + "ETag": "\"e1e104675d56f5412dd916b2bbef9cf649357be5e8bb4e7b94b56ad628632f81\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4914", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "86", + "X-RateLimit-Remaining": "4943", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "57", "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 +47,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": "E24C:8D1A:162CCDC:1661C0B:64E52A84" + "X-GitHub-Request-Id": "FDA3:0F2D:A1650F2:A2D9F29:6500D9EB" } }, - "uuid": "dab37504-ac22-4006-9d54-edb9370da7f9", + "uuid": "70ccae4c-cd27-45b8-a390-d9f89b89a095", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_git_refs-d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json similarity index 67% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_git_refs-d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json index 8254f2fe18..722eb39f89 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_git_refs-d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json @@ -1,8 +1,8 @@ { - "id": "f1351870-10b6-4c1c-ab69-a0601a042525", - "name": "repos_kgromov_github-api-test_git_refs", + "id": "d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2", + "name": "repos_kgromov_temp-testpullrequestsearch_git_refs", "request": { - "url": "/repos/kgromov/github-api-test/git/refs", + "url": "/repos/kgromov/temp-testPullRequestSearch/git/refs", "method": "POST", "headers": { "Accept": { @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/kgromov-test\",\"sha\":\"4fb597b337d5425f72db2f1927d204a071be686f\"}", + "equalToJson": "{\"ref\":\"refs/heads/kgromov-test\",\"sha\":\"11ca01741fd0b293791f69ee19e523f3dc9a08d0\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_github-api-test_git_refs-f1351870-10b6-4c1c-ab69-a0601a042525.json", + "bodyFileName": "repos_kgromov_temp-testpullrequestsearch_git_refs-d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:37:08 GMT", + "Date": "Tue, 12 Sep 2023 21:36: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": "\"b89aa6c2c35e69748f4a667c5750f9a1c41e4463e21490215a11285861173afc\"", + "ETag": "\"a29ada515ced8c070f9302e49c1edf42b6e2f4a3514dfde50e8d2b9f94ece4c3\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4915", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "85", + "X-RateLimit-Remaining": "4944", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "56", "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 +47,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": "E24B:FD76:D65A8:D93EF:64E52A84", - "Location": "https://api.github.com/repos/kgromov/github-api-test/git/refs/heads/kgromov-test" + "X-GitHub-Request-Id": "FDA2:A05D:4CE4FAC:4DADE35:6500D9EB", + "Location": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/git/refs/heads/kgromov-test" } }, - "uuid": "f1351870-10b6-4c1c-ab69-a0601a042525", + "uuid": "d9bac40d-ca5a-40dd-8a84-97c3f1b32fe2", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_git_refs_heads_main-5b36ecc3-bd45-45a3-83c3-2a45392f39af.json similarity index 68% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_git_refs_heads_main-5b36ecc3-bd45-45a3-83c3-2a45392f39af.json index eeb77c2d43..3999287679 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_git_refs_heads_main-5b36ecc3-bd45-45a3-83c3-2a45392f39af.json @@ -1,8 +1,8 @@ { - "id": "307fbc38-fce8-4c46-a375-da4dabb27f61", - "name": "repos_kgromov_github-api-test_git_refs_heads_main", + "id": "5b36ecc3-bd45-45a3-83c3-2a45392f39af", + "name": "repos_kgromov_temp-testpullrequestsearch_git_refs_heads_main", "request": { - "url": "/repos/kgromov/github-api-test/git/refs/heads/main", + "url": "/repos/kgromov/temp-testPullRequestSearch/git/refs/heads/main", "method": "GET", "headers": { "Accept": { @@ -12,27 +12,27 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_github-api-test_git_refs_heads_main-307fbc38-fce8-4c46-a375-da4dabb27f61.json", + "bodyFileName": "repos_kgromov_temp-testpullrequestsearch_git_refs_heads_main-5b36ecc3-bd45-45a3-83c3-2a45392f39af.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:37:08 GMT", + "Date": "Tue, 12 Sep 2023 21:36: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/\"65aaaf8e7eb966b9b04475ca7f3b41b8d6bf4b2cc1c66b694ebf21658c0e4afc\"", - "Last-Modified": "Tue, 22 Aug 2023 21:37:03 GMT", + "ETag": "W/\"42cbad8db276c5e7a651e14ab2aaa168a2a403d23805b9c7257dfd48ab1f23fd\"", + "Last-Modified": "Tue, 12 Sep 2023 21:36:38 GMT", "X-Poll-Interval": "300", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4916", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "84", + "X-RateLimit-Remaining": "4945", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "55", "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": "*", @@ -42,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": "E24A:FD76:D64BF:D9315:64E52A83" + "X-GitHub-Request-Id": "FDA1:260B:569347F:5767C7F:6500D9EA" } }, - "uuid": "307fbc38-fce8-4c46-a375-da4dabb27f61", + "uuid": "5b36ecc3-bd45-45a3-83c3-2a45392f39af", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_issues_1-2d4d1182-63ad-4679-8400-09d6bb86972b.json similarity index 72% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_issues_1-2d4d1182-63ad-4679-8400-09d6bb86972b.json index 2a4681f405..5933ff77e9 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_issues_1-2d4d1182-63ad-4679-8400-09d6bb86972b.json @@ -1,8 +1,8 @@ { - "id": "dfa4e203-ce09-49da-9307-1089e6a38996", - "name": "repos_kgromov_github-api-test_issues_1", + "id": "2d4d1182-63ad-4679-8400-09d6bb86972b", + "name": "repos_kgromov_temp-testpullrequestsearch_issues_1", "request": { - "url": "/repos/kgromov/github-api-test/issues/1", + "url": "/repos/kgromov/temp-testPullRequestSearch/issues/1", "method": "PATCH", "headers": { "Accept": { @@ -19,25 +19,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_github-api-test_issues_1-dfa4e203-ce09-49da-9307-1089e6a38996.json", + "bodyFileName": "repos_kgromov_temp-testpullrequestsearch_issues_1-2d4d1182-63ad-4679-8400-09d6bb86972b.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:37:11 GMT", + "Date": "Tue, 12 Sep 2023 21:36:46 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/\"5542c5d607753b4c72a0bf417cc66d06299fba7b249fd110bb44aeb88257badf\"", + "ETag": "W/\"cfeeecc9fb57a3faaca23551f786855fd7eb61cbe9d0ec97b585c64ef386c7ce\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4912", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "88", + "X-RateLimit-Remaining": "4941", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "59", "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 +47,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": "E24E:11B8A:1898434:18CD449:64E52A86" + "X-GitHub-Request-Id": "FDA5:537D:9D24DE3:9E97D8C:6500D9ED" } }, - "uuid": "dfa4e203-ce09-49da-9307-1089e6a38996", + "uuid": "2d4d1182-63ad-4679-8400-09d6bb86972b", "persistent": true, "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_pulls-9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json similarity index 72% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_pulls-9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json index 8fdf00eb6a..6746d6845d 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/repos_kgromov_temp-testpullrequestsearch_pulls-9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json @@ -1,8 +1,8 @@ { - "id": "9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc", - "name": "repos_kgromov_github-api-test_pulls", + "id": "9ecedc60-cd2d-446c-ac4c-e5945b8794bb", + "name": "repos_kgromov_temp-testpullrequestsearch_pulls", "request": { - "url": "/repos/kgromov/github-api-test/pulls", + "url": "/repos/kgromov/temp-testPullRequestSearch/pulls", "method": "POST", "headers": { "Accept": { @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_github-api-test_pulls-9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc.json", + "bodyFileName": "repos_kgromov_temp-testpullrequestsearch_pulls-9ecedc60-cd2d-446c-ac4c-e5945b8794bb.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:37:10 GMT", + "Date": "Tue, 12 Sep 2023 21:36: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": "\"75ff59835497bed98a5f1afe4c77144d1d0fc0113915add18472f2087a75db67\"", + "ETag": "\"3e2f6d01fc247a9a9b1af41890f506f12555981bf4cfdadb72c73dd12c3b948b\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "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": "4913", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "87", + "X-RateLimit-Remaining": "4942", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "58", "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 +47,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": "E24D:8D1A:162CF05:1661E2A:64E52A85", - "Location": "https://api.github.com/repos/kgromov/github-api-test/pulls/1" + "X-GitHub-Request-Id": "FDA4:E511:3F42249:3FE021F:6500D9EC", + "Location": "https://api.github.com/repos/kgromov/temp-testPullRequestSearch/pulls/1" } }, - "uuid": "9e3ee61a-16fc-43e1-8ec9-e7e58a4160dc", + "uuid": "9ecedc60-cd2d-446c-ac4c-e5945b8794bb", "persistent": true, "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-88d770e7-00cf-4e45-bfa7-6325985ae046.json similarity index 77% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-88d770e7-00cf-4e45-bfa7-6325985ae046.json index 76b600b126..07279548bc 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-f2423970-92eb-4887-98cd-bf1f92fc9af0.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-88d770e7-00cf-4e45-bfa7-6325985ae046.json @@ -1,8 +1,8 @@ { - "id": "f2423970-92eb-4887-98cd-bf1f92fc9af0", + "id": "88d770e7-00cf-4e45-bfa7-6325985ae046", "name": "search_issues", "request": { - "url": "/search/issues?q=author%3A%40me+is%3Aopen+created%3A%3E2023-08-22+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testPullRequestSearch+author%3Akgromov+is%3Amerged+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -15,7 +15,7 @@ "body": "{\"total_count\":0,\"incomplete_results\":false,\"items\":[]}", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:37:13 GMT", + "Date": "Tue, 12 Sep 2023 21:36:49 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", - "X-RateLimit-Remaining": "26", - "X-RateLimit-Reset": "1692740251", - "X-RateLimit-Used": "4", + "X-RateLimit-Remaining": "28", + "X-RateLimit-Reset": "1694554668", + "X-RateLimit-Used": "2", "X-RateLimit-Resource": "search", "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": "*", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E250:F335:17A941D:17DE3E4:64E52A89" + "X-GitHub-Request-Id": "FDA8:D272:51B6D8F:527FC66:6500D9F0" } }, - "uuid": "f2423970-92eb-4887-98cd-bf1f92fc9af0", + "uuid": "88d770e7-00cf-4e45-bfa7-6325985ae046", "persistent": true, - "insertionIndex": 9 + "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json similarity index 74% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json index 24c5bc8a76..cec89626e1 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/search_issues-e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json @@ -1,8 +1,8 @@ { - "id": "45b6e9d5-856e-4daa-a98d-7b433c418926", + "id": "e9db1949-51b0-4dfd-aecd-5ac4fa5505f4", "name": "search_issues", "request": { - "url": "/search/issues?q=author%3A%40me+is%3Aopen+label%3Atest+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testPullRequestSearch+author%3A%40me+is%3Aopen+label%3Atest+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-45b6e9d5-856e-4daa-a98d-7b433c418926.json", + "bodyFileName": "search_issues-e9db1949-51b0-4dfd-aecd-5ac4fa5505f4.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:37:12 GMT", + "Date": "Tue, 12 Sep 2023 21:36:48 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", - "X-RateLimit-Remaining": "27", - "X-RateLimit-Reset": "1692740251", - "X-RateLimit-Used": "3", + "X-RateLimit-Remaining": "29", + "X-RateLimit-Reset": "1694554668", + "X-RateLimit-Used": "1", "X-RateLimit-Resource": "search", "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": "*", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E24F:226F:144BB31:14809A0:64E52A88" + "X-GitHub-Request-Id": "FDA6:E511:3F42AE8:3FE0ADB:6500D9EF" } }, - "uuid": "45b6e9d5-856e-4daa-a98d-7b433c418926", + "uuid": "e9db1949-51b0-4dfd-aecd-5ac4fa5505f4", "persistent": true, "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/user-033591e8-135e-417a-94a5-e21a9852e3f4.json similarity index 77% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/user-033591e8-135e-417a-94a5-e21a9852e3f4.json index d4a3ec6f05..3695015b85 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/user-033591e8-135e-417a-94a5-e21a9852e3f4.json @@ -1,5 +1,5 @@ { - "id": "7e6a8032-578e-4ba3-ab7b-7fea58979a4c", + "id": "033591e8-135e-417a-94a5-e21a9852e3f4", "name": "user", "request": { "url": "/user", @@ -12,26 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "user-7e6a8032-578e-4ba3-ab7b-7fea58979a4c.json", + "bodyFileName": "user-033591e8-135e-417a-94a5-e21a9852e3f4.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:37:02 GMT", + "Date": "Tue, 12 Sep 2023 21:36:37 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/\"6ca483824c0beb8bcb118bf3795f39894416285cbd30bc5803b2826d133971ce\"", + "ETag": "W/\"07e140f41eb92dba5c93c21b66140307b3603456151547495fd368299cdd7330\"", "Last-Modified": "Fri, 28 Jul 2023 20:37:46 GMT", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4920", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "80", + "X-RateLimit-Remaining": "4949", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "51", "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 +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": "E247:E7D2:19049BB:1939F23:64E52A7E" + "X-GitHub-Request-Id": "FD9E:260B:569262B:5766DF0:6500D9E5" } }, - "uuid": "7e6a8032-578e-4ba3-ab7b-7fea58979a4c", + "uuid": "033591e8-135e-417a-94a5-e21a9852e3f4", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/users_kgromov-fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/users_kgromov-fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json new file mode 100644 index 0000000000..6a34c95818 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testPullRequestSearch/mappings/users_kgromov-fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json @@ -0,0 +1,50 @@ +{ + "id": "fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44", + "name": "users_kgromov", + "request": { + "url": "/users/kgromov", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "users_kgromov-fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 21:36:48 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/\"dbe218fb448a313470ca7eeba8545b99dfb47e1df997d605c3ea93d5f9df475b\"", + "Last-Modified": "Fri, 28 Jul 2023 20:37:46 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4940", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "60", + "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": "FDA7:E6C0:9CC8F17:9E3BD71:6500D9F0" + } + }, + "uuid": "fd7dc7ab-59e2-4fc4-ba00-1e7961be7c44", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json similarity index 97% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json index 28c8fdeb2e..4a23466670 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json @@ -1,6 +1,6 @@ { - "id": 681833870, - "node_id": "R_kgDOKKP1jg", + "id": 690788336, + "node_id": "R_kgDOKSyX8A", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -64,9 +64,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-08-22T21:27:48Z", - "updated_at": "2023-08-22T21:27:49Z", - "pushed_at": "2023-08-22T21:27:56Z", + "created_at": "2023-09-12T22:06:32Z", + "updated_at": "2023-09-12T22:06:33Z", + "pushed_at": "2023-09-12T22:06:33Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json new file mode 100644 index 0000000000..054c75793f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json @@ -0,0 +1,53 @@ +[ + { + "name": "branchToMerge", + "commit": { + "sha": "e70ac92dc8a342daed5784b3bd54c1185813b982", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits/e70ac92dc8a342daed5784b3bd54c1185813b982" + }, + "protected": false, + "protection": { + "enabled": false, + "required_status_checks": { + "enforcement_level": "off", + "contexts": [], + "checks": [] + } + }, + "protection_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/branches/branchToMerge/protection" + }, + { + "name": "draft", + "commit": { + "sha": "6fd9e8a226f0f48a6ac203adc8f13abca5afe875", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits/6fd9e8a226f0f48a6ac203adc8f13abca5afe875" + }, + "protected": false, + "protection": { + "enabled": false, + "required_status_checks": { + "enforcement_level": "off", + "contexts": [], + "checks": [] + } + }, + "protection_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/branches/draft/protection" + }, + { + "name": "main", + "commit": { + "sha": "ce18a7029a8faa65ccced3c22eff7235fdc14887", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits/ce18a7029a8faa65ccced3c22eff7235fdc14887" + }, + "protected": false, + "protection": { + "enabled": false, + "required_status_checks": { + "enforcement_level": "off", + "contexts": [], + "checks": [] + } + }, + "protection_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/branches/main/protection" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json index edde05d21c..d0b2929a67 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json @@ -1,45 +1,45 @@ { "content": { - "name": "dev", - "path": "refs/heads/dev", + "name": "branchToMerge", + "path": "refs/heads/branchToMerge", "sha": "c6efc981d368b755bff4a1059fc3b43a78e62f88", "size": 13, - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/dev?ref=refs/heads/dev", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/blob/refs/heads/dev/refs/heads/dev", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/branchToMerge?ref=refs/heads/branchToMerge", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/blob/refs/heads/branchToMerge/refs/heads/branchToMerge", "git_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs/c6efc981d368b755bff4a1059fc3b43a78e62f88", - "download_url": "https://raw.githubusercontent.com/kgromov/temp-testSearchPullRequests/refs/heads/dev/refs/heads/dev", + "download_url": "https://raw.githubusercontent.com/kgromov/temp-testSearchPullRequests/refs/heads/branchToMerge/refs/heads/branchToMerge", "type": "file", "_links": { - "self": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/dev?ref=refs/heads/dev", + "self": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/branchToMerge?ref=refs/heads/branchToMerge", "git": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs/c6efc981d368b755bff4a1059fc3b43a78e62f88", - "html": "https://github.com/kgromov/temp-testSearchPullRequests/blob/refs/heads/dev/refs/heads/dev" + "html": "https://github.com/kgromov/temp-testSearchPullRequests/blob/refs/heads/branchToMerge/refs/heads/branchToMerge" } }, "commit": { - "sha": "30782d8cd999539904ca996ffeef52cece823ae3", - "node_id": "C_kwDOKKP1jtoAKDMwNzgyZDhjZDk5OTUzOTkwNGNhOTk2ZmZlZWY1MmNlY2U4MjNhZTM", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/30782d8cd999539904ca996ffeef52cece823ae3", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/30782d8cd999539904ca996ffeef52cece823ae3", + "sha": "e70ac92dc8a342daed5784b3bd54c1185813b982", + "node_id": "C_kwDOKSyX8NoAKGU3MGFjOTJkYzhhMzQyZGFlZDU3ODRiM2JkNTRjMTE4NTgxM2I5ODI", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/e70ac92dc8a342daed5784b3bd54c1185813b982", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/e70ac92dc8a342daed5784b3bd54c1185813b982", "author": { "name": "Konstantin Gromov", "email": "rocky89@ukr.net", - "date": "2023-08-22T21:27:54Z" + "date": "2023-09-12T22:06:39Z" }, "committer": { "name": "Konstantin Gromov", "email": "rocky89@ukr.net", - "date": "2023-08-22T21:27:54Z" + "date": "2023-09-12T22:06:39Z" }, "tree": { - "sha": "a9bfff1d1682287382f133ee27f9c2bb5efcfb42", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees/a9bfff1d1682287382f133ee27f9c2bb5efcfb42" + "sha": "4ee65e01709145c6b4bf30792e9a3c233433eb8e", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees/4ee65e01709145c6b4bf30792e9a3c233433eb8e" }, "message": "test search", "parents": [ { - "sha": "32fe94ae1f6aa15b4302e22a51e28522e32ca593", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/32fe94ae1f6aa15b4302e22a51e28522e32ca593", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/32fe94ae1f6aa15b4302e22a51e28522e32ca593" + "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/33d4c1629baf1fc0c127839c7d605547daece11e", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/33d4c1629baf1fc0c127839c7d605547daece11e" } ], "verification": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json new file mode 100644 index 0000000000..5e07bed45d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json @@ -0,0 +1,52 @@ +{ + "content": { + "name": "draft", + "path": "refs/heads/draft", + "sha": "3eb0d66cf58c83d0094d63d27b0487e2b1f15f7d", + "size": 13, + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/draft?ref=refs/heads/draft", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/blob/refs/heads/draft/refs/heads/draft", + "git_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs/3eb0d66cf58c83d0094d63d27b0487e2b1f15f7d", + "download_url": "https://raw.githubusercontent.com/kgromov/temp-testSearchPullRequests/refs/heads/draft/refs/heads/draft", + "type": "file", + "_links": { + "self": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/draft?ref=refs/heads/draft", + "git": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs/3eb0d66cf58c83d0094d63d27b0487e2b1f15f7d", + "html": "https://github.com/kgromov/temp-testSearchPullRequests/blob/refs/heads/draft/refs/heads/draft" + } + }, + "commit": { + "sha": "6fd9e8a226f0f48a6ac203adc8f13abca5afe875", + "node_id": "C_kwDOKSyX8NoAKDZmZDllOGEyMjZmMGY0OGE2YWMyMDNhZGM4ZjEzYWJjYTVhZmU4NzU", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/6fd9e8a226f0f48a6ac203adc8f13abca5afe875", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/6fd9e8a226f0f48a6ac203adc8f13abca5afe875", + "author": { + "name": "Konstantin Gromov", + "email": "rocky89@ukr.net", + "date": "2023-09-12T22:06:38Z" + }, + "committer": { + "name": "Konstantin Gromov", + "email": "rocky89@ukr.net", + "date": "2023-09-12T22:06:38Z" + }, + "tree": { + "sha": "9b8530865b0a85f155bc5637a0a066995e518cc2", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees/9b8530865b0a85f155bc5637a0a066995e518cc2" + }, + "message": "test search", + "parents": [ + { + "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/33d4c1629baf1fc0c127839c7d605547daece11e", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/33d4c1629baf1fc0c127839c7d605547daece11e" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json new file mode 100644 index 0000000000..4c0489ddf6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/draft", + "node_id": "REF_kwDOKSyX8LByZWZzL2hlYWRzL2RyYWZ0", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/draft", + "object": { + "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", + "type": "commit", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/33d4c1629baf1fc0c127839c7d605547daece11e" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json new file mode 100644 index 0000000000..855f5ea888 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/branchToMerge", + "node_id": "REF_kwDOKSyX8LhyZWZzL2hlYWRzL2JyYW5jaFRvTWVyZ2U", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/branchToMerge", + "object": { + "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", + "type": "commit", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/33d4c1629baf1fc0c127839c7d605547daece11e" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json deleted file mode 100644 index e04ecc87ee..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ref": "refs/heads/dev", - "node_id": "REF_kwDOKKP1jq5yZWZzL2hlYWRzL2Rldg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/dev", - "object": { - "sha": "32fe94ae1f6aa15b4302e22a51e28522e32ca593", - "type": "commit", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/32fe94ae1f6aa15b4302e22a51e28522e32ca593" - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json index 072273502b..c3959f0a49 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/main", - "node_id": "REF_kwDOKKP1jq9yZWZzL2hlYWRzL21haW4", + "node_id": "REF_kwDOKSyX8K9yZWZzL2hlYWRzL21haW4", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/main", "object": { - "sha": "32fe94ae1f6aa15b4302e22a51e28522e32ca593", + "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", "type": "commit", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/32fe94ae1f6aa15b4302e22a51e28522e32ca593" + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/33d4c1629baf1fc0c127839c7d605547daece11e" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json new file mode 100644 index 0000000000..16c676dad8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json @@ -0,0 +1,79 @@ +{ + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "closed_by": null, + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json new file mode 100644 index 0000000000..bd5a46ee45 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json @@ -0,0 +1,79 @@ +{ + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:43Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": null + }, + "body": "Hello, merged PR", + "closed_by": null, + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json new file mode 100644 index 0000000000..611064c0f5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json @@ -0,0 +1,119 @@ +{ + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:44Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": null + }, + "body": "Hello, merged PR", + "closed_by": null, + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json new file mode 100644 index 0000000000..6f5d63ae64 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json @@ -0,0 +1,44 @@ +{ + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments/1716566121", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2#issuecomment-1716566121", + "issue_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "id": 1716566121, + "node_id": "IC_kwDOKSyX8M5mULhp", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?u=5899f1dffa2b72a70c43540c405c144a758d348e&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2023-09-12T22:06:45Z", + "updated_at": "2023-09-12T22:06:45Z", + "author_association": "OWNER", + "body": "@kgromov approved", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments/1716566121/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "performed_via_github_app": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json index 8b42e02048..0343a3c117 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json @@ -1,7 +1,7 @@ { "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", - "id": 1485457375, - "node_id": "PR_kwDOKKP1js5Yikff", + "id": 1512880500, + "node_id": "PR_kwDOKSyX8M5aLLl0", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", @@ -9,7 +9,7 @@ "number": 1, "state": "open", "locked": false, - "title": "Temp PR", + "title": "Temp draft PR", "user": { "login": "kgromov", "id": 9352794, @@ -30,9 +30,9 @@ "type": "User", "site_admin": false }, - "body": "Hello, merged PR", - "created_at": "2023-08-22T21:27:55Z", - "updated_at": "2023-08-22T21:27:55Z", + "body": "Hello, draft PR", + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:40Z", "closed_at": null, "merged_at": null, "merge_commit_sha": null, @@ -42,16 +42,16 @@ "requested_teams": [], "labels": [], "milestone": null, - "draft": false, + "draft": true, "commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/commits", "review_comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/comments", "review_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/comments{/number}", "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", - "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/30782d8cd999539904ca996ffeef52cece823ae3", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/6fd9e8a226f0f48a6ac203adc8f13abca5afe875", "head": { - "label": "kgromov:dev", - "ref": "dev", - "sha": "30782d8cd999539904ca996ffeef52cece823ae3", + "label": "kgromov:draft", + "ref": "draft", + "sha": "6fd9e8a226f0f48a6ac203adc8f13abca5afe875", "user": { "login": "kgromov", "id": 9352794, @@ -73,8 +73,8 @@ "site_admin": false }, "repo": { - "id": 681833870, - "node_id": "R_kgDOKKP1jg", + "id": 690788336, + "node_id": "R_kgDOKSyX8A", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -138,9 +138,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-08-22T21:27:48Z", - "updated_at": "2023-08-22T21:27:49Z", - "pushed_at": "2023-08-22T21:27:54Z", + "created_at": "2023-09-12T22:06:32Z", + "updated_at": "2023-09-12T22:06:33Z", + "pushed_at": "2023-09-12T22:06:39Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", @@ -176,7 +176,7 @@ "base": { "label": "kgromov:main", "ref": "main", - "sha": "32fe94ae1f6aa15b4302e22a51e28522e32ca593", + "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", "user": { "login": "kgromov", "id": 9352794, @@ -198,8 +198,8 @@ "site_admin": false }, "repo": { - "id": 681833870, - "node_id": "R_kgDOKKP1jg", + "id": 690788336, + "node_id": "R_kgDOKSyX8A", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -263,9 +263,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-08-22T21:27:48Z", - "updated_at": "2023-08-22T21:27:49Z", - "pushed_at": "2023-08-22T21:27:54Z", + "created_at": "2023-09-12T22:06:32Z", + "updated_at": "2023-09-12T22:06:33Z", + "pushed_at": "2023-09-12T22:06:39Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", @@ -321,7 +321,7 @@ "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/commits" }, "statuses": { - "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/30782d8cd999539904ca996ffeef52cece823ae3" + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/6fd9e8a226f0f48a6ac203adc8f13abca5afe875" } }, "author_association": "OWNER", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json new file mode 100644 index 0000000000..64f4d273cf --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json @@ -0,0 +1,342 @@ +{ + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "id": 1512880530, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "issue_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "number": 2, + "state": "open", + "locked": false, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "body": "Hello, merged PR", + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:42Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": null, + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "draft": false, + "commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2/commits", + "review_comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2/comments", + "review_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/e70ac92dc8a342daed5784b3bd54c1185813b982", + "head": { + "label": "kgromov:branchToMerge", + "ref": "branchToMerge", + "sha": "e70ac92dc8a342daed5784b3bd54c1185813b982", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 690788336, + "node_id": "R_kgDOKSyX8A", + "name": "temp-testSearchPullRequests", + "full_name": "kgromov/temp-testSearchPullRequests", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "description": "A test repository for testing the github-api project: temp-testSearchPullRequests", + "fork": false, + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "forks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/forks", + "keys_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/teams", + "hooks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/events", + "assignees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/tags", + "blobs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscription", + "commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/merges", + "archive_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/downloads", + "issues_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", + "created_at": "2023-09-12T22:06:32Z", + "updated_at": "2023-09-12T22:06:33Z", + "pushed_at": "2023-09-12T22:06:40Z", + "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", + "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", + "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", + "svn_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "main" + } + }, + "base": { + "label": "kgromov:main", + "ref": "main", + "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 690788336, + "node_id": "R_kgDOKSyX8A", + "name": "temp-testSearchPullRequests", + "full_name": "kgromov/temp-testSearchPullRequests", + "private": false, + "owner": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "description": "A test repository for testing the github-api project: temp-testSearchPullRequests", + "fork": false, + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "forks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/forks", + "keys_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/teams", + "hooks_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/hooks", + "issue_events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/events{/number}", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/events", + "assignees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/assignees{/user}", + "branches_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/branches{/branch}", + "tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/tags", + "blobs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/languages", + "stargazers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/stargazers", + "contributors_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contributors", + "subscribers_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscribers", + "subscription_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/subscription", + "commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/contents/{+path}", + "compare_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/merges", + "archive_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/downloads", + "issues_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues{/number}", + "pulls_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", + "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", + "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", + "created_at": "2023-09-12T22:06:32Z", + "updated_at": "2023-09-12T22:06:33Z", + "pushed_at": "2023-09-12T22:06:40Z", + "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", + "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", + "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", + "svn_url": "https://github.com/kgromov/temp-testSearchPullRequests", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 2, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 2, + "watchers": 0, + "default_branch": "main" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2" + }, + "html": { + "href": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2" + }, + "issue": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2" + }, + "comments": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/e70ac92dc8a342daed5784b3bd54c1185813b982" + } + }, + "author_association": "OWNER", + "auto_merge": null, + "active_lock_reason": null, + "merged": false, + "mergeable": null, + "rebaseable": null, + "mergeable_state": "unknown", + "merged_by": null, + "comments": 0, + "review_comments": 0, + "maintainer_can_modify": false, + "commits": 1, + "additions": 1, + "deletions": 0, + "changed_files": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json new file mode 100644 index 0000000000..5d139c1d56 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json new file mode 100644 index 0000000000..7ac2610137 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json new file mode 100644 index 0000000000..5d139c1d56 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json new file mode 100644 index 0000000000..7ac2610137 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json new file mode 100644 index 0000000000..5d139c1d56 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json new file mode 100644 index 0000000000..5d139c1d56 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json similarity index 81% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json index 989bc6b216..629d957047 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json @@ -9,10 +9,10 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1862232999, - "node_id": "PR_kwDOKKP1js5Yikff", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", "number": 1, - "title": "Temp PR", + "title": "Temp draft PR", "user": { "login": "kgromov", "id": 9352794, @@ -33,27 +33,37 @@ "type": "User", "site_admin": false }, - "labels": [], - "state": "closed", + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", "locked": false, "assignee": null, "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-08-22T21:27:55Z", - "updated_at": "2023-08-22T21:27:56Z", - "closed_at": "2023-08-22T21:27:56Z", + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, - "draft": false, + "draft": true, "pull_request": { "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", - "merged_at": "2023-08-22T21:27:56Z" + "merged_at": null }, - "body": "Hello, merged PR", + "body": "Hello, draft PR", "reactions": { "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", "total_count": 0, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json new file mode 100644 index 0000000000..5d139c1d56 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json new file mode 100644 index 0000000000..5d139c1d56 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json similarity index 81% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json index 989bc6b216..629d957047 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json @@ -9,10 +9,10 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1862232999, - "node_id": "PR_kwDOKKP1js5Yikff", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", "number": 1, - "title": "Temp PR", + "title": "Temp draft PR", "user": { "login": "kgromov", "id": 9352794, @@ -33,27 +33,37 @@ "type": "User", "site_admin": false }, - "labels": [], - "state": "closed", + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", "locked": false, "assignee": null, "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-08-22T21:27:55Z", - "updated_at": "2023-08-22T21:27:56Z", - "closed_at": "2023-08-22T21:27:56Z", + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, - "draft": false, + "draft": true, "pull_request": { "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", - "merged_at": "2023-08-22T21:27:56Z" + "merged_at": null }, - "body": "Hello, merged PR", + "body": "Hello, draft PR", "reactions": { "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", "total_count": 0, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json new file mode 100644 index 0000000000..7ac2610137 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1893366188, + "node_id": "PR_kwDOKSyX8M5aLLl0", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-09-12T22:06:40Z", + "updated_at": "2023-09-12T22:06:41Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json new file mode 100644 index 0000000000..5f71838f46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1893366260, + "node_id": "PR_kwDOKSyX8M5aLLmS", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 5955577634, + "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-09-12T22:06:42Z", + "updated_at": "2023-09-12T22:06:46Z", + "closed_at": "2023-09-12T22:06:46Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-09-12T22:06:46Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json new file mode 100644 index 0000000000..3394059e3c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json @@ -0,0 +1,34 @@ +{ + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false, + "name": "Konstantin Gromov", + "company": null, + "blog": "https://www.linkedin.com/in/konstantin-gromov-52466359/", + "location": "Odessa", + "email": "konst.gromov@gmail.com", + "hireable": null, + "bio": "Software developer at EG", + "twitter_username": null, + "public_repos": 92, + "public_gists": 11, + "followers": 0, + "following": 8, + "created_at": "2014-10-22T14:20:36Z", + "updated_at": "2023-07-28T20:37:46Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json similarity index 68% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json index 7a55f14030..af4dc53365 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json @@ -1,5 +1,5 @@ { - "id": "83046abb-1458-406f-bc9f-bfedd53e79e2", + "id": "59314163-2543-4386-b9bd-8e0bfa1810f7", "name": "repos_kgromov_temp-testsearchpullrequests", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests", @@ -12,26 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-83046abb-1458-406f-bc9f-bfedd53e79e2.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:52 GMT", + "Date": "Tue, 12 Sep 2023 22:06: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/\"6be9e5a472ae13c024afc3644d6b7145c24dd73d3096fb5643e19a4a1577ed2e\"", - "Last-Modified": "Tue, 22 Aug 2023 21:27:49 GMT", + "ETag": "W/\"e73bf2c607b8251211c97a1b9256b5f333a5d6a80e5030eae154b899972d9ed3\"", + "Last-Modified": "Tue, 12 Sep 2023 22:06:33 GMT", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4940", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "60", + "X-RateLimit-Remaining": "4851", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "149", "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,13 +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": "E1A0:66CD:17240AD:1757EC7:64E52858" + "X-GitHub-Request-Id": "CF72:0FE7:F0B829:F3465A:6500E0EC" } }, - "uuid": "83046abb-1458-406f-bc9f-bfedd53e79e2", + "uuid": "59314163-2543-4386-b9bd-8e0bfa1810f7", "persistent": true, - "scenarioName": "scenario-1-repos-kgromov-temp-testSearchPullRequests", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-1-repos-kgromov-temp-testSearchPullRequests-2", "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json deleted file mode 100644 index 16e7672fe8..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "id": "643757b3-01d8-4e79-a849-513a69849eb3", - "name": "repos_kgromov_temp-testsearchpullrequests", - "request": { - "url": "/repos/kgromov/temp-testSearchPullRequests", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-643757b3-01d8-4e79-a849-513a69849eb3.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:59 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/\"bd405203ce1c1a961864dfe57bf251c64678f556b36d8ca9408661f3d42d5060\"", - "Last-Modified": "Tue, 22 Aug 2023 21:27:49 GMT", - "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", - "X-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "github.v3; format=json", - "x-github-api-version-selected": "2022-11-28", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4934", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "66", - "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": "E1A8:226F:13F1751:1425471:64E5285F" - } - }, - "uuid": "643757b3-01d8-4e79-a849-513a69849eb3", - "persistent": true, - "scenarioName": "scenario-1-repos-kgromov-temp-testSearchPullRequests", - "requiredScenarioState": "scenario-1-repos-kgromov-temp-testSearchPullRequests-2", - "insertionIndex": 10 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json new file mode 100644 index 0000000000..e91daf096f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json @@ -0,0 +1,49 @@ +{ + "id": "2dba7301-deb7-4aed-b916-62bf0cb8b153", + "name": "repos_kgromov_temp-testsearchpullrequests_branches", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/branches", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06: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/\"54df8b3a443fceadf3b5ee7dd8e2a7a0274b2859966837a71d25724398110a68\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4838", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "162", + "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": "CF8E:0FE7:F0E9ED:F378BA:6500E0FE" + } + }, + "uuid": "2dba7301-deb7-4aed-b916-62bf0cb8b153", + "persistent": true, + "insertionIndex": 30 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json new file mode 100644 index 0000000000..a8c2fa61fa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json @@ -0,0 +1,56 @@ +{ + "id": "63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0", + "name": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/branchToMerge", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"refs/heads/branchToMerge\",\"message\":\"test search\",\"branch\":\"refs/heads/branchToMerge\",\"content\":\"RW1wdHkgY29udGVudA==\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:39 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": "\"0c87e042af5e09f0c214e4937aee2d9c7faae614c677e0d19b55400b2a415825\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4846", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "154", + "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": "CF77:FBD1:9E671ED:9FDD7DF:6500E0EF" + } + }, + "uuid": "63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json similarity index 73% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json index 546f7cf985..ddb1809670 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json @@ -1,8 +1,8 @@ { - "id": "5801e3c5-a664-4fc2-9a18-ba6f72ca05b9", - "name": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev", + "id": "2f019529-79f0-4ead-8863-47f4f8f781e5", + "name": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft", "request": { - "url": "/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/dev", + "url": "/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/draft", "method": "PUT", "headers": { "Accept": { @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"path\":\"refs/heads/dev\",\"message\":\"test search\",\"branch\":\"refs/heads/dev\",\"content\":\"RW1wdHkgY29udGVudA==\"}", + "equalToJson": "{\"path\":\"refs/heads/draft\",\"message\":\"test search\",\"branch\":\"refs/heads/draft\",\"content\":\"RHJhZnQgY29udGVudA==\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_dev-5801e3c5-a664-4fc2-9a18-ba6f72ca05b9.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:54 GMT", + "Date": "Tue, 12 Sep 2023 22:06:38 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": "\"b1e3f88d5b8226763a4205f07d41b2b27dc2796e7c5e318f52f1d773b0ba430f\"", + "ETag": "\"2b8aef282884d97b44086db3c80cc43398b0fc54d82acc41644d78f3ca912545\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4937", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "63", + "X-RateLimit-Remaining": "4848", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "152", "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 +47,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": "E1A3:13837:17B465F:17E8483:64E52859" + "X-GitHub-Request-Id": "CF75:8845:1D64509:1DA8DAC:6500E0EE" } }, - "uuid": "5801e3c5-a664-4fc2-9a18-ba6f72ca05b9", + "uuid": "2f019529-79f0-4ead-8863-47f4f8f781e5", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json similarity index 75% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json index 39df4a2a17..264e3d679d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json @@ -1,5 +1,5 @@ { - "id": "c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae", + "id": "21888de2-c4fb-4666-9d04-2616634778c6", "name": "repos_kgromov_temp-testsearchpullrequests_git_refs", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/dev\",\"sha\":\"32fe94ae1f6aa15b4302e22a51e28522e32ca593\"}", + "equalToJson": "{\"ref\":\"refs/heads/draft\",\"sha\":\"33d4c1629baf1fc0c127839c7d605547daece11e\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs-c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:53 GMT", + "Date": "Tue, 12 Sep 2023 22:06:37 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": "\"e7cfb96a9556ff771add9c1619f02af4f01c80e36b9acfa30677c78033c2a0d2\"", + "ETag": "\"9772cdaea5fb007d136ad1d47d8111511c96be527c067ea375a88951c24b1981\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4938", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "62", + "X-RateLimit-Remaining": "4849", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "151", "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 +47,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": "E1A2:BB2B:15603E2:1594206:64E52859", - "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/dev" + "X-GitHub-Request-Id": "CF74:0F2D:A2A4E8A:A41D466:6500E0ED", + "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/draft" } }, - "uuid": "c2dc2414-ac2b-40d0-ad09-74ade7cbd3ae", + "uuid": "21888de2-c4fb-4666-9d04-2616634778c6", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json new file mode 100644 index 0000000000..cb3dce659a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json @@ -0,0 +1,57 @@ +{ + "id": "3b80876f-5673-4dad-8e08-dc5a1446cb99", + "name": "repos_kgromov_temp-testsearchpullrequests_git_refs", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/git/refs", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/branchToMerge\",\"sha\":\"33d4c1629baf1fc0c127839c7d605547daece11e\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:39 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": "\"d703d3744b5ec88c052d5e2c1cd23d2e58a59af7e5297a83083a7fb8fa192d84\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4847", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "153", + "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": "CF76:072D:9ED45FA:A04AC13:6500E0EE", + "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/branchToMerge" + } + }, + "uuid": "3b80876f-5673-4dad-8e08-dc5a1446cb99", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json index 510cb38709..c5774b6f66 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json @@ -1,5 +1,5 @@ { - "id": "bd7f03d1-23fd-4d65-a41e-f765a9b37621", + "id": "8cbcd7f7-01aa-4355-a478-38bd54344d10", "name": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/main", @@ -12,27 +12,27 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-bd7f03d1-23fd-4d65-a41e-f765a9b37621.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:53 GMT", + "Date": "Tue, 12 Sep 2023 22:06:37 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/\"38fe2779bc4da5a50cd4c1cd30aafb4e68f16d0a0c9d70af02a4176a3d16096b\"", - "Last-Modified": "Tue, 22 Aug 2023 21:27:49 GMT", + "ETag": "W/\"7cf89bc6c9dc43f40e2fbd7d2384fb80135c607303d4efb863ea55543f2c004c\"", + "Last-Modified": "Tue, 12 Sep 2023 22:06:33 GMT", "X-Poll-Interval": "300", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4939", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "61", + "X-RateLimit-Remaining": "4850", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "150", "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": "*", @@ -42,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": "E1A1:226F:13F077C:1424463:64E52859" + "X-GitHub-Request-Id": "CF73:E6C0:9E1E9A4:9F94F6E:6500E0ED" } }, - "uuid": "bd7f03d1-23fd-4d65-a41e-f765a9b37621", + "uuid": "8cbcd7f7-01aa-4355-a478-38bd54344d10", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json new file mode 100644 index 0000000000..816721705f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json @@ -0,0 +1,56 @@ +{ + "id": "545ac0ff-717b-4b98-976e-f1edba7ae125", + "name": "repos_kgromov_temp-testsearchpullrequests_issues_1", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/issues/1", + "method": "PATCH", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"labels\":[\"test\"]}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:41 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/\"aa3924ddabf08233feac90a6845476052ee1ae5283c2b3c2296e3be5b65e0b09\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4844", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "156", + "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": "CF79:54B0:53BEC05:548B251:6500E0F1" + } + }, + "uuid": "545ac0ff-717b-4b98-976e-f1edba7ae125", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json new file mode 100644 index 0000000000..1c71d9c74b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json @@ -0,0 +1,56 @@ +{ + "id": "522c54ba-d2b8-41c6-a131-de0613068bd7", + "name": "repos_kgromov_temp-testsearchpullrequests_issues_2", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/issues/2", + "method": "PATCH", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"labels\":[\"test\"]}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06: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/\"6bb073a1d8adad2fb6526eac4270102b716fa25713faff6010102a40074ad552\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4842", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "158", + "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": "CF7B:8651:1CCE9D:1D341D:6500E0F3" + } + }, + "uuid": "522c54ba-d2b8-41c6-a131-de0613068bd7", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json new file mode 100644 index 0000000000..4432925347 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json @@ -0,0 +1,56 @@ +{ + "id": "66f05bb3-1663-4725-8069-8bea635d4a29", + "name": "repos_kgromov_temp-testsearchpullrequests_issues_2", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/issues/2", + "method": "PATCH", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"assignees\":[\"kgromov\"]}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06: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/\"6fc539dd34a49742d7cc3ec89adfbed489817337eeb62ed415091655f4d885a1\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4841", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "159", + "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": "CF7C:072D:9ED54FB:A04BB35:6500E0F4" + } + }, + "uuid": "66f05bb3-1663-4725-8069-8bea635d4a29", + "persistent": true, + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json new file mode 100644 index 0000000000..c7fc5b70d8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json @@ -0,0 +1,57 @@ +{ + "id": "e30a8aad-4f2f-428e-901f-560f00e0a151", + "name": "repos_kgromov_temp-testsearchpullrequests_issues_2_comments", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"body\":\"@kgromov approved\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06: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": "\"522c90658ffb04c818f8531e1606d679273772caebccc422871c4f444e1a092c\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4840", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "160", + "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": "CF7D:537D:9E62748:9FD8EA9:6500E0F5", + "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments/1716566121" + } + }, + "uuid": "e30a8aad-4f2f-428e-901f-560f00e0a151", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json similarity index 74% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json index 787aa3b2b5..3f412419d4 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json @@ -1,5 +1,5 @@ { - "id": "d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd", + "id": "23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8", "name": "repos_kgromov_temp-testsearchpullrequests_pulls", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/pulls", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"head\":\"refs/heads/dev\",\"draft\":false,\"maintainer_can_modify\":true,\"title\":\"Temp PR\",\"body\":\"Hello, merged PR\",\"base\":\"refs/heads/main\"}", + "equalToJson": "{\"head\":\"refs/heads/draft\",\"draft\":true,\"maintainer_can_modify\":true,\"title\":\"Temp draft PR\",\"body\":\"Hello, draft PR\",\"base\":\"refs/heads/main\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_pulls-d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:55 GMT", + "Date": "Tue, 12 Sep 2023 22:06:40 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": "\"908f1ac7f1a8d42239a092b1c25ded7cc46e1144e4ab8f648c3d9c2494378771\"", + "ETag": "\"ecb0227cfbebdbc5d6bced1a196b193312be96032bc1a886e42ddbc9fdc701bf\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "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": "4936", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "64", + "X-RateLimit-Remaining": "4845", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "155", "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 +47,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": "E1A4:6C4D:1591A04:15C57F0:64E5285A", + "X-GitHub-Request-Id": "CF78:54B0:53BE8B2:548AED6:6500E0EF", "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1" } }, - "uuid": "d7e62edc-dbf7-4f7f-9b5f-1db8c2f7f8cd", + "uuid": "23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8", "persistent": true, - "insertionIndex": 6 + "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json new file mode 100644 index 0000000000..ef3f0c0833 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json @@ -0,0 +1,57 @@ +{ + "id": "2310b7ca-8606-4773-8c00-e1bd6a1654f6", + "name": "repos_kgromov_temp-testsearchpullrequests_pulls", + "request": { + "url": "/repos/kgromov/temp-testSearchPullRequests/pulls", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.shadow-cat-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"head\":\"refs/heads/branchToMerge\",\"draft\":false,\"maintainer_can_modify\":true,\"title\":\"Temp merged PR\",\"body\":\"Hello, merged PR\",\"base\":\"refs/heads/main\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:42 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": "\"aa937f13191f1854383532a7cdded7dade9cf7ae68448bffd3f737a892ecb13f\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "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": "4843", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "157", + "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": "CF7A:8845:1D64DD3:1DA96A4:6500E0F2", + "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2" + } + }, + "uuid": "2310b7ca-8606-4773-8c00-e1bd6a1654f6", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-993e1ef6-ba3b-4bae-a365-6066bed98e4b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-54522815-98f1-42d6-a391-c3d305c4f4e8.json similarity index 74% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-993e1ef6-ba3b-4bae-a365-6066bed98e4b.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-54522815-98f1-42d6-a391-c3d305c4f4e8.json index e460d08a62..96df39f7b3 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_1_merge-993e1ef6-ba3b-4bae-a365-6066bed98e4b.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-54522815-98f1-42d6-a391-c3d305c4f4e8.json @@ -1,8 +1,8 @@ { - "id": "993e1ef6-ba3b-4bae-a365-6066bed98e4b", - "name": "repos_kgromov_temp-testsearchpullrequests_pulls_1_merge", + "id": "54522815-98f1-42d6-a391-c3d305c4f4e8", + "name": "repos_kgromov_temp-testsearchpullrequests_pulls_2_merge", "request": { - "url": "/repos/kgromov/temp-testSearchPullRequests/pulls/1/merge", + "url": "/repos/kgromov/temp-testSearchPullRequests/pulls/2/merge", "method": "PUT", "headers": { "Accept": { @@ -19,25 +19,25 @@ }, "response": { "status": 200, - "body": "{\"sha\":\"dce3078db7d013bb497556aa2326fd7e7be326a1\",\"merged\":true,\"message\":\"Pull Request successfully merged\"}", + "body": "{\"sha\":\"ce18a7029a8faa65ccced3c22eff7235fdc14887\",\"merged\":true,\"message\":\"Pull Request successfully merged\"}", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:56 GMT", + "Date": "Tue, 12 Sep 2023 22:06:47 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/\"bcbf1007436976ad976de0b968a69d7ebf7001781f63459edb1ddc3273665ef8\"", + "ETag": "W/\"fb7789f73d1756f53dc15aec5f0c4675a54d92069cadd2910859e5a8389416e8\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4935", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "65", + "X-RateLimit-Remaining": "4839", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "161", "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 +47,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": "E1A5:B938:1676390:16AA161:64E5285B" + "X-GitHub-Request-Id": "CF7E:260B:57C7B76:589FB7B:6500E0F6" } }, - "uuid": "993e1ef6-ba3b-4bae-a365-6066bed98e4b", + "uuid": "54522815-98f1-42d6-a391-c3d305c4f4e8", "persistent": true, - "insertionIndex": 7 + "insertionIndex": 14 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json new file mode 100644 index 0000000000..22fb8d1a88 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json @@ -0,0 +1,50 @@ +{ + "id": "051617ba-2a65-4df1-8832-8f6bf88ef10b", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+assignee%3Akgromov+mentions%3Akgromov+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "5", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "25", + "X-RateLimit-Resource": "search", + "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": "CF98:54B0:53C1DAE:548E47C:6500E103" + } + }, + "uuid": "051617ba-2a65-4df1-8832-8f6bf88ef10b", + "persistent": true, + "scenarioName": "scenario-11-search-issues", + "requiredScenarioState": "scenario-11-search-issues-2", + "insertionIndex": 40 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json new file mode 100644 index 0000000000..081198ebae --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json @@ -0,0 +1,51 @@ +{ + "id": "14bfad3d-76ee-4832-9c37-4a0fcadb182d", + "name": "search_issues", + "request": { + "url": "/search/issues?q=base%3Amain+head%3AbranchToMerge+SHA%3Ae70ac92dc8a342daed5784b3bd54c1185813b982+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:55 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "14", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "16", + "X-RateLimit-Resource": "search", + "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": "CF8F:54B0:53C12E7:548D98E:6500E0FF" + } + }, + "uuid": "14bfad3d-76ee-4832-9c37-4a0fcadb182d", + "persistent": true, + "scenarioName": "scenario-8-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-8-search-issues-2", + "insertionIndex": 31 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json new file mode 100644 index 0000000000..4ef0b751ab --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json @@ -0,0 +1,50 @@ +{ + "id": "1c30da3f-c313-4412-8041-ef5e03ece107", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-09-01..2023-09-12+updated%3A2023-09-01..2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:51 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "23", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "7", + "X-RateLimit-Resource": "search", + "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": "CF85:0FE7:F0DEFF:F36DD6:6500E0FB" + } + }, + "uuid": "1c30da3f-c313-4412-8041-ef5e03ece107", + "persistent": true, + "scenarioName": "scenario-3-search-issues", + "requiredScenarioState": "scenario-3-search-issues-3", + "insertionIndex": 21 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json new file mode 100644 index 0000000000..39fbd3bbbd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json @@ -0,0 +1,51 @@ +{ + "id": "24dcaca4-15de-4355-b930-dcaeadbe7049", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+Temp+in%3Atitle+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:56 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "12", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "18", + "X-RateLimit-Resource": "search", + "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": "CF91:072D:9ED74C7:A04DB65:6500E100" + } + }, + "uuid": "24dcaca4-15de-4355-b930-dcaeadbe7049", + "persistent": true, + "scenarioName": "scenario-9-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-9-search-issues-2", + "insertionIndex": 33 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json new file mode 100644 index 0000000000..3a5e780080 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json @@ -0,0 +1,50 @@ +{ + "id": "250f059f-0f79-485a-bcef-b4f09241cb2d", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3E2023-09-01+updated%3A%3E2023-09-01+merged%3A%3E%3D2023-09-01+closed%3A%3E%3D2023-09-01+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:53 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "17", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "13", + "X-RateLimit-Resource": "search", + "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": "CF8B:8651:1CE680:1D4C40:6500E0FD" + } + }, + "uuid": "250f059f-0f79-485a-bcef-b4f09241cb2d", + "persistent": true, + "scenarioName": "scenario-6-search-issues", + "requiredScenarioState": "scenario-6-search-issues-2", + "insertionIndex": 27 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json new file mode 100644 index 0000000000..f0e1a4c74f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json @@ -0,0 +1,51 @@ +{ + "id": "329cc3c7-8af4-4a6f-9efc-96caf610c448", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-09-12+updated%3A2023-09-12+closed%3A2023-09-12+merged%3A2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:52 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "20", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "10", + "X-RateLimit-Resource": "search", + "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": "CF88:0FE7:F0E280:F37152:6500E0FC" + } + }, + "uuid": "329cc3c7-8af4-4a6f-9efc-96caf610c448", + "persistent": true, + "scenarioName": "scenario-5-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-5-search-issues-2", + "insertionIndex": 24 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json similarity index 73% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json index eb82702d86..e25dc44938 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json @@ -1,8 +1,8 @@ { - "id": "30c862c8-23f9-403d-b8e7-4471069c742d", + "id": "3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2", "name": "search_issues", "request": { - "url": "/search/issues?q=author%3A%40me+is%3Amerged+merged%3A2023-08-01..2023-08-23+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aclosed+is%3Amerged+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-30c862c8-23f9-403d-b8e7-4471069c742d.json", + "bodyFileName": "search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:59 GMT", + "Date": "Tue, 12 Sep 2023 22:06:49 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", - "X-RateLimit-Remaining": "25", - "X-RateLimit-Reset": "1692739688", - "X-RateLimit-Used": "5", + "X-RateLimit-Remaining": "26", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "4", "X-RateLimit-Resource": "search", "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": "*", @@ -39,12 +39,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": "E1A7:BB2B:15611E1:1595020:64E5285E" + "X-GitHub-Request-Id": "CF82:0FDB:2A3E0F:2ACD8C:6500E0F9" } }, - "uuid": "30c862c8-23f9-403d-b8e7-4471069c742d", + "uuid": "3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2", "persistent": true, "scenarioName": "scenario-2-search-issues", "requiredScenarioState": "scenario-2-search-issues-2", - "insertionIndex": 9 + "insertionIndex": 18 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json new file mode 100644 index 0000000000..401bcbfd55 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json @@ -0,0 +1,51 @@ +{ + "id": "498e84e6-8b2d-4aa6-ab0f-6f8b538969fe", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-09-01..2023-09-12+updated%3A2023-09-01..2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:50 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "24", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "6", + "X-RateLimit-Resource": "search", + "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": "CF84:8845:1D661F6:1DAAB0D:6500E0FA" + } + }, + "uuid": "498e84e6-8b2d-4aa6-ab0f-6f8b538969fe", + "persistent": true, + "scenarioName": "scenario-3-search-issues", + "requiredScenarioState": "scenario-3-search-issues-2", + "newScenarioState": "scenario-3-search-issues-3", + "insertionIndex": 20 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json new file mode 100644 index 0000000000..d74ea007c3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json @@ -0,0 +1,50 @@ +{ + "id": "4f6daa33-87f9-45ea-96aa-e82a8404ff37", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+Temp+in%3Atitle+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:57 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "10", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "20", + "X-RateLimit-Resource": "search", + "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": "CF93:FF32:A35061D:A4C6E28:6500E101" + } + }, + "uuid": "4f6daa33-87f9-45ea-96aa-e82a8404ff37", + "persistent": true, + "scenarioName": "scenario-9-search-issues", + "requiredScenarioState": "scenario-9-search-issues-3", + "insertionIndex": 35 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json new file mode 100644 index 0000000000..dfbc9bdd9a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json @@ -0,0 +1,51 @@ +{ + "id": "540c0a3b-1113-452c-8e1f-fc0e2be72e98", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+label%3Atest+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:57 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "9", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "21", + "X-RateLimit-Resource": "search", + "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": "CF94:FBD1:9E6A389:9FE0A08:6500E101" + } + }, + "uuid": "540c0a3b-1113-452c-8e1f-fc0e2be72e98", + "persistent": true, + "scenarioName": "scenario-10-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-10-search-issues-2", + "insertionIndex": 36 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json new file mode 100644 index 0000000000..9b3b960f4f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json @@ -0,0 +1,51 @@ +{ + "id": "547f6dd4-5c44-407e-80b9-31c0946c5649", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3C2023-09-14+updated%3A%3C2023-09-14+closed%3A%3C%3D2023-09-14+merged%3A%3C2023-09-14+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:54 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "16", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "14", + "X-RateLimit-Resource": "search", + "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": "CF8C:FBD1:9E69A49:9FE00A0:6500E0FE" + } + }, + "uuid": "547f6dd4-5c44-407e-80b9-31c0946c5649", + "persistent": true, + "scenarioName": "scenario-7-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-7-search-issues-2", + "insertionIndex": 28 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json new file mode 100644 index 0000000000..47741a8290 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json @@ -0,0 +1,50 @@ +{ + "id": "57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+merged%3A2023-09-01..2023-09-12+closed%3A2023-09-01..2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:52 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "21", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "9", + "X-RateLimit-Resource": "search", + "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": "CF87:8651:1CE26D:1D4837:6500E0FB" + } + }, + "uuid": "57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd", + "persistent": true, + "scenarioName": "scenario-4-search-issues", + "requiredScenarioState": "scenario-4-search-issues-2", + "insertionIndex": 23 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-2466009e-cb2f-4870-b09f-cde89f674143.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json similarity index 69% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-2466009e-cb2f-4870-b09f-cde89f674143.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json index 548ab39f1a..250c816045 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-2466009e-cb2f-4870-b09f-cde89f674143.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json @@ -1,8 +1,8 @@ { - "id": "2466009e-cb2f-4870-b09f-cde89f674143", + "id": "82602db5-a742-4a9e-b67c-a287e50f7e05", "name": "search_issues", "request": { - "url": "/search/issues?q=author%3A%40me+is%3Aopen+created%3A%3E%3D2023-08-01+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+label%3Atest+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "body": "{\"total_count\":0,\"incomplete_results\":false,\"items\":[]}", + "bodyFileName": "search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:59 GMT", + "Date": "Tue, 12 Sep 2023 22:06:58 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", - "X-RateLimit-Remaining": "24", - "X-RateLimit-Reset": "1692739688", - "X-RateLimit-Used": "6", + "X-RateLimit-Remaining": "7", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "23", "X-RateLimit-Resource": "search", "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": "*", @@ -39,10 +39,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": "E1A9:B2F0:1601C32:1635A43:64E5285F" + "X-GitHub-Request-Id": "CF96:537D:9E64AD4:9FDB29A:6500E102" } }, - "uuid": "2466009e-cb2f-4870-b09f-cde89f674143", + "uuid": "82602db5-a742-4a9e-b67c-a287e50f7e05", "persistent": true, - "insertionIndex": 11 + "scenarioName": "scenario-10-search-issues", + "requiredScenarioState": "scenario-10-search-issues-3", + "insertionIndex": 38 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json new file mode 100644 index 0000000000..7806de4df1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json @@ -0,0 +1,51 @@ +{ + "id": "90e45fa7-a539-4080-9ad7-766ccb7292a2", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aopen+draft%3Atrue+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:48 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "29", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "1", + "X-RateLimit-Resource": "search", + "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": "CF7F:FF32:A34ECB9:A4C5475:6500E0F8" + } + }, + "uuid": "90e45fa7-a539-4080-9ad7-766ccb7292a2", + "persistent": true, + "scenarioName": "scenario-1-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-search-issues-2", + "insertionIndex": 15 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json new file mode 100644 index 0000000000..de7eef7a5c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json @@ -0,0 +1,50 @@ +{ + "id": "98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968", + "name": "search_issues", + "request": { + "url": "/search/issues?q=base%3Amain+head%3AbranchToMerge+SHA%3Ae70ac92dc8a342daed5784b3bd54c1185813b982+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:55 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "13", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "17", + "X-RateLimit-Resource": "search", + "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": "CF90:072D:9ED73AA:A04DA4A:6500E0FF" + } + }, + "uuid": "98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968", + "persistent": true, + "scenarioName": "scenario-8-search-issues", + "requiredScenarioState": "scenario-8-search-issues-2", + "insertionIndex": 32 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json new file mode 100644 index 0000000000..10429d5a18 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json @@ -0,0 +1,51 @@ +{ + "id": "9c672c12-a76e-41b6-a4d4-3ba416792e70", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3E2023-09-01+updated%3A%3E2023-09-01+merged%3A%3E%3D2023-09-01+closed%3A%3E%3D2023-09-01+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:53 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "18", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "12", + "X-RateLimit-Resource": "search", + "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": "CF8A:E6C0:9E214B3:9F97AF5:6500E0FD" + } + }, + "uuid": "9c672c12-a76e-41b6-a4d4-3ba416792e70", + "persistent": true, + "scenarioName": "scenario-6-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-6-search-issues-2", + "insertionIndex": 26 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json new file mode 100644 index 0000000000..781c8a0f8b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json @@ -0,0 +1,51 @@ +{ + "id": "9e21d8c5-9c8d-4f41-adbb-dec6de6c4493", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+merged%3A2023-09-01..2023-09-12+closed%3A2023-09-01..2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:51 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "22", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "8", + "X-RateLimit-Resource": "search", + "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": "CF86:537D:9E638FB:9FDA07F:6500E0FB" + } + }, + "uuid": "9e21d8c5-9c8d-4f41-adbb-dec6de6c4493", + "persistent": true, + "scenarioName": "scenario-4-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-4-search-issues-2", + "insertionIndex": 22 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json similarity index 74% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json index 31638a601a..48ec995895 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json @@ -1,8 +1,8 @@ { - "id": "ce2060dd-a6f0-47ed-9b8b-4f65129063c3", + "id": "a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25", "name": "search_issues", "request": { - "url": "/search/issues?q=author%3A%40me+is%3Amerged+merged%3A2023-08-01..2023-08-23+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aclosed+is%3Amerged+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-ce2060dd-a6f0-47ed-9b8b-4f65129063c3.json", + "bodyFileName": "search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:58 GMT", + "Date": "Tue, 12 Sep 2023 22:06:49 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", - "X-RateLimit-Remaining": "26", - "X-RateLimit-Reset": "1692739688", - "X-RateLimit-Used": "4", + "X-RateLimit-Remaining": "27", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "3", "X-RateLimit-Resource": "search", "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": "*", @@ -39,13 +39,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": "E1A6:13837:17B5294:17E90E1:64E5285E" + "X-GitHub-Request-Id": "CF81:1390C:9CEF52B:9E65B7B:6500E0F9" } }, - "uuid": "ce2060dd-a6f0-47ed-9b8b-4f65129063c3", + "uuid": "a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25", "persistent": true, "scenarioName": "scenario-2-search-issues", "requiredScenarioState": "Started", "newScenarioState": "scenario-2-search-issues-2", - "insertionIndex": 8 + "insertionIndex": 17 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json new file mode 100644 index 0000000000..da94379a69 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json @@ -0,0 +1,51 @@ +{ + "id": "ad41134b-c59f-4c25-8df1-5f2ae12d4edf", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-09-01..2023-09-12+updated%3A2023-09-01..2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:50 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "25", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "5", + "X-RateLimit-Resource": "search", + "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": "CF83:0FE7:F0DCAD:F36B54:6500E0FA" + } + }, + "uuid": "ad41134b-c59f-4c25-8df1-5f2ae12d4edf", + "persistent": true, + "scenarioName": "scenario-3-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-3-search-issues-2", + "insertionIndex": 19 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json new file mode 100644 index 0000000000..0d63519127 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json @@ -0,0 +1,50 @@ +{ + "id": "c059f6f1-e31d-436c-87ba-8f9e534537ea", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3C2023-09-14+updated%3A%3C2023-09-14+closed%3A%3C%3D2023-09-14+merged%3A%3C2023-09-14+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:54 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "15", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "15", + "X-RateLimit-Resource": "search", + "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": "CF8D:0F2D:A2A7B24:A420187:6500E0FE" + } + }, + "uuid": "c059f6f1-e31d-436c-87ba-8f9e534537ea", + "persistent": true, + "scenarioName": "scenario-7-search-issues", + "requiredScenarioState": "scenario-7-search-issues-2", + "insertionIndex": 29 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json new file mode 100644 index 0000000000..86d70dc5fc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json @@ -0,0 +1,51 @@ +{ + "id": "d7edfad3-ffb0-48ba-9551-eda7318fbd1b", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+assignee%3Akgromov+mentions%3Akgromov+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "6", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "24", + "X-RateLimit-Resource": "search", + "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": "CF97:E6C0:9E2246D:9F98AD5:6500E102" + } + }, + "uuid": "d7edfad3-ffb0-48ba-9551-eda7318fbd1b", + "persistent": true, + "scenarioName": "scenario-11-search-issues", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-11-search-issues-2", + "insertionIndex": 39 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json new file mode 100644 index 0000000000..196c3ade71 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json @@ -0,0 +1,51 @@ +{ + "id": "dfb35787-f281-43c1-aa03-546d41b91804", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+label%3Atest+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "8", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "22", + "X-RateLimit-Resource": "search", + "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": "CF95:0FDB:2A51E8:2AE1A0:6500E101" + } + }, + "uuid": "dfb35787-f281-43c1-aa03-546d41b91804", + "persistent": true, + "scenarioName": "scenario-10-search-issues", + "requiredScenarioState": "scenario-10-search-issues-2", + "newScenarioState": "scenario-10-search-issues-3", + "insertionIndex": 37 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json new file mode 100644 index 0000000000..04c6540b67 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json @@ -0,0 +1,50 @@ +{ + "id": "eb3d246a-f8df-484b-89de-f448fb2aa18d", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aopen+draft%3Atrue+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:49 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "28", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "2", + "X-RateLimit-Resource": "search", + "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": "CF80:8845:1D65D56:1DAA66B:6500E0F8" + } + }, + "uuid": "eb3d246a-f8df-484b-89de-f448fb2aa18d", + "persistent": true, + "scenarioName": "scenario-1-search-issues", + "requiredScenarioState": "scenario-1-search-issues-2", + "insertionIndex": 16 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json new file mode 100644 index 0000000000..717df5d43e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json @@ -0,0 +1,51 @@ +{ + "id": "f805cc74-e0b6-494d-9f8e-7388d40689e1", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+Temp+in%3Atitle+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:56 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "11", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "19", + "X-RateLimit-Resource": "search", + "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": "CF92:537D:9E64651:9FDADF1:6500E100" + } + }, + "uuid": "f805cc74-e0b6-494d-9f8e-7388d40689e1", + "persistent": true, + "scenarioName": "scenario-9-search-issues", + "requiredScenarioState": "scenario-9-search-issues-2", + "newScenarioState": "scenario-9-search-issues-3", + "insertionIndex": 34 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json new file mode 100644 index 0000000000..911a598051 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json @@ -0,0 +1,50 @@ +{ + "id": "fd9550e8-2307-4d76-8236-ff856a96e03e", + "name": "search_issues", + "request": { + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-09-12+updated%3A2023-09-12+closed%3A2023-09-12+merged%3A2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 12 Sep 2023 22:06:52 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "30", + "X-RateLimit-Remaining": "19", + "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Used": "11", + "X-RateLimit-Resource": "search", + "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": "CF89:E511:406D262:410EA45:6500E0FC" + } + }, + "uuid": "fd9550e8-2307-4d76-8236-ff856a96e03e", + "persistent": true, + "scenarioName": "scenario-5-search-issues", + "requiredScenarioState": "scenario-5-search-issues-2", + "insertionIndex": 25 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json index 57c691bfa1..5b4dd54288 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-fe00cd16-9679-412b-9f40-5bddfef7d036.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json @@ -1,5 +1,5 @@ { - "id": "fe00cd16-9679-412b-9f40-5bddfef7d036", + "id": "a52c5304-137c-46cd-a946-e62ab67c86ff", "name": "user", "request": { "url": "/user", @@ -12,26 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "user-fe00cd16-9679-412b-9f40-5bddfef7d036.json", + "bodyFileName": "user-a52c5304-137c-46cd-a946-e62ab67c86ff.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 22 Aug 2023 21:27:47 GMT", + "Date": "Tue, 12 Sep 2023 22:06: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/\"6ca483824c0beb8bcb118bf3795f39894416285cbd30bc5803b2826d133971ce\"", + "ETag": "W/\"07e140f41eb92dba5c93c21b66140307b3603456151547495fd368299cdd7330\"", "Last-Modified": "Fri, 28 Jul 2023 20:37:46 GMT", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4943", - "X-RateLimit-Reset": "1692741646", - "X-RateLimit-Used": "57", + "X-RateLimit-Remaining": "4854", + "X-RateLimit-Reset": "1694557695", + "X-RateLimit-Used": "146", "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 +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": "E19E:6C4D:1590763:15C44F8:64E52853" + "X-GitHub-Request-Id": "CF70:D272:52E42E3:53B0926:6500E0E7" } }, - "uuid": "fe00cd16-9679-412b-9f40-5bddfef7d036", + "uuid": "a52c5304-137c-46cd-a946-e62ab67c86ff", "persistent": true, "insertionIndex": 1 } \ No newline at end of file From dc0a8fa788f6858f2b04eaf5659ae9124e59ef27 Mon Sep 17 00:00:00 2001 From: konstantin Date: Fri, 15 Sep 2023 00:16:40 +0300 Subject: [PATCH 14/17] Fix for java 8 build - remove factory method for Set --- src/test/java/org/kohsuke/github/GHRepositoryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java index b6ccd3974a..0e40cd99b1 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java @@ -1814,7 +1814,7 @@ public void testSearchPullRequests() throws Exception { searchResult = repository.searchPullRequests(search); this.verifyPluralResult(searchResult, draftPR, mergedPR); - search = gitHub.searchPullRequests().repo(repository).inLabels(Set.of("test")).order(GHDirection.DESC); + search = gitHub.searchPullRequests().repo(repository).inLabels(Arrays.asList("test")).order(GHDirection.DESC); searchResult = repository.searchPullRequests(search); this.verifyPluralResult(searchResult, mergedPR, draftPR); From 8d9b1945862a6623ad98033b5e48c34f9695a568 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sat, 11 Nov 2023 02:47:54 +0200 Subject: [PATCH 15/17] Change GHRepository#searchPullRequests to return buider --- .../github/GHPullRequestSearchBuilder.java | 17 +- .../java/org/kohsuke/github/GHRepository.java | 8 +- .../org/kohsuke/github/GHSearchBuilder.java | 6 +- .../org/kohsuke/github/GHRepositoryTest.java | 57 +++-- ...b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json} | 10 +- ...2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json} | 12 +- ...57fe6839-4f2a-416e-8c31-cccdabdb8617.json} | 18 +- ...e2acff50-d3c7-4a04-a522-ddf34b102a8f.json} | 18 +- ...a6b99918-8bcc-4802-b4f7-664a6696ac4d.json} | 6 +- ...e1be828c-2137-4d51-b66f-7461d9a2c0b0.json} | 6 +- ...14ddc043-8064-4aab-8904-aa98f8372125.json} | 6 +- ...e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json} | 12 +- ...1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json} | 12 +- ...b33c18df-1b3d-4736-a162-420da2b9bcd5.json} | 12 +- ...1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json} | 14 +- ...29fe89f2-88e8-4866-910f-708c8a258bd5.json} | 36 ++-- ...af640148-1955-4c33-b3c5-f051656787a9.json} | 36 ++-- ...14eebf66-33e1-4280-a68d-9f2d85d8b4db.json} | 12 +- ...18eecc46-bf6e-47a3-805c-be128054c31d.json} | 28 +-- ...1cf472a0-822d-4762-b4e9-3104ea5ada8f.json} | 16 +- ...31731f7d-b999-4f23-b767-6e7634c7b161.json} | 16 +- ...3399ef05-53c4-4f3f-9ada-89093e9f280e.json} | 16 +- ...3b75637b-21a8-4415-b951-02b1d64647cc.json} | 28 +-- ...-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json | 125 ----------- ...44d16c49-384f-4edb-8718-eef330664a1f.json} | 28 +-- ...4bcd55b4-5658-48bf-b744-88d4ef5c8878.json} | 12 +- ...53ee62a3-a853-4c3a-818e-e2de55bd92f2.json} | 16 +- ...-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json | 204 ------------------ ...-547f6dd4-5c44-407e-80b9-31c0946c5649.json | 125 ----------- ...-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json | 125 ----------- ...58370fe0-3ab4-4234-8f8f-eb6499b12557.json} | 28 +-- ...-66d61c85-08d3-4266-8348-6d54ca42b5ce.json | 125 +++++++++++ ...-76b76168-673f-4baf-ac20-ac395571b229.json | 204 ++++++++++++++++++ ...-82602db5-a742-4a9e-b67c-a287e50f7e05.json | 204 ------------------ ...-86bea00c-825a-4691-aada-32e5afcfd3bd.json | 125 +++++++++++ ...-8f08a0af-7a05-4e15-a99b-f6618f96d753.json | 204 ++++++++++++++++++ ...-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json | 125 ----------- ...-9c672c12-a76e-41b6-a4d4-3ba416792e70.json | 125 ----------- ...-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json | 125 ----------- ...-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json | 125 ----------- ...-ad2de6f7-e39b-4056-8990-066360bee08b.json | 125 +++++++++++ ...-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json | 204 ------------------ ...-b0b66e35-c920-4e82-851d-636350624bb7.json | 204 ++++++++++++++++++ ...-c059f6f1-e31d-436c-87ba-8f9e534537ea.json | 125 ----------- ...-c0c7532c-a459-41ef-8c3a-7a23f7691b62.json | 125 +++++++++++ ...-c7bcf215-979c-4b96-94f7-62b275676005.json | 125 +++++++++++ ...-c873591d-123d-42c8-920f-901a7160730b.json | 125 +++++++++++ ...-d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json | 204 ++++++++++++++++++ ...-d253da43-33cd-46ea-b7cd-c60a19d57467.json | 204 ++++++++++++++++++ ...-d513ba09-ef04-46ff-ae17-98a38c57e749.json | 125 +++++++++++ ...-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json | 125 ----------- ...-dfb35787-f281-43c1-aa03-546d41b91804.json | 204 ------------------ ...-edff7370-fa9f-4f2a-a5d2-be979186661b.json | 125 +++++++++++ ...-f671a987-af55-41c8-9f5e-06037fb8f074.json | 125 +++++++++++ ...-f7571293-9b42-4e14-906c-960ad7fa0aab.json | 125 +++++++++++ ...-f805cc74-e0b6-494d-9f8e-7388d40689e1.json | 204 ------------------ ...-fd9550e8-2307-4d76-8236-ff856a96e03e.json | 125 ----------- ...da1cd23b-68fc-4f76-b63d-73aef15422b8.json} | 4 +- ...b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json} | 20 +- ...2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json} | 18 +- ...57fe6839-4f2a-416e-8c31-cccdabdb8617.json} | 18 +- ...e2acff50-d3c7-4a04-a522-ddf34b102a8f.json} | 18 +- ...a6b99918-8bcc-4802-b4f7-664a6696ac4d.json} | 20 +- ...e1be828c-2137-4d51-b66f-7461d9a2c0b0.json} | 20 +- ...14ddc043-8064-4aab-8904-aa98f8372125.json} | 20 +- ...e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json} | 18 +- ...1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json} | 18 +- ...b33c18df-1b3d-4736-a162-420da2b9bcd5.json} | 18 +- ...1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json} | 20 +- ...29fe89f2-88e8-4866-910f-708c8a258bd5.json} | 18 +- ...af640148-1955-4c33-b3c5-f051656787a9.json} | 18 +- ...17dc81ea-0faf-434b-9de4-b0493013e514.json} | 18 +- ...14eebf66-33e1-4280-a68d-9f2d85d8b4db.json} | 14 +- ...18eecc46-bf6e-47a3-805c-be128054c31d.json} | 14 +- ...1cf472a0-822d-4762-b4e9-3104ea5ada8f.json} | 14 +- ...31731f7d-b999-4f23-b767-6e7634c7b161.json} | 14 +- ...3399ef05-53c4-4f3f-9ada-89093e9f280e.json} | 14 +- ...3b75637b-21a8-4415-b951-02b1d64647cc.json} | 14 +- ...44d16c49-384f-4edb-8718-eef330664a1f.json} | 14 +- ...4bcd55b4-5658-48bf-b744-88d4ef5c8878.json} | 14 +- ...53ee62a3-a853-4c3a-818e-e2de55bd92f2.json} | 14 +- ...58370fe0-3ab4-4234-8f8f-eb6499b12557.json} | 14 +- ...66d61c85-08d3-4266-8348-6d54ca42b5ce.json} | 14 +- ...76b76168-673f-4baf-ac20-ac395571b229.json} | 14 +- ...86bea00c-825a-4691-aada-32e5afcfd3bd.json} | 14 +- ...8f08a0af-7a05-4e15-a99b-f6618f96d753.json} | 14 +- ...ad2de6f7-e39b-4056-8990-066360bee08b.json} | 14 +- ...b0b66e35-c920-4e82-851d-636350624bb7.json} | 14 +- ...c0c7532c-a459-41ef-8c3a-7a23f7691b62.json} | 14 +- ...c7bcf215-979c-4b96-94f7-62b275676005.json} | 14 +- ...c873591d-123d-42c8-920f-901a7160730b.json} | 14 +- ...d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json} | 14 +- ...d253da43-33cd-46ea-b7cd-c60a19d57467.json} | 14 +- ...d513ba09-ef04-46ff-ae17-98a38c57e749.json} | 14 +- ...edff7370-fa9f-4f2a-a5d2-be979186661b.json} | 14 +- ...f671a987-af55-41c8-9f5e-06037fb8f074.json} | 14 +- ...f7571293-9b42-4e14-906c-960ad7fa0aab.json} | 14 +- ...da1cd23b-68fc-4f76-b63d-73aef15422b8.json} | 20 +- 98 files changed, 2831 insertions(+), 2831 deletions(-) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json => repos_kgromov_temp-testsearchpullrequests-b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json} (97%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json => repos_kgromov_temp-testsearchpullrequests_branches-2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json => repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-57fe6839-4f2a-416e-8c31-cccdabdb8617.json} (79%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json => repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-e2acff50-d3c7-4a04-a522-ddf34b102a8f.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json => repos_kgromov_temp-testsearchpullrequests_git_refs-a6b99918-8bcc-4802-b4f7-664a6696ac4d.json} (57%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json => repos_kgromov_temp-testsearchpullrequests_git_refs-e1be828c-2137-4d51-b66f-7461d9a2c0b0.json} (57%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json => repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-14ddc043-8064-4aab-8904-aa98f8372125.json} (57%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json => repos_kgromov_temp-testsearchpullrequests_issues_1-e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json} (93%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json => repos_kgromov_temp-testsearchpullrequests_issues_2-1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json} (93%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json => repos_kgromov_temp-testsearchpullrequests_issues_2-b33c18df-1b3d-4736-a162-420da2b9bcd5.json} (96%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json => repos_kgromov_temp-testsearchpullrequests_issues_2_comments-1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json} (85%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json => repos_kgromov_temp-testsearchpullrequests_pulls-29fe89f2-88e8-4866-910f-708c8a258bd5.json} (96%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json => repos_kgromov_temp-testsearchpullrequests_pulls-af640148-1955-4c33-b3c5-f051656787a9.json} (96%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json => search_issues-14eebf66-33e1-4280-a68d-9f2d85d8b4db.json} (93%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json => search_issues-18eecc46-bf6e-47a3-805c-be128054c31d.json} (94%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json => search_issues-1cf472a0-822d-4762-b4e9-3104ea5ada8f.json} (94%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json => search_issues-31731f7d-b999-4f23-b767-6e7634c7b161.json} (94%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json => search_issues-3399ef05-53c4-4f3f-9ada-89093e9f280e.json} (94%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json => search_issues-3b75637b-21a8-4415-b951-02b1d64647cc.json} (94%) delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json => search_issues-44d16c49-384f-4edb-8718-eef330664a1f.json} (94%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json => search_issues-4bcd55b4-5658-48bf-b744-88d4ef5c8878.json} (93%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json => search_issues-53ee62a3-a853-4c3a-818e-e2de55bd92f2.json} (94%) delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json => search_issues-58370fe0-3ab4-4234-8f8f-eb6499b12557.json} (94%) create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-66d61c85-08d3-4266-8348-6d54ca42b5ce.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-76b76168-673f-4baf-ac20-ac395571b229.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-86bea00c-825a-4691-aada-32e5afcfd3bd.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-8f08a0af-7a05-4e15-a99b-f6618f96d753.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad2de6f7-e39b-4056-8990-066360bee08b.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-b0b66e35-c920-4e82-851d-636350624bb7.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c0c7532c-a459-41ef-8c3a-7a23f7691b62.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c7bcf215-979c-4b96-94f7-62b275676005.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c873591d-123d-42c8-920f-901a7160730b.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d253da43-33cd-46ea-b7cd-c60a19d57467.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d513ba09-ef04-46ff-ae17-98a38c57e749.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-edff7370-fa9f-4f2a-a5d2-be979186661b.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f671a987-af55-41c8-9f5e-06037fb8f074.json create mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f7571293-9b42-4e14-906c-960ad7fa0aab.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json delete mode 100644 src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/{user-a52c5304-137c-46cd-a946-e62ab67c86ff.json => user-da1cd23b-68fc-4f76-b63d-73aef15422b8.json} (95%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json => repos_kgromov_temp-testsearchpullrequests-b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json} (74%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json => repos_kgromov_temp-testsearchpullrequests_branches-2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json => repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-57fe6839-4f2a-416e-8c31-cccdabdb8617.json} (80%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json => repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-e2acff50-d3c7-4a04-a522-ddf34b102a8f.json} (81%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json => repos_kgromov_temp-testsearchpullrequests_git_refs-a6b99918-8bcc-4802-b4f7-664a6696ac4d.json} (79%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json => repos_kgromov_temp-testsearchpullrequests_git_refs-e1be828c-2137-4d51-b66f-7461d9a2c0b0.json} (79%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json => repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-14ddc043-8064-4aab-8904-aa98f8372125.json} (77%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json => repos_kgromov_temp-testsearchpullrequests_issues_1-e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json} (80%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json => repos_kgromov_temp-testsearchpullrequests_issues_2-1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json} (80%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json => repos_kgromov_temp-testsearchpullrequests_issues_2-b33c18df-1b3d-4736-a162-420da2b9bcd5.json} (80%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json => repos_kgromov_temp-testsearchpullrequests_issues_2_comments-1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json} (79%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json => repos_kgromov_temp-testsearchpullrequests_pulls-29fe89f2-88e8-4866-910f-708c8a258bd5.json} (82%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json => repos_kgromov_temp-testsearchpullrequests_pulls-af640148-1955-4c33-b3c5-f051656787a9.json} (82%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-54522815-98f1-42d6-a391-c3d305c4f4e8.json => repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-17dc81ea-0faf-434b-9de4-b0493013e514.json} (80%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json => search_issues-14eebf66-33e1-4280-a68d-9f2d85d8b4db.json} (81%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json => search_issues-18eecc46-bf6e-47a3-805c-be128054c31d.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json => search_issues-1cf472a0-822d-4762-b4e9-3104ea5ada8f.json} (79%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json => search_issues-31731f7d-b999-4f23-b767-6e7634c7b161.json} (77%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json => search_issues-3399ef05-53c4-4f3f-9ada-89093e9f280e.json} (79%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json => search_issues-3b75637b-21a8-4415-b951-02b1d64647cc.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json => search_issues-44d16c49-384f-4edb-8718-eef330664a1f.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json => search_issues-4bcd55b4-5658-48bf-b744-88d4ef5c8878.json} (80%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json => search_issues-53ee62a3-a853-4c3a-818e-e2de55bd92f2.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json => search_issues-58370fe0-3ab4-4234-8f8f-eb6499b12557.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json => search_issues-66d61c85-08d3-4266-8348-6d54ca42b5ce.json} (81%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json => search_issues-76b76168-673f-4baf-ac20-ac395571b229.json} (79%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json => search_issues-86bea00c-825a-4691-aada-32e5afcfd3bd.json} (80%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json => search_issues-8f08a0af-7a05-4e15-a99b-f6618f96d753.json} (76%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json => search_issues-ad2de6f7-e39b-4056-8990-066360bee08b.json} (80%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json => search_issues-b0b66e35-c920-4e82-851d-636350624bb7.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json => search_issues-c0c7532c-a459-41ef-8c3a-7a23f7691b62.json} (79%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json => search_issues-c7bcf215-979c-4b96-94f7-62b275676005.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json => search_issues-c873591d-123d-42c8-920f-901a7160730b.json} (77%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json => search_issues-d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json} (77%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json => search_issues-d253da43-33cd-46ea-b7cd-c60a19d57467.json} (76%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json => search_issues-d513ba09-ef04-46ff-ae17-98a38c57e749.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json => search_issues-edff7370-fa9f-4f2a-a5d2-be979186661b.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json => search_issues-f671a987-af55-41c8-9f5e-06037fb8f074.json} (78%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json => search_issues-f7571293-9b42-4e14-906c-960ad7fa0aab.json} (81%) rename src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/{user-a52c5304-137c-46cd-a946-e62ab67c86ff.json => user-da1cd23b-68fc-4f76-b63d-73aef15422b8.json} (74%) diff --git a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java index 0da6e6b8ca..11c7207bb8 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java @@ -21,6 +21,17 @@ public class GHPullRequestSearchBuilder extends GHSearchBuilder { super(root, PullRequestSearchResult.class); } + /** + * Instantiates a new GH search builder from repository. + * + * @param repository + * the gh repository + */ + GHPullRequestSearchBuilder(GHRepository repository) { + super(repository.root(), PullRequestSearchResult.class); + this.repo(repository); + } + /** * Repository gh pull request search builder. * @@ -472,12 +483,6 @@ public enum Sort { } - static GHPullRequestSearchBuilder from(GHPullRequestSearchBuilder searchBuilder) { - GHPullRequestSearchBuilder builder = new GHPullRequestSearchBuilder(searchBuilder.root()); - searchBuilder.terms.forEach(builder::q); - return builder; - } - private static class PullRequestSearchResult extends SearchResult { private GHPullRequest[] items; diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 32a547eba5..de907157bb 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -1704,12 +1704,10 @@ public GHPullRequestQueryBuilder queryPullRequests() { /** * Retrieves pull requests according to search terms. * - * @param search - * {@link GHPullRequestSearchBuilder} - * @return pull requests as the paged iterable + * @return gh pull request search builder for current repository */ - public PagedSearchIterable searchPullRequests(GHPullRequestSearchBuilder search) { - return GHPullRequestSearchBuilder.from(search).repo(this).list(); + public GHPullRequestSearchBuilder searchPullRequests() { + return new GHPullRequestSearchBuilder(this); } /** diff --git a/src/main/java/org/kohsuke/github/GHSearchBuilder.java b/src/main/java/org/kohsuke/github/GHSearchBuilder.java index d7a25353ee..fef19fffda 100644 --- a/src/main/java/org/kohsuke/github/GHSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHSearchBuilder.java @@ -2,8 +2,8 @@ import org.apache.commons.lang3.StringUtils; -import java.util.ArrayList; -import java.util.List; +import java.util.LinkedHashSet; +import java.util.Set; import javax.annotation.CheckForNull; import javax.annotation.Nonnull; @@ -19,7 +19,7 @@ public abstract class GHSearchBuilder extends GHQueryBuilder { /** The terms. */ - protected final List terms = new ArrayList(); + protected final Set terms = new LinkedHashSet<>(); /** * Data transfer object that receives the result of search. diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java index 7053c91ff2..3ad8545c3c 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java @@ -1753,76 +1753,73 @@ public void testSearchPullRequests() throws Exception { Thread.sleep(1000); // search by states - GHPullRequestSearchBuilder search = gitHub.searchPullRequests().repo(repository).isOpen().isDraft(); - PagedSearchIterable searchResult = repository.searchPullRequests(search); + GHPullRequestSearchBuilder search = repository.searchPullRequests().isOpen().isDraft(); + PagedSearchIterable searchResult = search.list(); this.verifySingleResult(searchResult, draftPR); - search = gitHub.searchPullRequests().repo(repository).isClosed().isMerged(); - searchResult = repository.searchPullRequests(search); + search = repository.searchPullRequests().isClosed().isMerged(); + searchResult = search.list(); this.verifySingleResult(searchResult, mergedPR); // search by dates - LocalDate from = LocalDate.parse("2023-09-01"); - LocalDate to = LocalDate.parse("2023-09-12"); - LocalDate afterRange = LocalDate.parse("2023-09-14"); + LocalDate from = LocalDate.parse("2023-11-01"); + LocalDate to = LocalDate.parse("2023-11-11"); + LocalDate afterRange = LocalDate.parse("2023-11-12"); - search = gitHub.searchPullRequests() - .repo(repository) + search = repository.searchPullRequests() .created(from, to) .updated(from, to) .sort(GHPullRequestSearchBuilder.Sort.UPDATED); - searchResult = repository.searchPullRequests(search); + searchResult = search.list(); this.verifyPluralResult(searchResult, mergedPR, draftPR); - search = gitHub.searchPullRequests().repo(repository).merged(from, to).closed(from, to); - searchResult = repository.searchPullRequests(search); + search = repository.searchPullRequests().merged(from, to).closed(from, to); + searchResult = search.list(); this.verifySingleResult(searchResult, mergedPR); - search = gitHub.searchPullRequests().repo(repository).created(to).updated(to).closed(to).merged(to); - searchResult = repository.searchPullRequests(search); + search = repository.searchPullRequests().created(to).updated(to).closed(to).merged(to); + searchResult = search.list(); this.verifySingleResult(searchResult, mergedPR); - search = gitHub.searchPullRequests() - .repo(repository) + search = repository.searchPullRequests() .createdAfter(from, false) .updatedAfter(from, false) .mergedAfter(from, true) .closedAfter(from, true); - searchResult = repository.searchPullRequests(search); + searchResult = search.list(); this.verifySingleResult(searchResult, mergedPR); - search = gitHub.searchPullRequests() - .repo(repository) + search = repository.searchPullRequests() .createdBefore(afterRange, false) .updatedBefore(afterRange, false) .closedBefore(afterRange, true) .mergedBefore(afterRange, false); - searchResult = repository.searchPullRequests(search); + searchResult = search.list(); this.verifySingleResult(searchResult, mergedPR); // search by version control Map branches = repository.getBranches(); - search = gitHub.searchPullRequests() + search = repository.searchPullRequests() .base(branches.get("main")) .head(branches.get("branchToMerge")) .commit(commit.getCommit().getSha()); - searchResult = repository.searchPullRequests(search); + searchResult = search.list(); this.verifySingleResult(searchResult, mergedPR); // search by remaining filters - search = gitHub.searchPullRequests() - .repo(repository) + search = repository.searchPullRequests() .titleLike("Temp") - .sort(GHPullRequestSearchBuilder.Sort.CREATED); - searchResult = repository.searchPullRequests(search); + .sort(GHPullRequestSearchBuilder.Sort.CREATED) + .order(GHDirection.ASC); + searchResult = search.list(); this.verifyPluralResult(searchResult, draftPR, mergedPR); - search = gitHub.searchPullRequests().repo(repository).inLabels(Arrays.asList("test")).order(GHDirection.DESC); - searchResult = repository.searchPullRequests(search); + search = repository.searchPullRequests().inLabels(Arrays.asList("test")).order(GHDirection.DESC); + searchResult = search.list(); this.verifyPluralResult(searchResult, mergedPR, draftPR); - search = gitHub.searchPullRequests().repo(repository).assigned(myself).mentions(myself); - searchResult = repository.searchPullRequests(search); + search = repository.searchPullRequests().assigned(myself).mentions(myself); + searchResult = search.list(); this.verifySingleResult(searchResult, mergedPR); } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json similarity index 97% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json index 4a23466670..65a6630c05 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests-b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json @@ -1,6 +1,6 @@ { - "id": 690788336, - "node_id": "R_kgDOKSyX8A", + "id": 717269122, + "node_id": "R_kgDOKsCogg", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -64,9 +64,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-09-12T22:06:32Z", - "updated_at": "2023-09-12T22:06:33Z", - "pushed_at": "2023-09-12T22:06:33Z", + "created_at": "2023-11-11T00:45:13Z", + "updated_at": "2023-11-11T00:45:13Z", + "pushed_at": "2023-11-11T00:45:13Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_branches-2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_branches-2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json index 054c75793f..ee4b95192d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_branches-2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json @@ -2,8 +2,8 @@ { "name": "branchToMerge", "commit": { - "sha": "e70ac92dc8a342daed5784b3bd54c1185813b982", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits/e70ac92dc8a342daed5784b3bd54c1185813b982" + "sha": "f06ea132e5c97d4237ac3ff717944791eb142ff1", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits/f06ea132e5c97d4237ac3ff717944791eb142ff1" }, "protected": false, "protection": { @@ -19,8 +19,8 @@ { "name": "draft", "commit": { - "sha": "6fd9e8a226f0f48a6ac203adc8f13abca5afe875", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits/6fd9e8a226f0f48a6ac203adc8f13abca5afe875" + "sha": "030821b0eeed4bdaa271ad36ab1c7c20b778a7aa", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits/030821b0eeed4bdaa271ad36ab1c7c20b778a7aa" }, "protected": false, "protection": { @@ -36,8 +36,8 @@ { "name": "main", "commit": { - "sha": "ce18a7029a8faa65ccced3c22eff7235fdc14887", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits/ce18a7029a8faa65ccced3c22eff7235fdc14887" + "sha": "5316172f4450c481017e8c4ef2b299da23ee1c6c", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/commits/5316172f4450c481017e8c4ef2b299da23ee1c6c" }, "protected": false, "protection": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-57fe6839-4f2a-416e-8c31-cccdabdb8617.json similarity index 79% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-57fe6839-4f2a-416e-8c31-cccdabdb8617.json index d0b2929a67..3b1aee18a4 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-57fe6839-4f2a-416e-8c31-cccdabdb8617.json @@ -16,19 +16,19 @@ } }, "commit": { - "sha": "e70ac92dc8a342daed5784b3bd54c1185813b982", - "node_id": "C_kwDOKSyX8NoAKGU3MGFjOTJkYzhhMzQyZGFlZDU3ODRiM2JkNTRjMTE4NTgxM2I5ODI", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/e70ac92dc8a342daed5784b3bd54c1185813b982", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/e70ac92dc8a342daed5784b3bd54c1185813b982", + "sha": "f06ea132e5c97d4237ac3ff717944791eb142ff1", + "node_id": "C_kwDOKsCogtoAKGYwNmVhMTMyZTVjOTdkNDIzN2FjM2ZmNzE3OTQ0NzkxZWIxNDJmZjE", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/f06ea132e5c97d4237ac3ff717944791eb142ff1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/f06ea132e5c97d4237ac3ff717944791eb142ff1", "author": { "name": "Konstantin Gromov", "email": "rocky89@ukr.net", - "date": "2023-09-12T22:06:39Z" + "date": "2023-11-11T00:45:19Z" }, "committer": { "name": "Konstantin Gromov", "email": "rocky89@ukr.net", - "date": "2023-09-12T22:06:39Z" + "date": "2023-11-11T00:45:19Z" }, "tree": { "sha": "4ee65e01709145c6b4bf30792e9a3c233433eb8e", @@ -37,9 +37,9 @@ "message": "test search", "parents": [ { - "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/33d4c1629baf1fc0c127839c7d605547daece11e", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/33d4c1629baf1fc0c127839c7d605547daece11e" + "sha": "34b361864cacfbd165af1b06a659113099da1f38", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/34b361864cacfbd165af1b06a659113099da1f38", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/34b361864cacfbd165af1b06a659113099da1f38" } ], "verification": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-e2acff50-d3c7-4a04-a522-ddf34b102a8f.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-e2acff50-d3c7-4a04-a522-ddf34b102a8f.json index 5e07bed45d..20b1b8ffe7 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-e2acff50-d3c7-4a04-a522-ddf34b102a8f.json @@ -16,19 +16,19 @@ } }, "commit": { - "sha": "6fd9e8a226f0f48a6ac203adc8f13abca5afe875", - "node_id": "C_kwDOKSyX8NoAKDZmZDllOGEyMjZmMGY0OGE2YWMyMDNhZGM4ZjEzYWJjYTVhZmU4NzU", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/6fd9e8a226f0f48a6ac203adc8f13abca5afe875", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/6fd9e8a226f0f48a6ac203adc8f13abca5afe875", + "sha": "030821b0eeed4bdaa271ad36ab1c7c20b778a7aa", + "node_id": "C_kwDOKsCogtoAKDAzMDgyMWIwZWVlZDRiZGFhMjcxYWQzNmFiMWM3YzIwYjc3OGE3YWE", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/030821b0eeed4bdaa271ad36ab1c7c20b778a7aa", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/030821b0eeed4bdaa271ad36ab1c7c20b778a7aa", "author": { "name": "Konstantin Gromov", "email": "rocky89@ukr.net", - "date": "2023-09-12T22:06:38Z" + "date": "2023-11-11T00:45:18Z" }, "committer": { "name": "Konstantin Gromov", "email": "rocky89@ukr.net", - "date": "2023-09-12T22:06:38Z" + "date": "2023-11-11T00:45:18Z" }, "tree": { "sha": "9b8530865b0a85f155bc5637a0a066995e518cc2", @@ -37,9 +37,9 @@ "message": "test search", "parents": [ { - "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/33d4c1629baf1fc0c127839c7d605547daece11e", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/33d4c1629baf1fc0c127839c7d605547daece11e" + "sha": "34b361864cacfbd165af1b06a659113099da1f38", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/34b361864cacfbd165af1b06a659113099da1f38", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/commit/34b361864cacfbd165af1b06a659113099da1f38" } ], "verification": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-a6b99918-8bcc-4802-b4f7-664a6696ac4d.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-a6b99918-8bcc-4802-b4f7-664a6696ac4d.json index 855f5ea888..a0e4c49f0c 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-a6b99918-8bcc-4802-b4f7-664a6696ac4d.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/branchToMerge", - "node_id": "REF_kwDOKSyX8LhyZWZzL2hlYWRzL2JyYW5jaFRvTWVyZ2U", + "node_id": "REF_kwDOKsCogrhyZWZzL2hlYWRzL2JyYW5jaFRvTWVyZ2U", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/branchToMerge", "object": { - "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", + "sha": "34b361864cacfbd165af1b06a659113099da1f38", "type": "commit", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/33d4c1629baf1fc0c127839c7d605547daece11e" + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/34b361864cacfbd165af1b06a659113099da1f38" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-e1be828c-2137-4d51-b66f-7461d9a2c0b0.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-e1be828c-2137-4d51-b66f-7461d9a2c0b0.json index 4c0489ddf6..cb6b8ce31b 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs-e1be828c-2137-4d51-b66f-7461d9a2c0b0.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/draft", - "node_id": "REF_kwDOKSyX8LByZWZzL2hlYWRzL2RyYWZ0", + "node_id": "REF_kwDOKsCogrByZWZzL2hlYWRzL2RyYWZ0", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/draft", "object": { - "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", + "sha": "34b361864cacfbd165af1b06a659113099da1f38", "type": "commit", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/33d4c1629baf1fc0c127839c7d605547daece11e" + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/34b361864cacfbd165af1b06a659113099da1f38" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-14ddc043-8064-4aab-8904-aa98f8372125.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-14ddc043-8064-4aab-8904-aa98f8372125.json index c3959f0a49..8174478221 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-14ddc043-8064-4aab-8904-aa98f8372125.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/main", - "node_id": "REF_kwDOKSyX8K9yZWZzL2hlYWRzL21haW4", + "node_id": "REF_kwDOKsCogq9yZWZzL2hlYWRzL21haW4", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/main", "object": { - "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", + "sha": "34b361864cacfbd165af1b06a659113099da1f38", "type": "commit", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/33d4c1629baf1fc0c127839c7d605547daece11e" + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/commits/34b361864cacfbd165af1b06a659113099da1f38" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_1-e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json similarity index 93% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_1-e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json index 16c676dad8..21534c8037 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_1-e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json @@ -5,8 +5,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", "number": 1, "title": "Temp draft PR", "user": { @@ -31,8 +31,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -46,8 +46,8 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json similarity index 93% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json index bd5a46ee45..77fc6f04e7 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json @@ -5,8 +5,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", "number": 2, "title": "Temp merged PR", "user": { @@ -31,8 +31,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -46,8 +46,8 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:43Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:23Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-b33c18df-1b3d-4736-a162-420da2b9bcd5.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-b33c18df-1b3d-4736-a162-420da2b9bcd5.json index 611064c0f5..c4994493a4 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2-b33c18df-1b3d-4736-a162-420da2b9bcd5.json @@ -5,8 +5,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", "number": 2, "title": "Temp merged PR", "user": { @@ -31,8 +31,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -86,8 +86,8 @@ ], "milestone": null, "comments": 0, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:44Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:24Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json similarity index 85% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json index 6f5d63ae64..9d80d68911 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json @@ -1,9 +1,9 @@ { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments/1716566121", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2#issuecomment-1716566121", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments/1806603013", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2#issuecomment-1806603013", "issue_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "id": 1716566121, - "node_id": "IC_kwDOKSyX8M5mULhp", + "id": 1806603013, + "node_id": "IC_kwDOKsCogs5rrpMF", "user": { "login": "kgromov", "id": 9352794, @@ -24,12 +24,12 @@ "type": "User", "site_admin": false }, - "created_at": "2023-09-12T22:06:45Z", - "updated_at": "2023-09-12T22:06:45Z", + "created_at": "2023-11-11T00:45:24Z", + "updated_at": "2023-11-11T00:45:24Z", "author_association": "OWNER", "body": "@kgromov approved", "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments/1716566121/reactions", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments/1806603013/reactions", "total_count": 0, "+1": 0, "-1": 0, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-29fe89f2-88e8-4866-910f-708c8a258bd5.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-29fe89f2-88e8-4866-910f-708c8a258bd5.json index 64f4d273cf..bd504d1a63 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-29fe89f2-88e8-4866-910f-708c8a258bd5.json @@ -1,7 +1,7 @@ { "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "id": 1512880530, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1597097455, + "node_id": "PR_kwDOKsCogs5fMcXv", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", @@ -31,8 +31,8 @@ "site_admin": false }, "body": "Hello, merged PR", - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:42Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:22Z", "closed_at": null, "merged_at": null, "merge_commit_sha": null, @@ -47,11 +47,11 @@ "review_comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2/comments", "review_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/comments{/number}", "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/e70ac92dc8a342daed5784b3bd54c1185813b982", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/f06ea132e5c97d4237ac3ff717944791eb142ff1", "head": { "label": "kgromov:branchToMerge", "ref": "branchToMerge", - "sha": "e70ac92dc8a342daed5784b3bd54c1185813b982", + "sha": "f06ea132e5c97d4237ac3ff717944791eb142ff1", "user": { "login": "kgromov", "id": 9352794, @@ -73,8 +73,8 @@ "site_admin": false }, "repo": { - "id": 690788336, - "node_id": "R_kgDOKSyX8A", + "id": 717269122, + "node_id": "R_kgDOKsCogg", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -138,9 +138,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-09-12T22:06:32Z", - "updated_at": "2023-09-12T22:06:33Z", - "pushed_at": "2023-09-12T22:06:40Z", + "created_at": "2023-11-11T00:45:13Z", + "updated_at": "2023-11-11T00:45:13Z", + "pushed_at": "2023-11-11T00:45:20Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", @@ -176,7 +176,7 @@ "base": { "label": "kgromov:main", "ref": "main", - "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", + "sha": "34b361864cacfbd165af1b06a659113099da1f38", "user": { "login": "kgromov", "id": 9352794, @@ -198,8 +198,8 @@ "site_admin": false }, "repo": { - "id": 690788336, - "node_id": "R_kgDOKSyX8A", + "id": 717269122, + "node_id": "R_kgDOKsCogg", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -263,9 +263,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-09-12T22:06:32Z", - "updated_at": "2023-09-12T22:06:33Z", - "pushed_at": "2023-09-12T22:06:40Z", + "created_at": "2023-11-11T00:45:13Z", + "updated_at": "2023-11-11T00:45:13Z", + "pushed_at": "2023-11-11T00:45:20Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", @@ -321,7 +321,7 @@ "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2/commits" }, "statuses": { - "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/e70ac92dc8a342daed5784b3bd54c1185813b982" + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/f06ea132e5c97d4237ac3ff717944791eb142ff1" } }, "author_association": "OWNER", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-af640148-1955-4c33-b3c5-f051656787a9.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-af640148-1955-4c33-b3c5-f051656787a9.json index 0343a3c117..8b09eaa901 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/repos_kgromov_temp-testsearchpullrequests_pulls-af640148-1955-4c33-b3c5-f051656787a9.json @@ -1,7 +1,7 @@ { "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", - "id": 1512880500, - "node_id": "PR_kwDOKSyX8M5aLLl0", + "id": 1597097442, + "node_id": "PR_kwDOKsCogs5fMcXi", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", @@ -31,8 +31,8 @@ "site_admin": false }, "body": "Hello, draft PR", - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:40Z", + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:20Z", "closed_at": null, "merged_at": null, "merge_commit_sha": null, @@ -47,11 +47,11 @@ "review_comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/comments", "review_comment_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/comments{/number}", "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", - "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/6fd9e8a226f0f48a6ac203adc8f13abca5afe875", + "statuses_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/030821b0eeed4bdaa271ad36ab1c7c20b778a7aa", "head": { "label": "kgromov:draft", "ref": "draft", - "sha": "6fd9e8a226f0f48a6ac203adc8f13abca5afe875", + "sha": "030821b0eeed4bdaa271ad36ab1c7c20b778a7aa", "user": { "login": "kgromov", "id": 9352794, @@ -73,8 +73,8 @@ "site_admin": false }, "repo": { - "id": 690788336, - "node_id": "R_kgDOKSyX8A", + "id": 717269122, + "node_id": "R_kgDOKsCogg", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -138,9 +138,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-09-12T22:06:32Z", - "updated_at": "2023-09-12T22:06:33Z", - "pushed_at": "2023-09-12T22:06:39Z", + "created_at": "2023-11-11T00:45:13Z", + "updated_at": "2023-11-11T00:45:13Z", + "pushed_at": "2023-11-11T00:45:19Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", @@ -176,7 +176,7 @@ "base": { "label": "kgromov:main", "ref": "main", - "sha": "33d4c1629baf1fc0c127839c7d605547daece11e", + "sha": "34b361864cacfbd165af1b06a659113099da1f38", "user": { "login": "kgromov", "id": 9352794, @@ -198,8 +198,8 @@ "site_admin": false }, "repo": { - "id": 690788336, - "node_id": "R_kgDOKSyX8A", + "id": 717269122, + "node_id": "R_kgDOKsCogg", "name": "temp-testSearchPullRequests", "full_name": "kgromov/temp-testSearchPullRequests", "private": false, @@ -263,9 +263,9 @@ "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels{/name}", "releases_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/releases{/id}", "deployments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/deployments", - "created_at": "2023-09-12T22:06:32Z", - "updated_at": "2023-09-12T22:06:33Z", - "pushed_at": "2023-09-12T22:06:39Z", + "created_at": "2023-11-11T00:45:13Z", + "updated_at": "2023-11-11T00:45:13Z", + "pushed_at": "2023-11-11T00:45:19Z", "git_url": "git://github.com/kgromov/temp-testSearchPullRequests.git", "ssh_url": "git@github.com:kgromov/temp-testSearchPullRequests.git", "clone_url": "https://github.com/kgromov/temp-testSearchPullRequests.git", @@ -321,7 +321,7 @@ "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1/commits" }, "statuses": { - "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/6fd9e8a226f0f48a6ac203adc8f13abca5afe875" + "href": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/statuses/030821b0eeed4bdaa271ad36ab1c7c20b778a7aa" } }, "author_association": "OWNER", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-14eebf66-33e1-4280-a68d-9f2d85d8b4db.json similarity index 93% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-14eebf66-33e1-4280-a68d-9f2d85d8b4db.json index 629d957047..f454b6bd16 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-14eebf66-33e1-4280-a68d-9f2d85d8b4db.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", "number": 1, "title": "Temp draft PR", "user": { @@ -35,8 +35,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -50,8 +50,8 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-18eecc46-bf6e-47a3-805c-be128054c31d.json similarity index 94% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-18eecc46-bf6e-47a3-805c-be128054c31d.json index 5d139c1d56..7e0d45cc94 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-18eecc46-bf6e-47a3-805c-be128054c31d.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", "number": 2, "title": "Temp merged PR", "user": { @@ -35,8 +35,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -90,9 +90,9 @@ ], "milestone": null, "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", "author_association": "OWNER", "active_lock_reason": null, "draft": false, @@ -101,7 +101,7 @@ "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" + "merged_at": "2023-11-11T00:45:25Z" }, "body": "Hello, merged PR", "reactions": { @@ -128,8 +128,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", "number": 1, "title": "Temp draft PR", "user": { @@ -154,8 +154,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -169,8 +169,8 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-1cf472a0-822d-4762-b4e9-3104ea5ada8f.json similarity index 94% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-1cf472a0-822d-4762-b4e9-3104ea5ada8f.json index 5f71838f46..e9e853890d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-1cf472a0-822d-4762-b4e9-3104ea5ada8f.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", "number": 2, "title": "Temp merged PR", "user": { @@ -35,8 +35,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -90,9 +90,9 @@ ], "milestone": null, "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", "author_association": "OWNER", "active_lock_reason": null, "draft": false, @@ -101,7 +101,7 @@ "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" + "merged_at": "2023-11-11T00:45:25Z" }, "body": "Hello, merged PR", "reactions": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-31731f7d-b999-4f23-b767-6e7634c7b161.json similarity index 94% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-31731f7d-b999-4f23-b767-6e7634c7b161.json index 5f71838f46..e9e853890d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-31731f7d-b999-4f23-b767-6e7634c7b161.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", "number": 2, "title": "Temp merged PR", "user": { @@ -35,8 +35,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -90,9 +90,9 @@ ], "milestone": null, "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", "author_association": "OWNER", "active_lock_reason": null, "draft": false, @@ -101,7 +101,7 @@ "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" + "merged_at": "2023-11-11T00:45:25Z" }, "body": "Hello, merged PR", "reactions": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3399ef05-53c4-4f3f-9ada-89093e9f280e.json similarity index 94% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3399ef05-53c4-4f3f-9ada-89093e9f280e.json index 5f71838f46..e9e853890d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3399ef05-53c4-4f3f-9ada-89093e9f280e.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", "number": 2, "title": "Temp merged PR", "user": { @@ -35,8 +35,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -90,9 +90,9 @@ ], "milestone": null, "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", "author_association": "OWNER", "active_lock_reason": null, "draft": false, @@ -101,7 +101,7 @@ "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" + "merged_at": "2023-11-11T00:45:25Z" }, "body": "Hello, merged PR", "reactions": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3b75637b-21a8-4415-b951-02b1d64647cc.json similarity index 94% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3b75637b-21a8-4415-b951-02b1d64647cc.json index 7ac2610137..c3370de181 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3b75637b-21a8-4415-b951-02b1d64647cc.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", "number": 1, "title": "Temp draft PR", "user": { @@ -35,8 +35,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -50,8 +50,8 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, @@ -88,8 +88,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", "number": 2, "title": "Temp merged PR", "user": { @@ -114,8 +114,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -169,9 +169,9 @@ ], "milestone": null, "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", "author_association": "OWNER", "active_lock_reason": null, "draft": false, @@ -180,7 +180,7 @@ "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" + "merged_at": "2023-11-11T00:45:25Z" }, "body": "Hello, merged PR", "reactions": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json deleted file mode 100644 index 5f71838f46..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "total_count": 1, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-44d16c49-384f-4edb-8718-eef330664a1f.json similarity index 94% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-44d16c49-384f-4edb-8718-eef330664a1f.json index 5d139c1d56..7e0d45cc94 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-44d16c49-384f-4edb-8718-eef330664a1f.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", "number": 2, "title": "Temp merged PR", "user": { @@ -35,8 +35,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -90,9 +90,9 @@ ], "milestone": null, "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", "author_association": "OWNER", "active_lock_reason": null, "draft": false, @@ -101,7 +101,7 @@ "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" + "merged_at": "2023-11-11T00:45:25Z" }, "body": "Hello, merged PR", "reactions": { @@ -128,8 +128,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", "number": 1, "title": "Temp draft PR", "user": { @@ -154,8 +154,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -169,8 +169,8 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4bcd55b4-5658-48bf-b744-88d4ef5c8878.json similarity index 93% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4bcd55b4-5658-48bf-b744-88d4ef5c8878.json index 629d957047..f454b6bd16 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4bcd55b4-5658-48bf-b744-88d4ef5c8878.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", "number": 1, "title": "Temp draft PR", "user": { @@ -35,8 +35,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -50,8 +50,8 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-53ee62a3-a853-4c3a-818e-e2de55bd92f2.json similarity index 94% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-53ee62a3-a853-4c3a-818e-e2de55bd92f2.json index 5f71838f46..e9e853890d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-53ee62a3-a853-4c3a-818e-e2de55bd92f2.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", "number": 2, "title": "Temp merged PR", "user": { @@ -35,8 +35,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -90,9 +90,9 @@ ], "milestone": null, "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", "author_association": "OWNER", "active_lock_reason": null, "draft": false, @@ -101,7 +101,7 @@ "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" + "merged_at": "2023-11-11T00:45:25Z" }, "body": "Hello, merged PR", "reactions": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json deleted file mode 100644 index 5d139c1d56..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "total_count": 2, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - }, - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", - "number": 1, - "title": "Temp draft PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", - "closed_at": null, - "author_association": "OWNER", - "active_lock_reason": null, - "draft": true, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", - "merged_at": null - }, - "body": "Hello, draft PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json deleted file mode 100644 index 5f71838f46..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "total_count": 1, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json deleted file mode 100644 index 5f71838f46..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "total_count": 1, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-58370fe0-3ab4-4234-8f8f-eb6499b12557.json similarity index 94% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-58370fe0-3ab4-4234-8f8f-eb6499b12557.json index 7ac2610137..c3370de181 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-58370fe0-3ab4-4234-8f8f-eb6499b12557.json @@ -9,8 +9,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", "number": 1, "title": "Temp draft PR", "user": { @@ -35,8 +35,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -50,8 +50,8 @@ "assignees": [], "milestone": null, "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", "closed_at": null, "author_association": "OWNER", "active_lock_reason": null, @@ -88,8 +88,8 @@ "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", "number": 2, "title": "Temp merged PR", "user": { @@ -114,8 +114,8 @@ }, "labels": [ { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", "name": "test", "color": "ededed", @@ -169,9 +169,9 @@ ], "milestone": null, "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", "author_association": "OWNER", "active_lock_reason": null, "draft": false, @@ -180,7 +180,7 @@ "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" + "merged_at": "2023-11-11T00:45:25Z" }, "body": "Hello, merged PR", "reactions": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-66d61c85-08d3-4266-8348-6d54ca42b5ce.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-66d61c85-08d3-4266-8348-6d54ca42b5ce.json new file mode 100644 index 0000000000..e9e853890d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-66d61c85-08d3-4266-8348-6d54ca42b5ce.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-76b76168-673f-4baf-ac20-ac395571b229.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-76b76168-673f-4baf-ac20-ac395571b229.json new file mode 100644 index 0000000000..7e0d45cc94 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-76b76168-673f-4baf-ac20-ac395571b229.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json deleted file mode 100644 index 5d139c1d56..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "total_count": 2, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - }, - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", - "number": 1, - "title": "Temp draft PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", - "closed_at": null, - "author_association": "OWNER", - "active_lock_reason": null, - "draft": true, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", - "merged_at": null - }, - "body": "Hello, draft PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-86bea00c-825a-4691-aada-32e5afcfd3bd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-86bea00c-825a-4691-aada-32e5afcfd3bd.json new file mode 100644 index 0000000000..e9e853890d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-86bea00c-825a-4691-aada-32e5afcfd3bd.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-8f08a0af-7a05-4e15-a99b-f6618f96d753.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-8f08a0af-7a05-4e15-a99b-f6618f96d753.json new file mode 100644 index 0000000000..7e0d45cc94 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-8f08a0af-7a05-4e15-a99b-f6618f96d753.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json deleted file mode 100644 index 5f71838f46..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "total_count": 1, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json deleted file mode 100644 index 5f71838f46..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "total_count": 1, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json deleted file mode 100644 index 5f71838f46..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "total_count": 1, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json deleted file mode 100644 index 5f71838f46..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "total_count": 1, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad2de6f7-e39b-4056-8990-066360bee08b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad2de6f7-e39b-4056-8990-066360bee08b.json new file mode 100644 index 0000000000..e9e853890d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad2de6f7-e39b-4056-8990-066360bee08b.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json deleted file mode 100644 index 5d139c1d56..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "total_count": 2, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - }, - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", - "number": 1, - "title": "Temp draft PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", - "closed_at": null, - "author_association": "OWNER", - "active_lock_reason": null, - "draft": true, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", - "merged_at": null - }, - "body": "Hello, draft PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-b0b66e35-c920-4e82-851d-636350624bb7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-b0b66e35-c920-4e82-851d-636350624bb7.json new file mode 100644 index 0000000000..c3370de181 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-b0b66e35-c920-4e82-851d-636350624bb7.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json deleted file mode 100644 index 5f71838f46..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "total_count": 1, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c0c7532c-a459-41ef-8c3a-7a23f7691b62.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c0c7532c-a459-41ef-8c3a-7a23f7691b62.json new file mode 100644 index 0000000000..e9e853890d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c0c7532c-a459-41ef-8c3a-7a23f7691b62.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c7bcf215-979c-4b96-94f7-62b275676005.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c7bcf215-979c-4b96-94f7-62b275676005.json new file mode 100644 index 0000000000..e9e853890d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c7bcf215-979c-4b96-94f7-62b275676005.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c873591d-123d-42c8-920f-901a7160730b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c873591d-123d-42c8-920f-901a7160730b.json new file mode 100644 index 0000000000..e9e853890d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-c873591d-123d-42c8-920f-901a7160730b.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json new file mode 100644 index 0000000000..7e0d45cc94 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d253da43-33cd-46ea-b7cd-c60a19d57467.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d253da43-33cd-46ea-b7cd-c60a19d57467.json new file mode 100644 index 0000000000..7e0d45cc94 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d253da43-33cd-46ea-b7cd-c60a19d57467.json @@ -0,0 +1,204 @@ +{ + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + }, + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "id": 1988611948, + "node_id": "PR_kwDOKsCogs5fMcXi", + "number": 1, + "title": "Temp draft PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "open", + "locked": false, + "assignee": null, + "assignees": [], + "milestone": null, + "comments": 0, + "created_at": "2023-11-11T00:45:20Z", + "updated_at": "2023-11-11T00:45:21Z", + "closed_at": null, + "author_association": "OWNER", + "active_lock_reason": null, + "draft": true, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", + "merged_at": null + }, + "body": "Hello, draft PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d513ba09-ef04-46ff-ae17-98a38c57e749.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d513ba09-ef04-46ff-ae17-98a38c57e749.json new file mode 100644 index 0000000000..e9e853890d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d513ba09-ef04-46ff-ae17-98a38c57e749.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json deleted file mode 100644 index 5f71838f46..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "total_count": 1, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json deleted file mode 100644 index 5d139c1d56..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "total_count": 2, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - }, - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", - "number": 1, - "title": "Temp draft PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", - "closed_at": null, - "author_association": "OWNER", - "active_lock_reason": null, - "draft": true, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", - "merged_at": null - }, - "body": "Hello, draft PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-edff7370-fa9f-4f2a-a5d2-be979186661b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-edff7370-fa9f-4f2a-a5d2-be979186661b.json new file mode 100644 index 0000000000..e9e853890d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-edff7370-fa9f-4f2a-a5d2-be979186661b.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f671a987-af55-41c8-9f5e-06037fb8f074.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f671a987-af55-41c8-9f5e-06037fb8f074.json new file mode 100644 index 0000000000..e9e853890d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f671a987-af55-41c8-9f5e-06037fb8f074.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f7571293-9b42-4e14-906c-960ad7fa0aab.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f7571293-9b42-4e14-906c-960ad7fa0aab.json new file mode 100644 index 0000000000..e9e853890d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f7571293-9b42-4e14-906c-960ad7fa0aab.json @@ -0,0 +1,125 @@ +{ + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", + "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", + "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", + "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", + "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "id": 1988611964, + "node_id": "PR_kwDOKsCogs5fMcXv", + "number": 2, + "title": "Temp merged PR", + "user": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 6195477233, + "node_id": "LA_kwDOKsCogs8AAAABcUd68Q", + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", + "name": "test", + "color": "ededed", + "default": false, + "description": null + } + ], + "state": "closed", + "locked": false, + "assignee": { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "kgromov", + "id": 9352794, + "node_id": "MDQ6VXNlcjkzNTI3OTQ=", + "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kgromov", + "html_url": "https://github.com/kgromov", + "followers_url": "https://api.github.com/users/kgromov/followers", + "following_url": "https://api.github.com/users/kgromov/following{/other_user}", + "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", + "organizations_url": "https://api.github.com/users/kgromov/orgs", + "repos_url": "https://api.github.com/users/kgromov/repos", + "events_url": "https://api.github.com/users/kgromov/events{/privacy}", + "received_events_url": "https://api.github.com/users/kgromov/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": null, + "comments": 1, + "created_at": "2023-11-11T00:45:22Z", + "updated_at": "2023-11-11T00:45:26Z", + "closed_at": "2023-11-11T00:45:25Z", + "author_association": "OWNER", + "active_lock_reason": null, + "draft": false, + "pull_request": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", + "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", + "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", + "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", + "merged_at": "2023-11-11T00:45:25Z" + }, + "body": "Hello, merged PR", + "reactions": { + "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", + "performed_via_github_app": null, + "state_reason": null, + "score": 1 + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json deleted file mode 100644 index 7ac2610137..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "total_count": 2, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "id": 1893366188, - "node_id": "PR_kwDOKSyX8M5aLLl0", - "number": 1, - "title": "Temp draft PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2023-09-12T22:06:40Z", - "updated_at": "2023-09-12T22:06:41Z", - "closed_at": null, - "author_association": "OWNER", - "active_lock_reason": null, - "draft": true, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/1.patch", - "merged_at": null - }, - "body": "Hello, draft PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/1/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - }, - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json deleted file mode 100644 index 5f71838f46..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "total_count": 1, - "incomplete_results": false, - "items": [ - { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2", - "repository_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests", - "labels_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/labels{/name}", - "comments_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", - "events_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/events", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "id": 1893366260, - "node_id": "PR_kwDOKSyX8M5aLLmS", - "number": 2, - "title": "Temp merged PR", - "user": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 5955577634, - "node_id": "LA_kwDOKSyX8M8AAAABYvrnIg", - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/labels/test", - "name": "test", - "color": "ededed", - "default": false, - "description": null - } - ], - "state": "closed", - "locked": false, - "assignee": { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "kgromov", - "id": 9352794, - "node_id": "MDQ6VXNlcjkzNTI3OTQ=", - "avatar_url": "https://avatars.githubusercontent.com/u/9352794?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kgromov", - "html_url": "https://github.com/kgromov", - "followers_url": "https://api.github.com/users/kgromov/followers", - "following_url": "https://api.github.com/users/kgromov/following{/other_user}", - "gists_url": "https://api.github.com/users/kgromov/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kgromov/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kgromov/subscriptions", - "organizations_url": "https://api.github.com/users/kgromov/orgs", - "repos_url": "https://api.github.com/users/kgromov/repos", - "events_url": "https://api.github.com/users/kgromov/events{/privacy}", - "received_events_url": "https://api.github.com/users/kgromov/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 1, - "created_at": "2023-09-12T22:06:42Z", - "updated_at": "2023-09-12T22:06:46Z", - "closed_at": "2023-09-12T22:06:46Z", - "author_association": "OWNER", - "active_lock_reason": null, - "draft": false, - "pull_request": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2", - "html_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2", - "diff_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.diff", - "patch_url": "https://github.com/kgromov/temp-testSearchPullRequests/pull/2.patch", - "merged_at": "2023-09-12T22:06:46Z" - }, - "body": "Hello, merged PR", - "reactions": { - "url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "timeline_url": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/2/timeline", - "performed_via_github_app": null, - "state_reason": null, - "score": 1 - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-da1cd23b-68fc-4f76-b63d-73aef15422b8.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-da1cd23b-68fc-4f76-b63d-73aef15422b8.json index 3394059e3c..94f55585dd 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/__files/user-da1cd23b-68fc-4f76-b63d-73aef15422b8.json @@ -28,7 +28,7 @@ "public_repos": 92, "public_gists": 11, "followers": 0, - "following": 8, + "following": 9, "created_at": "2014-10-22T14:20:36Z", - "updated_at": "2023-07-28T20:37:46Z" + "updated_at": "2023-10-27T15:36:08Z" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json similarity index 74% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json index af4dc53365..c2e6a4f730 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests-b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json @@ -1,5 +1,5 @@ { - "id": "59314163-2543-4386-b9bd-8e0bfa1810f7", + "id": "b6c87345-2fe0-4d7a-894d-a59a9559fa4c", "name": "repos_kgromov_temp-testsearchpullrequests", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests", @@ -12,26 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-59314163-2543-4386-b9bd-8e0bfa1810f7.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests-b6c87345-2fe0-4d7a-894d-a59a9559fa4c.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:36 GMT", + "Date": "Sat, 11 Nov 2023 00:45:17 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"e73bf2c607b8251211c97a1b9256b5f333a5d6a80e5030eae154b899972d9ed3\"", - "Last-Modified": "Tue, 12 Sep 2023 22:06:33 GMT", + "ETag": "W/\"91ddd65994343ccb5a4791c784aa5feb9178a8a77895e70e92efa536ed54cd8c\"", + "Last-Modified": "Sat, 11 Nov 2023 00:45:13 GMT", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4851", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "149", + "X-RateLimit-Remaining": "4760", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "240", "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 +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": "CF72:0FE7:F0B829:F3465A:6500E0EC" + "X-GitHub-Request-Id": "FF91:6EFB:20B662DA:2119B0D7:654ECE9D" } }, - "uuid": "59314163-2543-4386-b9bd-8e0bfa1810f7", + "uuid": "b6c87345-2fe0-4d7a-894d-a59a9559fa4c", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_branches-2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_branches-2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json index e91daf096f..46b9487a34 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_branches-2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json @@ -1,5 +1,5 @@ { - "id": "2dba7301-deb7-4aed-b916-62bf0cb8b153", + "id": "2e4a86eb-0958-47e4-a4b8-c9d8e71eec40", "name": "repos_kgromov_temp-testsearchpullrequests_branches", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/branches", @@ -12,25 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_branches-2dba7301-deb7-4aed-b916-62bf0cb8b153.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_branches-2e4a86eb-0958-47e4-a4b8-c9d8e71eec40.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:55 GMT", + "Date": "Sat, 11 Nov 2023 00:45:33 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/\"54df8b3a443fceadf3b5ee7dd8e2a7a0274b2859966837a71d25724398110a68\"", + "ETag": "W/\"208becc71dac6c18a7d3d92f6dd5b33dcf778d79b88ddcc5d9b1e58062dd3dc0\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4838", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "162", + "X-RateLimit-Remaining": "4747", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "253", "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 +40,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": "CF8E:0FE7:F0E9ED:F378BA:6500E0FE" + "X-GitHub-Request-Id": "FFB9:AC81:21AD3875:22108938:654ECEAD" } }, - "uuid": "2dba7301-deb7-4aed-b916-62bf0cb8b153", + "uuid": "2e4a86eb-0958-47e4-a4b8-c9d8e71eec40", "persistent": true, "insertionIndex": 30 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-57fe6839-4f2a-416e-8c31-cccdabdb8617.json similarity index 80% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-57fe6839-4f2a-416e-8c31-cccdabdb8617.json index a8c2fa61fa..735e2e192c 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-57fe6839-4f2a-416e-8c31-cccdabdb8617.json @@ -1,5 +1,5 @@ { - "id": "63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0", + "id": "57fe6839-4f2a-416e-8c31-cccdabdb8617", "name": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/branchToMerge", @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_branchtomerge-57fe6839-4f2a-416e-8c31-cccdabdb8617.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:39 GMT", + "Date": "Sat, 11 Nov 2023 00:45: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": "\"0c87e042af5e09f0c214e4937aee2d9c7faae614c677e0d19b55400b2a415825\"", + "ETag": "\"99c67de25b0f4bafb3f954b8376e115d245584c80d4b749ea52a5fa31f7213f8\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4846", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "154", + "X-RateLimit-Remaining": "4755", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "245", "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 +47,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": "CF77:FBD1:9E671ED:9FDD7DF:6500E0EF" + "X-GitHub-Request-Id": "FF98:85F2:1FCEC749:2031CC28:654ECE9F" } }, - "uuid": "63eb05b5-4fd3-4a74-a1db-d0f17ce9d3f0", + "uuid": "57fe6839-4f2a-416e-8c31-cccdabdb8617", "persistent": true, "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-e2acff50-d3c7-4a04-a522-ddf34b102a8f.json similarity index 81% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-e2acff50-d3c7-4a04-a522-ddf34b102a8f.json index ddb1809670..bc0a31f6a1 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-e2acff50-d3c7-4a04-a522-ddf34b102a8f.json @@ -1,5 +1,5 @@ { - "id": "2f019529-79f0-4ead-8863-47f4f8f781e5", + "id": "e2acff50-d3c7-4a04-a522-ddf34b102a8f", "name": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/contents/refs/heads/draft", @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-2f019529-79f0-4ead-8863-47f4f8f781e5.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_contents_refs_heads_draft-e2acff50-d3c7-4a04-a522-ddf34b102a8f.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:38 GMT", + "Date": "Sat, 11 Nov 2023 00:45: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": "\"2b8aef282884d97b44086db3c80cc43398b0fc54d82acc41644d78f3ca912545\"", + "ETag": "\"f4e437e01957a2e8fa8af77c226aef213abd9628b6891eff5e32d14370e6673d\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4848", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "152", + "X-RateLimit-Remaining": "4757", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "243", "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 +47,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": "CF75:8845:1D64509:1DA8DAC:6500E0EE" + "X-GitHub-Request-Id": "FF95:DBA9:20FC324F:215F3618:654ECE9E" } }, - "uuid": "2f019529-79f0-4ead-8863-47f4f8f781e5", + "uuid": "e2acff50-d3c7-4a04-a522-ddf34b102a8f", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-a6b99918-8bcc-4802-b4f7-664a6696ac4d.json similarity index 79% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-a6b99918-8bcc-4802-b4f7-664a6696ac4d.json index cb3dce659a..7df2e71fc4 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-a6b99918-8bcc-4802-b4f7-664a6696ac4d.json @@ -1,5 +1,5 @@ { - "id": "3b80876f-5673-4dad-8e08-dc5a1446cb99", + "id": "a6b99918-8bcc-4802-b4f7-664a6696ac4d", "name": "repos_kgromov_temp-testsearchpullrequests_git_refs", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/branchToMerge\",\"sha\":\"33d4c1629baf1fc0c127839c7d605547daece11e\"}", + "equalToJson": "{\"ref\":\"refs/heads/branchToMerge\",\"sha\":\"34b361864cacfbd165af1b06a659113099da1f38\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs-3b80876f-5673-4dad-8e08-dc5a1446cb99.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs-a6b99918-8bcc-4802-b4f7-664a6696ac4d.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:39 GMT", + "Date": "Sat, 11 Nov 2023 00:45: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": "\"d703d3744b5ec88c052d5e2c1cd23d2e58a59af7e5297a83083a7fb8fa192d84\"", + "ETag": "\"997a0d8ddf2be53434e491613dc575ce918047eaeeda2ffcde5553af28c51d77\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4847", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "153", + "X-RateLimit-Remaining": "4756", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "244", "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 +47,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": "CF76:072D:9ED45FA:A04AC13:6500E0EE", + "X-GitHub-Request-Id": "FF97:A2C4:1FF181FE:20561D88:654ECE9E", "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/branchToMerge" } }, - "uuid": "3b80876f-5673-4dad-8e08-dc5a1446cb99", + "uuid": "a6b99918-8bcc-4802-b4f7-664a6696ac4d", "persistent": true, "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-e1be828c-2137-4d51-b66f-7461d9a2c0b0.json similarity index 79% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-e1be828c-2137-4d51-b66f-7461d9a2c0b0.json index 264e3d679d..ac604bd50d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs-e1be828c-2137-4d51-b66f-7461d9a2c0b0.json @@ -1,5 +1,5 @@ { - "id": "21888de2-c4fb-4666-9d04-2616634778c6", + "id": "e1be828c-2137-4d51-b66f-7461d9a2c0b0", "name": "repos_kgromov_temp-testsearchpullrequests_git_refs", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/draft\",\"sha\":\"33d4c1629baf1fc0c127839c7d605547daece11e\"}", + "equalToJson": "{\"ref\":\"refs/heads/draft\",\"sha\":\"34b361864cacfbd165af1b06a659113099da1f38\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs-21888de2-c4fb-4666-9d04-2616634778c6.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs-e1be828c-2137-4d51-b66f-7461d9a2c0b0.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:37 GMT", + "Date": "Sat, 11 Nov 2023 00:45: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": "\"9772cdaea5fb007d136ad1d47d8111511c96be527c067ea375a88951c24b1981\"", + "ETag": "\"a51b1ae435087d61f786dffd94ccc7ee477ef5aecf2cb053766e18b3fae50eae\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4849", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "151", + "X-RateLimit-Remaining": "4758", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "242", "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 +47,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": "CF74:0F2D:A2A4E8A:A41D466:6500E0ED", + "X-GitHub-Request-Id": "FF93:DBA9:20FC3123:215F34FC:654ECE9D", "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/draft" } }, - "uuid": "21888de2-c4fb-4666-9d04-2616634778c6", + "uuid": "e1be828c-2137-4d51-b66f-7461d9a2c0b0", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-14ddc043-8064-4aab-8904-aa98f8372125.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-14ddc043-8064-4aab-8904-aa98f8372125.json index c5774b6f66..f9cb82c2c3 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-14ddc043-8064-4aab-8904-aa98f8372125.json @@ -1,5 +1,5 @@ { - "id": "8cbcd7f7-01aa-4355-a478-38bd54344d10", + "id": "14ddc043-8064-4aab-8904-aa98f8372125", "name": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/git/refs/heads/main", @@ -12,27 +12,27 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-8cbcd7f7-01aa-4355-a478-38bd54344d10.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_git_refs_heads_main-14ddc043-8064-4aab-8904-aa98f8372125.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:37 GMT", + "Date": "Sat, 11 Nov 2023 00:45:17 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"7cf89bc6c9dc43f40e2fbd7d2384fb80135c607303d4efb863ea55543f2c004c\"", - "Last-Modified": "Tue, 12 Sep 2023 22:06:33 GMT", + "ETag": "W/\"d3a5ff9499201676863cc1ad29bf4bf6953ca43e11f75647a31f6e4d5c92e458\"", + "Last-Modified": "Sat, 11 Nov 2023 00:45:13 GMT", "X-Poll-Interval": "300", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4850", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "150", + "X-RateLimit-Remaining": "4759", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "241", "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": "*", @@ -42,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": "CF73:E6C0:9E1E9A4:9F94F6E:6500E0ED" + "X-GitHub-Request-Id": "FF92:10F1B:20A84490:210C3B25:654ECE9D" } }, - "uuid": "8cbcd7f7-01aa-4355-a478-38bd54344d10", + "uuid": "14ddc043-8064-4aab-8904-aa98f8372125", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_1-e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json similarity index 80% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_1-e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json index 816721705f..3bcd745cfd 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_1-e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json @@ -1,5 +1,5 @@ { - "id": "545ac0ff-717b-4b98-976e-f1edba7ae125", + "id": "e749de4a-bd7c-48bf-aa8e-8ba08a208f24", "name": "repos_kgromov_temp-testsearchpullrequests_issues_1", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/issues/1", @@ -19,25 +19,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_1-545ac0ff-717b-4b98-976e-f1edba7ae125.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_1-e749de4a-bd7c-48bf-aa8e-8ba08a208f24.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:41 GMT", + "Date": "Sat, 11 Nov 2023 00:45:21 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"aa3924ddabf08233feac90a6845476052ee1ae5283c2b3c2296e3be5b65e0b09\"", + "ETag": "W/\"eb0556978304193775dbd6aa2bc17f4a2c7f5cba84e330b213024cd7257ba93d\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4844", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "156", + "X-RateLimit-Remaining": "4753", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "247", "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 +47,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": "CF79:54B0:53BEC05:548B251:6500E0F1" + "X-GitHub-Request-Id": "FF9B:7A19:20E8F917:214CE9D1:654ECEA0" } }, - "uuid": "545ac0ff-717b-4b98-976e-f1edba7ae125", + "uuid": "e749de4a-bd7c-48bf-aa8e-8ba08a208f24", "persistent": true, "insertionIndex": 9 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json similarity index 80% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json index 1c71d9c74b..f531c73457 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json @@ -1,5 +1,5 @@ { - "id": "522c54ba-d2b8-41c6-a131-de0613068bd7", + "id": "1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5", "name": "repos_kgromov_temp-testsearchpullrequests_issues_2", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/issues/2", @@ -19,25 +19,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_2-522c54ba-d2b8-41c6-a131-de0613068bd7.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_2-1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:43 GMT", + "Date": "Sat, 11 Nov 2023 00:45:23 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"6bb073a1d8adad2fb6526eac4270102b716fa25713faff6010102a40074ad552\"", + "ETag": "W/\"1f8318cf798f212b7f6969587321ff4e36c6c785488220453a3e9de481517b7f\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4842", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "158", + "X-RateLimit-Remaining": "4751", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "249", "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 +47,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": "CF7B:8651:1CCE9D:1D341D:6500E0F3" + "X-GitHub-Request-Id": "FF9F:DBA9:20FC3C55:215F404A:654ECEA3" } }, - "uuid": "522c54ba-d2b8-41c6-a131-de0613068bd7", + "uuid": "1cfdc674-e79d-4b71-b9c0-3b4fcbfc86d5", "persistent": true, "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-b33c18df-1b3d-4736-a162-420da2b9bcd5.json similarity index 80% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-b33c18df-1b3d-4736-a162-420da2b9bcd5.json index 4432925347..174056e51e 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2-b33c18df-1b3d-4736-a162-420da2b9bcd5.json @@ -1,5 +1,5 @@ { - "id": "66f05bb3-1663-4725-8069-8bea635d4a29", + "id": "b33c18df-1b3d-4736-a162-420da2b9bcd5", "name": "repos_kgromov_temp-testsearchpullrequests_issues_2", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/issues/2", @@ -19,25 +19,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_2-66f05bb3-1663-4725-8069-8bea635d4a29.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_2-b33c18df-1b3d-4736-a162-420da2b9bcd5.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:44 GMT", + "Date": "Sat, 11 Nov 2023 00:45:24 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"6fc539dd34a49742d7cc3ec89adfbed489817337eeb62ed415091655f4d885a1\"", + "ETag": "W/\"ba01a57d7f7501f05fabc09617a8b2ab694c4a89d14a47aeaad23527cd4bbcb0\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4841", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "159", + "X-RateLimit-Remaining": "4750", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "250", "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 +47,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": "CF7C:072D:9ED54FB:A04BB35:6500E0F4" + "X-GitHub-Request-Id": "FFA0:56FE:2147DBD1:21AC6BCA:654ECEA3" } }, - "uuid": "66f05bb3-1663-4725-8069-8bea635d4a29", + "uuid": "b33c18df-1b3d-4736-a162-420da2b9bcd5", "persistent": true, "insertionIndex": 12 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json similarity index 79% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json index c7fc5b70d8..629f84b2f0 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_issues_2_comments-1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json @@ -1,5 +1,5 @@ { - "id": "e30a8aad-4f2f-428e-901f-560f00e0a151", + "id": "1868398e-38c8-4adb-b1d4-c5ed4bb624c1", "name": "repos_kgromov_temp-testsearchpullrequests_issues_2_comments", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/issues/2/comments", @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_2_comments-e30a8aad-4f2f-428e-901f-560f00e0a151.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_issues_2_comments-1868398e-38c8-4adb-b1d4-c5ed4bb624c1.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:45 GMT", + "Date": "Sat, 11 Nov 2023 00:45: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": "\"522c90658ffb04c818f8531e1606d679273772caebccc422871c4f444e1a092c\"", + "ETag": "\"bd0a0b30b6982b8b367c25195956260f68e76fb9c8e19c3b1f62322e56521f33\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4840", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "160", + "X-RateLimit-Remaining": "4749", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "251", "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 +47,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": "CF7D:537D:9E62748:9FD8EA9:6500E0F5", - "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments/1716566121" + "X-GitHub-Request-Id": "FFA2:669F:2800717F:2873530F:654ECEA4", + "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/issues/comments/1806603013" } }, - "uuid": "e30a8aad-4f2f-428e-901f-560f00e0a151", + "uuid": "1868398e-38c8-4adb-b1d4-c5ed4bb624c1", "persistent": true, "insertionIndex": 13 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-29fe89f2-88e8-4866-910f-708c8a258bd5.json similarity index 82% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-29fe89f2-88e8-4866-910f-708c8a258bd5.json index ef3f0c0833..a2ec334cd5 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-29fe89f2-88e8-4866-910f-708c8a258bd5.json @@ -1,5 +1,5 @@ { - "id": "2310b7ca-8606-4773-8c00-e1bd6a1654f6", + "id": "29fe89f2-88e8-4866-910f-708c8a258bd5", "name": "repos_kgromov_temp-testsearchpullrequests_pulls", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/pulls", @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_pulls-2310b7ca-8606-4773-8c00-e1bd6a1654f6.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_pulls-29fe89f2-88e8-4866-910f-708c8a258bd5.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:42 GMT", + "Date": "Sat, 11 Nov 2023 00:45: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": "\"aa937f13191f1854383532a7cdded7dade9cf7ae68448bffd3f737a892ecb13f\"", + "ETag": "\"08b6f140aad08c5f3f6549776acc144eec8152ed3a388609f4bf4e73a54c0578\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "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": "4843", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "157", + "X-RateLimit-Remaining": "4752", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "248", "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 +47,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": "CF7A:8845:1D64DD3:1DA96A4:6500E0F2", + "X-GitHub-Request-Id": "FF9C:C346:20B0F74B:21144682:654ECEA1", "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/2" } }, - "uuid": "2310b7ca-8606-4773-8c00-e1bd6a1654f6", + "uuid": "29fe89f2-88e8-4866-910f-708c8a258bd5", "persistent": true, "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-af640148-1955-4c33-b3c5-f051656787a9.json similarity index 82% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-af640148-1955-4c33-b3c5-f051656787a9.json index 3f412419d4..5af4d78ae1 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls-af640148-1955-4c33-b3c5-f051656787a9.json @@ -1,5 +1,5 @@ { - "id": "23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8", + "id": "af640148-1955-4c33-b3c5-f051656787a9", "name": "repos_kgromov_temp-testsearchpullrequests_pulls", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/pulls", @@ -19,25 +19,25 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_pulls-23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8.json", + "bodyFileName": "repos_kgromov_temp-testsearchpullrequests_pulls-af640148-1955-4c33-b3c5-f051656787a9.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:40 GMT", + "Date": "Sat, 11 Nov 2023 00:45: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": "\"ecb0227cfbebdbc5d6bced1a196b193312be96032bc1a886e42ddbc9fdc701bf\"", + "ETag": "\"488f6a3ae20a738e00e1bfddc966efad599c727886b5e64a84fb551aabf95251\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "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": "4845", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "155", + "X-RateLimit-Remaining": "4754", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "246", "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 +47,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": "CF78:54B0:53BE8B2:548AED6:6500E0EF", + "X-GitHub-Request-Id": "FF99:8C73:2078CD0E:20DD6391:654ECE9F", "Location": "https://api.github.com/repos/kgromov/temp-testSearchPullRequests/pulls/1" } }, - "uuid": "23085a1e-c9ef-4ffb-aa28-af7dfd93b2c8", + "uuid": "af640148-1955-4c33-b3c5-f051656787a9", "persistent": true, "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-54522815-98f1-42d6-a391-c3d305c4f4e8.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-17dc81ea-0faf-434b-9de4-b0493013e514.json similarity index 80% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-54522815-98f1-42d6-a391-c3d305c4f4e8.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-17dc81ea-0faf-434b-9de4-b0493013e514.json index 96df39f7b3..0bd69135eb 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-54522815-98f1-42d6-a391-c3d305c4f4e8.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/repos_kgromov_temp-testsearchpullrequests_pulls_2_merge-17dc81ea-0faf-434b-9de4-b0493013e514.json @@ -1,5 +1,5 @@ { - "id": "54522815-98f1-42d6-a391-c3d305c4f4e8", + "id": "17dc81ea-0faf-434b-9de4-b0493013e514", "name": "repos_kgromov_temp-testsearchpullrequests_pulls_2_merge", "request": { "url": "/repos/kgromov/temp-testSearchPullRequests/pulls/2/merge", @@ -19,25 +19,25 @@ }, "response": { "status": 200, - "body": "{\"sha\":\"ce18a7029a8faa65ccced3c22eff7235fdc14887\",\"merged\":true,\"message\":\"Pull Request successfully merged\"}", + "body": "{\"sha\":\"5316172f4450c481017e8c4ef2b299da23ee1c6c\",\"merged\":true,\"message\":\"Pull Request successfully merged\"}", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:47 GMT", + "Date": "Sat, 11 Nov 2023 00:45: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/\"fb7789f73d1756f53dc15aec5f0c4675a54d92069cadd2910859e5a8389416e8\"", + "ETag": "W/\"c78830beea37d2d0cde293e28479bdf6243135ee7036f58c1141fb54d468152c\"", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4839", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "161", + "X-RateLimit-Remaining": "4748", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "252", "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 +47,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": "CF7E:260B:57C7B76:589FB7B:6500E0F6" + "X-GitHub-Request-Id": "FFA3:8C73:2078D9FB:20DD70B1:654ECEA5" } }, - "uuid": "54522815-98f1-42d6-a391-c3d305c4f4e8", + "uuid": "17dc81ea-0faf-434b-9de4-b0493013e514", "persistent": true, "insertionIndex": 14 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-14eebf66-33e1-4280-a68d-9f2d85d8b4db.json similarity index 81% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-14eebf66-33e1-4280-a68d-9f2d85d8b4db.json index 7806de4df1..590426176f 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-14eebf66-33e1-4280-a68d-9f2d85d8b4db.json @@ -1,8 +1,8 @@ { - "id": "90e45fa7-a539-4080-9ad7-766ccb7292a2", + "id": "14eebf66-33e1-4280-a68d-9f2d85d8b4db", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aopen+draft%3Atrue+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aopen+draft%3Atrue+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-90e45fa7-a539-4080-9ad7-766ccb7292a2.json", + "bodyFileName": "search_issues-14eebf66-33e1-4280-a68d-9f2d85d8b4db.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:48 GMT", + "Date": "Sat, 11 Nov 2023 00:45:27 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "29", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "1", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF7F:FF32:A34ECB9:A4C5475:6500E0F8" + "X-GitHub-Request-Id": "FFA4:F99F:207C33E5:20DFE183:654ECEA7" } }, - "uuid": "90e45fa7-a539-4080-9ad7-766ccb7292a2", + "uuid": "14eebf66-33e1-4280-a68d-9f2d85d8b4db", "persistent": true, "scenarioName": "scenario-1-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-18eecc46-bf6e-47a3-805c-be128054c31d.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-18eecc46-bf6e-47a3-805c-be128054c31d.json index 250c816045..739cac413b 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-18eecc46-bf6e-47a3-805c-be128054c31d.json @@ -1,8 +1,8 @@ { - "id": "82602db5-a742-4a9e-b67c-a287e50f7e05", + "id": "18eecc46-bf6e-47a3-805c-be128054c31d", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+label%3Atest+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?order=desc&q=repo%3Akgromov%2Ftemp-testSearchPullRequests+label%3Atest+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-82602db5-a742-4a9e-b67c-a287e50f7e05.json", + "bodyFileName": "search_issues-18eecc46-bf6e-47a3-805c-be128054c31d.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:58 GMT", + "Date": "Sat, 11 Nov 2023 00:45:36 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "7", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "23", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF96:537D:9E64AD4:9FDB29A:6500E102" + "X-GitHub-Request-Id": "FFC4:1B81:24467199:24AF7A02:654ECEB0" } }, - "uuid": "82602db5-a742-4a9e-b67c-a287e50f7e05", + "uuid": "18eecc46-bf6e-47a3-805c-be128054c31d", "persistent": true, "scenarioName": "scenario-10-search-issues", "requiredScenarioState": "scenario-10-search-issues-3", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-1cf472a0-822d-4762-b4e9-3104ea5ada8f.json similarity index 79% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-1cf472a0-822d-4762-b4e9-3104ea5ada8f.json index f0e1a4c74f..01d2d7de54 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-1cf472a0-822d-4762-b4e9-3104ea5ada8f.json @@ -1,8 +1,8 @@ { - "id": "329cc3c7-8af4-4a6f-9efc-96caf610c448", + "id": "1cf472a0-822d-4762-b4e9-3104ea5ada8f", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-09-12+updated%3A2023-09-12+closed%3A2023-09-12+merged%3A2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-11-11+updated%3A2023-11-11+closed%3A2023-11-11+merged%3A2023-11-11+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-329cc3c7-8af4-4a6f-9efc-96caf610c448.json", + "bodyFileName": "search_issues-1cf472a0-822d-4762-b4e9-3104ea5ada8f.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:52 GMT", + "Date": "Sat, 11 Nov 2023 00:45:31 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "20", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "10", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF88:0FE7:F0E280:F37152:6500E0FC" + "X-GitHub-Request-Id": "FFB2:4CF1:20DB6A3D:213F1300:654ECEAB" } }, - "uuid": "329cc3c7-8af4-4a6f-9efc-96caf610c448", + "uuid": "1cf472a0-822d-4762-b4e9-3104ea5ada8f", "persistent": true, "scenarioName": "scenario-5-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-31731f7d-b999-4f23-b767-6e7634c7b161.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-31731f7d-b999-4f23-b767-6e7634c7b161.json index de7eef7a5c..b964f71e12 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-31731f7d-b999-4f23-b767-6e7634c7b161.json @@ -1,8 +1,8 @@ { - "id": "98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968", + "id": "31731f7d-b999-4f23-b767-6e7634c7b161", "name": "search_issues", "request": { - "url": "/search/issues?q=base%3Amain+head%3AbranchToMerge+SHA%3Ae70ac92dc8a342daed5784b3bd54c1185813b982+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+base%3Amain+head%3AbranchToMerge+SHA%3Af06ea132e5c97d4237ac3ff717944791eb142ff1+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968.json", + "bodyFileName": "search_issues-31731f7d-b999-4f23-b767-6e7634c7b161.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:55 GMT", + "Date": "Sat, 11 Nov 2023 00:45:34 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "13", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "17", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF90:072D:9ED73AA:A04DA4A:6500E0FF" + "X-GitHub-Request-Id": "FFBD:8C73:2078EC1C:20DD8328:654ECEAE" } }, - "uuid": "98c2d0d2-eaaf-4810-b6a8-11a0bd5f3968", + "uuid": "31731f7d-b999-4f23-b767-6e7634c7b161", "persistent": true, "scenarioName": "scenario-8-search-issues", "requiredScenarioState": "scenario-8-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3399ef05-53c4-4f3f-9ada-89093e9f280e.json similarity index 79% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3399ef05-53c4-4f3f-9ada-89093e9f280e.json index 47741a8290..ef37c63d45 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3399ef05-53c4-4f3f-9ada-89093e9f280e.json @@ -1,8 +1,8 @@ { - "id": "57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd", + "id": "3399ef05-53c4-4f3f-9ada-89093e9f280e", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+merged%3A2023-09-01..2023-09-12+closed%3A2023-09-01..2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+merged%3A2023-11-01..2023-11-11+closed%3A2023-11-01..2023-11-11+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd.json", + "bodyFileName": "search_issues-3399ef05-53c4-4f3f-9ada-89093e9f280e.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:52 GMT", + "Date": "Sat, 11 Nov 2023 00:45:30 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "21", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "9", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF87:8651:1CE26D:1D4837:6500E0FB" + "X-GitHub-Request-Id": "FFB1:85F2:1FCEDEAD:2031E3D9:654ECEAA" } }, - "uuid": "57a5b11a-7cbd-4e97-8ded-c7a8a3d0a1cd", + "uuid": "3399ef05-53c4-4f3f-9ada-89093e9f280e", "persistent": true, "scenarioName": "scenario-4-search-issues", "requiredScenarioState": "scenario-4-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3b75637b-21a8-4415-b951-02b1d64647cc.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3b75637b-21a8-4415-b951-02b1d64647cc.json index d74ea007c3..dd29713dc3 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3b75637b-21a8-4415-b951-02b1d64647cc.json @@ -1,8 +1,8 @@ { - "id": "4f6daa33-87f9-45ea-96aa-e82a8404ff37", + "id": "3b75637b-21a8-4415-b951-02b1d64647cc", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+Temp+in%3Atitle+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?sort=created&order=asc&q=repo%3Akgromov%2Ftemp-testSearchPullRequests+Temp+in%3Atitle+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-4f6daa33-87f9-45ea-96aa-e82a8404ff37.json", + "bodyFileName": "search_issues-3b75637b-21a8-4415-b951-02b1d64647cc.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:57 GMT", + "Date": "Sat, 11 Nov 2023 00:45:35 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "10", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "20", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF93:FF32:A35061D:A4C6E28:6500E101" + "X-GitHub-Request-Id": "FFC0:6EFB:20B68E26:2119DCAD:654ECEAF" } }, - "uuid": "4f6daa33-87f9-45ea-96aa-e82a8404ff37", + "uuid": "3b75637b-21a8-4415-b951-02b1d64647cc", "persistent": true, "scenarioName": "scenario-9-search-issues", "requiredScenarioState": "scenario-9-search-issues-3", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-44d16c49-384f-4edb-8718-eef330664a1f.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-44d16c49-384f-4edb-8718-eef330664a1f.json index dfbc9bdd9a..12e6af9948 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-44d16c49-384f-4edb-8718-eef330664a1f.json @@ -1,8 +1,8 @@ { - "id": "540c0a3b-1113-452c-8e1f-fc0e2be72e98", + "id": "44d16c49-384f-4edb-8718-eef330664a1f", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+label%3Atest+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?order=desc&q=repo%3Akgromov%2Ftemp-testSearchPullRequests+label%3Atest+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-540c0a3b-1113-452c-8e1f-fc0e2be72e98.json", + "bodyFileName": "search_issues-44d16c49-384f-4edb-8718-eef330664a1f.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:57 GMT", + "Date": "Sat, 11 Nov 2023 00:45:35 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "9", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "21", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF94:FBD1:9E6A389:9FE0A08:6500E101" + "X-GitHub-Request-Id": "FFC1:669F:28008B53:28736D69:654ECEAF" } }, - "uuid": "540c0a3b-1113-452c-8e1f-fc0e2be72e98", + "uuid": "44d16c49-384f-4edb-8718-eef330664a1f", "persistent": true, "scenarioName": "scenario-10-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4bcd55b4-5658-48bf-b744-88d4ef5c8878.json similarity index 80% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4bcd55b4-5658-48bf-b744-88d4ef5c8878.json index 04c6540b67..c980cfa728 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-4bcd55b4-5658-48bf-b744-88d4ef5c8878.json @@ -1,8 +1,8 @@ { - "id": "eb3d246a-f8df-484b-89de-f448fb2aa18d", + "id": "4bcd55b4-5658-48bf-b744-88d4ef5c8878", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aopen+draft%3Atrue+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aopen+draft%3Atrue+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-eb3d246a-f8df-484b-89de-f448fb2aa18d.json", + "bodyFileName": "search_issues-4bcd55b4-5658-48bf-b744-88d4ef5c8878.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:49 GMT", + "Date": "Sat, 11 Nov 2023 00:45:28 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "28", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "2", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF80:8845:1D65D56:1DAA66B:6500E0F8" + "X-GitHub-Request-Id": "FFA6:4CF1:20DB6243:213F0AF3:654ECEA8" } }, - "uuid": "eb3d246a-f8df-484b-89de-f448fb2aa18d", + "uuid": "4bcd55b4-5658-48bf-b744-88d4ef5c8878", "persistent": true, "scenarioName": "scenario-1-search-issues", "requiredScenarioState": "scenario-1-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-53ee62a3-a853-4c3a-818e-e2de55bd92f2.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-53ee62a3-a853-4c3a-818e-e2de55bd92f2.json index 911a598051..7b142a47ba 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-53ee62a3-a853-4c3a-818e-e2de55bd92f2.json @@ -1,8 +1,8 @@ { - "id": "fd9550e8-2307-4d76-8236-ff856a96e03e", + "id": "53ee62a3-a853-4c3a-818e-e2de55bd92f2", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-09-12+updated%3A2023-09-12+closed%3A2023-09-12+merged%3A2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-11-11+updated%3A2023-11-11+closed%3A2023-11-11+merged%3A2023-11-11+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-fd9550e8-2307-4d76-8236-ff856a96e03e.json", + "bodyFileName": "search_issues-53ee62a3-a853-4c3a-818e-e2de55bd92f2.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:52 GMT", + "Date": "Sat, 11 Nov 2023 00:45:31 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "19", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "11", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF89:E511:406D262:410EA45:6500E0FC" + "X-GitHub-Request-Id": "FFB3:AC81:21AD3477:2210853A:654ECEAB" } }, - "uuid": "fd9550e8-2307-4d76-8236-ff856a96e03e", + "uuid": "53ee62a3-a853-4c3a-818e-e2de55bd92f2", "persistent": true, "scenarioName": "scenario-5-search-issues", "requiredScenarioState": "scenario-5-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-58370fe0-3ab4-4234-8f8f-eb6499b12557.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-58370fe0-3ab4-4234-8f8f-eb6499b12557.json index 717df5d43e..fa63b45437 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-58370fe0-3ab4-4234-8f8f-eb6499b12557.json @@ -1,8 +1,8 @@ { - "id": "f805cc74-e0b6-494d-9f8e-7388d40689e1", + "id": "58370fe0-3ab4-4234-8f8f-eb6499b12557", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+Temp+in%3Atitle+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?sort=created&order=asc&q=repo%3Akgromov%2Ftemp-testSearchPullRequests+Temp+in%3Atitle+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-f805cc74-e0b6-494d-9f8e-7388d40689e1.json", + "bodyFileName": "search_issues-58370fe0-3ab4-4234-8f8f-eb6499b12557.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:56 GMT", + "Date": "Sat, 11 Nov 2023 00:45:35 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "11", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "19", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF92:537D:9E64651:9FDADF1:6500E100" + "X-GitHub-Request-Id": "FFBF:D828:237CAA52:23E5B247:654ECEAE" } }, - "uuid": "f805cc74-e0b6-494d-9f8e-7388d40689e1", + "uuid": "58370fe0-3ab4-4234-8f8f-eb6499b12557", "persistent": true, "scenarioName": "scenario-9-search-issues", "requiredScenarioState": "scenario-9-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-66d61c85-08d3-4266-8348-6d54ca42b5ce.json similarity index 81% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-66d61c85-08d3-4266-8348-6d54ca42b5ce.json index 48ec995895..e6c578d7a4 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-66d61c85-08d3-4266-8348-6d54ca42b5ce.json @@ -1,8 +1,8 @@ { - "id": "a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25", + "id": "66d61c85-08d3-4266-8348-6d54ca42b5ce", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aclosed+is%3Amerged+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aclosed+is%3Amerged+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25.json", + "bodyFileName": "search_issues-66d61c85-08d3-4266-8348-6d54ca42b5ce.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:49 GMT", + "Date": "Sat, 11 Nov 2023 00:45:28 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "27", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "3", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF81:1390C:9CEF52B:9E65B7B:6500E0F9" + "X-GitHub-Request-Id": "FFA8:6EFB:20B67F45:2119CDA1:654ECEA8" } }, - "uuid": "a2d2f15f-cbe8-4ad9-ac0f-7bd703539f25", + "uuid": "66d61c85-08d3-4266-8348-6d54ca42b5ce", "persistent": true, "scenarioName": "scenario-2-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-76b76168-673f-4baf-ac20-ac395571b229.json similarity index 79% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-76b76168-673f-4baf-ac20-ac395571b229.json index 196c3ade71..e7bac5abc1 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-76b76168-673f-4baf-ac20-ac395571b229.json @@ -1,8 +1,8 @@ { - "id": "dfb35787-f281-43c1-aa03-546d41b91804", + "id": "76b76168-673f-4baf-ac20-ac395571b229", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+label%3Atest+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?order=desc&q=repo%3Akgromov%2Ftemp-testSearchPullRequests+label%3Atest+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-dfb35787-f281-43c1-aa03-546d41b91804.json", + "bodyFileName": "search_issues-76b76168-673f-4baf-ac20-ac395571b229.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:58 GMT", + "Date": "Sat, 11 Nov 2023 00:45:36 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "8", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "22", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF95:0FDB:2A51E8:2AE1A0:6500E101" + "X-GitHub-Request-Id": "FFC3:8C73:2078F037:20DD8750:654ECEB0" } }, - "uuid": "dfb35787-f281-43c1-aa03-546d41b91804", + "uuid": "76b76168-673f-4baf-ac20-ac395571b229", "persistent": true, "scenarioName": "scenario-10-search-issues", "requiredScenarioState": "scenario-10-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-86bea00c-825a-4691-aada-32e5afcfd3bd.json similarity index 80% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-86bea00c-825a-4691-aada-32e5afcfd3bd.json index 22fb8d1a88..53ea363e1d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-86bea00c-825a-4691-aada-32e5afcfd3bd.json @@ -1,8 +1,8 @@ { - "id": "051617ba-2a65-4df1-8832-8f6bf88ef10b", + "id": "86bea00c-825a-4691-aada-32e5afcfd3bd", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+assignee%3Akgromov+mentions%3Akgromov+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+assignee%3Akgromov+mentions%3Akgromov+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-051617ba-2a65-4df1-8832-8f6bf88ef10b.json", + "bodyFileName": "search_issues-86bea00c-825a-4691-aada-32e5afcfd3bd.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:59 GMT", + "Date": "Sat, 11 Nov 2023 00:45:37 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "5", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "25", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF98:54B0:53C1DAE:548E47C:6500E103" + "X-GitHub-Request-Id": "FFC6:4CF1:20DB784E:213F216B:654ECEB1" } }, - "uuid": "051617ba-2a65-4df1-8832-8f6bf88ef10b", + "uuid": "86bea00c-825a-4691-aada-32e5afcfd3bd", "persistent": true, "scenarioName": "scenario-11-search-issues", "requiredScenarioState": "scenario-11-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-8f08a0af-7a05-4e15-a99b-f6618f96d753.json similarity index 76% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-8f08a0af-7a05-4e15-a99b-f6618f96d753.json index da94379a69..e8ba2929c6 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-8f08a0af-7a05-4e15-a99b-f6618f96d753.json @@ -1,8 +1,8 @@ { - "id": "ad41134b-c59f-4c25-8df1-5f2ae12d4edf", + "id": "8f08a0af-7a05-4e15-a99b-f6618f96d753", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-09-01..2023-09-12+updated%3A2023-09-01..2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?sort=updated&q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-11-01..2023-11-11+updated%3A2023-11-01..2023-11-11+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-ad41134b-c59f-4c25-8df1-5f2ae12d4edf.json", + "bodyFileName": "search_issues-8f08a0af-7a05-4e15-a99b-f6618f96d753.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:50 GMT", + "Date": "Sat, 11 Nov 2023 00:45:29 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "25", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "5", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF83:0FE7:F0DCAD:F36B54:6500E0FA" + "X-GitHub-Request-Id": "FFAB:85F2:1FCEDB71:2031E09A:654ECEA9" } }, - "uuid": "ad41134b-c59f-4c25-8df1-5f2ae12d4edf", + "uuid": "8f08a0af-7a05-4e15-a99b-f6618f96d753", "persistent": true, "scenarioName": "scenario-3-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ad2de6f7-e39b-4056-8990-066360bee08b.json similarity index 80% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ad2de6f7-e39b-4056-8990-066360bee08b.json index 86d70dc5fc..e138c4d2c2 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-ad2de6f7-e39b-4056-8990-066360bee08b.json @@ -1,8 +1,8 @@ { - "id": "d7edfad3-ffb0-48ba-9551-eda7318fbd1b", + "id": "ad2de6f7-e39b-4056-8990-066360bee08b", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+assignee%3Akgromov+mentions%3Akgromov+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+assignee%3Akgromov+mentions%3Akgromov+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-d7edfad3-ffb0-48ba-9551-eda7318fbd1b.json", + "bodyFileName": "search_issues-ad2de6f7-e39b-4056-8990-066360bee08b.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:59 GMT", + "Date": "Sat, 11 Nov 2023 00:45:37 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "6", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "24", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF97:E6C0:9E2246D:9F98AD5:6500E102" + "X-GitHub-Request-Id": "FFC5:6EFB:20B6913F:2119DFD8:654ECEB0" } }, - "uuid": "d7edfad3-ffb0-48ba-9551-eda7318fbd1b", + "uuid": "ad2de6f7-e39b-4056-8990-066360bee08b", "persistent": true, "scenarioName": "scenario-11-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-b0b66e35-c920-4e82-851d-636350624bb7.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-b0b66e35-c920-4e82-851d-636350624bb7.json index 39fbd3bbbd..de4506729e 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-b0b66e35-c920-4e82-851d-636350624bb7.json @@ -1,8 +1,8 @@ { - "id": "24dcaca4-15de-4355-b930-dcaeadbe7049", + "id": "b0b66e35-c920-4e82-851d-636350624bb7", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+Temp+in%3Atitle+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?sort=created&order=asc&q=repo%3Akgromov%2Ftemp-testSearchPullRequests+Temp+in%3Atitle+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-24dcaca4-15de-4355-b930-dcaeadbe7049.json", + "bodyFileName": "search_issues-b0b66e35-c920-4e82-851d-636350624bb7.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:56 GMT", + "Date": "Sat, 11 Nov 2023 00:45:34 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "12", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "18", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF91:072D:9ED74C7:A04DB65:6500E100" + "X-GitHub-Request-Id": "FFBE:FB7E:D18B2C7:D3DD0D0:654ECEAE" } }, - "uuid": "24dcaca4-15de-4355-b930-dcaeadbe7049", + "uuid": "b0b66e35-c920-4e82-851d-636350624bb7", "persistent": true, "scenarioName": "scenario-9-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c0c7532c-a459-41ef-8c3a-7a23f7691b62.json similarity index 79% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c0c7532c-a459-41ef-8c3a-7a23f7691b62.json index 781c8a0f8b..e81e57ed60 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c0c7532c-a459-41ef-8c3a-7a23f7691b62.json @@ -1,8 +1,8 @@ { - "id": "9e21d8c5-9c8d-4f41-adbb-dec6de6c4493", + "id": "c0c7532c-a459-41ef-8c3a-7a23f7691b62", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+merged%3A2023-09-01..2023-09-12+closed%3A2023-09-01..2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+merged%3A2023-11-01..2023-11-11+closed%3A2023-11-01..2023-11-11+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-9e21d8c5-9c8d-4f41-adbb-dec6de6c4493.json", + "bodyFileName": "search_issues-c0c7532c-a459-41ef-8c3a-7a23f7691b62.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:51 GMT", + "Date": "Sat, 11 Nov 2023 00:45:30 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "22", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "8", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF86:537D:9E638FB:9FDA07F:6500E0FB" + "X-GitHub-Request-Id": "FFB0:7A19:20E90DB1:214CFED3:654ECEAA" } }, - "uuid": "9e21d8c5-9c8d-4f41-adbb-dec6de6c4493", + "uuid": "c0c7532c-a459-41ef-8c3a-7a23f7691b62", "persistent": true, "scenarioName": "scenario-4-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c7bcf215-979c-4b96-94f7-62b275676005.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c7bcf215-979c-4b96-94f7-62b275676005.json index 3a5e780080..2291b0281c 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c7bcf215-979c-4b96-94f7-62b275676005.json @@ -1,8 +1,8 @@ { - "id": "250f059f-0f79-485a-bcef-b4f09241cb2d", + "id": "c7bcf215-979c-4b96-94f7-62b275676005", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3E2023-09-01+updated%3A%3E2023-09-01+merged%3A%3E%3D2023-09-01+closed%3A%3E%3D2023-09-01+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3E2023-11-01+updated%3A%3E2023-11-01+merged%3A%3E%3D2023-11-01+closed%3A%3E%3D2023-11-01+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-250f059f-0f79-485a-bcef-b4f09241cb2d.json", + "bodyFileName": "search_issues-c7bcf215-979c-4b96-94f7-62b275676005.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:53 GMT", + "Date": "Sat, 11 Nov 2023 00:45:32 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "17", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "13", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF8B:8651:1CE680:1D4C40:6500E0FD" + "X-GitHub-Request-Id": "FFB6:6EFB:20B68850:2119D6C2:654ECEAC" } }, - "uuid": "250f059f-0f79-485a-bcef-b4f09241cb2d", + "uuid": "c7bcf215-979c-4b96-94f7-62b275676005", "persistent": true, "scenarioName": "scenario-6-search-issues", "requiredScenarioState": "scenario-6-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c873591d-123d-42c8-920f-901a7160730b.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c873591d-123d-42c8-920f-901a7160730b.json index 081198ebae..acc20ec148 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c873591d-123d-42c8-920f-901a7160730b.json @@ -1,8 +1,8 @@ { - "id": "14bfad3d-76ee-4832-9c37-4a0fcadb182d", + "id": "c873591d-123d-42c8-920f-901a7160730b", "name": "search_issues", "request": { - "url": "/search/issues?q=base%3Amain+head%3AbranchToMerge+SHA%3Ae70ac92dc8a342daed5784b3bd54c1185813b982+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+base%3Amain+head%3AbranchToMerge+SHA%3Af06ea132e5c97d4237ac3ff717944791eb142ff1+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-14bfad3d-76ee-4832-9c37-4a0fcadb182d.json", + "bodyFileName": "search_issues-c873591d-123d-42c8-920f-901a7160730b.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:55 GMT", + "Date": "Sat, 11 Nov 2023 00:45:33 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "14", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "16", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF8F:54B0:53C12E7:548D98E:6500E0FF" + "X-GitHub-Request-Id": "FFBB:DBA9:20FC526D:215F56F8:654ECEAD" } }, - "uuid": "14bfad3d-76ee-4832-9c37-4a0fcadb182d", + "uuid": "c873591d-123d-42c8-920f-901a7160730b", "persistent": true, "scenarioName": "scenario-8-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json index 401bcbfd55..5a6831ffda 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json @@ -1,8 +1,8 @@ { - "id": "498e84e6-8b2d-4aa6-ab0f-6f8b538969fe", + "id": "d1ee25fc-71db-47d3-bdb2-ac28c08d9ded", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-09-01..2023-09-12+updated%3A2023-09-01..2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?sort=updated&q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-11-01..2023-11-11+updated%3A2023-11-01..2023-11-11+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-498e84e6-8b2d-4aa6-ab0f-6f8b538969fe.json", + "bodyFileName": "search_issues-d1ee25fc-71db-47d3-bdb2-ac28c08d9ded.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:50 GMT", + "Date": "Sat, 11 Nov 2023 00:45:29 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "24", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "6", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF84:8845:1D661F6:1DAAB0D:6500E0FA" + "X-GitHub-Request-Id": "FFAC:13101:20F2B229:21570308:654ECEA9" } }, - "uuid": "498e84e6-8b2d-4aa6-ab0f-6f8b538969fe", + "uuid": "d1ee25fc-71db-47d3-bdb2-ac28c08d9ded", "persistent": true, "scenarioName": "scenario-3-search-issues", "requiredScenarioState": "scenario-3-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d253da43-33cd-46ea-b7cd-c60a19d57467.json similarity index 76% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d253da43-33cd-46ea-b7cd-c60a19d57467.json index 4ef0b751ab..a0808c110a 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d253da43-33cd-46ea-b7cd-c60a19d57467.json @@ -1,8 +1,8 @@ { - "id": "1c30da3f-c313-4412-8041-ef5e03ece107", + "id": "d253da43-33cd-46ea-b7cd-c60a19d57467", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-09-01..2023-09-12+updated%3A2023-09-01..2023-09-12+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?sort=updated&q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A2023-11-01..2023-11-11+updated%3A2023-11-01..2023-11-11+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-1c30da3f-c313-4412-8041-ef5e03ece107.json", + "bodyFileName": "search_issues-d253da43-33cd-46ea-b7cd-c60a19d57467.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:51 GMT", + "Date": "Sat, 11 Nov 2023 00:45:30 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "23", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "7", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF85:0FE7:F0DEFF:F36DD6:6500E0FB" + "X-GitHub-Request-Id": "FFAF:F99F:207C39BA:20DFE74F:654ECEA9" } }, - "uuid": "1c30da3f-c313-4412-8041-ef5e03ece107", + "uuid": "d253da43-33cd-46ea-b7cd-c60a19d57467", "persistent": true, "scenarioName": "scenario-3-search-issues", "requiredScenarioState": "scenario-3-search-issues-3", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d513ba09-ef04-46ff-ae17-98a38c57e749.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d513ba09-ef04-46ff-ae17-98a38c57e749.json index 10429d5a18..0907962c94 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-d513ba09-ef04-46ff-ae17-98a38c57e749.json @@ -1,8 +1,8 @@ { - "id": "9c672c12-a76e-41b6-a4d4-3ba416792e70", + "id": "d513ba09-ef04-46ff-ae17-98a38c57e749", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3E2023-09-01+updated%3A%3E2023-09-01+merged%3A%3E%3D2023-09-01+closed%3A%3E%3D2023-09-01+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3E2023-11-01+updated%3A%3E2023-11-01+merged%3A%3E%3D2023-11-01+closed%3A%3E%3D2023-11-01+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-9c672c12-a76e-41b6-a4d4-3ba416792e70.json", + "bodyFileName": "search_issues-d513ba09-ef04-46ff-ae17-98a38c57e749.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:53 GMT", + "Date": "Sat, 11 Nov 2023 00:45:32 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "18", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "12", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF8A:E6C0:9E214B3:9F97AF5:6500E0FD" + "X-GitHub-Request-Id": "FFB5:7A19:20E910C5:214D01E6:654ECEAB" } }, - "uuid": "9c672c12-a76e-41b6-a4d4-3ba416792e70", + "uuid": "d513ba09-ef04-46ff-ae17-98a38c57e749", "persistent": true, "scenarioName": "scenario-6-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-edff7370-fa9f-4f2a-a5d2-be979186661b.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-edff7370-fa9f-4f2a-a5d2-be979186661b.json index 9b3b960f4f..0ebecc4f77 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-edff7370-fa9f-4f2a-a5d2-be979186661b.json @@ -1,8 +1,8 @@ { - "id": "547f6dd4-5c44-407e-80b9-31c0946c5649", + "id": "edff7370-fa9f-4f2a-a5d2-be979186661b", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3C2023-09-14+updated%3A%3C2023-09-14+closed%3A%3C%3D2023-09-14+merged%3A%3C2023-09-14+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3C2023-11-12+updated%3A%3C2023-11-12+closed%3A%3C%3D2023-11-12+merged%3A%3C2023-11-12+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-547f6dd4-5c44-407e-80b9-31c0946c5649.json", + "bodyFileName": "search_issues-edff7370-fa9f-4f2a-a5d2-be979186661b.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:54 GMT", + "Date": "Sat, 11 Nov 2023 00:45:32 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "16", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "14", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF8C:FBD1:9E69A49:9FE00A0:6500E0FE" + "X-GitHub-Request-Id": "FFB7:1B81:244669C4:24AF721B:654ECEAC" } }, - "uuid": "547f6dd4-5c44-407e-80b9-31c0946c5649", + "uuid": "edff7370-fa9f-4f2a-a5d2-be979186661b", "persistent": true, "scenarioName": "scenario-7-search-issues", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f671a987-af55-41c8-9f5e-06037fb8f074.json similarity index 78% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f671a987-af55-41c8-9f5e-06037fb8f074.json index 0d63519127..335b2e35e5 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f671a987-af55-41c8-9f5e-06037fb8f074.json @@ -1,8 +1,8 @@ { - "id": "c059f6f1-e31d-436c-87ba-8f9e534537ea", + "id": "f671a987-af55-41c8-9f5e-06037fb8f074", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3C2023-09-14+updated%3A%3C2023-09-14+closed%3A%3C%3D2023-09-14+merged%3A%3C2023-09-14+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+created%3A%3C2023-11-12+updated%3A%3C2023-11-12+closed%3A%3C%3D2023-11-12+merged%3A%3C2023-11-12+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-c059f6f1-e31d-436c-87ba-8f9e534537ea.json", + "bodyFileName": "search_issues-f671a987-af55-41c8-9f5e-06037fb8f074.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:54 GMT", + "Date": "Sat, 11 Nov 2023 00:45:33 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "15", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "15", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF8D:0F2D:A2A7B24:A420187:6500E0FE" + "X-GitHub-Request-Id": "FFB8:4CF1:20DB6E9D:213F174E:654ECEAC" } }, - "uuid": "c059f6f1-e31d-436c-87ba-8f9e534537ea", + "uuid": "f671a987-af55-41c8-9f5e-06037fb8f074", "persistent": true, "scenarioName": "scenario-7-search-issues", "requiredScenarioState": "scenario-7-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f7571293-9b42-4e14-906c-960ad7fa0aab.json similarity index 81% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f7571293-9b42-4e14-906c-960ad7fa0aab.json index e25dc44938..81fee008cc 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/search_issues-f7571293-9b42-4e14-906c-960ad7fa0aab.json @@ -1,8 +1,8 @@ { - "id": "3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2", + "id": "f7571293-9b42-4e14-906c-960ad7fa0aab", "name": "search_issues", "request": { - "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aclosed+is%3Amerged+repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Apr", + "url": "/search/issues?q=repo%3Akgromov%2Ftemp-testSearchPullRequests+is%3Aclosed+is%3Amerged+is%3Apr", "method": "GET", "headers": { "Accept": { @@ -12,10 +12,10 @@ }, "response": { "status": 200, - "bodyFileName": "search_issues-3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2.json", + "bodyFileName": "search_issues-f7571293-9b42-4e14-906c-960ad7fa0aab.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:49 GMT", + "Date": "Sat, 11 Nov 2023 00:45:28 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "no-cache", "Vary": [ @@ -28,7 +28,7 @@ "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "30", "X-RateLimit-Remaining": "26", - "X-RateLimit-Reset": "1694556468", + "X-RateLimit-Reset": "1699663587", "X-RateLimit-Used": "4", "X-RateLimit-Resource": "search", "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", @@ -39,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "CF82:0FDB:2A3E0F:2ACD8C:6500E0F9" + "X-GitHub-Request-Id": "FFAA:85F2:1FCEDA9C:2031DFBE:654ECEA8" } }, - "uuid": "3d16860a-cebf-4f17-b19f-6f7e7fdb9ce2", + "uuid": "f7571293-9b42-4e14-906c-960ad7fa0aab", "persistent": true, "scenarioName": "scenario-2-search-issues", "requiredScenarioState": "scenario-2-search-issues-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-da1cd23b-68fc-4f76-b63d-73aef15422b8.json similarity index 74% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-da1cd23b-68fc-4f76-b63d-73aef15422b8.json index 5b4dd54288..6ee7f85d68 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-a52c5304-137c-46cd-a946-e62ab67c86ff.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSearchPullRequests/mappings/user-da1cd23b-68fc-4f76-b63d-73aef15422b8.json @@ -1,5 +1,5 @@ { - "id": "a52c5304-137c-46cd-a946-e62ab67c86ff", + "id": "da1cd23b-68fc-4f76-b63d-73aef15422b8", "name": "user", "request": { "url": "/user", @@ -12,26 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "user-a52c5304-137c-46cd-a946-e62ab67c86ff.json", + "bodyFileName": "user-da1cd23b-68fc-4f76-b63d-73aef15422b8.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 12 Sep 2023 22:06:31 GMT", + "Date": "Sat, 11 Nov 2023 00:45: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/\"07e140f41eb92dba5c93c21b66140307b3603456151547495fd368299cdd7330\"", - "Last-Modified": "Fri, 28 Jul 2023 20:37:46 GMT", + "ETag": "W/\"f52155a43726996e5587f9285121b682ad67e2f3f2ffbdc91940592d422bf516\"", + "Last-Modified": "Fri, 27 Oct 2023 15:36:08 GMT", "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, gist, repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4854", - "X-RateLimit-Reset": "1694557695", - "X-RateLimit-Used": "146", + "X-RateLimit-Remaining": "4763", + "X-RateLimit-Reset": "1699664715", + "X-RateLimit-Used": "237", "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 +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": "CF70:D272:52E42E3:53B0926:6500E0E7" + "X-GitHub-Request-Id": "FF8E:8C73:2078B975:20DD4FBA:654ECE98" } }, - "uuid": "a52c5304-137c-46cd-a946-e62ab67c86ff", + "uuid": "da1cd23b-68fc-4f76-b63d-73aef15422b8", "persistent": true, "insertionIndex": 1 } \ No newline at end of file From a82c15ea42cc4bfb69e32d7d8e2b948e623356c3 Mon Sep 17 00:00:00 2001 From: konstantin Date: Sun, 12 Nov 2023 23:14:50 +0200 Subject: [PATCH 16/17] Rollback optimimzation for unique search terms to satisfy japicmp types compatibility --- src/main/java/org/kohsuke/github/GHSearchBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/kohsuke/github/GHSearchBuilder.java b/src/main/java/org/kohsuke/github/GHSearchBuilder.java index fef19fffda..d7a25353ee 100644 --- a/src/main/java/org/kohsuke/github/GHSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHSearchBuilder.java @@ -2,8 +2,8 @@ import org.apache.commons.lang3.StringUtils; -import java.util.LinkedHashSet; -import java.util.Set; +import java.util.ArrayList; +import java.util.List; import javax.annotation.CheckForNull; import javax.annotation.Nonnull; @@ -19,7 +19,7 @@ public abstract class GHSearchBuilder extends GHQueryBuilder { /** The terms. */ - protected final Set terms = new LinkedHashSet<>(); + protected final List terms = new ArrayList(); /** * Data transfer object that receives the result of search. From 586f89e32976d4deeed4524724910475bb1f16ac Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 13 Nov 2023 12:53:28 -0800 Subject: [PATCH 17/17] Remove extra constructor from GHPullRequestSearchBuilder --- .../kohsuke/github/GHPullRequestSearchBuilder.java | 11 ----------- src/main/java/org/kohsuke/github/GHRepository.java | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java index 11c7207bb8..970bfb34d2 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestSearchBuilder.java @@ -21,17 +21,6 @@ public class GHPullRequestSearchBuilder extends GHSearchBuilder { super(root, PullRequestSearchResult.class); } - /** - * Instantiates a new GH search builder from repository. - * - * @param repository - * the gh repository - */ - GHPullRequestSearchBuilder(GHRepository repository) { - super(repository.root(), PullRequestSearchResult.class); - this.repo(repository); - } - /** * Repository gh pull request search builder. * diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index de907157bb..6cc2eb7ad6 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -1707,7 +1707,7 @@ public GHPullRequestQueryBuilder queryPullRequests() { * @return gh pull request search builder for current repository */ public GHPullRequestSearchBuilder searchPullRequests() { - return new GHPullRequestSearchBuilder(this); + return new GHPullRequestSearchBuilder(this.root()).repo(this); } /**