diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2a0ba39407..22efc82ce8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -41,6 +41,12 @@ jobs: # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: + - name: Set up JDK + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: 17 + - name: Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 5038b99abf..a251d24daa 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -60,12 +60,14 @@ jobs: run: mvn -B clean site -D enable-ci --file pom.xml test: name: test (${{ matrix.os }}, Java ${{ matrix.java }}) + # Does not require build output, but orders execution to prevent launching test workflows when simple build fails + needs: build runs-on: ${{ matrix.os }}-latest strategy: fail-fast: false matrix: os: [ ubuntu, windows ] - java: [ 11, 17 ] + java: [ 17, 21 ] steps: - uses: actions/checkout@v4 - name: Set up JDK @@ -109,3 +111,22 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true verbose: true + + test-java-11: + name: test Java 11 (no-build) + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + name: maven-target-directory + path: target + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: 8 + distribution: 'temurin' + cache: 'maven' + - name: Maven Test (no build) Java 11 + run: mvn -B surefire:test -DfailIfNoTests -Dsurefire.excludesFile=src/test/resources/slow-or-flaky-tests.txt diff --git a/pom.xml b/pom.xml index 872c11f8c5..9cdc9120b7 100644 --- a/pom.xml +++ b/pom.xml @@ -32,13 +32,14 @@ + 3.3.3 UTF-8 - 4.8.5.0 + 4.8.6.1 4.8.6 true - 2.2 + 3.0 4.12.0 - 3.7.0 + 3.9.0 0.70 0.50 @@ -76,12 +77,12 @@ org.codehaus.mojo versions-maven-plugin - 2.16.2 + 2.17.1 org.apache.maven.plugins maven-help-plugin - 3.4.0 + 3.5.0 maven-surefire-plugin @@ -172,7 +173,6 @@ org.kohsuke.github.GHCommit.GHAuthor - org.kohsuke.github.GHPullRequestReviewBuilder.DraftReviewComment org.kohsuke.github.GHIssue.PullRequest org.kohsuke.github.GHCommitSearchBuilder org.kohsuke.github.GHRepositorySearchBuilder @@ -205,7 +205,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.7.0 + 3.8.0 11 true @@ -226,6 +226,24 @@ + + + org.springframework.boot + spring-boot-maven-plugin + ${spring.boot.version} + + + process-test-aot + + process-test-aot + + + + org.apache.maven.plugins maven-site-plugin @@ -234,7 +252,7 @@ org.apache.maven.plugins maven-release-plugin - 3.1.0 + 3.1.1 true false @@ -249,7 +267,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.6.0 + 3.7.0 org.apache.bcel @@ -394,7 +412,7 @@ com.fasterxml.jackson jackson-bom - 2.17.1 + 2.17.2 import pom @@ -419,6 +437,16 @@ ${hamcrest.version} test + + + org.springframework.boot + spring-boot-starter-test + ${spring.boot.version} + test + org.hamcrest @@ -447,7 +475,14 @@ org.awaitility awaitility - 4.2.1 + 4.2.2 + test + + + + org.junit.vintage + junit-vintage-engine + 5.10.2 test @@ -457,7 +492,7 @@ commons-io commons-io - 2.8.0 + 2.16.1 com.infradna.tool @@ -504,13 +539,13 @@ org.kohsuke wordnet-random-name - 1.5 + 1.6 test org.mockito mockito-core - 4.11.0 + 5.13.0 test @@ -528,13 +563,13 @@ com.google.code.gson gson - 2.10.1 + 2.11.0 test org.slf4j slf4j-simple - 2.0.13 + 2.0.16 test diff --git a/src/main/java/org/kohsuke/github/GHBranchSync.java b/src/main/java/org/kohsuke/github/GHBranchSync.java new file mode 100644 index 0000000000..d03f4a79b4 --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHBranchSync.java @@ -0,0 +1,90 @@ +package org.kohsuke.github; + +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; + +/** + * The type Gh branch sync. + */ +public class GHBranchSync extends GitHubInteractiveObject { + + /** + * The Repository that this branch is in. + */ + private GHRepository owner; + + /** + * The message. + */ + private String message; + + /** + * The merge type. + */ + private String mergeType; + + /** + * The base branch. + */ + private String baseBranch; + + /** + * Gets owner. + * + * @return the repository that this branch is in. + */ + @SuppressFBWarnings(value = { "EI_EXPOSE_REP" }, justification = "Expected behavior") + public GHRepository getOwner() { + return owner; + } + + /** + * Gets message. + * + * @return the message + */ + public String getMessage() { + return message; + } + + /** + * Gets merge type. + * + * @return the merge type + */ + public String getMergeType() { + return mergeType; + } + + /** + * Gets base branch. + * + * @return the base branch + */ + public String getBaseBranch() { + return baseBranch; + } + + /** + * To string. + * + * @return the string + */ + @Override + public String toString() { + return "GHBranchSync{" + "message='" + message + '\'' + ", mergeType='" + mergeType + '\'' + ", baseBranch='" + + baseBranch + '\'' + '}'; + } + + /** + * Wrap. + * + * @param repo + * the repo + * @return the GH branch sync + */ + GHBranchSync wrap(GHRepository repo) { + this.owner = repo; + return this; + } + +} diff --git a/src/main/java/org/kohsuke/github/GHLicense.java b/src/main/java/org/kohsuke/github/GHLicense.java index 89cc08cf2a..be9bb48fd2 100644 --- a/src/main/java/org/kohsuke/github/GHLicense.java +++ b/src/main/java/org/kohsuke/github/GHLicense.java @@ -49,7 +49,7 @@ public class GHLicense extends GHObject { /** The name. */ // these fields are always present, even in the short form - protected String key, name; + protected String key, name, spdxId; /** The featured. */ // the rest is only after populated @@ -85,6 +85,15 @@ public String getName() { return name; } + /** + * Gets SPDX ID. + * + * @return the spdx id + */ + public String getSpdxId() { + return spdxId; + } + /** * Featured licenses are bold in the new repository drop-down. * diff --git a/src/main/java/org/kohsuke/github/GHPullRequest.java b/src/main/java/org/kohsuke/github/GHPullRequest.java index 1f439e2f8c..ae31952c6f 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequest.java +++ b/src/main/java/org/kohsuke/github/GHPullRequest.java @@ -462,6 +462,15 @@ public GHPullRequestReviewBuilder createReview() { return new GHPullRequestReviewBuilder(this); } + /** + * Create gh pull request review comment builder. + * + * @return the gh pull request review comment builder. + */ + public GHPullRequestReviewCommentBuilder createReviewComment() { + return new GHPullRequestReviewCommentBuilder(this); + } + /** * Create review comment gh pull request review comment. * @@ -476,18 +485,12 @@ public GHPullRequestReviewBuilder createReview() { * @return the gh pull request review comment * @throws IOException * the io exception + * @deprecated use {@link #createReviewComment()} */ + @Deprecated public GHPullRequestReviewComment createReviewComment(String body, String sha, String path, int position) throws IOException { - return root().createRequest() - .method("POST") - .with("body", body) - .with("commit_id", sha) - .with("path", path) - .with("position", position) - .withUrlPath(getApiRoute() + COMMENTS_ACTION) - .fetch(GHPullRequestReviewComment.class) - .wrapUp(this); + return createReviewComment().body(body).commitId(sha).path(path).position(position).create(); } /** diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java index fefcf0b4ca..c536dbfdc3 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java @@ -14,7 +14,7 @@ public class GHPullRequestReviewBuilder { private final GHPullRequest pr; private final Requester builder; - private final List comments = new ArrayList(); + private final List comments = new ArrayList<>(); /** * Instantiates a new GH pull request review builder. @@ -75,12 +75,12 @@ public GHPullRequestReviewBuilder event(GHPullRequestReviewEvent event) { * Comment gh pull request review builder. * * @param body - * The relative path to the file that necessitates a review comment. + * Text of the review comment. * @param path + * The relative path to the file that necessitates a review comment. + * @param position * The position in the diff where you want to add a review comment. Note this value is not the same as * the line number in the file. For help finding the position value, read the note below. - * @param position - * Text of the review comment. * @return the gh pull request review builder */ public GHPullRequestReviewBuilder comment(String body, String path, int position) { @@ -88,6 +88,40 @@ public GHPullRequestReviewBuilder comment(String body, String path, int position return this; } + /** + * Add a multi-line comment to the gh pull request review builder. + * + * @param body + * Text of the review comment. + * @param path + * The relative path to the file that necessitates a review comment. + * @param startLine + * The first line in the pull request diff that the multi-line comment applies to. + * @param endLine + * The last line of the range that the comment applies to. + * @return the gh pull request review builder + */ + public GHPullRequestReviewBuilder multiLineComment(String body, String path, int startLine, int endLine) { + this.comments.add(new MultilineDraftReviewComment(body, path, startLine, endLine)); + return this; + } + + /** + * Add a single line comment to the gh pull request review builder. + * + * @param body + * Text of the review comment. + * @param path + * The relative path to the file that necessitates a review comment. + * @param line + * The line of the blob in the pull request diff that the comment applies to. + * @return the gh pull request review builder + */ + public GHPullRequestReviewBuilder singleLineComment(String body, String path, int line) { + this.comments.add(new SingleLineDraftReviewComment(body, path, line)); + return this; + } + /** * Create gh pull request review. * @@ -103,7 +137,29 @@ public GHPullRequestReview create() throws IOException { .wrapUp(pr); } - private static class DraftReviewComment { + /** + * Common properties of the review comments, regardless of how the comment is positioned on the gh pull request. + */ + private interface ReviewComment { + /** + * Gets body. + * + * @return the body. + */ + String getBody(); + + /** + * Gets path. + * + * @return the path. + */ + String getPath(); + } + + /** + * Single line comment using the relative position in the diff. + */ + static class DraftReviewComment implements ReviewComment { private String body; private String path; private int position; @@ -114,20 +170,10 @@ private static class DraftReviewComment { this.position = position; } - /** - * Gets body. - * - * @return the body - */ public String getBody() { return body; } - /** - * Gets path. - * - * @return the path - */ public String getPath() { return path; } @@ -141,4 +187,79 @@ public int getPosition() { return position; } } + + /** + * Multi-line comment. + */ + static class MultilineDraftReviewComment implements ReviewComment { + private final String body; + private final String path; + private final int line; + private final int start_line; + + MultilineDraftReviewComment(final String body, final String path, final int startLine, final int line) { + this.body = body; + this.path = path; + this.line = line; + this.start_line = startLine; + } + + public String getBody() { + return this.body; + } + + public String getPath() { + return this.path; + } + + /** + * Gets end line of the comment. + * + * @return the end line of the comment. + */ + public int getLine() { + return line; + } + + /** + * Gets start line of the comment. + * + * @return the start line of the comment. + */ + public int getStartLine() { + return start_line; + } + } + + /** + * Single line comment. + */ + static class SingleLineDraftReviewComment implements ReviewComment { + private final String body; + private final String path; + private final int line; + + SingleLineDraftReviewComment(final String body, final String path, final int line) { + this.body = body; + this.path = path; + this.line = line; + } + + public String getBody() { + return this.body; + } + + public String getPath() { + return this.path; + } + + /** + * Gets line of the comment. + * + * @return the line of the comment. + */ + public int getLine() { + return line; + } + } } diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewCommentBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewCommentBuilder.java new file mode 100644 index 0000000000..a3b267c9f9 --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewCommentBuilder.java @@ -0,0 +1,127 @@ +package org.kohsuke.github; + +import java.io.IOException; + +// TODO: Auto-generated Javadoc + +/** + * Builds up a creation of new {@link GHPullRequestReviewComment}. + * + * @see GHPullRequest#createReviewComment() + */ +public class GHPullRequestReviewCommentBuilder { + private final GHPullRequest pr; + private final Requester builder; + + /** + * Instantiates a new GH pull request review comment builder. + * + * @param pr + * the pr + */ + GHPullRequestReviewCommentBuilder(GHPullRequest pr) { + this.pr = pr; + this.builder = pr.root().createRequest(); + } + + /** + * The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment + * outdated if a subsequent commit modifies the line you specify as the position. Defaults to the most recent commit + * in the pull request when you do not specify a value. + * + * @param commitId + * the commit id + * @return the gh pull request review comment builder + */ + public GHPullRequestReviewCommentBuilder commitId(String commitId) { + builder.with("commit_id", commitId); + return this; + } + + /** + * The text of the pull request review comment. + * + * @param body + * the body + * @return the gh pull request review comment builder + */ + public GHPullRequestReviewCommentBuilder body(String body) { + builder.with("body", body); + return this; + } + + /** + * The relative path to the file that necessitates a comment. + * + * @param path + * the path + * @return the gh pull request review comment builder + */ + public GHPullRequestReviewCommentBuilder path(String path) { + builder.with("path", path); + return this; + } + + /** + * The position in the diff where you want to add a review comment. + * + * @param position + * the position + * @return the gh pull request review comment builder + * @implNote As position is deprecated in GitHub API, only keep this for internal usage (for retro-compatibility + * with {@link GHPullRequest#createReviewComment(String, String, String, int)}). + */ + GHPullRequestReviewCommentBuilder position(int position) { + builder.with("position", position); + return this; + } + + /** + * A single line of the blob in the pull request diff that the comment applies to. + *

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

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

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

+ * + * @param startLine + * the start line number of the comment + * @param endLine + * the end line number of the comment + * @return the gh pull request review comment builder + */ + public GHPullRequestReviewCommentBuilder lines(int startLine, int endLine) { + builder.with("start_line", startLine); + builder.with("line", endLine); + return this; + } + + /** + * Create gh pull request review comment. + * + * @return the gh pull request review comment builder + * @throws IOException + * the io exception + */ + public GHPullRequestReviewComment create() throws IOException { + return builder.method("POST") + .withUrlPath(pr.getApiRoute() + "/comments") + .fetch(GHPullRequestReviewComment.class) + .wrapUp(pr); + } + +} diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 09315f67fc..80e6abc5de 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -38,6 +38,7 @@ import java.io.InterruptedIOException; import java.io.Reader; import java.net.URL; +import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Date; @@ -895,7 +896,7 @@ public PagedIterable listCollaborators(CollaboratorAffiliation affiliati /** * Lists all - * the + * the * available assignees to which issues may be assigned. * * @return the paged iterable @@ -1470,6 +1471,24 @@ public GHRepository fork() throws IOException { throw new IOException(this + " was forked but can't find the new repository"); } + /** + * Sync this repository fork branch + * + * @param branch + * the branch to sync + * @return The current repository + * @throws IOException + * the io exception + */ + public GHBranchSync sync(String branch) throws IOException { + return root().createRequest() + .method("POST") + .with("branch", branch) + .withUrlPath(getApiTailUrl("merge-upstream")) + .fetch(GHBranchSync.class) + .wrap(this); + } + /** * Forks this repository into an organization. * @@ -2051,7 +2070,7 @@ public GHCommitStatus getLastCommitStatus(String sha1) throws IOException { * @return check runs for given ref * @throws IOException * the io exception - * @see List check runs + * @see List check runs * for a specific ref */ public PagedIterable getCheckRuns(String ref) throws IOException { @@ -2071,7 +2090,7 @@ public PagedIterable getCheckRuns(String ref) throws IOException { * @return check runs for the given ref * @throws IOException * the io exception - * @see List check runs + * @see List check runs * for a specific ref */ public PagedIterable getCheckRuns(String ref, Map params) throws IOException { @@ -3207,7 +3226,8 @@ void populate() throws IOException { // We don't use the URL provided in the JSON because it is not reliable: // 1. There is bug in Push event payloads that returns the wrong url. - // For Push event repository records, they take the form "https://github.com/{fullName}". + // For Push event repository records, they take the form + // "https://github.com/{fullName}". // All other occurrences of "url" take the form "https://api.github.com/...". // 2. For Installation event payloads, the URL is not provided at all. root().createRequest().withUrlPath(getApiTailUrl("")).fetchInto(this); @@ -3257,6 +3277,68 @@ public void unstar() throws IOException { root().createRequest().method("DELETE").withUrlPath(String.format("/user/starred/%s", full_name)).send(); } + /** + * Get the top 10 popular contents over the last 14 days as described on + * https://docs.github.com/en/rest/metrics/traffic?apiVersion=2022-11-28#get-top-referral-paths + * + * @return list of top referral paths + * @throws IOException + * the io exception + */ + public List getTopReferralPaths() throws IOException { + return Arrays.asList(root().createRequest() + .method("GET") + .withUrlPath(getApiTailUrl("/traffic/popular/paths")) + .fetch(GHRepositoryTrafficTopReferralPath[].class)); + } + + /** + * Get the top 10 referrers over the last 14 days as described on + * https://docs.github.com/en/rest/metrics/traffic?apiVersion=2022-11-28#get-top-referral-sources + * + * @return list of top referrers + * @throws IOException + * the io exception + */ + public List getTopReferralSources() throws IOException { + return Arrays.asList(root().createRequest() + .method("GET") + .withUrlPath(getApiTailUrl("/traffic/popular/referrers")) + .fetch(GHRepositoryTrafficTopReferralSources[].class)); + } + + /** + * Get all active rules that apply to the specified branch + * (https://docs.github.com/en/rest/repos/rules?apiVersion=2022-11-28#get-rules-for-a-branch). + * + * @param branch + * the branch + * @return the rules for branch + * @throws IOException + * the io exception + */ + public PagedIterable listRulesForBranch(String branch) throws IOException { + return root().createRequest() + .method("GET") + .withUrlPath(getApiTailUrl("/rules/branches/" + branch)) + .toIterable(GHRepositoryRule[].class, null); + } + + /** + * Check, if vulnerability alerts are enabled for this repository + * (https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#check-if-vulnerability-alerts-are-enabled-for-a-repository). + * + * @return true, if vulnerability alerts are enabled + * @throws IOException + * the io exception + */ + public boolean isVulnerabilityAlertsEnabled() throws IOException { + return root().createRequest() + .method("GET") + .withUrlPath(getApiTailUrl("/vulnerability-alerts")) + .fetchHttpStatusCode() == 204; + } + /** * A {@link GHRepositoryBuilder} that allows multiple properties to be updated per request. * diff --git a/src/main/java/org/kohsuke/github/GHRepositoryRule.java b/src/main/java/org/kohsuke/github/GHRepositoryRule.java new file mode 100644 index 0000000000..0c1b9c5d55 --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHRepositoryRule.java @@ -0,0 +1,610 @@ +package org.kohsuke.github; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; +import org.kohsuke.github.internal.EnumUtils; + +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.Optional; + +/** + * Represents a repository rule. + */ +@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" }, + justification = "JSON API") +public class GHRepositoryRule extends GitHubInteractiveObject { + private String type; + private String rulesetSourceType; + private String rulesetSource; + private long rulesetId; + private Map parameters; + + /** + * Gets the type. + * + * @return the type + */ + public Type getType() { + return EnumUtils.getEnumOrDefault(Type.class, this.type, Type.UNKNOWN); + } + + /** + * Gets the ruleset source type. + * + * @return the ruleset source type + */ + public RulesetSourceType getRulesetSourceType() { + return EnumUtils.getEnumOrDefault(RulesetSourceType.class, this.rulesetSourceType, RulesetSourceType.UNKNOWN); + } + + /** + * Gets the ruleset source. + * + * @return the ruleset source + */ + public String getRulesetSource() { + return this.rulesetSource; + } + + /** + * Gets the ruleset id. + * + * @return the ruleset id + */ + public long getRulesetId() { + return this.rulesetId; + } + + /** + * Gets a parameter. ({@link GHRepositoryRule.Parameters Parameters} provides a list of available parameters.) + * + * @param parameter + * the parameter + * @param + * the type of the parameter + * @return the parameters + * @throws IOException + * if an I/O error occurs + */ + public Optional getParameter(Parameter parameter) throws IOException { + if (this.parameters == null) { + return Optional.empty(); + } + JsonNode jsonNode = this.parameters.get(parameter.getKey()); + if (jsonNode == null) { + return Optional.empty(); + } + return Optional.ofNullable(parameter.apply(jsonNode, root())); + } + + /** + * The type of the ruleset. + */ + public static enum Type { + /** + * unknown + */ + UNKNOWN, + + /** + * creation + */ + CREATION, + + /** + * update + */ + UPDATE, + + /** + * deletion + */ + DELETION, + + /** + * required_linear_history + */ + REQUIRED_LINEAR_HISTORY, + + /** + * required_deployments + */ + REQUIRED_DEPLOYMENTS, + + /** + * required_signatures + */ + REQUIRED_SIGNATURES, + + /** + * pull_request + */ + PULL_REQUEST, + + /** + * required_status_checks + */ + REQUIRED_STATUS_CHECKS, + + /** + * non_fast_forward + */ + NON_FAST_FORWARD, + + /** + * commit_message_pattern + */ + COMMIT_MESSAGE_PATTERN, + + /** + * commit_author_email_pattern + */ + COMMIT_AUTHOR_EMAIL_PATTERN, + + /** + * committer_email_pattern + */ + COMMITTER_EMAIL_PATTERN, + + /** + * branch_name_pattern + */ + BRANCH_NAME_PATTERN, + + /** + * tag_name_pattern + */ + TAG_NAME_PATTERN, + + /** + * workflows + */ + WORKFLOWS, + + /** + * code_scanning + */ + CODE_SCANNING + } + + /** + * The source of the ruleset type. + */ + public enum RulesetSourceType { + /** + * unknown + */ + UNKNOWN, + + /** + * Repository + */ + REPOSITORY, + + /** + * Organization + */ + ORGANIZATION + } + + /** + * Available parameters for a ruleset. + */ + public interface Parameters { + /** + * update_allows_fetch_and_merge parameter + */ + public static final BooleanParameter UPDATE_ALLOWS_FETCH_AND_MERGE = new BooleanParameter( + "update_allows_fetch_and_merge"); + /** + * required_deployment_environments parameter + */ + public static final ListParameter REQUIRED_DEPLOYMENT_ENVIRONMENTS = new ListParameter( + "required_deployment_environments") { + @Override + TypeReference> getType() { + return new TypeReference>() { + }; + } + }; + /** + * dismiss_stale_reviews_on_push parameter + */ + public static final BooleanParameter DISMISS_STALE_REVIEWS_ON_PUSH = new BooleanParameter( + "dismiss_stale_reviews_on_push"); + /** + * require_code_owner_review parameter + */ + public static final BooleanParameter REQUIRE_CODE_OWNER_REVIEW = new BooleanParameter( + "require_code_owner_review"); + /** + * require_last_push_approval parameter + */ + public static final BooleanParameter REQUIRE_LAST_PUSH_APPROVAL = new BooleanParameter( + "require_last_push_approval"); + /** + * required_approving_review_count parameter + */ + public static final IntegerParameter REQUIRED_APPROVING_REVIEW_COUNT = new IntegerParameter( + "required_approving_review_count"); + /** + * required_review_thread_resolution parameter + */ + public static final BooleanParameter REQUIRED_REVIEW_THREAD_RESOLUTION = new BooleanParameter( + "required_review_thread_resolution"); + /** + * required_status_checks parameter + */ + public static final ListParameter REQUIRED_STATUS_CHECKS = new ListParameter( + "required_status_checks") { + @Override + TypeReference> getType() { + return new TypeReference>() { + }; + } + }; + /** + * strict_required_status_checks_policy parameter + */ + public static final BooleanParameter STRICT_REQUIRED_STATUS_CHECKS_POLICY = new BooleanParameter( + "strict_required_status_checks_policy"); + /** + * name parameter + */ + public static final StringParameter NAME = new StringParameter("name"); + /** + * negate parameter + */ + public static final BooleanParameter NEGATE = new BooleanParameter("negate"); + /** + * operator parameter + */ + public static final Parameter OPERATOR = new Parameter("operator") { + @Override + TypeReference getType() { + return new TypeReference() { + }; + } + }; + /** + * regex parameter + */ + public static final StringParameter REGEX = new StringParameter("regex"); + /** + * workflows parameter + */ + public static final ListParameter WORKFLOWS = new ListParameter( + "workflows") { + @Override + TypeReference> getType() { + return new TypeReference>() { + }; + } + }; + /** + * code_scanning_tools parameter + */ + public static final ListParameter CODE_SCANNING_TOOLS = new ListParameter( + "code_scanning_tools") { + @Override + TypeReference> getType() { + return new TypeReference>() { + }; + } + }; + } + + /** + * Basic parameter for a ruleset. + * + * @param + * the type of the parameter + */ + public abstract static class Parameter { + + private final String key; + + /** + * Get the parameter type reference for type mapping. + */ + abstract TypeReference getType(); + + /** + * Instantiates a new parameter. + * + * @param key + * the key + */ + protected Parameter(String key) { + this.key = key; + } + + /** + * Gets the key. + * + * @return the key + */ + String getKey() { + return this.key; + } + + T apply(JsonNode jsonNode, GitHub root) throws IOException { + if (jsonNode == null) { + return null; + } + return GitHubClient.getMappingObjectReader(root).forType(this.getType()).readValue(jsonNode); + } + } + + /** + * String parameter for a ruleset. + */ + public static class StringParameter extends Parameter { + /** + * Instantiates a new string parameter. + * + * @param key + * the key + */ + public StringParameter(String key) { + super(key); + } + + @Override + TypeReference getType() { + return new TypeReference() { + }; + } + } + + /** + * Boolean parameter for a ruleset. + */ + public static class BooleanParameter extends Parameter { + /** + * Instantiates a new boolean parameter. + * + * @param key + * the key + */ + public BooleanParameter(String key) { + super(key); + } + + @Override + TypeReference getType() { + return new TypeReference() { + }; + } + } + + /** + * Integer parameter for a ruleset. + */ + public static class IntegerParameter extends Parameter { + /** + * Instantiates a new integer parameter. + * + * @param key + * the key + */ + public IntegerParameter(String key) { + super(key); + } + + @Override + TypeReference getType() { + return new TypeReference() { + }; + } + } + + /** + * List parameter for a ruleset. + * + * @param + * the type of the list + */ + public abstract static class ListParameter extends Parameter> { + /** + * Instantiates a new list parameter. + * + * @param key + * the key + */ + public ListParameter(String key) { + super(key); + } + } + + /** + * Status check configuration parameter. + */ + public static class StatusCheckConfiguration { + private String context; + private Integer integrationId; + + /** + * Gets the context. + * + * @return the context + */ + public String getContext() { + return this.context; + } + + /** + * Gets the integration id. + * + * @return the integration id + */ + public Integer getIntegrationId() { + return this.integrationId; + } + } + + /** + * Operator parameter. + */ + public static enum Operator { + /** + * starts_with + */ + STARTS_WITH, + + /** + * ends_with + */ + ENDS_WITH, + + /** + * contains + */ + CONTAINS, + + /** + * regex + */ + REGEX + } + + /** + * Workflow file reference parameter. + */ + public static class WorkflowFileReference { + private String path; + private String ref; + private long repositoryId; + private String sha; + + /** + * Gets the path. + * + * @return the path + */ + public String getPath() { + return this.path; + } + + /** + * Gets the ref. + * + * @return the ref + */ + public String getRef() { + return this.ref; + } + + /** + * Gets the repository id. + * + * @return the repository id + */ + public long getRepositoryId() { + return this.repositoryId; + } + + /** + * Gets the sha. + * + * @return the sha + */ + public String getSha() { + return this.sha; + } + } + + /** + * Code scanning tool parameter. + */ + public static class CodeScanningTool { + private AlertsThreshold alertsThreshold; + private SecurityAlertsThreshold securityAlertsThreshold; + private String tool; + + /** + * Gets the alerts threshold. + * + * @return the alerts threshold + */ + public AlertsThreshold getAlertsThreshold() { + return this.alertsThreshold; + } + + /** + * Gets the security alerts threshold. + * + * @return the security alerts threshold + */ + public SecurityAlertsThreshold getSecurityAlertsThreshold() { + return this.securityAlertsThreshold; + } + + /** + * Gets the tool. + * + * @return the tool + */ + public String getTool() { + return this.tool; + } + } + + /** + * Alerts threshold parameter. + */ + public static enum AlertsThreshold { + /** + * none + */ + NONE, + + /** + * errors + */ + ERRORS, + + /** + * errors_and_warnings + */ + ERRORS_AND_WARNINGS, + + /** + * all + */ + ALL + } + + /** + * Security alerts threshold parameter. + */ + public static enum SecurityAlertsThreshold { + /** + * none + */ + NONE, + + /** + * critical + */ + CRITICAL, + + /** + * high_or_higher + */ + HIGH_OR_HIGHER, + + /** + * medium_or_higher + */ + MEDIUM_OR_HIGHER, + + /** + * all + */ + ALL + } +} diff --git a/src/main/java/org/kohsuke/github/GHRepositoryTrafficReferralBase.java b/src/main/java/org/kohsuke/github/GHRepositoryTrafficReferralBase.java new file mode 100644 index 0000000000..25361fd76e --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHRepositoryTrafficReferralBase.java @@ -0,0 +1,46 @@ +package org.kohsuke.github; + +/** + * Base class for traffic referral objects. + */ +public class GHRepositoryTrafficReferralBase { + private int count; + private int uniques; + + /** + * Instantiates a new Gh repository traffic referral base. + */ + GHRepositoryTrafficReferralBase() { + } + + /** + * Instantiates a new Gh repository traffic referral base. + * + * @param count + * the count + * @param uniques + * the uniques + */ + GHRepositoryTrafficReferralBase(int count, int uniques) { + this.count = count; + this.uniques = uniques; + } + + /** + * Gets count. + * + * @return the count + */ + public int getCount() { + return this.count; + } + + /** + * Gets uniques. + * + * @return the uniques + */ + public int getUniques() { + return this.uniques; + } +} diff --git a/src/main/java/org/kohsuke/github/GHRepositoryTrafficTopReferralPath.java b/src/main/java/org/kohsuke/github/GHRepositoryTrafficTopReferralPath.java new file mode 100644 index 0000000000..647a56ebde --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHRepositoryTrafficTopReferralPath.java @@ -0,0 +1,51 @@ +package org.kohsuke.github; + +/** + * Top referral path object. + */ +public class GHRepositoryTrafficTopReferralPath extends GHRepositoryTrafficReferralBase { + private String path; + private String title; + + /** + * Instantiates a new Gh repository traffic top referral path. + */ + GHRepositoryTrafficTopReferralPath() { + } + + /** + * Instantiates a new Gh repository traffic top referral path. + * + * @param count + * the count + * @param uniques + * the uniques + * @param path + * the path + * @param title + * the title + */ + GHRepositoryTrafficTopReferralPath(int count, int uniques, String path, String title) { + super(count, uniques); + this.path = path; + this.title = title; + } + + /** + * Gets path. + * + * @return the path + */ + public String getPath() { + return this.path; + } + + /** + * Gets title. + * + * @return the title + */ + public String getTitle() { + return this.title; + } +} diff --git a/src/main/java/org/kohsuke/github/GHRepositoryTrafficTopReferralSources.java b/src/main/java/org/kohsuke/github/GHRepositoryTrafficTopReferralSources.java new file mode 100644 index 0000000000..dd784cd25d --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHRepositoryTrafficTopReferralSources.java @@ -0,0 +1,38 @@ +package org.kohsuke.github; + +/** + * Top referral source object. + */ +public class GHRepositoryTrafficTopReferralSources extends GHRepositoryTrafficReferralBase { + private String referrer; + + /** + * Instantiates a new Gh repository traffic top referral sources. + */ + GHRepositoryTrafficTopReferralSources() { + } + + /** + * Instantiates a new Gh repository traffic top referral sources. + * + * @param count + * the count + * @param uniques + * the uniques + * @param referrer + * the referrer + */ + GHRepositoryTrafficTopReferralSources(int count, int uniques, String referrer) { + super(count, uniques); + this.referrer = referrer; + } + + /** + * Gets referrer. + * + * @return the referrer + */ + public String getReferrer() { + return this.referrer; + } +} diff --git a/src/main/java/org/kohsuke/github/GHUser.java b/src/main/java/org/kohsuke/github/GHUser.java index 3b4601a421..afbed86554 100644 --- a/src/main/java/org/kohsuke/github/GHUser.java +++ b/src/main/java/org/kohsuke/github/GHUser.java @@ -37,6 +37,9 @@ public class GHUser extends GHPerson { /** The ldap dn. */ protected String ldap_dn; + /** The suspended_at */ + private String suspendedAt; + /** * Gets keys. * @@ -259,6 +262,18 @@ public Optional getLdapDn() throws IOException { return Optional.ofNullable(ldap_dn); } + /** + * When was this user suspended?. + * + * @return updated date + * @throws IOException + * on error + */ + public Date getSuspendedAt() throws IOException { + super.populate(); + return GitHubClient.parseDate(suspendedAt); + } + /** * Hash code. * diff --git a/src/main/java/org/kohsuke/github/GHWorkflowRun.java b/src/main/java/org/kohsuke/github/GHWorkflowRun.java index ba116d66f6..efb8bfa68c 100644 --- a/src/main/java/org/kohsuke/github/GHWorkflowRun.java +++ b/src/main/java/org/kohsuke/github/GHWorkflowRun.java @@ -501,6 +501,28 @@ public static enum Status { IN_PROGRESS, /** The completed. */ COMPLETED, + /** The action required. */ + ACTION_REQUIRED, + /** The cancelled. */ + CANCELLED, + /** The failure. */ + FAILURE, + /** The neutral. */ + NEUTRAL, + /** The skipped. */ + SKIPPED, + /** The stale. */ + STALE, + /** The success. */ + SUCCESS, + /** The timed out. */ + TIMED_OUT, + /** The requested. */ + REQUESTED, + /** The waiting. */ + WAITING, + /** The pending. */ + PENDING, /** The unknown. */ UNKNOWN; diff --git a/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java b/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java index ede85d5b09..dea64411d1 100644 --- a/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java +++ b/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java @@ -5,6 +5,9 @@ import java.io.IOException; import java.io.InterruptedIOException; import java.net.HttpURLConnection; +import java.time.ZonedDateTime; +import java.time.format.DateTimeFormatter; +import java.time.temporal.ChronoUnit; import javax.annotation.Nonnull; @@ -30,7 +33,19 @@ public abstract class GitHubAbuseLimitHandler extends GitHubConnectorResponseErr */ @Override boolean isError(@Nonnull GitHubConnectorResponse connectorResponse) { - return isForbidden(connectorResponse) && hasRetryOrLimitHeader(connectorResponse); + return isTooManyRequests(connectorResponse) + || (isForbidden(connectorResponse) && hasRetryOrLimitHeader(connectorResponse)); + } + + /** + * Checks if the response status code is TOO_MANY_REQUESTS (429). + * + * @param connectorResponse + * the response from the GitHub connector + * @return true if the status code is TOO_MANY_REQUESTS + */ + private boolean isTooManyRequests(GitHubConnectorResponse connectorResponse) { + return connectorResponse.statusCode() == TOO_MANY_REQUESTS; } /** @@ -104,14 +119,6 @@ public void onError(GitHubConnectorResponse connectorResponse) throws IOExceptio throw (InterruptedIOException) new InterruptedIOException().initCause(ex); } } - - private long parseWaitTime(GitHubConnectorResponse connectorResponse) { - String v = connectorResponse.header("Retry-After"); - if (v == null) - return 60 * 1000; // can't tell, return 1 min - - return Math.max(1000, Long.parseLong(v) * 1000); - } }; /** @@ -127,4 +134,25 @@ public void onError(GitHubConnectorResponse connectorResponse) throws IOExceptio .withResponseHeaderFields(connectorResponse.allHeaders()); } }; + + /* + * Exposed for testability. Given an http response, find the retry-after header field and parse it as either a + * number or a date (the spec allows both). If no header is found, wait for a reasonably amount of time. + */ + static long parseWaitTime(GitHubConnectorResponse connectorResponse) { + String v = connectorResponse.header("Retry-After"); + if (v == null) { + // can't tell, wait for unambiguously over one minute per GitHub guidance + return 61 * 1000; + } + + try { + return Math.max(1000, Long.parseLong(v) * 1000); + } catch (NumberFormatException nfe) { + // The retry-after header could be a number in seconds, or an http-date + ZonedDateTime zdt = ZonedDateTime.parse(v, DateTimeFormatter.RFC_1123_DATE_TIME); + return ChronoUnit.MILLIS.between(ZonedDateTime.now(), zdt); + } + } + } diff --git a/src/main/java/org/kohsuke/github/GitHubConnectorResponseErrorHandler.java b/src/main/java/org/kohsuke/github/GitHubConnectorResponseErrorHandler.java index e71e81921d..0a7f7fa9fb 100644 --- a/src/main/java/org/kohsuke/github/GitHubConnectorResponseErrorHandler.java +++ b/src/main/java/org/kohsuke/github/GitHubConnectorResponseErrorHandler.java @@ -23,6 +23,17 @@ */ abstract class GitHubConnectorResponseErrorHandler { + /** + * The HTTP 429 Too Many Requests response status code indicates the user has sent too many requests in a given + * amount of time ("rate limiting"). + * + * A Retry-After header might be included to this response indicating how long to wait before making a new request. + * + * Why is this hardcoded here? The HttpURLConnection class is missing the status codes above 415, so the constant + * needs to be sourced from elsewhere. + */ + public static final int TOO_MANY_REQUESTS = 429; + /** * Called to detect an error handled by this handler. * diff --git a/src/main/resources/META-INF/native-image/org.kohsuke/github-api/reflect-config.json b/src/main/resources/META-INF/native-image/org.kohsuke/github-api/reflect-config.json new file mode 100644 index 0000000000..4d691214ec --- /dev/null +++ b/src/main/resources/META-INF/native-image/org.kohsuke/github-api/reflect-config.json @@ -0,0 +1,6707 @@ +[ + { + "name": "org.kohsuke.github.AbstractBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.BetaApi", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.EnforcementLevel", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$AlertsThreshold", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$BooleanParameter", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$BooleanParameter$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$CodeScanningTool", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$IntegerParameter", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$IntegerParameter$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$ListParameter", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Operator", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameter", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$1$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$2", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$2$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$3", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$3$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$4", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$4$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$5", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$5$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$RulesetSourceType", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$SecurityAlertsThreshold", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$StatusCheckConfiguration", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$StringParameter", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$StringParameter$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Type", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$WorkflowFileReference", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchSync", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHApp", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAppCreateTokenBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAppFromManifest", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAppInstallation", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAppInstallation$GHAppInstallationRepositoryResult", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAppInstallationsIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAppInstallationsIterable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAppInstallationsPage", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAppInstallationToken", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHArtifact", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHArtifactsIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHArtifactsIterable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHArtifactsPage", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAsset", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAuthenticatedAppInstallation", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAuthenticatedAppInstallation$GHAuthenticatedAppInstallationRepositoryResult", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAuthorization", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHAuthorization$App", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBlob", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBlobBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranch", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranch$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranch$Commit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$AllowDeletions", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$AllowForcePushes", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$AllowForkSyncing", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$BlockCreations", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$Check", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$EnforceAdmins", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$LockBranch", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$RequiredConversationResolution", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$RequiredLinearHistory", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$RequiredReviews", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$RequiredSignatures", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$RequiredStatusChecks", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtection$Restrictions", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtectionBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtectionBuilder$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtectionBuilder$Restrictions", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHBranchProtectionBuilder$StatusChecks", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRun", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRun$AnnotationLevel", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRun$Conclusion", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRun$Output", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRun$Status", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRunBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRunBuilder$Action", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRunBuilder$Annotation", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRunBuilder$Image", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRunBuilder$Output", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRunsIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRunsIterable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckRunsPage", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckSuite", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCheckSuite$HeadCommit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCodeownersError", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommentAuthorAssociation", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommit$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommit$File", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommit$GHAuthor", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommit$Parent", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommit$ShortInfo", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommit$Stats", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommit$User", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitBuilder$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitBuilder$UserInfo", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitFileIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitFileIterable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitFilesPage", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitPointer", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitQueryBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitSearchBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitSearchBuilder$CommitSearchResult", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitSearchBuilder$Sort", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitState", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCommitStatus", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCompare", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCompare$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCompare$Commit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCompare$GHCompareCommitsIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCompare$GHCompareCommitsIterable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCompare$InnerCommit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCompare$Status", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCompare$Tree", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCompare$User", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHContent", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHContentBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHContentSearchBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHContentSearchBuilder$ContentSearchResult", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHContentSearchBuilder$Sort", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHContentUpdateResponse", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHContentWithLicense", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHCreateRepositoryBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHDeployKey", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHDeployment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHDeploymentBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHDeploymentState", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHDeploymentStatus", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHDeploymentStatusBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHDirection", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHDiscussion", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHDiscussion$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHDiscussionBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEmail", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEnterpriseManagedUsersException", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHError", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEvent", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventInfo", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventInfo$GHEventRepository", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$CheckRun", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$CheckSuite", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$CommentChanges", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$CommentChanges$GHFrom", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$CommitComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Create", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Delete", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Deployment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$DeploymentStatus", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Discussion", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$DiscussionComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Fork", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Installation", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Installation$Repository", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$InstallationRepositories", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Issue", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$IssueComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Label", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Member", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Membership", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Ping", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$ProjectsV2Item", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Public", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$PullRequest", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$PullRequestReview", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$PullRequestReviewComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Push", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Push$PushCommit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Push$Pusher", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Release", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Repository", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Star", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Status", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$Team", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$TeamAdd", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$WorkflowDispatch", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$WorkflowJob", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHEventPayload$WorkflowRun", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHExternalGroup", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHExternalGroup$GHLinkedExternalMember", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHExternalGroup$GHLinkedTeam", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHExternalGroupIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHExternalGroupIterable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHExternalGroupPage", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHFork", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHGist", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHGistBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHGistFile", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHHook", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHHooks$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHInvitation", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssue", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssue$PullRequest", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueChanges", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueChanges$GHFrom", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueCommentQueryBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueEvent", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueQueryBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueQueryBuilder$ForRepository", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueQueryBuilder$Sort", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueRename", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueSearchBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueSearchBuilder$IssueSearchResult", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueSearchBuilder$Sort", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueState", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHIssueStateReason", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHKey", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHLabel", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHLabel$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHLabel$Creator", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHLabel$Setter", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHLabel$Updater", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHLabelBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHLabelChanges", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHLabelChanges$GHFrom", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHLicense", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplaceAccount", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplaceAccountPlan", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplaceAccountType", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplaceListAccountBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplaceListAccountBuilder$Sort", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplacePendingChange", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplacePlan", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplacePlanForAccountBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplacePriceModel", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplacePurchase", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMarketplaceUserPurchase", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMemberChanges", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMemberChanges$FromRoleName", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMemberChanges$FromToPermission", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMembership", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMembership$Role", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMembership$State", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMeta", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMilestone", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMilestoneState", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMyself", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHMyself$RepositoryListFilter", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHNotExternallyManagedEnterpriseException", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHNotificationStream", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHNotificationStream$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHObject", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHObject$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHObject$2", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHOrganization", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHOrganization$Permission", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHOrganization$RepositoryRole", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHOrganization$Role", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHOrgHook", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHOTPRequiredException", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPermission", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPermissionType", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPerson", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPerson$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProject", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProject$ProjectState", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProject$ProjectStateFilter", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProjectCard", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProjectColumn", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProjectsV2Item", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProjectsV2Item$ContentType", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProjectsV2ItemChanges", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProjectsV2ItemChanges$FieldType", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProjectsV2ItemChanges$FieldValue", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProjectsV2ItemChanges$FromTo", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHProjectsV2ItemChanges$FromToDate", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequest", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequest$AutoMerge", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequest$MergeMethod", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestChanges", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestChanges$GHCommitPointer", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestChanges$GHFrom", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestCommitDetail", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestCommitDetail$Authorship", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestCommitDetail$Commit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestCommitDetail$CommitPointer", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestCommitDetail$Tree", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestFileDetail", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestQueryBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestQueryBuilder$Sort", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReview", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewBuilder$DraftReviewComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewBuilder$MultilineDraftReviewComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewBuilder$ReviewComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewBuilder$SingleLineDraftReviewComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewComment$Side", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewCommentBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewCommentReactions", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewEvent", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewEvent$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewState", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewState$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestSearchBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestSearchBuilder$PullRequestSearchResult", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHPullRequestSearchBuilder$Sort", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHQueryBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRateLimit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRateLimit$Record", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRateLimit$UnknownLimitRecord", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHReaction", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRef", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRef$GHObject", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRelease", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHReleaseBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHReleaseBuilder$MakeLatest", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepoHook", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository$CollaboratorAffiliation", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository$Contributor", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository$ForkSort", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository$GHCodeownersErrors", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository$GHRepoPermission", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository$Setter", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository$Topics", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository$Updater", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepository$Visibility", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryChanges", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryChanges$FromName", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryChanges$FromOwner", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryChanges$FromRepository", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryChanges$Owner", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryCloneTraffic", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryCloneTraffic$DailyInfo", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryDiscussion", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryDiscussion$Category", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryDiscussion$State", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryDiscussionComment", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryPublicKey", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositorySearchBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositorySearchBuilder$Fork", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositorySearchBuilder$RepositorySearchResult", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositorySearchBuilder$Sort", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositorySelection", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$CodeFrequency", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$CommitActivity", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$ContributorStats", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$ContributorStats$Week", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$Participation", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$PunchCardItem", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryTraffic", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryTraffic$DailyInfo", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryTrafficReferralBase", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryTrafficTopReferralPath", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryTrafficTopReferralSources", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryVariable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryVariable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryVariable$Creator", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryVariable$Setter", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryVariableBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryViewTraffic", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRepositoryViewTraffic$DailyInfo", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHRequestedAction", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHSearchBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHStargazer", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHSubscription", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTag", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTagObject", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTargetType", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTeam", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTeam$Privacy", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTeam$Role", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTeamBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTeamCannotBeExternallyManagedException", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTeamChanges", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTeamChanges$FromPrivacy", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTeamChanges$FromRepository", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTeamChanges$FromRepositoryPermissions", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTeamChanges$FromString", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHThread", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHThread$Subject", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTree", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTreeBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTreeBuilder$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTreeBuilder$DeleteTreeEntry", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTreeBuilder$TreeEntry", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHTreeEntry", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHUser", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHUserSearchBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHUserSearchBuilder$Sort", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHUserSearchBuilder$UserSearchResult", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHVerification", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHVerification$Reason", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHVerifiedKey", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflow", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowJob", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowJob$Step", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowJobQueryBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowJobsIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowJobsIterable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowJobsPage", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowRun", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowRun$Conclusion", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowRun$HeadCommit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowRun$Status", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowRunQueryBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowRunsIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowRunsIterable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowRunsPage", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowsIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowsIterable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GHWorkflowsPage", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitCommit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitCommit$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitCommit$Tree", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHub$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHub$AuthorizationRefreshGitHubWrapper", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubBuilder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubConnectorResponseErrorHandler$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubInteractiveObject", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubPageContentsIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubPageContentsIterable$GitHubPageContentsIterator", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubPageIterator", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubRequest", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubRequest$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubRequest$Builder", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubRequest$Entry", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubResponse", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitHubSanityCachedValue", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.GitUser", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.JsonRateLimit", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.MarkdownMode", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.PagedIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.PagedSearchIterable", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.PagedSearchIterable$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.Preview", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.RateLimitChecker$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.RateLimitChecker$LiteralValue", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.RateLimitHandler$1", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.RateLimitHandler$2", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.RateLimitTarget", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.ReactionContent", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.SearchResult", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.ServiceDownException", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + }, + { + "name": "org.kohsuke.github.SkipFromToString", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + } +] diff --git a/src/main/resources/META-INF/native-image/org.kohsuke/github-api/serialization-config.json b/src/main/resources/META-INF/native-image/org.kohsuke/github-api/serialization-config.json new file mode 100644 index 0000000000..6c7dd370a1 --- /dev/null +++ b/src/main/resources/META-INF/native-image/org.kohsuke/github-api/serialization-config.json @@ -0,0 +1,1343 @@ +[ + { + "name": "org.kohsuke.github.AbstractBuilder" + }, + { + "name": "org.kohsuke.github.BetaApi" + }, + { + "name": "org.kohsuke.github.EnforcementLevel" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$AlertsThreshold" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$BooleanParameter" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$BooleanParameter$1" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$CodeScanningTool" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$IntegerParameter" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$IntegerParameter$1" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$ListParameter" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Operator" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameter" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$1" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$1$1" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$2" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$2$1" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$3" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$3$1" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$4" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$4$1" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$5" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Parameters$5$1" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$RulesetSourceType" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$SecurityAlertsThreshold" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$StatusCheckConfiguration" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$StringParameter" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$StringParameter$1" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$Type" + }, + { + "name": "org.kohsuke.github.GHRepositoryRule$WorkflowFileReference" + }, + { + "name": "org.kohsuke.github.GHBranchSync" + }, + { + "name": "org.kohsuke.github.GHApp" + }, + { + "name": "org.kohsuke.github.GHAppCreateTokenBuilder" + }, + { + "name": "org.kohsuke.github.GHAppFromManifest" + }, + { + "name": "org.kohsuke.github.GHAppInstallation" + }, + { + "name": "org.kohsuke.github.GHAppInstallation$GHAppInstallationRepositoryResult" + }, + { + "name": "org.kohsuke.github.GHAppInstallationsIterable$1" + }, + { + "name": "org.kohsuke.github.GHAppInstallationsIterable" + }, + { + "name": "org.kohsuke.github.GHAppInstallationsPage" + }, + { + "name": "org.kohsuke.github.GHAppInstallationToken" + }, + { + "name": "org.kohsuke.github.GHArtifact" + }, + { + "name": "org.kohsuke.github.GHArtifactsIterable$1" + }, + { + "name": "org.kohsuke.github.GHArtifactsIterable" + }, + { + "name": "org.kohsuke.github.GHArtifactsPage" + }, + { + "name": "org.kohsuke.github.GHAsset" + }, + { + "name": "org.kohsuke.github.GHAuthenticatedAppInstallation" + }, + { + "name": "org.kohsuke.github.GHAuthenticatedAppInstallation$GHAuthenticatedAppInstallationRepositoryResult" + }, + { + "name": "org.kohsuke.github.GHAuthorization$App" + }, + { + "name": "org.kohsuke.github.GHAuthorization" + }, + { + "name": "org.kohsuke.github.GHBlob" + }, + { + "name": "org.kohsuke.github.GHBlobBuilder" + }, + { + "name": "org.kohsuke.github.GHBranch$1" + }, + { + "name": "org.kohsuke.github.GHBranch" + }, + { + "name": "org.kohsuke.github.GHBranch$Commit" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$AllowDeletions" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$AllowForcePushes" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$AllowForkSyncing" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$BlockCreations" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$Check" + }, + { + "name": "org.kohsuke.github.GHBranchProtection" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$EnforceAdmins" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$LockBranch" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$RequiredConversationResolution" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$RequiredLinearHistory" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$RequiredReviews" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$RequiredSignatures" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$RequiredStatusChecks" + }, + { + "name": "org.kohsuke.github.GHBranchProtection$Restrictions" + }, + { + "name": "org.kohsuke.github.GHBranchProtectionBuilder$1" + }, + { + "name": "org.kohsuke.github.GHBranchProtectionBuilder" + }, + { + "name": "org.kohsuke.github.GHBranchProtectionBuilder$Restrictions" + }, + { + "name": "org.kohsuke.github.GHBranchProtectionBuilder$StatusChecks" + }, + { + "name": "org.kohsuke.github.GHCheckRun$AnnotationLevel" + }, + { + "name": "org.kohsuke.github.GHCheckRun" + }, + { + "name": "org.kohsuke.github.GHCheckRun$Conclusion" + }, + { + "name": "org.kohsuke.github.GHCheckRun$Output" + }, + { + "name": "org.kohsuke.github.GHCheckRun$Status" + }, + { + "name": "org.kohsuke.github.GHCheckRunBuilder$Action" + }, + { + "name": "org.kohsuke.github.GHCheckRunBuilder$Annotation" + }, + { + "name": "org.kohsuke.github.GHCheckRunBuilder" + }, + { + "name": "org.kohsuke.github.GHCheckRunBuilder$Image" + }, + { + "name": "org.kohsuke.github.GHCheckRunBuilder$Output" + }, + { + "name": "org.kohsuke.github.GHCheckRunsIterable$1" + }, + { + "name": "org.kohsuke.github.GHCheckRunsIterable" + }, + { + "name": "org.kohsuke.github.GHCheckRunsPage" + }, + { + "name": "org.kohsuke.github.GHCheckSuite" + }, + { + "name": "org.kohsuke.github.GHCheckSuite$HeadCommit" + }, + { + "name": "org.kohsuke.github.GHCodeownersError" + }, + { + "name": "org.kohsuke.github.GHCommentAuthorAssociation" + }, + { + "name": "org.kohsuke.github.GHCommit$1" + }, + { + "name": "org.kohsuke.github.GHCommit" + }, + { + "name": "org.kohsuke.github.GHCommit$File" + }, + { + "name": "org.kohsuke.github.GHCommit$GHAuthor" + }, + { + "name": "org.kohsuke.github.GHCommit$Parent" + }, + { + "name": "org.kohsuke.github.GHCommit$ShortInfo" + }, + { + "name": "org.kohsuke.github.GHCommit$Stats" + }, + { + "name": "org.kohsuke.github.GHCommit$User" + }, + { + "name": "org.kohsuke.github.GHCommitBuilder$1" + }, + { + "name": "org.kohsuke.github.GHCommitBuilder" + }, + { + "name": "org.kohsuke.github.GHCommitBuilder$UserInfo" + }, + { + "name": "org.kohsuke.github.GHCommitComment" + }, + { + "name": "org.kohsuke.github.GHCommitFileIterable$1" + }, + { + "name": "org.kohsuke.github.GHCommitFileIterable" + }, + { + "name": "org.kohsuke.github.GHCommitFilesPage" + }, + { + "name": "org.kohsuke.github.GHCommitPointer" + }, + { + "name": "org.kohsuke.github.GHCommitQueryBuilder" + }, + { + "name": "org.kohsuke.github.GHCommitSearchBuilder" + }, + { + "name": "org.kohsuke.github.GHCommitSearchBuilder$CommitSearchResult" + }, + { + "name": "org.kohsuke.github.GHCommitSearchBuilder$Sort" + }, + { + "name": "org.kohsuke.github.GHCommitState" + }, + { + "name": "org.kohsuke.github.GHCommitStatus" + }, + { + "name": "org.kohsuke.github.GHCompare$1" + }, + { + "name": "org.kohsuke.github.GHCompare" + }, + { + "name": "org.kohsuke.github.GHCompare$Commit" + }, + { + "name": "org.kohsuke.github.GHCompare$GHCompareCommitsIterable$1" + }, + { + "name": "org.kohsuke.github.GHCompare$GHCompareCommitsIterable" + }, + { + "name": "org.kohsuke.github.GHCompare$InnerCommit" + }, + { + "name": "org.kohsuke.github.GHCompare$Status" + }, + { + "name": "org.kohsuke.github.GHCompare$Tree" + }, + { + "name": "org.kohsuke.github.GHCompare$User" + }, + { + "name": "org.kohsuke.github.GHContent" + }, + { + "name": "org.kohsuke.github.GHContentBuilder" + }, + { + "name": "org.kohsuke.github.GHContentSearchBuilder" + }, + { + "name": "org.kohsuke.github.GHContentSearchBuilder$ContentSearchResult" + }, + { + "name": "org.kohsuke.github.GHContentSearchBuilder$Sort" + }, + { + "name": "org.kohsuke.github.GHContentUpdateResponse" + }, + { + "name": "org.kohsuke.github.GHContentWithLicense" + }, + { + "name": "org.kohsuke.github.GHCreateRepositoryBuilder" + }, + { + "name": "org.kohsuke.github.GHDeployKey" + }, + { + "name": "org.kohsuke.github.GHDeployment" + }, + { + "name": "org.kohsuke.github.GHDeploymentBuilder" + }, + { + "name": "org.kohsuke.github.GHDeploymentState" + }, + { + "name": "org.kohsuke.github.GHDeploymentStatus" + }, + { + "name": "org.kohsuke.github.GHDeploymentStatusBuilder" + }, + { + "name": "org.kohsuke.github.GHDirection" + }, + { + "name": "org.kohsuke.github.GHDiscussion$1" + }, + { + "name": "org.kohsuke.github.GHDiscussion" + }, + { + "name": "org.kohsuke.github.GHDiscussionBuilder" + }, + { + "name": "org.kohsuke.github.GHEmail" + }, + { + "name": "org.kohsuke.github.GHEnterpriseManagedUsersException" + }, + { + "name": "org.kohsuke.github.GHError" + }, + { + "name": "org.kohsuke.github.GHEvent" + }, + { + "name": "org.kohsuke.github.GHEventInfo" + }, + { + "name": "org.kohsuke.github.GHEventInfo$GHEventRepository" + }, + { + "name": "org.kohsuke.github.GHEventPayload$CheckRun" + }, + { + "name": "org.kohsuke.github.GHEventPayload$CheckSuite" + }, + { + "name": "org.kohsuke.github.GHEventPayload" + }, + { + "name": "org.kohsuke.github.GHEventPayload$CommentChanges" + }, + { + "name": "org.kohsuke.github.GHEventPayload$CommentChanges$GHFrom" + }, + { + "name": "org.kohsuke.github.GHEventPayload$CommitComment" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Create" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Delete" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Deployment" + }, + { + "name": "org.kohsuke.github.GHEventPayload$DeploymentStatus" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Discussion" + }, + { + "name": "org.kohsuke.github.GHEventPayload$DiscussionComment" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Fork" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Installation" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Installation$Repository" + }, + { + "name": "org.kohsuke.github.GHEventPayload$InstallationRepositories" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Issue" + }, + { + "name": "org.kohsuke.github.GHEventPayload$IssueComment" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Label" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Member" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Membership" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Ping" + }, + { + "name": "org.kohsuke.github.GHEventPayload$ProjectsV2Item" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Public" + }, + { + "name": "org.kohsuke.github.GHEventPayload$PullRequest" + }, + { + "name": "org.kohsuke.github.GHEventPayload$PullRequestReview" + }, + { + "name": "org.kohsuke.github.GHEventPayload$PullRequestReviewComment" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Push" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Push$PushCommit" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Push$Pusher" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Release" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Repository" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Star" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Status" + }, + { + "name": "org.kohsuke.github.GHEventPayload$Team" + }, + { + "name": "org.kohsuke.github.GHEventPayload$TeamAdd" + }, + { + "name": "org.kohsuke.github.GHEventPayload$WorkflowDispatch" + }, + { + "name": "org.kohsuke.github.GHEventPayload$WorkflowJob" + }, + { + "name": "org.kohsuke.github.GHEventPayload$WorkflowRun" + }, + { + "name": "org.kohsuke.github.GHExternalGroup" + }, + { + "name": "org.kohsuke.github.GHExternalGroup$GHLinkedExternalMember" + }, + { + "name": "org.kohsuke.github.GHExternalGroup$GHLinkedTeam" + }, + { + "name": "org.kohsuke.github.GHExternalGroupIterable$1" + }, + { + "name": "org.kohsuke.github.GHExternalGroupIterable" + }, + { + "name": "org.kohsuke.github.GHExternalGroupPage" + }, + { + "name": "org.kohsuke.github.GHFork" + }, + { + "name": "org.kohsuke.github.GHGist" + }, + { + "name": "org.kohsuke.github.GHGistBuilder" + }, + { + "name": "org.kohsuke.github.GHGistFile" + }, + { + "name": "org.kohsuke.github.GHHook" + }, + { + "name": "org.kohsuke.github.GHHooks$1" + }, + { + "name": "org.kohsuke.github.GHInvitation" + }, + { + "name": "org.kohsuke.github.GHIssue" + }, + { + "name": "org.kohsuke.github.GHIssue$PullRequest" + }, + { + "name": "org.kohsuke.github.GHIssueBuilder" + }, + { + "name": "org.kohsuke.github.GHIssueChanges" + }, + { + "name": "org.kohsuke.github.GHIssueChanges$GHFrom" + }, + { + "name": "org.kohsuke.github.GHIssueComment" + }, + { + "name": "org.kohsuke.github.GHIssueCommentQueryBuilder" + }, + { + "name": "org.kohsuke.github.GHIssueEvent" + }, + { + "name": "org.kohsuke.github.GHIssueQueryBuilder" + }, + { + "name": "org.kohsuke.github.GHIssueQueryBuilder$ForRepository" + }, + { + "name": "org.kohsuke.github.GHIssueQueryBuilder$Sort" + }, + { + "name": "org.kohsuke.github.GHIssueRename" + }, + { + "name": "org.kohsuke.github.GHIssueSearchBuilder" + }, + { + "name": "org.kohsuke.github.GHIssueSearchBuilder$IssueSearchResult" + }, + { + "name": "org.kohsuke.github.GHIssueSearchBuilder$Sort" + }, + { + "name": "org.kohsuke.github.GHIssueState" + }, + { + "name": "org.kohsuke.github.GHIssueStateReason" + }, + { + "name": "org.kohsuke.github.GHKey" + }, + { + "name": "org.kohsuke.github.GHLabel$1" + }, + { + "name": "org.kohsuke.github.GHLabel" + }, + { + "name": "org.kohsuke.github.GHLabel$Creator" + }, + { + "name": "org.kohsuke.github.GHLabel$Setter" + }, + { + "name": "org.kohsuke.github.GHLabel$Updater" + }, + { + "name": "org.kohsuke.github.GHLabelBuilder" + }, + { + "name": "org.kohsuke.github.GHLabelChanges" + }, + { + "name": "org.kohsuke.github.GHLabelChanges$GHFrom" + }, + { + "name": "org.kohsuke.github.GHLicense" + }, + { + "name": "org.kohsuke.github.GHMarketplaceAccount" + }, + { + "name": "org.kohsuke.github.GHMarketplaceAccountPlan" + }, + { + "name": "org.kohsuke.github.GHMarketplaceAccountType" + }, + { + "name": "org.kohsuke.github.GHMarketplaceListAccountBuilder" + }, + { + "name": "org.kohsuke.github.GHMarketplaceListAccountBuilder$Sort" + }, + { + "name": "org.kohsuke.github.GHMarketplacePendingChange" + }, + { + "name": "org.kohsuke.github.GHMarketplacePlan" + }, + { + "name": "org.kohsuke.github.GHMarketplacePlanForAccountBuilder" + }, + { + "name": "org.kohsuke.github.GHMarketplacePriceModel" + }, + { + "name": "org.kohsuke.github.GHMarketplacePurchase" + }, + { + "name": "org.kohsuke.github.GHMarketplaceUserPurchase" + }, + { + "name": "org.kohsuke.github.GHMemberChanges" + }, + { + "name": "org.kohsuke.github.GHMemberChanges$FromRoleName" + }, + { + "name": "org.kohsuke.github.GHMemberChanges$FromToPermission" + }, + { + "name": "org.kohsuke.github.GHMembership" + }, + { + "name": "org.kohsuke.github.GHMembership$Role" + }, + { + "name": "org.kohsuke.github.GHMembership$State" + }, + { + "name": "org.kohsuke.github.GHMeta" + }, + { + "name": "org.kohsuke.github.GHMilestone" + }, + { + "name": "org.kohsuke.github.GHMilestoneState" + }, + { + "name": "org.kohsuke.github.GHMyself" + }, + { + "name": "org.kohsuke.github.GHMyself$RepositoryListFilter" + }, + { + "name": "org.kohsuke.github.GHNotExternallyManagedEnterpriseException" + }, + { + "name": "org.kohsuke.github.GHNotificationStream$1" + }, + { + "name": "org.kohsuke.github.GHNotificationStream" + }, + { + "name": "org.kohsuke.github.GHObject$1" + }, + { + "name": "org.kohsuke.github.GHObject$2" + }, + { + "name": "org.kohsuke.github.GHObject" + }, + { + "name": "org.kohsuke.github.GHOrganization" + }, + { + "name": "org.kohsuke.github.GHOrganization$Permission" + }, + { + "name": "org.kohsuke.github.GHOrganization$RepositoryRole" + }, + { + "name": "org.kohsuke.github.GHOrganization$Role" + }, + { + "name": "org.kohsuke.github.GHOrgHook" + }, + { + "name": "org.kohsuke.github.GHOTPRequiredException" + }, + { + "name": "org.kohsuke.github.GHPermission" + }, + { + "name": "org.kohsuke.github.GHPermissionType" + }, + { + "name": "org.kohsuke.github.GHPerson$1" + }, + { + "name": "org.kohsuke.github.GHPerson" + }, + { + "name": "org.kohsuke.github.GHProject" + }, + { + "name": "org.kohsuke.github.GHProject$ProjectState" + }, + { + "name": "org.kohsuke.github.GHProject$ProjectStateFilter" + }, + { + "name": "org.kohsuke.github.GHProjectCard" + }, + { + "name": "org.kohsuke.github.GHProjectColumn" + }, + { + "name": "org.kohsuke.github.GHProjectsV2Item" + }, + { + "name": "org.kohsuke.github.GHProjectsV2Item$ContentType" + }, + { + "name": "org.kohsuke.github.GHProjectsV2ItemChanges" + }, + { + "name": "org.kohsuke.github.GHProjectsV2ItemChanges$FieldType" + }, + { + "name": "org.kohsuke.github.GHProjectsV2ItemChanges$FieldValue" + }, + { + "name": "org.kohsuke.github.GHProjectsV2ItemChanges$FromTo" + }, + { + "name": "org.kohsuke.github.GHProjectsV2ItemChanges$FromToDate" + }, + { + "name": "org.kohsuke.github.GHPullRequest$AutoMerge" + }, + { + "name": "org.kohsuke.github.GHPullRequest" + }, + { + "name": "org.kohsuke.github.GHPullRequest$MergeMethod" + }, + { + "name": "org.kohsuke.github.GHPullRequestChanges" + }, + { + "name": "org.kohsuke.github.GHPullRequestChanges$GHCommitPointer" + }, + { + "name": "org.kohsuke.github.GHPullRequestChanges$GHFrom" + }, + { + "name": "org.kohsuke.github.GHPullRequestCommitDetail$Authorship" + }, + { + "name": "org.kohsuke.github.GHPullRequestCommitDetail" + }, + { + "name": "org.kohsuke.github.GHPullRequestCommitDetail$Commit" + }, + { + "name": "org.kohsuke.github.GHPullRequestCommitDetail$CommitPointer" + }, + { + "name": "org.kohsuke.github.GHPullRequestCommitDetail$Tree" + }, + { + "name": "org.kohsuke.github.GHPullRequestFileDetail" + }, + { + "name": "org.kohsuke.github.GHPullRequestQueryBuilder" + }, + { + "name": "org.kohsuke.github.GHPullRequestQueryBuilder$Sort" + }, + { + "name": "org.kohsuke.github.GHPullRequestReview" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewBuilder" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewBuilder$DraftReviewComment" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewBuilder$MultilineDraftReviewComment" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewBuilder$ReviewComment" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewBuilder$SingleLineDraftReviewComment" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewComment" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewComment$Side" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewCommentBuilder" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewCommentReactions" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewEvent$1" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewEvent" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewState$1" + }, + { + "name": "org.kohsuke.github.GHPullRequestReviewState" + }, + { + "name": "org.kohsuke.github.GHPullRequestSearchBuilder" + }, + { + "name": "org.kohsuke.github.GHPullRequestSearchBuilder$PullRequestSearchResult" + }, + { + "name": "org.kohsuke.github.GHPullRequestSearchBuilder$Sort" + }, + { + "name": "org.kohsuke.github.GHQueryBuilder" + }, + { + "name": "org.kohsuke.github.GHRateLimit" + }, + { + "name": "org.kohsuke.github.GHRateLimit$Record" + }, + { + "name": "org.kohsuke.github.GHRateLimit$UnknownLimitRecord" + }, + { + "name": "org.kohsuke.github.GHReaction" + }, + { + "name": "org.kohsuke.github.GHRef" + }, + { + "name": "org.kohsuke.github.GHRef$GHObject" + }, + { + "name": "org.kohsuke.github.GHRelease" + }, + { + "name": "org.kohsuke.github.GHReleaseBuilder" + }, + { + "name": "org.kohsuke.github.GHReleaseBuilder$MakeLatest" + }, + { + "name": "org.kohsuke.github.GHRepoHook" + }, + { + "name": "org.kohsuke.github.GHRepository$1" + }, + { + "name": "org.kohsuke.github.GHRepository" + }, + { + "name": "org.kohsuke.github.GHRepository$CollaboratorAffiliation" + }, + { + "name": "org.kohsuke.github.GHRepository$Contributor" + }, + { + "name": "org.kohsuke.github.GHRepository$ForkSort" + }, + { + "name": "org.kohsuke.github.GHRepository$GHCodeownersErrors" + }, + { + "name": "org.kohsuke.github.GHRepository$GHRepoPermission" + }, + { + "name": "org.kohsuke.github.GHRepository$Setter" + }, + { + "name": "org.kohsuke.github.GHRepository$Topics" + }, + { + "name": "org.kohsuke.github.GHRepository$Updater" + }, + { + "name": "org.kohsuke.github.GHRepository$Visibility" + }, + { + "name": "org.kohsuke.github.GHRepositoryBuilder" + }, + { + "name": "org.kohsuke.github.GHRepositoryChanges" + }, + { + "name": "org.kohsuke.github.GHRepositoryChanges$FromName" + }, + { + "name": "org.kohsuke.github.GHRepositoryChanges$FromOwner" + }, + { + "name": "org.kohsuke.github.GHRepositoryChanges$FromRepository" + }, + { + "name": "org.kohsuke.github.GHRepositoryChanges$Owner" + }, + { + "name": "org.kohsuke.github.GHRepositoryCloneTraffic" + }, + { + "name": "org.kohsuke.github.GHRepositoryCloneTraffic$DailyInfo" + }, + { + "name": "org.kohsuke.github.GHRepositoryDiscussion$Category" + }, + { + "name": "org.kohsuke.github.GHRepositoryDiscussion" + }, + { + "name": "org.kohsuke.github.GHRepositoryDiscussion$State" + }, + { + "name": "org.kohsuke.github.GHRepositoryDiscussionComment" + }, + { + "name": "org.kohsuke.github.GHRepositoryPublicKey" + }, + { + "name": "org.kohsuke.github.GHRepositorySearchBuilder" + }, + { + "name": "org.kohsuke.github.GHRepositorySearchBuilder$Fork" + }, + { + "name": "org.kohsuke.github.GHRepositorySearchBuilder$RepositorySearchResult" + }, + { + "name": "org.kohsuke.github.GHRepositorySearchBuilder$Sort" + }, + { + "name": "org.kohsuke.github.GHRepositorySelection" + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics" + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$CodeFrequency" + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$CommitActivity" + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$ContributorStats" + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$ContributorStats$Week" + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$Participation" + }, + { + "name": "org.kohsuke.github.GHRepositoryStatistics$PunchCardItem" + }, + { + "name": "org.kohsuke.github.GHRepositoryTraffic" + }, + { + "name": "org.kohsuke.github.GHRepositoryTraffic$DailyInfo" + }, + { + "name": "org.kohsuke.github.GHRepositoryTrafficReferralBase" + }, + { + "name": "org.kohsuke.github.GHRepositoryTrafficTopReferralPath" + }, + { + "name": "org.kohsuke.github.GHRepositoryTrafficTopReferralSources" + }, + { + "name": "org.kohsuke.github.GHRepositoryVariable$1" + }, + { + "name": "org.kohsuke.github.GHRepositoryVariable" + }, + { + "name": "org.kohsuke.github.GHRepositoryVariable$Creator" + }, + { + "name": "org.kohsuke.github.GHRepositoryVariable$Setter" + }, + { + "name": "org.kohsuke.github.GHRepositoryVariableBuilder" + }, + { + "name": "org.kohsuke.github.GHRepositoryViewTraffic" + }, + { + "name": "org.kohsuke.github.GHRepositoryViewTraffic$DailyInfo" + }, + { + "name": "org.kohsuke.github.GHRequestedAction" + }, + { + "name": "org.kohsuke.github.GHSearchBuilder" + }, + { + "name": "org.kohsuke.github.GHStargazer" + }, + { + "name": "org.kohsuke.github.GHSubscription" + }, + { + "name": "org.kohsuke.github.GHTag" + }, + { + "name": "org.kohsuke.github.GHTagObject" + }, + { + "name": "org.kohsuke.github.GHTargetType" + }, + { + "name": "org.kohsuke.github.GHTeam" + }, + { + "name": "org.kohsuke.github.GHTeam$Privacy" + }, + { + "name": "org.kohsuke.github.GHTeam$Role" + }, + { + "name": "org.kohsuke.github.GHTeamBuilder" + }, + { + "name": "org.kohsuke.github.GHTeamCannotBeExternallyManagedException" + }, + { + "name": "org.kohsuke.github.GHTeamChanges" + }, + { + "name": "org.kohsuke.github.GHTeamChanges$FromPrivacy" + }, + { + "name": "org.kohsuke.github.GHTeamChanges$FromRepository" + }, + { + "name": "org.kohsuke.github.GHTeamChanges$FromRepositoryPermissions" + }, + { + "name": "org.kohsuke.github.GHTeamChanges$FromString" + }, + { + "name": "org.kohsuke.github.GHThread" + }, + { + "name": "org.kohsuke.github.GHThread$Subject" + }, + { + "name": "org.kohsuke.github.GHTree" + }, + { + "name": "org.kohsuke.github.GHTreeBuilder$1" + }, + { + "name": "org.kohsuke.github.GHTreeBuilder" + }, + { + "name": "org.kohsuke.github.GHTreeBuilder$DeleteTreeEntry" + }, + { + "name": "org.kohsuke.github.GHTreeBuilder$TreeEntry" + }, + { + "name": "org.kohsuke.github.GHTreeEntry" + }, + { + "name": "org.kohsuke.github.GHUser" + }, + { + "name": "org.kohsuke.github.GHUserSearchBuilder" + }, + { + "name": "org.kohsuke.github.GHUserSearchBuilder$Sort" + }, + { + "name": "org.kohsuke.github.GHUserSearchBuilder$UserSearchResult" + }, + { + "name": "org.kohsuke.github.GHVerification" + }, + { + "name": "org.kohsuke.github.GHVerification$Reason" + }, + { + "name": "org.kohsuke.github.GHVerifiedKey" + }, + { + "name": "org.kohsuke.github.GHWorkflow" + }, + { + "name": "org.kohsuke.github.GHWorkflowJob" + }, + { + "name": "org.kohsuke.github.GHWorkflowJob$Step" + }, + { + "name": "org.kohsuke.github.GHWorkflowJobQueryBuilder" + }, + { + "name": "org.kohsuke.github.GHWorkflowJobsIterable$1" + }, + { + "name": "org.kohsuke.github.GHWorkflowJobsIterable" + }, + { + "name": "org.kohsuke.github.GHWorkflowJobsPage" + }, + { + "name": "org.kohsuke.github.GHWorkflowRun" + }, + { + "name": "org.kohsuke.github.GHWorkflowRun$Conclusion" + }, + { + "name": "org.kohsuke.github.GHWorkflowRun$HeadCommit" + }, + { + "name": "org.kohsuke.github.GHWorkflowRun$Status" + }, + { + "name": "org.kohsuke.github.GHWorkflowRunQueryBuilder" + }, + { + "name": "org.kohsuke.github.GHWorkflowRunsIterable$1" + }, + { + "name": "org.kohsuke.github.GHWorkflowRunsIterable" + }, + { + "name": "org.kohsuke.github.GHWorkflowRunsPage" + }, + { + "name": "org.kohsuke.github.GHWorkflowsIterable$1" + }, + { + "name": "org.kohsuke.github.GHWorkflowsIterable" + }, + { + "name": "org.kohsuke.github.GHWorkflowsPage" + }, + { + "name": "org.kohsuke.github.GitCommit$1" + }, + { + "name": "org.kohsuke.github.GitCommit" + }, + { + "name": "org.kohsuke.github.GitCommit$Tree" + }, + { + "name": "org.kohsuke.github.GitHub$1" + }, + { + "name": "org.kohsuke.github.GitHub$AuthorizationRefreshGitHubWrapper" + }, + { + "name": "org.kohsuke.github.GitHubBuilder" + }, + { + "name": "org.kohsuke.github.GitHubConnectorResponseErrorHandler$1" + }, + { + "name": "org.kohsuke.github.GitHubInteractiveObject" + }, + { + "name": "org.kohsuke.github.GitHubPageContentsIterable" + }, + { + "name": "org.kohsuke.github.GitHubPageContentsIterable$GitHubPageContentsIterator" + }, + { + "name": "org.kohsuke.github.GitHubPageIterator" + }, + { + "name": "org.kohsuke.github.GitHubRequest$1" + }, + { + "name": "org.kohsuke.github.GitHubRequest$Builder" + }, + { + "name": "org.kohsuke.github.GitHubRequest" + }, + { + "name": "org.kohsuke.github.GitHubRequest$Entry" + }, + { + "name": "org.kohsuke.github.GitHubResponse" + }, + { + "name": "org.kohsuke.github.GitHubSanityCachedValue" + }, + { + "name": "org.kohsuke.github.GitUser" + }, + { + "name": "org.kohsuke.github.JsonRateLimit" + }, + { + "name": "org.kohsuke.github.MarkdownMode" + }, + { + "name": "org.kohsuke.github.PagedIterable" + }, + { + "name": "org.kohsuke.github.PagedSearchIterable$1" + }, + { + "name": "org.kohsuke.github.PagedSearchIterable" + }, + { + "name": "org.kohsuke.github.Preview" + }, + { + "name": "org.kohsuke.github.RateLimitChecker$1" + }, + { + "name": "org.kohsuke.github.RateLimitChecker$LiteralValue" + }, + { + "name": "org.kohsuke.github.RateLimitHandler$1" + }, + { + "name": "org.kohsuke.github.RateLimitHandler$2" + }, + { + "name": "org.kohsuke.github.RateLimitTarget" + }, + { + "name": "org.kohsuke.github.ReactionContent" + }, + { + "name": "org.kohsuke.github.SearchResult" + }, + { + "name": "org.kohsuke.github.ServiceDownException" + }, + { + "name": "org.kohsuke.github.SkipFromToString" + } +] \ No newline at end of file diff --git a/src/test/java/org/kohsuke/aot/AotIntegrationTest.java b/src/test/java/org/kohsuke/aot/AotIntegrationTest.java new file mode 100644 index 0000000000..574661906f --- /dev/null +++ b/src/test/java/org/kohsuke/aot/AotIntegrationTest.java @@ -0,0 +1,82 @@ +package org.kohsuke.aot; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.node.ArrayNode; +import org.junit.Test; +import org.springframework.boot.test.context.SpringBootTest; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.List; +import java.util.Spliterator; +import java.util.Spliterators; +import java.util.stream.Collectors; +import java.util.stream.Stream; +import java.util.stream.StreamSupport; + +import static org.junit.Assert.fail; + +/** + * AOT test to check if the required classes are registered for reflections / serialization. WARNING: This test needs to + * be run with maven as a plugin is required to generate the AOT information first. + */ +@SpringBootTest +public class AotIntegrationTest { + + /** + * Test to check if all required classes are registered for AOT. + * + * @throws IOException + * if the files to test can not be read + */ + @Test + public void testIfAllRequiredClassesAreRegisteredForAot() throws IOException { + Stream providedReflectionConfigStreamOfNames = readAotConfigToStreamOfClassNames( + "./target/classes/META-INF/native-image/org.kohsuke/github-api/reflect-config.json"); + Stream providedNoReflectStreamOfNames = Files + .lines(Path.of("./target/test-classes/no-reflect-and-serialization-list")); + Stream providedSerializationStreamOfNames = readAotConfigToStreamOfClassNames( + "./target/classes/META-INF/native-image/org.kohsuke/github-api/serialization-config.json"); + Stream providedAotConfigClassNamesPart = Stream + .concat(providedSerializationStreamOfNames, + Stream.concat(providedReflectionConfigStreamOfNames, providedNoReflectStreamOfNames)) + .distinct(); + List providedReflectionAndNoReflectionConfigNames = providedAotConfigClassNamesPart + .collect(Collectors.toList()); + + Stream generatedReflectConfigStreamOfClassNames = readAotConfigToStreamOfClassNames( + "./target/spring-aot/test/resources/META-INF/native-image/org.kohsuke/github-api/reflect-config.json"); + Stream generatedSerializationStreamOfNames = readAotConfigToStreamOfClassNames( + "./target/spring-aot/test/resources/META-INF/native-image/org.kohsuke/github-api/serialization-config.json"); + Stream generatedAotConfigClassNames = Stream.concat(generatedReflectConfigStreamOfClassNames, + generatedSerializationStreamOfNames); + + generatedAotConfigClassNames.forEach(generatedReflectionConfigClassName -> { + try { + if (!providedReflectionAndNoReflectionConfigNames.contains(generatedReflectionConfigClassName)) { + fail(String.format( + Files.readString( + Path.of("./target/test-classes/reflection-and-serialization-test-error-message")), + generatedReflectionConfigClassName)); + } + } catch (IOException e) { + throw new RuntimeException(e); + } + }); + + } + + private Stream readAotConfigToStreamOfClassNames(String reflectionConfig) throws IOException { + byte[] reflectionConfigFileAsBytes = Files.readAllBytes(Path.of(reflectionConfig)); + ArrayNode reflectConfigJsonArray = (ArrayNode) new ObjectMapper().readTree(reflectionConfigFileAsBytes); + return StreamSupport + .stream(Spliterators.spliteratorUnknownSize(reflectConfigJsonArray.iterator(), Spliterator.ORDERED), + false) + .map(jsonNode -> jsonNode.get("name")) + .map(JsonNode::toString) + .map(reflectConfigEntryClassName -> reflectConfigEntryClassName.replace("\"", "")) + .filter(x -> x.contains("org.kohsuke.github")); + } +} diff --git a/src/test/java/org/kohsuke/aot/AotTestApplication.java b/src/test/java/org/kohsuke/aot/AotTestApplication.java new file mode 100644 index 0000000000..0e3081d937 --- /dev/null +++ b/src/test/java/org/kohsuke/aot/AotTestApplication.java @@ -0,0 +1,22 @@ +package org.kohsuke.aot; + +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; + +/** + * AOT test application so that Spring Boot is able to generate the native image resource JSON files. This class is only + * required for test purpose. + */ +@SpringBootApplication +public class AotTestApplication { + + /** + * Runs a spring boot application to generate AOT hints + * + * @param args + * the command line arguments + */ + public static void main(String[] args) { + new SpringApplicationBuilder(AotTestApplication.class).run(args); + } +} diff --git a/src/test/java/org/kohsuke/aot/AotTestRuntimeHints.java b/src/test/java/org/kohsuke/aot/AotTestRuntimeHints.java new file mode 100644 index 0000000000..0dbad0591c --- /dev/null +++ b/src/test/java/org/kohsuke/aot/AotTestRuntimeHints.java @@ -0,0 +1,60 @@ +package org.kohsuke.aot; + +import org.jetbrains.annotations.NotNull; +import org.springframework.aot.hint.MemberCategory; +import org.springframework.aot.hint.RuntimeHints; +import org.springframework.aot.hint.RuntimeHintsRegistrar; +import org.springframework.aot.hint.TypeReference; +import org.springframework.core.io.Resource; +import org.springframework.core.io.support.PathMatchingResourcePatternResolver; + +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; + +/** + * Gets all classes in the org/kohsuke/github package (and subpackages) and register them for the AOT reflection / + * serialization. + */ +public class AotTestRuntimeHints implements RuntimeHintsRegistrar { + + private static final Logger LOGGER = Logger.getLogger(AotTestRuntimeHints.class.getName()); + + private static final String CLASSPATH_IDENTIFIER = "/target/classes"; + + private static final String LOCATION_PATTERN_OF_ORG_KOHSUKE_GITHUB_CLASSES = "classpath*:org/kohsuke/github/**/*.class"; + + @Override + public void registerHints(@NotNull RuntimeHints hints, ClassLoader classLoader) { + try { + PathMatchingResourcePatternResolver pathMatchingResourcePatternResolver = new PathMatchingResourcePatternResolver(); + List list = Arrays.asList( + pathMatchingResourcePatternResolver.getResources(LOCATION_PATTERN_OF_ORG_KOHSUKE_GITHUB_CLASSES)); + list.forEach(resource -> { + try { + String resourceUriString = resource.getURI().toASCIIString(); + // filter out only classes in the classpath to avoid classes in the test classpath + if (!resourceUriString.contains(CLASSPATH_IDENTIFIER)) { + return; + } + String substring = resourceUriString.substring( + resourceUriString.indexOf(CLASSPATH_IDENTIFIER) + CLASSPATH_IDENTIFIER.length() + 1); + String githubApiClassName = substring.replace('/', '.'); + String githubApiClassNameWithoutClass = githubApiClassName.replace(".class", ""); + hints.reflection() + .registerType(TypeReference.of(githubApiClassNameWithoutClass), MemberCategory.values()); + hints.serialization().registerType(TypeReference.of(githubApiClassNameWithoutClass)); + LOGGER.log(Level.INFO, + "Registered class " + githubApiClassNameWithoutClass + + " for reflections and serialization for test purpose."); + } catch (IOException e) { + throw new RuntimeException(e); + } + }); + } catch (IOException e) { + throw new RuntimeException(e); + } + } +} diff --git a/src/test/java/org/kohsuke/github/AbuseLimitHandlerTest.java b/src/test/java/org/kohsuke/github/AbuseLimitHandlerTest.java index 667db7ce0e..da8b60ea6d 100644 --- a/src/test/java/org/kohsuke/github/AbuseLimitHandlerTest.java +++ b/src/test/java/org/kohsuke/github/AbuseLimitHandlerTest.java @@ -1,16 +1,20 @@ package org.kohsuke.github; import com.github.tomakehurst.wiremock.core.WireMockConfiguration; +import org.apache.commons.io.IOUtils; import org.hamcrest.Matchers; import org.jetbrains.annotations.NotNull; import org.junit.Test; import org.kohsuke.github.connector.GitHubConnectorResponse; import java.io.IOException; +import java.io.InputStream; import java.net.HttpURLConnection; +import java.nio.charset.StandardCharsets; import java.util.Map; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.core.IsInstanceOf.instanceOf; // TODO: Auto-generated Javadoc @@ -126,12 +130,42 @@ public void onError(@NotNull GitHubConnectorResponse connectorResponse) throws I // assertThat(uc.getRequestProperty("Accept"), equalTo("application/vnd.github.v3+json")); + // checkErrorMessageMatches(uc, "Must have push access to repository"); + + // // calling again should still error + // ioEx = Assert.assertThrows(IOException.class, () -> uc.getInputStream()); + + // // calling again on a GitHubConnectorResponse should yield the same value + // if (uc.toString().contains("GitHubConnectorResponseHttpUrlConnectionAdapter")) { + // checkErrorMessageMatches(uc, "Must have push access to repository"); + // } else { + // try (InputStream errorStream = uc.getErrorStream()) { + // assertThat(errorStream, notNullValue()); + // String errorString = IOUtils.toString(errorStream, StandardCharsets.UTF_8); + // fail(); + // } catch (IOException ex) { + // assertThat(ex, notNullValue()); + // assertThat(ex.getMessage(), containsString("stream is closed")); + // } + // } + + // assertThat(uc.getHeaderFields(), instanceOf(Map.class)); + // assertThat(uc.getHeaderFields().size(), greaterThan(25)); + // assertThat(uc.getHeaderField("Status"), equalTo("403 Forbidden")); + + // String key = uc.getHeaderFieldKey(1); + // assertThat(key, notNullValue()); + // assertThat(uc.getHeaderField(1), notNullValue()); + // assertThat(uc.getHeaderField(1), equalTo(uc.getHeaderField(key))); + + // assertThat(uc.getRequestProperty("Accept"), equalTo("application/vnd.github+json")); + // Assert.assertThrows(IllegalStateException.class, () -> uc.getRequestProperties()); - // + // // Actions that are not allowed because connection already opened. // Assert.assertThrows(IllegalStateException.class, () -> uc.addRequestProperty("bogus", // "item")); - // + // Assert.assertThrows(IllegalStateException.class, () -> uc.setAllowUserInteraction(true)); // Assert.assertThrows(IllegalStateException.class, () -> uc.setChunkedStreamingMode(1)); // Assert.assertThrows(IllegalStateException.class, () -> uc.setDoInput(true)); @@ -142,9 +176,9 @@ public void onError(@NotNull GitHubConnectorResponse connectorResponse) throws I // Assert.assertThrows(IllegalStateException.class, () -> uc.setRequestProperty("bogus", // "thing")); // Assert.assertThrows(IllegalStateException.class, () -> uc.setUseCaches(true)); - // + // if (uc.toString().contains("GitHubConnectorResponseHttpUrlConnectionAdapter")) { - // + // Assert.assertThrows(UnsupportedOperationException.class, // () -> uc.getAllowUserInteraction()); // Assert.assertThrows(UnsupportedOperationException.class, () -> uc.getConnectTimeout()); @@ -160,11 +194,11 @@ public void onError(@NotNull GitHubConnectorResponse connectorResponse) throws I // Assert.assertThrows(UnsupportedOperationException.class, () -> uc.getReadTimeout()); // Assert.assertThrows(UnsupportedOperationException.class, () -> uc.getUseCaches()); // Assert.assertThrows(UnsupportedOperationException.class, () -> uc.usingProxy()); - // + // Assert.assertThrows(UnsupportedOperationException.class, () -> uc.setConnectTimeout(10)); // Assert.assertThrows(UnsupportedOperationException.class, // () -> uc.setDefaultUseCaches(true)); - // + // Assert.assertThrows(UnsupportedOperationException.class, // () -> uc.setInstanceFollowRedirects(true)); // Assert.assertThrows(UnsupportedOperationException.class, () -> uc.setReadTimeout(10)); @@ -172,18 +206,18 @@ public void onError(@NotNull GitHubConnectorResponse connectorResponse) throws I // } else { // uc.getDefaultUseCaches(); // assertThat(uc.getDoInput(), is(true)); - // + // // Depending on the underlying implementation, this may throw or not // // Assert.assertThrows(IllegalStateException.class, () -> uc.setRequestMethod("GET")); // } - // + // // ignored // uc.connect(); - // + // // disconnect does nothing, never throws // uc.disconnect(); // uc.disconnect(); - // + // // ignored // uc.connect(); @@ -315,5 +349,229 @@ public void testHandler_Wait_Secondary_Limits() throws Exception { getTempRepository(); assertThat(mockGitHub.getRequestCount(), equalTo(3)); + + gitHub = getGitHubBuilder().withEndpoint(mockGitHub.apiServer().baseUrl()) + .withAbuseLimitHandler(new GitHubAbuseLimitHandler() { + /** + * Overriding method because the actual method will wait for one minute causing slowness in unit + * tests + */ + @Override + public void onError(@NotNull GitHubConnectorResponse connectorResponse) throws IOException { + // Verify + // assertThat(uc.getDate(), Matchers.greaterThanOrEqualTo(new Date().getTime() - 10000)); + // assertThat(uc.getExpiration(), equalTo(0L)); + // assertThat(uc.getIfModifiedSince(), equalTo(0L)); + // assertThat(uc.getLastModified(), equalTo(1581014017000L)); + assertThat(connectorResponse.request().method(), equalTo("GET")); + assertThat(connectorResponse.statusCode(), equalTo(403)); + // assertThat(uc.getResponseMessage(), containsString("Forbidden")); + assertThat(connectorResponse.request().url().toString(), + endsWith("/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits")); + assertThat(connectorResponse.header("X-RateLimit-Limit"), equalTo("5000")); + assertThat(connectorResponse.header("X-RateLimit-Remaining"), equalTo(4000)); + assertThat(connectorResponse.header("X-Foo"), is(nullValue())); // equalTo(20)); + assertThat(connectorResponse.header("gh-limited-by"), + equalTo("search-elapsed-time-shared-grouped")); + // assertThat(uc.getContentEncoding(), nullValue()); + // assertThat(uc.getContentType(), equalTo("application/json; charset=utf-8")); + // assertThat(uc.getContentLength(), equalTo(-1)); + assertThat(connectorResponse.allHeaders(), instanceOf(Map.class)); + assertThat(connectorResponse.allHeaders().size(), greaterThan(25)); + assertThat(connectorResponse.header("Status"), equalTo("403 Forbidden")); + + checkErrorMessageMatches(connectorResponse, + "You have exceeded a secondary rate limit. Please wait a few minutes before you try again"); + GitHubAbuseLimitHandler.FAIL.onError(connectorResponse); + } + }) + .build(); + + gitHub.getMyself(); + assertThat(mockGitHub.getRequestCount(), equalTo(1)); + try { + getTempRepository(); + fail(); + } catch (Exception e) { + assertThat(e, instanceOf(HttpException.class)); + assertThat(e.getMessage(), equalTo("Abuse limit reached")); + } + assertThat(mockGitHub.getRequestCount(), equalTo(2)); + } + + /** + * This is making an assertion about the behaviour of the mock, so it's useful for making sure we're on the right + * mock, but should not be used to validate assumptions about the behaviour of the actual GitHub API. + */ + private static void checkErrorMessageMatches(GitHubConnectorResponse connectorResponse, String substring) + throws IOException { + try (InputStream errorStream = connectorResponse.bodyStream()) { + assertThat(errorStream, notNullValue()); + String errorString = IOUtils.toString(errorStream, StandardCharsets.UTF_8); + assertThat(errorString, containsString(substring)); + } + } + + /** + * Tests the behavior of the GitHub API client when the abuse limit handler is set to WAIT then the handler waits + * appropriately when secondary rate limits are encountered. + * + * @throws Exception + * if any error occurs during the test execution. + */ + @Test + public void testHandler_Wait_Secondary_Limits_Too_Many_Requests() throws Exception { + // Customized response that templates the date to keep things working + snapshotNotAllowed(); + gitHub = getGitHubBuilder().withEndpoint(mockGitHub.apiServer().baseUrl()) + .withAbuseLimitHandler(new GitHubAbuseLimitHandler() { + /** + * Overriding method because the actual method will wait for one minute causing slowness in unit + * tests + */ + @Override + public void onError(@NotNull GitHubConnectorResponse connectorResponse) throws IOException { + // Verify the test data is what we expected it to be for this test case + // assertThat(uc.getDate(), Matchers.greaterThanOrEqualTo(new Date().getTime() - 10000)); + // assertThat(uc.getExpiration(), equalTo(0L)); + // assertThat(uc.getIfModifiedSince(), equalTo(0L)); + // assertThat(uc.getLastModified(), equalTo(1581014017000L)); + assertThat(connectorResponse.request().method(), equalTo("GET")); + assertThat(connectorResponse.statusCode(), equalTo(429)); + assertThat(connectorResponse.request().url().toString(), + endsWith( + "/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests")); + assertThat(connectorResponse.allHeaders(), instanceOf(Map.class)); + assertThat(connectorResponse.header("Status"), equalTo("429 Too Many Requests")); + assertThat(connectorResponse.header("Retry-After"), equalTo("42")); + + checkErrorMessageMatches(connectorResponse, + "You have exceeded a secondary rate limit. Please wait a few minutes before you try again"); + // Because we've overridden onError to bypass the wait, we don't cover the wait calculation + // logic + // Manually invoke it to make sure it's what we intended + long waitTime = parseWaitTime(connectorResponse); + assertThat(waitTime, equalTo(42 * 1000l)); + + GitHubAbuseLimitHandler.FAIL.onError(connectorResponse); + } + }) + .build(); + + gitHub.getMyself(); + assertThat(mockGitHub.getRequestCount(), equalTo(1)); + try { + getTempRepository(); + fail(); + } catch (Exception e) { + assertThat(e, instanceOf(HttpException.class)); + assertThat(e.getMessage(), equalTo("Abuse limit reached")); + } + assertThat(mockGitHub.getRequestCount(), equalTo(2)); + } + + /** + * Tests the behavior of the GitHub API client when the abuse limit handler with a date retry. + * + * @throws Exception + * if any error occurs during the test execution. + */ + @Test + public void testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After() throws Exception { + // Customized response that templates the date to keep things working + snapshotNotAllowed(); + gitHub = getGitHubBuilder().withEndpoint(mockGitHub.apiServer().baseUrl()) + .withAbuseLimitHandler(new GitHubAbuseLimitHandler() { + /** + * Overriding method because the actual method will wait for one minute causing slowness in unit + * tests + */ + @Override + public void onError(@NotNull GitHubConnectorResponse connectorResponse) throws IOException { + // Verify the test data is what we expected it to be for this test case + assertThat(connectorResponse.request().method(), equalTo("GET")); + assertThat(connectorResponse.statusCode(), equalTo(429)); + assertThat(connectorResponse.request().url().toString(), + endsWith( + "/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After")); + assertThat(connectorResponse.header("Status"), equalTo("429 Too Many Requests")); + assertThat(connectorResponse.header("Retry-After"), startsWith("Mon")); + + checkErrorMessageMatches(connectorResponse, + "You have exceeded a secondary rate limit. Please wait a few minutes before you try again"); + + // Because we've overridden onError to bypass the wait, we don't cover the wait calculation + // logic + // Manually invoke it to make sure it's what we intended + long waitTime = parseWaitTime(connectorResponse); + // The exact value here will depend on when the test is run, but it should be positive, and huge + assertThat(waitTime, greaterThan(1000 * 1000l)); + + GitHubAbuseLimitHandler.FAIL.onError(connectorResponse); + } + }) + .build(); + + gitHub.getMyself(); + assertThat(mockGitHub.getRequestCount(), equalTo(1)); + try { + getTempRepository(); + fail(); + } catch (Exception e) { + assertThat(e, instanceOf(HttpException.class)); + assertThat(e.getMessage(), equalTo("Abuse limit reached")); + } + assertThat(mockGitHub.getRequestCount(), equalTo(2)); + } + + /** + * Tests the behavior of the GitHub API client when the abuse limit handler with a no retry after header. + * + * @throws Exception + * if any error occurs during the test execution. + */ + @Test + public void testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After() throws Exception { + // Customized response that templates the date to keep things working + snapshotNotAllowed(); + gitHub = getGitHubBuilder().withEndpoint(mockGitHub.apiServer().baseUrl()) + .withAbuseLimitHandler(new GitHubAbuseLimitHandler() { + /** + * Overriding method because the actual method will wait for one minute causing slowness in unit + * tests + */ + @Override + public void onError(@NotNull GitHubConnectorResponse connectorResponse) throws IOException { + // Verify the test data is what we expected it to be for this test case + assertThat(connectorResponse.request().method(), equalTo("GET")); + assertThat(connectorResponse.statusCode(), equalTo(429)); + assertThat(connectorResponse.request().url().toString(), + endsWith( + "/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After")); + // assertThat(uc.getContentEncoding(), nullValue()); + // assertThat(uc.getContentType(), equalTo("application/json; charset=utf-8")); + assertThat(connectorResponse.allHeaders(), instanceOf(Map.class)); + assertThat(connectorResponse.header("Status"), equalTo("429 Too Many Requests")); + assertThat(connectorResponse.header("Retry-After"), nullValue()); + + checkErrorMessageMatches(connectorResponse, + "You have exceeded a secondary rate limit. Please wait a few minutes before you try again"); + + // Because we've overridden onError to bypass the wait, we don't cover the wait calculation + // logic + // Manually invoke it to make sure it's what we intended + long waitTime = parseWaitTime(connectorResponse); + assertThat(waitTime, greaterThan(60000l)); + + GitHubAbuseLimitHandler.FAIL.onError(connectorResponse); + } + }) + .build(); + + gitHub.getMyself(); + assertThat(mockGitHub.getRequestCount(), equalTo(1)); + + getTempRepository(); + assertThat(mockGitHub.getRequestCount(), equalTo(3)); } } diff --git a/src/test/java/org/kohsuke/github/EnumTest.java b/src/test/java/org/kohsuke/github/EnumTest.java index fb4d96d4ed..778df77bf4 100644 --- a/src/test/java/org/kohsuke/github/EnumTest.java +++ b/src/test/java/org/kohsuke/github/EnumTest.java @@ -1,7 +1,6 @@ package org.kohsuke.github; import org.junit.Test; -import org.kohsuke.github.GHPullRequest.MergeMethod; import static org.hamcrest.CoreMatchers.*; @@ -24,10 +23,14 @@ public void touchEnums() { assertThat(GHCommentAuthorAssociation.values().length, equalTo(8)); + assertThat(GHCommitSearchBuilder.Sort.values().length, equalTo(2)); + assertThat(GHCommitState.values().length, equalTo(4)); assertThat(GHCompare.Status.values().length, equalTo(4)); + assertThat(GHContentSearchBuilder.Sort.values().length, equalTo(2)); + assertThat(GHDeploymentState.values().length, equalTo(7)); assertThat(GHDirection.values().length, equalTo(2)); @@ -36,10 +39,17 @@ public void touchEnums() { assertThat(GHEvent.ALL.symbol(), equalTo("*")); assertThat(GHEvent.PULL_REQUEST.symbol(), equalTo(GHEvent.PULL_REQUEST.toString().toLowerCase())); + assertThat(GHFork.values().length, equalTo(3)); + assertThat(GHFork.PARENT_ONLY.toString(), equalTo("")); + + assertThat(GHIssueQueryBuilder.Sort.values().length, equalTo(3)); + assertThat(GHIssueSearchBuilder.Sort.values().length, equalTo(3)); assertThat(GHIssueState.values().length, equalTo(3)); + assertThat(GHIssueStateReason.values().length, equalTo(3)); + assertThat(GHMarketplaceAccountType.values().length, equalTo(2)); assertThat(GHMarketplaceListAccountBuilder.Sort.values().length, equalTo(2)); @@ -60,10 +70,16 @@ public void touchEnums() { assertThat(GHProject.ProjectState.values().length, equalTo(2)); assertThat(GHProject.ProjectStateFilter.values().length, equalTo(3)); - assertThat(MergeMethod.values().length, equalTo(3)); + assertThat(GHProjectsV2Item.ContentType.values().length, equalTo(4)); + + assertThat(GHProjectsV2ItemChanges.FieldType.values().length, equalTo(6)); + + assertThat(GHPullRequest.MergeMethod.values().length, equalTo(3)); assertThat(GHPullRequestQueryBuilder.Sort.values().length, equalTo(4)); + assertThat(GHPullRequestReviewComment.Side.values().length, equalTo(3)); + assertThat(GHPullRequestReviewEvent.values().length, equalTo(4)); assertThat(GHPullRequestReviewEvent.PENDING.toState(), equalTo(GHPullRequestReviewState.PENDING)); assertThat(GHPullRequestReviewEvent.PENDING.action(), nullValue()); @@ -73,20 +89,34 @@ public void touchEnums() { assertThat(GHPullRequestReviewState.APPROVED.action(), equalTo(GHPullRequestReviewEvent.APPROVE.action())); assertThat(GHPullRequestReviewState.DISMISSED.toEvent(), nullValue()); + assertThat(GHPullRequestSearchBuilder.Sort.values().length, equalTo(4)); + + assertThat(GHReleaseBuilder.MakeLatest.values().length, equalTo(3)); + assertThat(GHRepository.CollaboratorAffiliation.values().length, equalTo(3)); assertThat(GHRepository.ForkSort.values().length, equalTo(3)); assertThat(GHRepository.Visibility.values().length, equalTo(4)); + assertThat(GHRepositoryDiscussion.State.values().length, equalTo(3)); + assertThat(GHRepositorySearchBuilder.Sort.values().length, equalTo(3)); assertThat(GHRepositorySelection.values().length, equalTo(2)); + assertThat(GHTargetType.values().length, equalTo(2)); + assertThat(GHTeam.Role.values().length, equalTo(2)); assertThat(GHTeam.Privacy.values().length, equalTo(3)); assertThat(GHUserSearchBuilder.Sort.values().length, equalTo(3)); - assertThat(GHIssueQueryBuilder.Sort.values().length, equalTo(3)); - } + assertThat(GHVerification.Reason.values().length, equalTo(18)); + + assertThat(GHWorkflowRun.Status.values().length, equalTo(15)); + assertThat(GHWorkflowRun.Conclusion.values().length, equalTo(10)); + assertThat(MarkdownMode.values().length, equalTo(2)); + + assertThat(ReactionContent.values().length, equalTo(8)); + } } diff --git a/src/test/java/org/kohsuke/github/GHLicenseTest.java b/src/test/java/org/kohsuke/github/GHLicenseTest.java index 0ae1730b0f..fc47e72068 100644 --- a/src/test/java/org/kohsuke/github/GHLicenseTest.java +++ b/src/test/java/org/kohsuke/github/GHLicenseTest.java @@ -83,6 +83,7 @@ public void getLicense() throws IOException { GHLicense license = gitHub.getLicense(key); assertThat(license, notNullValue()); assertThat("The name is correct", license.getName(), equalTo("MIT License")); + assertThat("The SPDX ID is correct", license.getSpdxId(), is(equalTo("MIT"))); assertThat("The HTML URL is correct", license.getHtmlUrl(), equalTo(new URL("http://choosealicense.com/licenses/mit/"))); @@ -111,6 +112,7 @@ public void checkRepositoryLicense() throws IOException { GHLicense license = repo.getLicense(); assertThat("The license is populated", license, notNullValue()); assertThat("The key is correct", license.getKey(), equalTo("mit")); + assertThat("The SPDX ID is correct", license.getSpdxId(), is(equalTo("MIT"))); assertThat("The name is correct", license.getName(), equalTo("MIT License")); assertThat("The URL is correct", license.getUrl(), @@ -129,6 +131,7 @@ public void checkRepositoryLicenseAtom() throws IOException { GHLicense license = repo.getLicense(); assertThat("The license is populated", license, notNullValue()); assertThat("The key is correct", license.getKey(), equalTo("mit")); + assertThat("The SPDX ID is correct", license.getSpdxId(), is(equalTo("MIT"))); assertThat("The name is correct", license.getName(), equalTo("MIT License")); assertThat("The URL is correct", license.getUrl(), @@ -148,6 +151,7 @@ public void checkRepositoryLicensePomes() throws IOException { GHLicense license = repo.getLicense(); assertThat("The license is populated", license, notNullValue()); assertThat("The key is correct", license.getKey(), equalTo("apache-2.0")); + assertThat("The SPDX ID is correct", license.getSpdxId(), is(equalTo("Apache-2.0"))); assertThat("The name is correct", license.getName(), equalTo("Apache License 2.0")); assertThat("The URL is correct", license.getUrl(), @@ -181,6 +185,7 @@ public void checkRepositoryFullLicense() throws IOException { GHLicense license = repo.getLicense(); assertThat("The license is populated", license, notNullValue()); assertThat("The key is correct", license.getKey(), equalTo("mit")); + assertThat("The SPDX ID is correct", license.getSpdxId(), is(equalTo("MIT"))); assertThat("The name is correct", license.getName(), equalTo("MIT License")); assertThat("The URL is correct", license.getUrl(), diff --git a/src/test/java/org/kohsuke/github/GHPullRequestTest.java b/src/test/java/org/kohsuke/github/GHPullRequestTest.java index 1af755ffb9..664f447b16 100644 --- a/src/test/java/org/kohsuke/github/GHPullRequestTest.java +++ b/src/test/java/org/kohsuke/github/GHPullRequestTest.java @@ -13,7 +13,18 @@ import java.util.List; import java.util.Optional; -import static org.hamcrest.Matchers.*; +import static org.hamcrest.Matchers.contains; +import static org.hamcrest.Matchers.containsInAnyOrder; +import static org.hamcrest.Matchers.containsString; +import static org.hamcrest.Matchers.empty; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.hasProperty; +import static org.hamcrest.Matchers.hasSize; +import static org.hamcrest.Matchers.instanceOf; +import static org.hamcrest.Matchers.is; +import static org.hamcrest.Matchers.not; +import static org.hamcrest.Matchers.notNullValue; +import static org.hamcrest.Matchers.nullValue; // TODO: Auto-generated Javadoc /** @@ -241,6 +252,8 @@ public void pullRequestReviews() throws Exception { GHPullRequestReview draftReview = p.createReview() .body("Some draft review") .comment("Some niggle", "README.md", 1) + .singleLineComment("A single line comment", "README.md", 2) + .multiLineComment("A multiline comment", "README.md", 2, 3) .create(); assertThat(draftReview.getState(), is(GHPullRequestReviewState.PENDING)); assertThat(draftReview.getBody(), is("Some draft review")); @@ -253,13 +266,51 @@ public void pullRequestReviews() throws Exception { assertThat(review.getCommitId(), notNullValue()); draftReview.submit("Some review comment", GHPullRequestReviewEvent.COMMENT); List comments = review.listReviewComments().toList(); - assertThat(comments.size(), equalTo(1)); + assertThat(comments.size(), equalTo(3)); GHPullRequestReviewComment comment = comments.get(0); assertThat(comment.getBody(), equalTo("Some niggle")); + comment = comments.get(1); + assertThat(comment.getBody(), equalTo("A single line comment")); + assertThat(comment.getPosition(), equalTo(4)); + comment = comments.get(2); + assertThat(comment.getBody(), equalTo("A multiline comment")); + assertThat(comment.getPosition(), equalTo(5)); draftReview = p.createReview().body("Some new review").comment("Some niggle", "README.md", 1).create(); draftReview.delete(); } + /** + * Comments objects in pull request review builder. + */ + @Test + public void commentsInPullRequestReviewBuilder() { + GHPullRequestReviewBuilder.DraftReviewComment draftReviewComment = new GHPullRequestReviewBuilder.DraftReviewComment( + "comment", + "path/to/file.txt", + 1); + assertThat(draftReviewComment.getBody(), equalTo("comment")); + assertThat(draftReviewComment.getPath(), equalTo("path/to/file.txt")); + assertThat(draftReviewComment.getPosition(), equalTo(1)); + + GHPullRequestReviewBuilder.SingleLineDraftReviewComment singleLineDraftReviewComment = new GHPullRequestReviewBuilder.SingleLineDraftReviewComment( + "comment", + "path/to/file.txt", + 2); + assertThat(singleLineDraftReviewComment.getBody(), equalTo("comment")); + assertThat(singleLineDraftReviewComment.getPath(), equalTo("path/to/file.txt")); + assertThat(singleLineDraftReviewComment.getLine(), equalTo(2)); + + GHPullRequestReviewBuilder.MultilineDraftReviewComment multilineDraftReviewComment = new GHPullRequestReviewBuilder.MultilineDraftReviewComment( + "comment", + "path/to/file.txt", + 1, + 2); + assertThat(multilineDraftReviewComment.getBody(), equalTo("comment")); + assertThat(multilineDraftReviewComment.getPath(), equalTo("path/to/file.txt")); + assertThat(multilineDraftReviewComment.getStartLine(), equalTo(1)); + assertThat(multilineDraftReviewComment.getLine(), equalTo(2)); + } + /** * Pull request review comments. * @@ -271,11 +322,25 @@ public void pullRequestReviewComments() throws Exception { String name = "pullRequestReviewComments"; GHPullRequest p = getRepository().createPullRequest(name, "test/stable", "main", "## test"); try { - // System.out.println(p.getUrl()); assertThat(p.listReviewComments().toList(), is(empty())); + + // Call the deprecated method to ensure continued support p.createReviewComment("Sample review comment", p.getHead().getSha(), "README.md", 1); + p.createReviewComment() + .commitId(p.getHead().getSha()) + .body("A single line review comment") + .path("README.md") + .line(2) + .create(); + p.createReviewComment() + .commitId(p.getHead().getSha()) + .body("A multiline review comment") + .path("README.md") + .lines(2, 3) + .create(); List comments = p.listReviewComments().toList(); - assertThat(comments.size(), equalTo(1)); + assertThat(comments.size(), equalTo(3)); + GHPullRequestReviewComment comment = comments.get(0); assertThat(comment.getBody(), equalTo("Sample review comment")); assertThat(comment.getInReplyToId(), equalTo(-1L)); @@ -301,6 +366,15 @@ public void pullRequestReviewComments() throws Exception { assertThat(comment.getHtmlUrl().toString(), containsString("hub4j-test-org/github-api/pull/" + p.getNumber())); + comment = comments.get(1); + assertThat(comment.getBody(), equalTo("A single line review comment")); + assertThat(comment.getLine(), equalTo(2)); + + comment = comments.get(2); + assertThat(comment.getBody(), equalTo("A multiline review comment")); + assertThat(comment.getStartLine(), equalTo(2)); + assertThat(comment.getLine(), equalTo(3)); + comment.createReaction(ReactionContent.EYES); GHReaction toBeRemoved = comment.createReaction(ReactionContent.CONFUSED); comment.createReaction(ReactionContent.ROCKET); @@ -311,7 +385,7 @@ public void pullRequestReviewComments() throws Exception { comment.createReaction(ReactionContent.LAUGH); GHPullRequestReviewCommentReactions commentReactions = p.listReviewComments() .toList() - .get(0) + .get(2) .getReactions(); assertThat(commentReactions.getUrl().toString(), equalTo(comment.getUrl().toString().concat("/reactions"))); assertThat(commentReactions.getTotalCount(), equalTo(8)); @@ -344,19 +418,19 @@ public void pullRequestReviewComments() throws Exception { assertThat(reply.getInReplyToId(), equalTo(comment.getId())); comments = p.listReviewComments().toList(); - assertThat(comments.size(), equalTo(2)); + assertThat(comments.size(), equalTo(4)); comment.update("Updated review comment"); comments = p.listReviewComments().toList(); - comment = comments.get(0); + comment = comments.get(2); assertThat(comment.getBody(), equalTo("Updated review comment")); comment.delete(); comments = p.listReviewComments().toList(); // Reply is still present after delete of original comment, but no longer has replyToId - assertThat(comments.size(), equalTo(1)); - assertThat(comments.get(0).getId(), equalTo(reply.getId())); - assertThat(comments.get(0).getInReplyToId(), equalTo(-1L)); + assertThat(comments.size(), equalTo(3)); + assertThat(comments.get(2).getId(), equalTo(reply.getId())); + assertThat(comments.get(2).getInReplyToId(), equalTo(-1L)); } finally { p.close(); } diff --git a/src/test/java/org/kohsuke/github/GHRepositoryRuleTest.java b/src/test/java/org/kohsuke/github/GHRepositoryRuleTest.java new file mode 100644 index 0000000000..9f176883ed --- /dev/null +++ b/src/test/java/org/kohsuke/github/GHRepositoryRuleTest.java @@ -0,0 +1,107 @@ +package org.kohsuke.github; + +import org.junit.Test; +import org.kohsuke.github.GHRepositoryRule.AlertsThreshold; +import org.kohsuke.github.GHRepositoryRule.CodeScanningTool; +import org.kohsuke.github.GHRepositoryRule.Operator; +import org.kohsuke.github.GHRepositoryRule.Parameter; +import org.kohsuke.github.GHRepositoryRule.Parameters; +import org.kohsuke.github.GHRepositoryRule.SecurityAlertsThreshold; +import org.kohsuke.github.GHRepositoryRule.StatusCheckConfiguration; +import org.kohsuke.github.GHRepositoryRule.StringParameter; +import org.kohsuke.github.GHRepositoryRule.WorkflowFileReference; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.is; +import static org.hamcrest.Matchers.notNullValue; +import static org.hamcrest.Matchers.nullValue; + +/** + * Test class for GHRepositoryRule. + */ +public class GHRepositoryRuleTest { + /** + * Test to cover the constructor of the Parameters class. + */ + @Test + public void testParameters() { + assertThat(Parameters.REQUIRED_DEPLOYMENT_ENVIRONMENTS.getType(), is(notNullValue())); + assertThat(Parameters.REQUIRED_STATUS_CHECKS.getType(), is(notNullValue())); + assertThat(Parameters.OPERATOR.getType(), is(notNullValue())); + assertThat(Parameters.WORKFLOWS.getType(), is(notNullValue())); + assertThat(Parameters.CODE_SCANNING_TOOLS.getType(), is(notNullValue())); + assertThat(new StringParameter("any").getType(), is(notNullValue())); + } + + /** + * Tests to cover StatusCheckConfiguration class. + */ + @Test + public void testStatusCheckConfiguration() { + StatusCheckConfiguration statusCheckConfiguration = new StatusCheckConfiguration(); + statusCheckConfiguration = new StatusCheckConfiguration(); + assertThat(statusCheckConfiguration.getContext(), is(nullValue())); + assertThat(statusCheckConfiguration.getIntegrationId(), is(nullValue())); + } + + /** + * Tests to cover WorkflowFileReference class. + */ + @Test + public void testWorkflowFileReference() { + WorkflowFileReference workflowFileReference = new WorkflowFileReference(); + assertThat(workflowFileReference.getPath(), is(nullValue())); + assertThat(workflowFileReference.getRef(), is(nullValue())); + assertThat(workflowFileReference.getRepositoryId(), is(equalTo(0L))); + assertThat(workflowFileReference.getSha(), is(nullValue())); + } + + /** + * Tests to cover CodeScanningTool class. + */ + @Test + public void testCodeScanningTool() { + CodeScanningTool codeScanningTool = new CodeScanningTool(); + codeScanningTool = new CodeScanningTool(); + assertThat(codeScanningTool.getAlertsThreshold(), is(nullValue())); + assertThat(codeScanningTool.getSecurityAlertsThreshold(), is(nullValue())); + assertThat(codeScanningTool.getTool(), is(nullValue())); + } + + /** + * Tests to cover AlertsThreshold enum. + */ + @Test + public void testAlertsThreshold() { + assertThat(AlertsThreshold.ERRORS, is(notNullValue())); + } + + /** + * Tests to cover SecurityAlertsThreshold enum. + */ + @Test + public void testSecurityAlertsThreshold() { + assertThat(SecurityAlertsThreshold.HIGH_OR_HIGHER, is(notNullValue())); + } + + /** + * Tests to cover Operator enum. + */ + @Test + public void testOperator() { + assertThat(Operator.ENDS_WITH, is(notNullValue())); + } + + /** + * Tests that apply on null JsonNode returns null. + * + * @throws Exception + * if something goes wrong. + */ + @Test + public void testParameterReturnsNullOnNullArg() throws Exception { + Parameter parameter = new StringParameter("any"); + assertThat(parameter.apply(null, null), is(nullValue())); + } +} diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java index dc42b3f814..ba0034464b 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java @@ -46,6 +46,36 @@ private GHRepository getRepository(GitHub gitHub) throws IOException { return gitHub.getOrganization("hub4j-test-org").getRepository("github-api"); } + /** + * Test sync of fork + * + * @throws IOException + * Signals that an I/O exception has occurred. + */ + @Test + public void sync() throws IOException { + GHRepository r = getRepository(); + GHBranchSync sync = r.sync("main"); + assertThat(sync.getOwner().getFullName(), equalTo("hub4j-test-org/github-api")); + assertThat(sync.getMessage(), equalTo("Successfully fetched and fast-forwarded from upstream github-api:main")); + assertThat(sync.getMergeType(), equalTo("fast-forward")); + assertThat(sync.getBaseBranch(), equalTo("github-api:main")); + } + + /** + * Test sync of repository not a fork + * + * @throws IOException + * Signals that an I/O exception has occurred. + */ + @Test(expected = HttpException.class) + public void syncNoFork() throws IOException { + GHRepository r = getRepository(); + GHBranchSync sync = r.sync("main"); + fail("Should have thrown an exception"); + + } + /** * Test zipball. * @@ -491,7 +521,8 @@ public void getPermission() throws Exception { } if (false) { - // can't easily test this; there's no private repository visible to the test user + // can't easily test this; there's no private repository visible to the test + // user r = gitHub.getOrganization("cloudbees").getRepository("private-repo-not-writable-by-me"); try { r.getPermission("jglick"); @@ -1108,7 +1139,8 @@ public void listRefs() throws Exception { assertThat(ghRefsWithPrefix.get(0).getRef(), equalTo(ghRefs.get(0).getRef())); // git/refs/heads/gh-pages - // passing a specific ref to listRefs will fail to parse due to returning a single item not an array + // passing a specific ref to listRefs will fail to parse due to returning a + // single item not an array try { ghRefs = repo.listRefs("heads/gh-pages").toList(); fail(); @@ -1759,6 +1791,83 @@ public void testSearchPullRequests() throws Exception { this.verifySingleResult(searchResult, mergedPR); } + /** + * Test getTopReferralPaths. + * + * @throws Exception + * the exception + */ + @Test + public void testGetTopReferralPaths() throws Exception { + GHRepository repository = gitHub.getRepository("ihrigb/node-doorbird"); + List referralPaths = repository.getTopReferralPaths(); + assertThat(referralPaths.size(), greaterThan(0)); + } + + /** + * Test getTopReferralSources. + * + * @throws Exception + * the exception + */ + @Test + public void testGetTopReferralSources() throws Exception { + GHRepository repository = gitHub.getRepository("ihrigb/node-doorbird"); + List referralSources = repository.getTopReferralSources(); + assertThat(referralSources.size(), greaterThan(0)); + } + + /** + * Test getRulesForBranch. + * + * @throws Exception + * the exception + */ + @Test + public void testGetRulesForBranch() throws Exception { + GHRepository repository = gitHub.getRepository("ihrigb/node-doorbird"); + List rules = repository.listRulesForBranch("main").toList(); + assertThat(rules.size(), equalTo(3)); + + GHRepositoryRule rule = rules.get(0); + assertThat(rule.getType(), is(equalTo(GHRepositoryRule.Type.DELETION))); + assertThat(rule.getRulesetSourceType(), is(equalTo(GHRepositoryRule.RulesetSourceType.REPOSITORY))); + assertThat(rule.getRulesetSource(), is(equalTo("ihrigb/node-doorbird"))); + assertThat(rule.getRulesetId(), is(equalTo(1170520L))); + + rule = rules.get(1); + assertThat(rule.getType(), is(equalTo(GHRepositoryRule.Type.NON_FAST_FORWARD))); + assertThat(rule.getRulesetSourceType(), is(equalTo(GHRepositoryRule.RulesetSourceType.REPOSITORY))); + assertThat(rule.getRulesetSource(), is(equalTo("ihrigb/node-doorbird"))); + assertThat(rule.getRulesetId(), is(equalTo(1170520L))); + + rule = rules.get(2); + assertThat(rule.getType(), is(equalTo(GHRepositoryRule.Type.PULL_REQUEST))); + assertThat(rule.getRulesetSourceType(), is(equalTo(GHRepositoryRule.RulesetSourceType.REPOSITORY))); + assertThat(rule.getRulesetSource(), is(equalTo("ihrigb/node-doorbird"))); + assertThat(rule.getRulesetId(), is(equalTo(1170520L))); + + // check parameters + assertThat(rule.getParameter(GHRepositoryRule.Parameters.NEGATE).isPresent(), is(equalTo(false))); + assertThat(rule.getParameter(GHRepositoryRule.Parameters.REQUIRED_APPROVING_REVIEW_COUNT).get(), + is(equalTo(1))); + assertThat(rule.getParameter(GHRepositoryRule.Parameters.DISMISS_STALE_REVIEWS_ON_PUSH).get(), + is(equalTo(true))); + assertThat(rule.getParameter(GHRepositoryRule.Parameters.REQUIRE_CODE_OWNER_REVIEW).get(), is(equalTo(false))); + } + + /** + * Test getVulnerabilityAlerts. + * + * @throws Exception + * the exception + */ + @Test + public void testIsVulnerabilityAlertsEnabled() throws Exception { + GHRepository repository = gitHub.getRepository("ihrigb/node-doorbird"); + assertThat(repository.isVulnerabilityAlertsEnabled(), is(true)); + } + private void verifyEmptyResult(PagedSearchIterable searchResult) { assertThat(searchResult.getTotalCount(), is(0)); } diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTrafficReferralBaseTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTrafficReferralBaseTest.java new file mode 100644 index 0000000000..78cd6d2520 --- /dev/null +++ b/src/test/java/org/kohsuke/github/GHRepositoryTrafficReferralBaseTest.java @@ -0,0 +1,23 @@ +package org.kohsuke.github; + +import org.junit.Test; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.is; + +/** + * Unit test for {@link GHRepositoryTrafficReferralBase}. + */ +public class GHRepositoryTrafficReferralBaseTest { + + /** + * Test the constructor. + */ + @Test + public void test() { + GHRepositoryTrafficReferralBase testee = new GHRepositoryTrafficReferralBase(1, 2); + assertThat(testee.getCount(), is(equalTo(1))); + assertThat(testee.getUniques(), is(equalTo(2))); + } +} diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralPathTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralPathTest.java new file mode 100644 index 0000000000..b1de0dff72 --- /dev/null +++ b/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralPathTest.java @@ -0,0 +1,25 @@ +package org.kohsuke.github; + +import org.junit.Test; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.is; + +/** + * Unit tests for {@link GHRepositoryTrafficTopReferralPath}. + */ +public class GHRepositoryTrafficTopReferralPathTest { + + /** + * Test the constructor. + */ + @Test + public void test() { + GHRepositoryTrafficTopReferralPath testee = new GHRepositoryTrafficTopReferralPath(1, 2, "path", "title"); + assertThat(testee.getCount(), is(equalTo(1))); + assertThat(testee.getUniques(), is(equalTo(2))); + assertThat(testee.getPath(), is(equalTo("path"))); + assertThat(testee.getTitle(), is(equalTo("title"))); + } +} diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralSourcesTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralSourcesTest.java new file mode 100644 index 0000000000..9125f29080 --- /dev/null +++ b/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralSourcesTest.java @@ -0,0 +1,24 @@ +package org.kohsuke.github; + +import org.junit.Test; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.is; + +/** + * Unit test for {@link GHRepositoryTrafficTopReferralSources}. + */ +public class GHRepositoryTrafficTopReferralSourcesTest { + + /** + * Test the constructor. + */ + @Test + public void test() { + GHRepositoryTrafficTopReferralSources testee = new GHRepositoryTrafficTopReferralSources(1, 2, "referrer"); + assertThat(testee.getCount(), is(equalTo(1))); + assertThat(testee.getUniques(), is(equalTo(2))); + assertThat(testee.getReferrer(), is(equalTo("referrer"))); + } +} diff --git a/src/test/java/org/kohsuke/github/GHUserTest.java b/src/test/java/org/kohsuke/github/GHUserTest.java index 61a89a2389..5e67bf6451 100644 --- a/src/test/java/org/kohsuke/github/GHUserTest.java +++ b/src/test/java/org/kohsuke/github/GHUserTest.java @@ -3,6 +3,7 @@ import org.junit.Test; import java.io.IOException; +import java.time.Instant; import java.util.*; import static org.hamcrest.CoreMatchers.*; @@ -227,4 +228,20 @@ public void verifyLdapdn() throws IOException { GHUser u = gitHub.getUser("kartikpatodi"); assertThat(u.getLdapDn().orElse(""), not(emptyString())); } + + /** + * Verify suspended_at. + * + * @throws IOException + * Signals that an I/O exception has occurred. + */ + @Test + public void verifySuspendedAt() throws IOException { + GHUser normal = gitHub.getUser("normal"); + assertThat(normal.getSuspendedAt(), is(nullValue())); + + GHUser suspended = gitHub.getUser("suspended"); + Date suspendedAt = new Date(Instant.parse("2024-08-08T00:00:00Z").toEpochMilli()); + assertThat(suspended.getSuspendedAt(), equalTo(suspendedAt)); + } } diff --git a/src/test/resources/META-INF/spring/aot.factories b/src/test/resources/META-INF/spring/aot.factories new file mode 100644 index 0000000000..f81c736a2b --- /dev/null +++ b/src/test/resources/META-INF/spring/aot.factories @@ -0,0 +1 @@ +org.springframework.aot.hint.RuntimeHintsRegistrar=org.kohsuke.aot.AotTestRuntimeHints \ No newline at end of file diff --git a/src/test/resources/application-test.yml b/src/test/resources/application-test.yml new file mode 100644 index 0000000000..efd0a3a231 --- /dev/null +++ b/src/test/resources/application-test.yml @@ -0,0 +1,4 @@ +# YAML for Spring Boot AOT tests +spring: + main: + web-application-type: none \ No newline at end of file diff --git a/src/test/resources/no-reflect-and-serialization-list b/src/test/resources/no-reflect-and-serialization-list new file mode 100644 index 0000000000..4da5b76fe7 --- /dev/null +++ b/src/test/resources/no-reflect-and-serialization-list @@ -0,0 +1,91 @@ +org.kohsuke.github.AbuseLimitHandler +org.kohsuke.github.AbuseLimitHandler$1 +org.kohsuke.github.AbuseLimitHandler$2 +org.kohsuke.github.GHDiscussion$Creator +org.kohsuke.github.GHDiscussion$Setter +org.kohsuke.github.GHDiscussion$Updater +org.kohsuke.github.GHException +org.kohsuke.github.GHFileNotFoundException +org.kohsuke.github.GHGistUpdater +org.kohsuke.github.GHHooks +org.kohsuke.github.GHHooks$Context +org.kohsuke.github.GHHooks$OrgContext +org.kohsuke.github.GHHooks$RepoContext +org.kohsuke.github.GHIOException +org.kohsuke.github.GHPersonSet +org.kohsuke.github.GHReleaseUpdater +org.kohsuke.github.GitHub +org.kohsuke.github.GitHub$DependentAuthorizationProvider +org.kohsuke.github.GitHub$LoginLoadingUserAuthorizationProvider +org.kohsuke.github.GitHubAbuseLimitHandler +org.kohsuke.github.GitHubClient +org.kohsuke.github.GitHubClient$BodyHandler +org.kohsuke.github.GitHubClient$GHApiInfo +org.kohsuke.github.GitHubClient$RetryRequestException +org.kohsuke.github.GitHubConnectorResponseErrorHandler +org.kohsuke.github.GitHubPageIterator +org.kohsuke.github.GitHubRateLimitChecker +org.kohsuke.github.GitHubRateLimitHandler +org.kohsuke.github.HttpConnector +org.kohsuke.github.HttpException +org.kohsuke.github.PagedIterator +org.kohsuke.github.RateLimitChecker +org.kohsuke.github.RateLimitHandler +org.kohsuke.github.Reactable +org.kohsuke.github.Refreshable +org.kohsuke.github.Requester +org.kohsuke.github.TrafficInfo +org.kohsuke.github.authorization.AnonymousAuthorizationProvider +org.kohsuke.github.authorization.AppInstallationAuthorizationProvider +org.kohsuke.github.authorization.AppInstallationAuthorizationProvider$AppInstallationProvider +org.kohsuke.github.authorization.AuthorizationProvider +org.kohsuke.github.authorization.ImmutableAuthorizationProvider +org.kohsuke.github.authorization.ImmutableAuthorizationProvider$UserProvider +org.kohsuke.github.authorization.OrgAppInstallationAuthorizationProvider +org.kohsuke.github.authorization.UserAuthorizationProvider +org.kohsuke.github.connector.GitHubConnector +org.kohsuke.github.connector.GitHubConnectorRequest +org.kohsuke.github.connector.GitHubConnectorResponse +org.kohsuke.github.connector.GitHubConnectorResponse$ByteArrayResponse +org.kohsuke.github.connector.GitHubConnectorResponseHttpUrlConnectionAdapter +org.kohsuke.github.example.dataobject.ReadOnlyObjects +org.kohsuke.github.example.dataobject.ReadOnlyObjects$GHMetaExample +org.kohsuke.github.example.dataobject.ReadOnlyObjects$GHMetaGettersFinal +org.kohsuke.github.example.dataobject.ReadOnlyObjects$GHMetaGettersFinalCreator +org.kohsuke.github.example.dataobject.ReadOnlyObjects$GHMetaGettersUnmodifiable +org.kohsuke.github.example.dataobject.ReadOnlyObjects$GHMetaPackage +org.kohsuke.github.example.dataobject.ReadOnlyObjects$GHMetaPublic +org.kohsuke.github.extras.ImpatientHttpConnector +org.kohsuke.github.extras.authorization.JwtBuilderUtil +org.kohsuke.github.extras.authorization.JwtBuilderUtil$1 +org.kohsuke.github.extras.authorization.JwtBuilderUtil$DefaultBuilderImpl +org.kohsuke.github.extras.authorization.JwtBuilderUtil$IJwtBuilder +org.kohsuke.github.extras.authorization.JwtBuilderUtil$ReflectionBuilderImpl +org.kohsuke.github.extras.authorization.JWTTokenProvider +org.kohsuke.github.extras.HttpClientGitHubConnector +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$1 +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$BufferedRequestBody +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$DelegatingHttpsURLConnection +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$OkHttpsURLConnection +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$OkHttpURLConnection +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$OkHttpURLConnection$NetworkInterceptor +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$OutputStreamRequestBody$1 +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$OutputStreamRequestBody +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$ResponseBodyInputStream +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$StreamedRequestBody +org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$UnexpectedException +org.kohsuke.github.extras.okhttp3.OkHttpConnector +org.kohsuke.github.extras.okhttp3.OkHttpGitHubConnector +org.kohsuke.github.extras.okhttp3.OkHttpGitHubConnector$OkHttpGitHubConnectorResponse +org.kohsuke.github.extras.OkHttp3Connector +org.kohsuke.github.extras.OkHttpConnector +org.kohsuke.github.function.FunctionThrows +org.kohsuke.github.function.InputStreamFunction +org.kohsuke.github.function.SupplierThrows +org.kohsuke.github.internal.DefaultGitHubConnector +org.kohsuke.github.internal.EnumUtils +org.kohsuke.github.internal.GitHubConnectorHttpConnectorAdapter +org.kohsuke.github.internal.GitHubConnectorHttpConnectorAdapter$HttpURLConnectionGitHubConnectorResponse +org.kohsuke.github.internal.Previews +org.kohsuke.github.EnterpriseManagedSupport \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/__files/1-user.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/__files/1-user.json new file mode 100644 index 0000000000..467313f149 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/__files/1-user.json @@ -0,0 +1,45 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 181, + "public_gists": 7, + "followers": 146, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2020-02-06T17:29:39Z", + "private_gists": 8, + "total_private_repos": 10, + "owned_private_repos": 0, + "disk_usage": 33697, + "collaborators": 0, + "two_factor_authentication": true, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/__files/3-r_h_t_fail.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/__files/3-r_h_t_fail.json new file mode 100644 index 0000000000..4cb1b145af --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/__files/3-r_h_t_fail.json @@ -0,0 +1,126 @@ +{ + "id": 238757196, + "node_id": "MDEwOlJlcG9zaXRvcnkyMzg3NTcxOTY=", + "name": "temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "full_name": "hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "description": "A test repository for testing the github-api project: temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/deployments", + "created_at": "2020-02-06T18:33:39Z", + "updated_at": "2020-02-06T18:33:43Z", + "pushed_at": "2020-02-06T18:33:41Z", + "git_url": "git://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "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, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "delete_branch_on_merge": false, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "network_count": 0, + "subscribers_count": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/mappings/1-user.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/mappings/1-user.json new file mode 100644 index 0000000000..4133546851 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "a60baf84-5b5c-4f86-af3d-cab0d609c7b2", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4930", + "X-RateLimit-Reset": "{{now offset='3 seconds' format='unix'}}", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"1cb30f031c67c499473b3aad01c7f7a5\"", + "Last-Modified": "Thu, 06 Feb 2020 17:29:39 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CC37:2605:3F884:4E941:5E3C5BFC" + } + }, + "uuid": "a60baf84-5b5c-4f86-af3d-cab0d609c7b2", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/mappings/2-r_h_t_fail.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/mappings/2-r_h_t_fail.json new file mode 100644 index 0000000000..d1127227f9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/mappings/2-r_h_t_fail.json @@ -0,0 +1,52 @@ +{ + "id": "79fb1092-8bf3-4274-bc8e-ca126c9d9261", + "name": "repos_hub4j-test-org_temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "request": { + "url": "/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 403, + "body": "{\"message\":\"You have exceeded a secondary rate limit. Please wait a few minutes before you try again\"}", + "headers": { + "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "403 Forbidden", + "gh-limited-by": "search-elapsed-time-shared-grouped", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4000", + "X-RateLimit-Reset": "{{testStartDate offset='3 seconds' format='unix'}}", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"7ff3c96399f7ddf6129622d675ca9935\"", + "Last-Modified": "Thu, 06 Feb 2020 18:33:37 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, gh-limited-by, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CC37:2605:3F982:4E949:5E3C5BFC" + } + }, + "uuid": "79fb1092-8bf3-4274-bc8e-ca126c9d9261", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-hub4j-test-org-temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests-2", + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/mappings/3-r_h_t_fail.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/mappings/3-r_h_t_fail.json new file mode 100644 index 0000000000..a2dc66b59d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests/mappings/3-r_h_t_fail.json @@ -0,0 +1,49 @@ +{ + "id": "79fb1092-8bf3-4274-bc8e-ca126c9d9261", + "name": "repos_hub4j-test-org_temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "request": { + "url": "/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 429, + "body": "{\"message\":\"You have exceeded a secondary rate limit. Please wait a few minutes before you try again\"}", + "headers": { + "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "429 Too Many Requests", + "Retry-After": "42", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"7ff3c96399f7ddf6129622d675ca9935\"", + "Last-Modified": "Thu, 06 Feb 2020 18:33:37 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, gh-limited-by, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CC37:2605:3F982:4E949:5E3C5BFC" + } + }, + "uuid": "79fb1092-8bf3-4274-bc8e-ca126c9d9261", + "persistent": true, + "scenarioName": "scenario-4-repos-hub4j-test-org-temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-4-repos-hub4j-test-org-temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests-2", + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/__files/1-user.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/__files/1-user.json new file mode 100644 index 0000000000..467313f149 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/__files/1-user.json @@ -0,0 +1,45 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 181, + "public_gists": 7, + "followers": 146, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2020-02-06T17:29:39Z", + "private_gists": 8, + "total_private_repos": 10, + "owned_private_repos": 0, + "disk_usage": 33697, + "collaborators": 0, + "two_factor_authentication": true, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/__files/3-r_h_t_fail.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/__files/3-r_h_t_fail.json new file mode 100644 index 0000000000..5733e9a2d9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/__files/3-r_h_t_fail.json @@ -0,0 +1,126 @@ +{ + "id": 238757196, + "node_id": "MDEwOlJlcG9zaXRvcnkyMzg3NTcxOTY=", + "name": "temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "full_name": "hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "description": "A test repository for testing the github-api project: temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/deployments", + "created_at": "2020-02-06T18:33:39Z", + "updated_at": "2020-02-06T18:33:43Z", + "pushed_at": "2020-02-06T18:33:41Z", + "git_url": "git://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "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, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "delete_branch_on_merge": false, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "network_count": 0, + "subscribers_count": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/mappings/1-user.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/mappings/1-user.json new file mode 100644 index 0000000000..4133546851 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "a60baf84-5b5c-4f86-af3d-cab0d609c7b2", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4930", + "X-RateLimit-Reset": "{{now offset='3 seconds' format='unix'}}", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"1cb30f031c67c499473b3aad01c7f7a5\"", + "Last-Modified": "Thu, 06 Feb 2020 17:29:39 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CC37:2605:3F884:4E941:5E3C5BFC" + } + }, + "uuid": "a60baf84-5b5c-4f86-af3d-cab0d609c7b2", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/mappings/2-r_h_t_fail.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/mappings/2-r_h_t_fail.json new file mode 100644 index 0000000000..41af8b707d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/mappings/2-r_h_t_fail.json @@ -0,0 +1,52 @@ +{ + "id": "79fb1092-8bf3-4274-bc8e-ca126c9d9261", + "name": "repos_hub4j-test-org_temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "request": { + "url": "/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 403, + "body": "{\"message\":\"You have exceeded a secondary rate limit. Please wait a few minutes before you try again\"}", + "headers": { + "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "403 Forbidden", + "gh-limited-by": "search-elapsed-time-shared-grouped", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4000", + "X-RateLimit-Reset": "{{testStartDate offset='3 seconds' format='unix'}}", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"7ff3c96399f7ddf6129622d675ca9935\"", + "Last-Modified": "Thu, 06 Feb 2020 18:33:37 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, gh-limited-by, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CC37:2605:3F982:4E949:5E3C5BFC" + } + }, + "uuid": "79fb1092-8bf3-4274-bc8e-ca126c9d9261", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-hub4j-test-org-temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After-2", + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/mappings/3-r_h_t_fail.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/mappings/3-r_h_t_fail.json new file mode 100644 index 0000000000..a29ef6ac2d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After/mappings/3-r_h_t_fail.json @@ -0,0 +1,49 @@ +{ + "id": "79fb1092-8bf3-4274-bc8e-ca126c9d9261", + "name": "repos_hub4j-test-org_temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "request": { + "url": "/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 429, + "body": "{\"message\":\"You have exceeded a secondary rate limit. Please wait a few minutes before you try again\"}", + "headers": { + "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "429 Too Many Requests", + "Retry-After": "Mon, 21 Oct 2115 07:28:00 GMT", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"7ff3c96399f7ddf6129622d675ca9935\"", + "Last-Modified": "Thu, 06 Feb 2020 18:33:37 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, gh-limited-by, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CC37:2605:3F982:4E949:5E3C5BFC" + } + }, + "uuid": "79fb1092-8bf3-4274-bc8e-ca126c9d9261", + "persistent": true, + "scenarioName": "scenario-4-repos-hub4j-test-org-temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-4-repos-hub4j-test-org-temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_Date_Retry_After-2", + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/__files/1-user.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/__files/1-user.json new file mode 100644 index 0000000000..467313f149 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/__files/1-user.json @@ -0,0 +1,45 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 181, + "public_gists": 7, + "followers": 146, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2020-02-06T17:29:39Z", + "private_gists": 8, + "total_private_repos": 10, + "owned_private_repos": 0, + "disk_usage": 33697, + "collaborators": 0, + "two_factor_authentication": true, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/__files/3-r_h_t_fail.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/__files/3-r_h_t_fail.json new file mode 100644 index 0000000000..4cb1b145af --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/__files/3-r_h_t_fail.json @@ -0,0 +1,126 @@ +{ + "id": 238757196, + "node_id": "MDEwOlJlcG9zaXRvcnkyMzg3NTcxOTY=", + "name": "temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "full_name": "hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "description": "A test repository for testing the github-api project: temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests/deployments", + "created_at": "2020-02-06T18:33:39Z", + "updated_at": "2020-02-06T18:33:43Z", + "pushed_at": "2020-02-06T18:33:41Z", + "git_url": "git://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests", + "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, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "delete_branch_on_merge": false, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "network_count": 0, + "subscribers_count": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/mappings/1-user.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/mappings/1-user.json new file mode 100644 index 0000000000..4133546851 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "a60baf84-5b5c-4f86-af3d-cab0d609c7b2", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4930", + "X-RateLimit-Reset": "{{now offset='3 seconds' format='unix'}}", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"1cb30f031c67c499473b3aad01c7f7a5\"", + "Last-Modified": "Thu, 06 Feb 2020 17:29:39 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CC37:2605:3F884:4E941:5E3C5BFC" + } + }, + "uuid": "a60baf84-5b5c-4f86-af3d-cab0d609c7b2", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/mappings/3-r_h_t_fail.json b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/mappings/3-r_h_t_fail.json new file mode 100644 index 0000000000..d6522df8e3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AbuseLimitHandlerTest/wiremock/testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After/mappings/3-r_h_t_fail.json @@ -0,0 +1,49 @@ +{ + "id": "79fb1092-8bf3-4274-bc8e-ca126c9d9261", + "name": "repos_hub4j-test-org_temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After", + "request": { + "url": "/repos/hub4j-test-org/temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 429, + "body": "{\"message\":\"You have exceeded a secondary rate limit. Please wait a few minutes before you try again\"}", + "headers": { + "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "429 Too Many Requests", + "gh-limited-by": "search-elapsed-time-shared-grouped", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"7ff3c96399f7ddf6129622d675ca9935\"", + "Last-Modified": "Thu, 06 Feb 2020 18:33:37 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, gh-limited-by, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CC37:2605:3F982:4E949:5E3C5BFC" + } + }, + "uuid": "79fb1092-8bf3-4274-bc8e-ca126c9d9261", + "persistent": true, + "scenarioName": "scenario-4-repos-hub4j-test-org-temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-4-repos-hub4j-test-org-temp-testHandler_Wait_Secondary_Limits_Too_Many_Requests_No_Retry_After-2", + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/__files/4-r_h_g_pulls.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/__files/4-r_h_g_pulls.json index 40101121d0..f981e39de2 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/__files/4-r_h_g_pulls.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/__files/4-r_h_g_pulls.json @@ -361,4 +361,4 @@ "additions": 1, "deletions": 1, "changed_files": 1 -} +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/1-user.json index 4994365297..4a175d1c5f 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/1-user.json @@ -1,42 +1,42 @@ { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", "type": "User", "site_admin": false, - "name": "Vasilis Gakias", - "company": null, + "name": "Maxime Wiewiora", + "company": "@neofacto", "blog": "", - "location": "greece", - "email": "vasileios.gakias@gmail.com", + "location": "France", + "email": null, "hireable": null, "bio": null, "twitter_username": null, - "public_repos": 14, + "public_repos": 6, "public_gists": 0, - "followers": 2, - "following": 2, - "created_at": "2016-11-10T23:20:00Z", - "updated_at": "2022-06-19T00:21:42Z", + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", "private_gists": 0, - "total_private_repos": 0, - "owned_private_repos": 0, - "disk_usage": 12317, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, "collaborators": 0, - "two_factor_authentication": false, + "two_factor_authentication": true, "plan": { "name": "free", "space": 976562499, diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 5853c04f14..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855255, - "node_id": "REA_lATODFTdCc410MpvzgovC1c", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "confused", - "created_at": "2022-06-21T17:18:21Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-users_maximevw.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-users_maximevw.json new file mode 100644 index 0000000000..4a175d1c5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/10-users_maximevw.json @@ -0,0 +1,46 @@ +{ + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false, + "name": "Maxime Wiewiora", + "company": "@neofacto", + "blog": "", + "location": "France", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", + "private_gists": 0, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, + "collaborators": 0, + "two_factor_authentication": true, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..5846bcbde8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847270, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mY", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2024-06-16T10:20:06Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index fa020ac370..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/11-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855257, - "node_id": "REA_lATODFTdCc410MpvzgovC1k", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "rocket", - "created_at": "2022-06-21T17:18:22Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..7b30530825 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847271, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mc", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2024-06-16T10:20:07Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 61daf80e73..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/12-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855259, - "node_id": "REA_lATODFTdCc410MpvzgovC1s", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "hooray", - "created_at": "2022-06-21T17:18:23Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..adb1a4a8c0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847272, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mg", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2024-06-16T10:20:07Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 88397d87e2..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/13-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855262, - "node_id": "REA_lATODFTdCc410MpvzgovC14", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "heart", - "created_at": "2022-06-21T17:18:23Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..cf82217ca3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847273, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mk", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2024-06-16T10:20:07Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 9d4e4b26b0..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/14-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855266, - "node_id": "REA_lATODFTdCc410MpvzgovC2I", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "-1", - "created_at": "2022-06-21T17:18:24Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..186a1e3026 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847274, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mo", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2024-06-16T10:20:08Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 3112bbcd98..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/15-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855267, - "node_id": "REA_lATODFTdCc410MpvzgovC2M", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "+1", - "created_at": "2022-06-21T17:18:25Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..a2d03902b2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847275, + "node_id": "REA_lATODFTdCc5h24aPzg8C4ms", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2024-06-16T10:20:08Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 40782b3614..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/16-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855270, - "node_id": "REA_lATODFTdCc410MpvzgovC2Y", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "laugh", - "created_at": "2022-06-21T17:18:25Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_456_comments.json deleted file mode 100644 index 16583d680f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,69 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "body": "Sample review comment", - "created_at": "2022-06-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:19Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "total_count": 8, - "+1": 1, - "-1": 1, - "laugh": 1, - "hooray": 1, - "confused": 1, - "heart": 1, - "rocket": 1, - "eyes": 1 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..2978cb7afa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/17-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847276, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mw", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2024-06-16T10:20:08Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/18-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/18-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..dec53e2a7c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/18-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847277, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m0", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2024-06-16T10:20:09Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..93118c5473 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_484_comments.json @@ -0,0 +1,206 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "original_position": 1, + "position": 1, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A multiline review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:05Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 8, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 1, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index e17184fe3b..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/19-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,184 +0,0 @@ -[ - { - "id": 170855251, - "node_id": "REA_lATODFTdCc410MpvzgovC1M", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "eyes", - "created_at": "2022-06-21T17:18:21Z" - }, - { - "id": 170855257, - "node_id": "REA_lATODFTdCc410MpvzgovC1k", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "rocket", - "created_at": "2022-06-21T17:18:22Z" - }, - { - "id": 170855259, - "node_id": "REA_lATODFTdCc410MpvzgovC1s", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "hooray", - "created_at": "2022-06-21T17:18:23Z" - }, - { - "id": 170855262, - "node_id": "REA_lATODFTdCc410MpvzgovC14", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "heart", - "created_at": "2022-06-21T17:18:23Z" - }, - { - "id": 170855266, - "node_id": "REA_lATODFTdCc410MpvzgovC2I", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "-1", - "created_at": "2022-06-21T17:18:24Z" - }, - { - "id": 170855267, - "node_id": "REA_lATODFTdCc410MpvzgovC2M", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "+1", - "created_at": "2022-06-21T17:18:25Z" - }, - { - "id": 170855270, - "node_id": "REA_lATODFTdCc410MpvzgovC2Y", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "laugh", - "created_at": "2022-06-21T17:18:25Z" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/2-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/2-orgs_hub4j-test-org.json index 628aa16924..a6ece8248a 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/2-orgs_hub4j-test-org.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/2-orgs_hub4j-test-org.json @@ -20,19 +20,20 @@ "is_verified": false, "has_organization_projects": true, "has_repository_projects": true, - "public_repos": 50, + "public_repos": 27, "public_gists": 0, - "followers": 0, + "followers": 2, "following": 0, "html_url": "https://github.com/hub4j-test-org", "created_at": "2014-05-10T19:39:11Z", "updated_at": "2020-06-04T05:56:10Z", + "archived_at": null, "type": "Organization", - "total_private_repos": 4, - "owned_private_repos": 4, + "total_private_repos": 6, + "owned_private_repos": 6, "private_gists": 0, - "disk_usage": 11980, - "collaborators": 0, + "disk_usage": 12014, + "collaborators": 1, "billing_email": "kk@kohsuke.org", "default_repository_permission": "none", "members_can_create_repositories": false, @@ -43,13 +44,23 @@ "members_can_create_internal_repositories": false, "members_can_create_pages": true, "members_can_fork_private_repositories": false, + "web_commit_signoff_required": false, "members_can_create_public_pages": true, "members_can_create_private_pages": true, "plan": { "name": "free", "space": 976562499, "private_repos": 10000, - "filled_seats": 38, + "filled_seats": 52, "seats": 3 - } + }, + "advanced_security_enabled_for_new_repositories": false, + "dependabot_alerts_enabled_for_new_repositories": false, + "dependabot_security_updates_enabled_for_new_repositories": false, + "dependency_graph_enabled_for_new_repositories": false, + "secret_scanning_enabled_for_new_repositories": false, + "secret_scanning_push_protection_enabled_for_new_repositories": false, + "secret_scanning_push_protection_custom_link_enabled": false, + "secret_scanning_push_protection_custom_link": null, + "secret_scanning_validity_checks_enabled": false } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/20-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/20-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 83cab071ee..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/20-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855273, - "node_id": "REA_lATODFTdCc410MpvzgovC2k", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "confused", - "created_at": "2022-06-21T17:18:28Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..ef38f2eb27 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,184 @@ +[ + { + "id": 251847270, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mY", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2024-06-16T10:20:06Z" + }, + { + "id": 251847272, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mg", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847273, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mk", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847274, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mo", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847275, + "node_id": "REA_lATODFTdCc5h24aPzg8C4ms", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847276, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mw", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847277, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m0", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2024-06-16T10:20:09Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index a34d79313a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/21-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,210 +0,0 @@ -[ - { - "id": 170855251, - "node_id": "REA_lATODFTdCc410MpvzgovC1M", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "eyes", - "created_at": "2022-06-21T17:18:21Z" - }, - { - "id": 170855257, - "node_id": "REA_lATODFTdCc410MpvzgovC1k", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "rocket", - "created_at": "2022-06-21T17:18:22Z" - }, - { - "id": 170855259, - "node_id": "REA_lATODFTdCc410MpvzgovC1s", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "hooray", - "created_at": "2022-06-21T17:18:23Z" - }, - { - "id": 170855262, - "node_id": "REA_lATODFTdCc410MpvzgovC14", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "heart", - "created_at": "2022-06-21T17:18:23Z" - }, - { - "id": 170855266, - "node_id": "REA_lATODFTdCc410MpvzgovC2I", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "-1", - "created_at": "2022-06-21T17:18:24Z" - }, - { - "id": 170855267, - "node_id": "REA_lATODFTdCc410MpvzgovC2M", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "+1", - "created_at": "2022-06-21T17:18:25Z" - }, - { - "id": 170855270, - "node_id": "REA_lATODFTdCc410MpvzgovC2Y", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "laugh", - "created_at": "2022-06-21T17:18:25Z" - }, - { - "id": 170855273, - "node_id": "REA_lATODFTdCc410MpvzgovC2k", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "confused", - "created_at": "2022-06-21T17:18:28Z" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/22-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/22-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..b9d6a999c3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/22-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,26 @@ +{ + "id": 251847278, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m4", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2024-06-16T10:20:10Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..fd4cbe3726 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,210 @@ +[ + { + "id": 251847270, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mY", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2024-06-16T10:20:06Z" + }, + { + "id": 251847272, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mg", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847273, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mk", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847274, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mo", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847275, + "node_id": "REA_lATODFTdCc5h24aPzg8C4ms", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847276, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mw", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847277, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m0", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2024-06-16T10:20:09Z" + }, + { + "id": 251847278, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m4", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2024-06-16T10:20:10Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index e17184fe3b..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/23-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,184 +0,0 @@ -[ - { - "id": 170855251, - "node_id": "REA_lATODFTdCc410MpvzgovC1M", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "eyes", - "created_at": "2022-06-21T17:18:21Z" - }, - { - "id": 170855257, - "node_id": "REA_lATODFTdCc410MpvzgovC1k", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "rocket", - "created_at": "2022-06-21T17:18:22Z" - }, - { - "id": 170855259, - "node_id": "REA_lATODFTdCc410MpvzgovC1s", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "hooray", - "created_at": "2022-06-21T17:18:23Z" - }, - { - "id": 170855262, - "node_id": "REA_lATODFTdCc410MpvzgovC14", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "heart", - "created_at": "2022-06-21T17:18:23Z" - }, - { - "id": 170855266, - "node_id": "REA_lATODFTdCc410MpvzgovC2I", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "-1", - "created_at": "2022-06-21T17:18:24Z" - }, - { - "id": 170855267, - "node_id": "REA_lATODFTdCc410MpvzgovC2M", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "+1", - "created_at": "2022-06-21T17:18:25Z" - }, - { - "id": 170855270, - "node_id": "REA_lATODFTdCc410MpvzgovC2Y", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "laugh", - "created_at": "2022-06-21T17:18:25Z" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/24-r_h_g_pulls_456_comments_902875759_replies.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/24-r_h_g_pulls_456_comments_902875759_replies.json deleted file mode 100644 index c5d258a5f3..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/24-r_h_g_pulls_456_comments_902875759_replies.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952", - "pull_request_review_id": 1013972708, - "id": 902875952, - "node_id": "PRRC_kwDODFTdCc410Msw", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "body": "This is a reply.", - "created_at": "2022-06-21T17:18:30Z", - "updated_at": "2022-06-21T17:18:30Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT", - "in_reply_to_id": 902875759 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_456_comments.json deleted file mode 100644 index 1e68cd8679..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "body": "Sample review comment", - "created_at": "2022-06-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:19Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "total_count": 7, - "+1": 1, - "-1": 1, - "laugh": 1, - "hooray": 1, - "confused": 0, - "heart": 1, - "rocket": 1, - "eyes": 1 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - }, - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952", - "pull_request_review_id": 1013972708, - "id": 902875952, - "node_id": "PRRC_kwDODFTdCc410Msw", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "body": "This is a reply.", - "created_at": "2022-06-21T17:18:30Z", - "updated_at": "2022-06-21T17:18:30Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT", - "in_reply_to_id": 902875759 - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..ef38f2eb27 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/25-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,184 @@ +[ + { + "id": 251847270, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mY", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "eyes", + "created_at": "2024-06-16T10:20:06Z" + }, + { + "id": 251847272, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mg", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "rocket", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847273, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mk", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2024-06-16T10:20:07Z" + }, + { + "id": 251847274, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mo", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847275, + "node_id": "REA_lATODFTdCc5h24aPzg8C4ms", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "-1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847276, + "node_id": "REA_lATODFTdCc5h24aPzg8C4mw", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "+1", + "created_at": "2024-06-16T10:20:08Z" + }, + { + "id": 251847277, + "node_id": "REA_lATODFTdCc5h24aPzg8C4m0", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "content": "laugh", + "created_at": "2024-06-16T10:20:09Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_484_comments_1641776783_replies.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_484_comments_1641776783_replies.json new file mode 100644 index 0000000000..3db53b9d29 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_484_comments_1641776783_replies.json @@ -0,0 +1,69 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796", + "pull_request_review_id": 2121317026, + "id": 1641776796, + "node_id": "PRRC_kwDODFTdCc5h24ac", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2024-06-16T10:20:11Z", + "updated_at": "2024-06-16T10:20:11Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "in_reply_to_id": 1641776783, + "original_position": 4, + "position": 4, + "subject_type": "line" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_comments_902875759.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_comments_902875759.json deleted file mode 100644 index 46f3e9befa..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/26-r_h_g_pulls_comments_902875759.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "body": "Updated review comment", - "created_at": "2022-06-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:32Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "total_count": 7, - "+1": 1, - "-1": 1, - "laugh": 1, - "hooray": 1, - "confused": 0, - "heart": 1, - "rocket": 1, - "eyes": 1 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_456_comments.json deleted file mode 100644 index 68abe05f1e..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "body": "Updated review comment", - "created_at": "2022-06-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:32Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "total_count": 7, - "+1": 1, - "-1": 1, - "laugh": 1, - "hooray": 1, - "confused": 0, - "heart": 1, - "rocket": 1, - "eyes": 1 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - }, - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952", - "pull_request_review_id": 1013972708, - "id": 902875952, - "node_id": "PRRC_kwDODFTdCc410Msw", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "body": "This is a reply.", - "created_at": "2022-06-21T17:18:30Z", - "updated_at": "2022-06-21T17:18:30Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT", - "in_reply_to_id": 902875759 - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..774afb45f6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/27-r_h_g_pulls_484_comments.json @@ -0,0 +1,275 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "original_position": 1, + "position": 1, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A multiline review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:05Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 7, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 0, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796", + "pull_request_review_id": 2121317026, + "id": 1641776796, + "node_id": "PRRC_kwDODFTdCc5h24ac", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2024-06-16T10:20:11Z", + "updated_at": "2024-06-16T10:20:11Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "in_reply_to_id": 1641776783, + "original_position": 4, + "position": 4, + "subject_type": "line" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/28-r_h_g_pulls_comments_1641776783.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/28-r_h_g_pulls_comments_1641776783.json new file mode 100644 index 0000000000..d3aaf4165c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/28-r_h_g_pulls_comments_1641776783.json @@ -0,0 +1,68 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Updated review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:12Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 7, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 0, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_456_comments.json deleted file mode 100644 index 27adb209e6..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,69 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952", - "pull_request_review_id": 1013972708, - "id": 902875952, - "node_id": "PRRC_kwDODFTdCc410Msw", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "body": "This is a reply.", - "created_at": "2022-06-21T17:18:30Z", - "updated_at": "2022-06-21T17:18:30Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875952" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..bf3a299218 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/29-r_h_g_pulls_484_comments.json @@ -0,0 +1,275 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "original_position": 1, + "position": 1, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Updated review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:12Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 7, + "+1": 1, + "-1": 1, + "laugh": 1, + "hooray": 1, + "confused": 0, + "heart": 1, + "rocket": 1, + "eyes": 1 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796", + "pull_request_review_id": 2121317026, + "id": 1641776796, + "node_id": "PRRC_kwDODFTdCc5h24ac", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2024-06-16T10:20:11Z", + "updated_at": "2024-06-16T10:20:11Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "in_reply_to_id": 1641776783, + "original_position": 4, + "position": 4, + "subject_type": "line" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/3-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/3-r_h_github-api.json index 984cd328d8..3f4776a33d 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/3-r_h_github-api.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/3-r_h_github-api.json @@ -65,14 +65,14 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2022-05-23T14:23:52Z", - "pushed_at": "2022-06-19T20:04:07Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:56:32Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", "svn_url": "https://github.com/hub4j-test-org/github-api", "homepage": "http://github-api.kohsuke.org/", - "size": 19045, + "size": 18977, "stargazers_count": 1, "watchers_count": 1, "language": "Java", @@ -81,6 +81,7 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, + "has_discussions": false, "forks_count": 0, "mirror_url": null, "archived": false, @@ -95,6 +96,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 0, @@ -116,6 +118,11 @@ "delete_branch_on_merge": false, "allow_update_branch": false, "use_squash_pr_title_as_default": false, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "custom_properties": {}, "organization": { "login": "hub4j-test-org", "id": 7544739, @@ -203,27 +210,28 @@ "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", "created_at": "2010-04-19T04:13:03Z", - "updated_at": "2022-06-21T16:37:05Z", - "pushed_at": "2022-06-21T07:07:41Z", + "updated_at": "2024-06-16T08:25:00Z", + "pushed_at": "2024-06-16T08:24:55Z", "git_url": "git://github.com/hub4j/github-api.git", "ssh_url": "git@github.com:hub4j/github-api.git", "clone_url": "https://github.com/hub4j/github-api.git", "svn_url": "https://github.com/hub4j/github-api", "homepage": "https://github-api.kohsuke.org/", - "size": 40107, - "stargazers_count": 907, - "watchers_count": 907, + "size": 50713, + "stargazers_count": 1110, + "watchers_count": 1110, "language": "Java", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": true, - "forks_count": 618, + "has_discussions": true, + "forks_count": 712, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 107, + "open_issues_count": 156, "license": { "key": "mit", "name": "MIT License", @@ -233,6 +241,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [ "api", "client-library", @@ -243,9 +252,9 @@ "java-api" ], "visibility": "public", - "forks": 618, - "open_issues": 107, - "watchers": 907, + "forks": 712, + "open_issues": 156, + "watchers": 1110, "default_branch": "main" }, "source": { @@ -315,27 +324,28 @@ "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", "created_at": "2010-04-19T04:13:03Z", - "updated_at": "2022-06-21T16:37:05Z", - "pushed_at": "2022-06-21T07:07:41Z", + "updated_at": "2024-06-16T08:25:00Z", + "pushed_at": "2024-06-16T08:24:55Z", "git_url": "git://github.com/hub4j/github-api.git", "ssh_url": "git@github.com:hub4j/github-api.git", "clone_url": "https://github.com/hub4j/github-api.git", "svn_url": "https://github.com/hub4j/github-api", "homepage": "https://github-api.kohsuke.org/", - "size": 40107, - "stargazers_count": 907, - "watchers_count": 907, + "size": 50713, + "stargazers_count": 1110, + "watchers_count": 1110, "language": "Java", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": true, - "forks_count": 618, + "has_discussions": true, + "forks_count": 712, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 107, + "open_issues_count": 156, "license": { "key": "mit", "name": "MIT License", @@ -345,6 +355,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [ "api", "client-library", @@ -355,11 +366,25 @@ "java-api" ], "visibility": "public", - "forks": 618, - "open_issues": 107, - "watchers": 907, + "forks": 712, + "open_issues": 156, + "watchers": 1110, "default_branch": "main" }, - "network_count": 618, + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 712, "subscribers_count": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/31-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/31-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..e16760f1b6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/31-r_h_g_pulls_484_comments.json @@ -0,0 +1,206 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "original_position": 1, + "position": 1, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796", + "pull_request_review_id": 2121317026, + "id": 1641776796, + "node_id": "PRRC_kwDODFTdCc5h24ac", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2024-06-16T10:20:11Z", + "updated_at": "2024-06-16T10:20:11Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776796" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/30-r_h_g_pulls_456.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/32-r_h_g_pulls_484.json similarity index 89% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/30-r_h_g_pulls_456.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/32-r_h_g_pulls_484.json index 2563ea499d..377e959f2d 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/30-r_h_g_pulls_456.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/32-r_h_g_pulls_484.json @@ -1,41 +1,41 @@ { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "id": 973840601, - "node_id": "PR_kwDODFTdCc46C6DZ", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456", - "diff_url": "https://github.com/hub4j-test-org/github-api/pull/456.diff", - "patch_url": "https://github.com/hub4j-test-org/github-api/pull/456.patch", - "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456", - "number": 456, + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "id": 1922732948, + "node_id": "PR_kwDODFTdCc5ympOU", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484", + "diff_url": "https://github.com/hub4j-test-org/github-api/pull/484.diff", + "patch_url": "https://github.com/hub4j-test-org/github-api/pull/484.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484", + "number": 484, "state": "closed", "locked": false, "title": "pullRequestReviewComments", "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", "type": "User", "site_admin": false }, "body": "## test", - "created_at": "2022-06-21T17:18:17Z", - "updated_at": "2022-06-21T17:18:34Z", - "closed_at": "2022-06-21T17:18:34Z", + "created_at": "2024-06-16T10:20:02Z", + "updated_at": "2024-06-16T10:20:14Z", + "closed_at": "2024-06-16T10:20:14Z", "merged_at": null, - "merge_commit_sha": "f8afb2619503d0880cb3d4433fecf56066cdf2fa", + "merge_commit_sha": "51409ad0122bde1ce1a621a45529eda940ec125c", "assignee": null, "assignees": [], "requested_reviewers": [], @@ -43,10 +43,10 @@ "labels": [], "milestone": null, "draft": false, - "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/commits", - "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/comments", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/comments", "review_comment_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456/comments", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484/comments", "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7", "head": { "label": "hub4j-test-org:test/stable", @@ -139,14 +139,14 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2022-05-23T14:23:52Z", - "pushed_at": "2022-06-21T17:18:17Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T10:20:03Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", "svn_url": "https://github.com/hub4j-test-org/github-api", "homepage": "http://github-api.kohsuke.org/", - "size": 19045, + "size": 18977, "stargazers_count": 1, "watchers_count": 1, "language": "Java", @@ -155,6 +155,7 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, + "has_discussions": false, "forks_count": 0, "mirror_url": null, "archived": false, @@ -169,6 +170,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 0, @@ -180,7 +182,7 @@ "base": { "label": "hub4j-test-org:main", "ref": "main", - "sha": "8051615eff597f4e49f4f47625e6fc2b49f26bfc", + "sha": "c4b41922197a1d595bff30e89bb8540013ee4fd3", "user": { "login": "hub4j-test-org", "id": 7544739, @@ -268,14 +270,14 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2022-05-23T14:23:52Z", - "pushed_at": "2022-06-21T17:18:17Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T10:20:03Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", "svn_url": "https://github.com/hub4j-test-org/github-api", "homepage": "http://github-api.kohsuke.org/", - "size": 19045, + "size": 18977, "stargazers_count": 1, "watchers_count": 1, "language": "Java", @@ -284,6 +286,7 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, + "has_discussions": false, "forks_count": 0, "mirror_url": null, "archived": false, @@ -298,6 +301,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 0, @@ -308,25 +312,25 @@ }, "_links": { "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" }, "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456" + "href": "https://github.com/hub4j-test-org/github-api/pull/484" }, "issue": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484" }, "comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484/comments" }, "review_comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/comments" }, "review_comment": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments{/number}" }, "commits": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/commits" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/commits" }, "statuses": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7" @@ -341,7 +345,7 @@ "mergeable_state": "unstable", "merged_by": null, "comments": 0, - "review_comments": 1, + "review_comments": 3, "maintainer_can_modify": false, "commits": 3, "additions": 3, diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/4-r_h_g_pulls.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/4-r_h_g_pulls.json index 16dfde43be..53e1af6fad 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/4-r_h_g_pulls.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/4-r_h_g_pulls.json @@ -1,38 +1,38 @@ { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "id": 973840601, - "node_id": "PR_kwDODFTdCc46C6DZ", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456", - "diff_url": "https://github.com/hub4j-test-org/github-api/pull/456.diff", - "patch_url": "https://github.com/hub4j-test-org/github-api/pull/456.patch", - "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456", - "number": 456, + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "id": 1922732948, + "node_id": "PR_kwDODFTdCc5ympOU", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484", + "diff_url": "https://github.com/hub4j-test-org/github-api/pull/484.diff", + "patch_url": "https://github.com/hub4j-test-org/github-api/pull/484.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484", + "number": 484, "state": "open", "locked": false, "title": "pullRequestReviewComments", "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", "type": "User", "site_admin": false }, "body": "## test", - "created_at": "2022-06-21T17:18:17Z", - "updated_at": "2022-06-21T17:18:17Z", + "created_at": "2024-06-16T10:20:02Z", + "updated_at": "2024-06-16T10:20:02Z", "closed_at": null, "merged_at": null, "merge_commit_sha": null, @@ -43,10 +43,10 @@ "labels": [], "milestone": null, "draft": false, - "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/commits", - "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/comments", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/comments", "review_comment_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456/comments", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484/comments", "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7", "head": { "label": "hub4j-test-org:test/stable", @@ -139,14 +139,14 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2022-05-23T14:23:52Z", - "pushed_at": "2022-06-19T20:04:07Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:56:32Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", "svn_url": "https://github.com/hub4j-test-org/github-api", "homepage": "http://github-api.kohsuke.org/", - "size": 19045, + "size": 18977, "stargazers_count": 1, "watchers_count": 1, "language": "Java", @@ -155,6 +155,7 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, + "has_discussions": false, "forks_count": 0, "mirror_url": null, "archived": false, @@ -169,6 +170,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 0, @@ -180,7 +182,7 @@ "base": { "label": "hub4j-test-org:main", "ref": "main", - "sha": "8051615eff597f4e49f4f47625e6fc2b49f26bfc", + "sha": "c4b41922197a1d595bff30e89bb8540013ee4fd3", "user": { "login": "hub4j-test-org", "id": 7544739, @@ -268,14 +270,14 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2022-05-23T14:23:52Z", - "pushed_at": "2022-06-19T20:04:07Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:56:32Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", "svn_url": "https://github.com/hub4j-test-org/github-api", "homepage": "http://github-api.kohsuke.org/", - "size": 19045, + "size": 18977, "stargazers_count": 1, "watchers_count": 1, "language": "Java", @@ -284,6 +286,7 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, + "has_discussions": false, "forks_count": 0, "mirror_url": null, "archived": false, @@ -298,6 +301,7 @@ }, "allow_forking": true, "is_template": false, + "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 0, @@ -308,25 +312,25 @@ }, "_links": { "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" }, "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456" + "href": "https://github.com/hub4j-test-org/github-api/pull/484" }, "issue": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484" }, "comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/456/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/484/comments" }, "review_comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/comments" }, "review_comment": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments{/number}" }, "commits": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456/commits" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484/commits" }, "statuses": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7" diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_456_comments.json deleted file mode 100644 index b5f9885508..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "body": "Sample review comment", - "created_at": "2022-06-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:19Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..f7a13736d7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/6-r_h_g_pulls_484_comments.json @@ -0,0 +1,68 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "original_position": 1, + "position": 1, + "subject_type": "line" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_456_comments.json deleted file mode 100644 index 4bc8a27daa..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,69 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "pull_request_review_id": 1013972442, - "id": 902875759, - "node_id": "PRRC_kwDODFTdCc410Mpv", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "body": "Sample review comment", - "created_at": "2022-06-21T17:18:19Z", - "updated_at": "2022-06-21T17:18:19Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/456#discussion_r902875759" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" - } - }, - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..71a5b44c51 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/7-r_h_g_pulls_484_comments.json @@ -0,0 +1,68 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..69f4be08ca --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-r_h_g_pulls_484_comments.json @@ -0,0 +1,68 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A multiline review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:05Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-users_kisaga.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-users_kisaga.json deleted file mode 100644 index 4994365297..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/8-users_kisaga.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false, - "name": "Vasilis Gakias", - "company": null, - "blog": "", - "location": "greece", - "email": "vasileios.gakias@gmail.com", - "hireable": null, - "bio": null, - "twitter_username": null, - "public_repos": 14, - "public_gists": 0, - "followers": 2, - "following": 2, - "created_at": "2016-11-10T23:20:00Z", - "updated_at": "2022-06-19T00:21:42Z", - "private_gists": 0, - "total_private_repos": 0, - "owned_private_repos": 0, - "disk_usage": 12317, - "collaborators": 0, - "two_factor_authentication": false, - "plan": { - "name": "free", - "space": 976562499, - "collaborators": 0, - "private_repos": 10000 - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..39a3779189 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_484_comments.json @@ -0,0 +1,206 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780", + "pull_request_review_id": 2121317005, + "id": 1641776780, + "node_id": "PRRC_kwDODFTdCc5h24aM", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2024-06-16T10:20:03Z", + "updated_at": "2024-06-16T10:20:03Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776780" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "original_position": 1, + "position": 1, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782", + "pull_request_review_id": 2121317011, + "id": 1641776782, + "node_id": "PRRC_kwDODFTdCc5h24aO", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line review comment", + "created_at": "2024-06-16T10:20:04Z", + "updated_at": "2024-06-16T10:20:04Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776782" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 2, + "original_line": 2, + "side": "RIGHT", + "original_position": 3, + "position": 3, + "subject_type": "line" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "pull_request_review_id": 2121317012, + "id": 1641776783, + "node_id": "PRRC_kwDODFTdCc5h24aP", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A multiline review comment", + "created_at": "2024-06-16T10:20:05Z", + "updated_at": "2024-06-16T10:20:05Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/484#discussion_r1641776783" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": 2, + "original_start_line": 2, + "start_side": "RIGHT", + "line": 3, + "original_line": 3, + "side": "RIGHT", + "original_position": 4, + "position": 4, + "subject_type": "line" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index b9772e2d0f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/9-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 170855251, - "node_id": "REA_lATODFTdCc410MpvzgovC1M", - "user": { - "login": "kisaga", - "id": 23390439, - "node_id": "MDQ6VXNlcjIzMzkwNDM5", - "avatar_url": "https://avatars.githubusercontent.com/u/23390439?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kisaga", - "html_url": "https://github.com/kisaga", - "followers_url": "https://api.github.com/users/kisaga/followers", - "following_url": "https://api.github.com/users/kisaga/following{/other_user}", - "gists_url": "https://api.github.com/users/kisaga/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kisaga/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kisaga/subscriptions", - "organizations_url": "https://api.github.com/users/kisaga/orgs", - "repos_url": "https://api.github.com/users/kisaga/repos", - "events_url": "https://api.github.com/users/kisaga/events{/privacy}", - "received_events_url": "https://api.github.com/users/kisaga/received_events", - "type": "User", - "site_admin": false - }, - "content": "eyes", - "created_at": "2022-06-21T17:18:21Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/1-user.json index 0c89d151bb..1cce745d2a 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/1-user.json @@ -1,5 +1,5 @@ { - "id": "3609dba6-8516-4729-b4f3-09a0d352e3aa", + "id": "013f6982-90cb-415e-9837-7318d42bc630", "name": "user", "request": { "url": "/user", @@ -15,34 +15,37 @@ "bodyFileName": "1-user.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:13 GMT", + "Date": "Sun, 16 Jun 2024 10:20:00 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"c08249a37ca4953ffb58ac5b74889c6ce74c4d10ed91dd199fa45e1b93196eef\"", - "Last-Modified": "Sun, 19 Jun 2022 00:21:42 GMT", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "ETag": "W/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4999", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "1", + "X-RateLimit-Remaining": "4819", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "181", "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF5C:10EEE:C39D6:D5504:62B1FD55" + "X-GitHub-Request-Id": "CA9F:7844E:158CD1CA:15B41E11:666EBC50" } }, - "uuid": "3609dba6-8516-4729-b4f3-09a0d352e3aa", + "uuid": "013f6982-90cb-415e-9837-7318d42bc630", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 95c8d25a5a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "id": "a98d69d3-69d9-401b-8382-8700dd69658e", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"confused\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "10-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:21 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"4bb664a12ecdec449205f732e493e0b967130eca58f62d0f40959218ffcaa574\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4986", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "14", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF70:FA76:4F82B6:512B8F:62B1FD5D" - } - }, - "uuid": "a98d69d3-69d9-401b-8382-8700dd69658e", - "persistent": true, - "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-2", - "insertionIndex": 10 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-users_maximevw.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-users_maximevw.json new file mode 100644 index 0000000000..9c2744df05 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/10-users_maximevw.json @@ -0,0 +1,51 @@ +{ + "id": "3adfbca1-80ac-48a7-842c-b317ef885d0f", + "name": "users_maximevw", + "request": { + "url": "/users/maximevw", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "10-users_maximevw.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:06 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4806", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "194", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAA9:2DA98F:206484B3:209AE4D0:666EBC56" + } + }, + "uuid": "3adfbca1-80ac-48a7-842c-b317ef885d0f", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..b3a2a0b43d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "e47f8410-fddd-483f-b6e9-f0c41643ca0e", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"eyes\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "11-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:06 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"8097fe8ac132adb15391f579ca8c50ce93aa261b30b68f58921ff126767eade0\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4805", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "195", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAAA:1768C1:66A8024:676B1DF:666EBC56" + } + }, + "uuid": "e47f8410-fddd-483f-b6e9-f0c41643ca0e", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 4b42ab5e0c..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/11-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "eeab61fe-6ac9-4c95-9fc7-e8cd6e373fcc", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"rocket\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "11-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:22 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"4b2d342135a3ae806e9a1b2eac1a06b18d23a89d674dc9d5f22dfbe2f33658f0\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4985", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "15", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF72:DDCC:3B69BE:3CFD28:62B1FD5E" - } - }, - "uuid": "eeab61fe-6ac9-4c95-9fc7-e8cd6e373fcc", - "persistent": true, - "insertionIndex": 11 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..5df155a3e0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,60 @@ +{ + "id": "bf0a5f84-73b0-42f2-be02-e20c838b7d80", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"confused\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "12-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:07 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"f53278b4a95e840f55c740f2d3d2804715f6920899b57efb889238542fc4d489\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4804", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "196", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAAB:2DA98F:20648952:209AE98A:666EBC56" + } + }, + "uuid": "bf0a5f84-73b0-42f2-be02-e20c838b7d80", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-2", + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 1d6c40d1c2..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/12-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "91798d64-09f0-49ef-90fe-03523248212e", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"hooray\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "12-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:23 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"ee486cbb5507982be6d2d430523d5bae7d0ff184a9110640a038ff3d8865672a\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4984", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "16", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF74:400C:4C95D5:4E45FB:62B1FD5E" - } - }, - "uuid": "91798d64-09f0-49ef-90fe-03523248212e", - "persistent": true, - "insertionIndex": 12 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..07fe93827b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "f370352f-e6a7-4618-a463-d638ba5a152e", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"rocket\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "13-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:07 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"0d44a061301d1bcc933285e20ec968c32e46d914ef3374128fbdc2ff6ae1665a\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4803", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "197", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAAC:2EA35F:1EE5060B:1F1B658D:666EBC57" + } + }, + "uuid": "f370352f-e6a7-4618-a463-d638ba5a152e", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index bc104b4511..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/13-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "cad3de94-5c27-4974-9024-060c947d756b", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"heart\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "13-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:23 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"f8fdfebcabd4003a9c02baedc54795453a0d475aa555047801ba623afdfd7b23\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4983", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "17", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF76:0C3F:563EB5:57FD54:62B1FD5F" - } - }, - "uuid": "cad3de94-5c27-4974-9024-060c947d756b", - "persistent": true, - "insertionIndex": 13 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..04d8cfc2f0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "3bc234d1-c213-45b8-8eee-5b94cf21cfbf", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"hooray\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "14-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:07 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"47f76ffb799d669c30e8a24e354868d055006aba30e984efcba695f106c8edb8\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4802", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "198", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAAD:7844E:158D06B9:15B4534D:666EBC57" + } + }, + "uuid": "3bc234d1-c213-45b8-8eee-5b94cf21cfbf", + "persistent": true, + "insertionIndex": 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 375cc6b594..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/14-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "704056db-53ab-4856-9372-f42303344d33", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"-1\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "14-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:24 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"7128974b9114934f390f2431433340b61f858c1ca1ff779f4d66ce641aa9a0e1\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4982", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "18", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF78:C342:1D2B84:1E6EF4:62B1FD60" - } - }, - "uuid": "704056db-53ab-4856-9372-f42303344d33", - "persistent": true, - "insertionIndex": 14 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..45d8de9aed --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "df13e5f6-46af-416f-9607-a6bcf4ec3116", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"heart\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "15-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:08 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"7d8244326a7e6bdd3dd15dc222509b2fe95d3ac1f5e7f0c801b96021aa2433a0\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4801", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "199", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAAE:2EA35F:1EE50BD9:1F1B6B5D:666EBC57" + } + }, + "uuid": "df13e5f6-46af-416f-9607-a6bcf4ec3116", + "persistent": true, + "insertionIndex": 15 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 6a78dc9cac..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/15-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "7b1f91b5-e3af-4ba6-a167-e072c50f034d", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"+1\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "15-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:25 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"7c65a98fc7dca7d089d476aacf4207ed48db491f943b13f1731a3e1a79068ae0\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4981", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "19", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF7A:FA73:C4E88:D6D68:62B1FD60" - } - }, - "uuid": "7b1f91b5-e3af-4ba6-a167-e072c50f034d", - "persistent": true, - "insertionIndex": 15 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..d7d9201e93 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "96fb55ef-6de9-49ce-aa9d-d46c6d67204d", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"-1\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "16-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:08 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"b96e2201c85fb5c77c400fa470a25728ad551bfb0d06579f4982447d3d6056a3\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4800", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "200", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAAF:1F6CBC:1AE2C04F:1B11A28C:666EBC58" + } + }, + "uuid": "96fb55ef-6de9-49ce-aa9d-d46c6d67204d", + "persistent": true, + "insertionIndex": 16 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 51d0c701de..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/16-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "ae34b71c-9d98-4774-9de0-e9e2138fa9f8", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"laugh\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "16-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:25 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"e8940d2d1f195c8045e783b98ab7c0455de09965355337fc83bcc10da0681316\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4980", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "20", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF7C:307C:3A3C6F:3BB292:62B1FD61" - } - }, - "uuid": "ae34b71c-9d98-4774-9de0-e9e2138fa9f8", - "persistent": true, - "insertionIndex": 16 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_456_comments.json deleted file mode 100644 index 9bbde10dd4..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "85861b33-c13c-446b-88e7-95d2de3b0c47", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "17-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:26 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"b17862e11b769cb4aeb5be57ec9428150b5b22a089fc9445cb3f60913d89a83e\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4979", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "21", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF7E:307B:1DDEEF:1F24B5:62B1FD62" - } - }, - "uuid": "85861b33-c13c-446b-88e7-95d2de3b0c47", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-3", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-4", - "insertionIndex": 17 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..3a6a7bf95f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/17-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "e4ba5757-edc7-4782-98b4-0ee6ce6dff80", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"+1\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "17-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:08 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"d53879e0e1fa3303c002f0dee3abc12b91d6fe909cbabbe5b03746e0921078ba\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4799", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "201", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAB0:0FA7:146C9845:1492BAE1:666EBC58" + } + }, + "uuid": "e4ba5757-edc7-4782-98b4-0ee6ce6dff80", + "persistent": true, + "insertionIndex": 17 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..33a7d4279e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,57 @@ +{ + "id": "5af056e2-bd91-4f21-8da0-83a288c09423", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"laugh\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "18-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:09 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"f6a49e7fe32bbefd10336ef0ce3bdd92ed4db1ae5f3f207be72cbfa8044984c2\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4798", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "202", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAB2:3AF55A:C2CD3ED:C444582:666EBC58" + } + }, + "uuid": "5af056e2-bd91-4f21-8da0-83a288c09423", + "persistent": true, + "insertionIndex": 18 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_902875759_reactions_170855255.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_902875759_reactions_170855255.json deleted file mode 100644 index ba479c7d66..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/18-r_h_g_pulls_comments_902875759_reactions_170855255.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "9bd41cb3-3253-4048-b7a2-1af59a2e7f3e", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions_170855255", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions/170855255", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:27 GMT", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4978", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "22", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "AF80:F6CA:5C7943:5E384F:62B1FD62" - } - }, - "uuid": "9bd41cb3-3253-4048-b7a2-1af59a2e7f3e", - "persistent": true, - "insertionIndex": 18 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..328af31770 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_484_comments.json @@ -0,0 +1,53 @@ +{ + "id": "4089d957-d5e0-45b7-9f41-ace0e27fc5aa", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "19-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:09 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"d995b285ca591a82f6aead67e217ab1f46fb82bb89ae8769b180e26a63aacbec\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4797", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "203", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAB3:2399E4:1EE175D8:1F179DD5:666EBC59" + } + }, + "uuid": "4089d957-d5e0-45b7-9f41-ace0e27fc5aa", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-3", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-4", + "insertionIndex": 19 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 677510ae98..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/19-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "746ab178-541e-4dca-9183-b10598bf3ccf", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "19-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:27 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"b6ff492e1af9b061cffc7f5c9a251fbd428c9ebb996765012582d54b8799977a\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4977", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "23", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF82:13949:5101BF:52B8BD:62B1FD63" - } - }, - "uuid": "746ab178-541e-4dca-9183-b10598bf3ccf", - "persistent": true, - "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-2", - "insertionIndex": 19 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/2-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/2-orgs_hub4j-test-org.json index bebe3b2a77..8519a0a5ed 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/2-orgs_hub4j-test-org.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/2-orgs_hub4j-test-org.json @@ -1,5 +1,5 @@ { - "id": "c0c08e2f-2181-4906-b788-ecc6d3f7a1ae", + "id": "d2146565-0d4b-42f5-a373-cd7d76c3708d", "name": "orgs_hub4j-test-org", "request": { "url": "/orgs/hub4j-test-org", @@ -15,34 +15,37 @@ "bodyFileName": "2-orgs_hub4j-test-org.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:16 GMT", + "Date": "Sun, 16 Jun 2024 10:20:01 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"5494d1fbf995fc6e1df1d8f680702d945f50908b62ab4b4760b0b38bd1505057\"", + "ETag": "W/\"1a25138946edf22ffb0d2a4077820d7ce4ede3f21fcb684ab25abfedf6fe863c\"", "Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4994", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "6", + "X-RateLimit-Remaining": "4814", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "186", "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF60:6281:4D717E:4F2335:62B1FD57" + "X-GitHub-Request-Id": "CAA1:3AF55A:C2C9AAC:C440C06:666EBC51" } }, - "uuid": "c0c08e2f-2181-4906-b788-ecc6d3f7a1ae", + "uuid": "d2146565-0d4b-42f5-a373-cd7d76c3708d", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_1641776783_reactions_251847271.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_1641776783_reactions_251847271.json new file mode 100644 index 0000000000..f4b75f5217 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_1641776783_reactions_251847271.json @@ -0,0 +1,43 @@ +{ + "id": "b87b75bb-0820-490c-978a-e008f12f4571", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions_251847271", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions/251847271", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:09 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4796", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "204", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "CAB4:2213B1:1F6DE8B5:1FA4114C:666EBC59" + } + }, + "uuid": "b87b75bb-0820-490c-978a-e008f12f4571", + "persistent": true, + "insertionIndex": 20 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index fb76b32ed3..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/20-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "id": "41f4ffbd-3ac6-46dc-937a-3280e61e02de", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"confused\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "20-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:28 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"cf22b35bf81a14d22b24cc6defe32310647a67e41979d0619d2a945c8660b795\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4976", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "24", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF84:400C:4C9C17:4E4C69:62B1FD63" - } - }, - "uuid": "41f4ffbd-3ac6-46dc-937a-3280e61e02de", - "persistent": true, - "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions", - "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-2", - "insertionIndex": 20 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..a972fdd507 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,53 @@ +{ + "id": "560f2d21-a22d-4d46-a2c4-c0c2d0ebacfb", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "21-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"4ea41994990195926e66d6eea9cf7706e134e51b6ba86c0b8075e0cd12ec783c\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4795", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "205", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAB5:340707:1EB2C14A:1EE8EBF1:666EBC5A" + } + }, + "uuid": "560f2d21-a22d-4d46-a2c4-c0c2d0ebacfb", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-2", + "insertionIndex": 21 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index cc0fe30f39..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/21-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "d0d80ef0-4ed2-426c-a569-45a7a871301d", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "21-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:28 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"d4a6e926798ba7f082f8499aefcd20a98e61eee4fbf391067627b75e9b2e7d58\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4975", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "25", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF86:0C3F:564540:580411:62B1FD64" - } - }, - "uuid": "d0d80ef0-4ed2-426c-a569-45a7a871301d", - "persistent": true, - "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions", - "requiredScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-2", - "newScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-3", - "insertionIndex": 21 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..25c2bb91bf --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,59 @@ +{ + "id": "191e5380-b2d1-421f-bd27-136e3f7ab22a", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"confused\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "22-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"da086e7f978ec062d2e5c29c44d18c53ba98087eeb68d68bbee556f5711c1cee\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4794", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "206", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAB6:3353D6:1E0FFF85:1E462CBF:666EBC5A" + } + }, + "uuid": "191e5380-b2d1-421f-bd27-136e3f7ab22a", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions", + "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-2", + "insertionIndex": 22 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_902875759_reactions_170855273.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_902875759_reactions_170855273.json deleted file mode 100644 index d35f516970..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/22-r_h_g_pulls_comments_902875759_reactions_170855273.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "8283bae4-a7cb-47db-825f-32c28f9e3405", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions_170855273", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions/170855273", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:29 GMT", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4974", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "26", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "AF88:13948:352972:369BE1:62B1FD65" - } - }, - "uuid": "8283bae4-a7cb-47db-825f-32c28f9e3405", - "persistent": true, - "insertionIndex": 22 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..ab7554b481 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,53 @@ +{ + "id": "932a7c78-7c4c-49be-9771-a1f243be0bee", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "23-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"22721ff4a4ce804fd6170e75fb94c30f99a5e332d4ba588d1084cd29f3b85d73\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4793", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "207", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAB7:AC87C:AA219EE:AB74FBB:666EBC5A" + } + }, + "uuid": "932a7c78-7c4c-49be-9771-a1f243be0bee", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions", + "requiredScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-2", + "newScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-3", + "insertionIndex": 23 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 29e164f5cd..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/23-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "id": "be8ab32b-e885-4806-b87f-3db5973ef7e4", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "23-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:29 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"b6ff492e1af9b061cffc7f5c9a251fbd428c9ebb996765012582d54b8799977a\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4973", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "27", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF8A:6280:3800FF:398241:62B1FD65" - } - }, - "uuid": "be8ab32b-e885-4806-b87f-3db5973ef7e4", - "persistent": true, - "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions", - "requiredScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-902875759-reactions-3", - "insertionIndex": 23 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_456_comments_902875759_replies.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_456_comments_902875759_replies.json deleted file mode 100644 index 88881cf0d7..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_456_comments_902875759_replies.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "id": "37ca8b73-12d2-49a3-8313-f0d431df04cb", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments_902875759_replies", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments/902875759/replies", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"body\":\"This is a reply.\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "24-r_h_g_pulls_456_comments_902875759_replies.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:31 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"50c45442ba1c3250fe571c1279aa8974e99f137be5f8c4b25bc2bff97a31e30d\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4972", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "28", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF8C:5CC2:53C762:557D24:62B1FD66", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875952" - } - }, - "uuid": "37ca8b73-12d2-49a3-8313-f0d431df04cb", - "persistent": true, - "insertionIndex": 24 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_comments_1641776783_reactions_251847278.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_comments_1641776783_reactions_251847278.json new file mode 100644 index 0000000000..8b02fe6ec1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/24-r_h_g_pulls_comments_1641776783_reactions_251847278.json @@ -0,0 +1,43 @@ +{ + "id": "ebe188df-1069-4080-ae3e-b331a256f621", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions_251847278", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions/251847278", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:11 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4792", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "208", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "CAB8:AC87C:AA21BB1:AB75184:666EBC5A" + } + }, + "uuid": "ebe188df-1069-4080-ae3e-b331a256f621", + "persistent": true, + "insertionIndex": 24 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_456_comments.json deleted file mode 100644 index 97a38807b4..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "d5f1a1b2-c1cc-4ed1-aaee-5008cebe3559", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "25-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:31 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"51c5cdd4e6dceaf9812dba5221f851b5ea8de5b79a0cc551f6ba3fff235e3c5b\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4971", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "29", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF8E:BA0A:31BD35:332F9A:62B1FD67" - } - }, - "uuid": "d5f1a1b2-c1cc-4ed1-aaee-5008cebe3559", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-4", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-5", - "insertionIndex": 25 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_comments_1641776783_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_comments_1641776783_reactions.json new file mode 100644 index 0000000000..59ea797615 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/25-r_h_g_pulls_comments_1641776783_reactions.json @@ -0,0 +1,52 @@ +{ + "id": "a566668d-1430-45e3-9306-6d84495447c8", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "25-r_h_g_pulls_comments_1641776783_reactions.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:11 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"4ea41994990195926e66d6eea9cf7706e134e51b6ba86c0b8075e0cd12ec783c\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4791", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "209", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAB9:3E2E9D:6D87B81:6E5EB3E:666EBC5B" + } + }, + "uuid": "a566668d-1430-45e3-9306-6d84495447c8", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions", + "requiredScenarioState": "scenario-3-repos-hub4j-test-org-github-api-pulls-comments-1641776783-reactions-3", + "insertionIndex": 25 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_484_comments_1641776783_replies.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_484_comments_1641776783_replies.json new file mode 100644 index 0000000000..a8c6b9eaef --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_484_comments_1641776783_replies.json @@ -0,0 +1,58 @@ +{ + "id": "97c7ee1e-28e2-4cf7-a71d-25d8ab93c339", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments_1641776783_replies", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments/1641776783/replies", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"body\":\"This is a reply.\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "26-r_h_g_pulls_484_comments_1641776783_replies.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:12 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"aeaa4945d4887a704be675d270a99ec7eac2f0679ea0c8b16fce1f6167b683dc\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4790", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "210", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CABA:3AF55A:C2CE8E9:C445A85:666EBC5B", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776796" + } + }, + "uuid": "97c7ee1e-28e2-4cf7-a71d-25d8ab93c339", + "persistent": true, + "insertionIndex": 26 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_comments_902875759.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_comments_902875759.json deleted file mode 100644 index 936661b85f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/26-r_h_g_pulls_comments_902875759.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "51880262-5604-45fb-b2df-e451862c07bc", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "method": "PATCH", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"body\":\"Updated review comment\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 200, - "bodyFileName": "26-r_h_g_pulls_comments_902875759.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:32 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"3d5bb596716385bf97ed2a4ab88e3787b046ad094a2b4d1f2adad85ea09c2687\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4970", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "30", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF90:13949:5107E6:52BF05:62B1FD67" - } - }, - "uuid": "51880262-5604-45fb-b2df-e451862c07bc", - "persistent": true, - "insertionIndex": 26 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_456_comments.json deleted file mode 100644 index 3787eaec80..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "c16019df-b04e-44ee-8e05-6aec9d395fd7", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "27-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:32 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"29ae28d5d668de75ea1082c3a8d7461eacd827103677598b4320a9a92ec6e08d\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4969", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "31", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF92:9DB8:51D25C:537C96:62B1FD68" - } - }, - "uuid": "c16019df-b04e-44ee-8e05-6aec9d395fd7", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-5", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-6", - "insertionIndex": 27 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..9a85325a6d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/27-r_h_g_pulls_484_comments.json @@ -0,0 +1,53 @@ +{ + "id": "6828db79-f9ad-44c5-ab92-d99e4863925a", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "27-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:12 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"dd3919aa1374d417a3c52ee6336ab2653c8131d879807dcb7fa327f6b2261f35\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4789", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "211", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CABB:3795B1:1F6FE260:1FA642E1:666EBC5C" + } + }, + "uuid": "6828db79-f9ad-44c5-ab92-d99e4863925a", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-4", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-5", + "insertionIndex": 27 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_1641776783.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_1641776783.json new file mode 100644 index 0000000000..dea1ab184b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_1641776783.json @@ -0,0 +1,57 @@ +{ + "id": "666037a3-9f54-4635-8b1c-602637bc191e", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "method": "PATCH", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"body\":\"Updated review comment\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "28-r_h_g_pulls_comments_1641776783.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:13 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"2a4e3a37247de036d7732ec5049830cd88cff29b480d916de95e27af9150b81c\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4788", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "212", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CABC:1F6CBC:1AE2E250:1B11C4D0:666EBC5C" + } + }, + "uuid": "666037a3-9f54-4635-8b1c-602637bc191e", + "persistent": true, + "insertionIndex": 28 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_902875759.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_902875759.json deleted file mode 100644 index 6c717e5df6..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/28-r_h_g_pulls_comments_902875759.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "3b867da2-e92f-4798-9f98-b92a428630d3", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:33 GMT", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4968", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "32", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "AF94:10EF1:530A33:54C7FD:62B1FD69" - } - }, - "uuid": "3b867da2-e92f-4798-9f98-b92a428630d3", - "persistent": true, - "insertionIndex": 28 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_456_comments.json deleted file mode 100644 index 898f7d35e9..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "id": "f692d85c-3ad3-4217-a83b-0ee54f002468", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "29-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:34 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"795f2a7f1d3bac3b49904945b4c6865e1b3a4098b74587a4d78c73a2b0ed4a80\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4967", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "33", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF96:FA74:1C6330:1DA6C6:62B1FD6A" - } - }, - "uuid": "f692d85c-3ad3-4217-a83b-0ee54f002468", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-6", - "insertionIndex": 29 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..a0af390a73 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/29-r_h_g_pulls_484_comments.json @@ -0,0 +1,53 @@ +{ + "id": "8e0fa311-809f-4d3d-b62e-7d7f086aabc8", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "29-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:13 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"1e46062e16a5a34a62ea0ab765f6e68e16acd3936d5c0d1c827a37dbf0c4768f\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4787", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "213", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CABD:2EA35F:1EE536C3:1F1B9699:666EBC5D" + } + }, + "uuid": "8e0fa311-809f-4d3d-b62e-7d7f086aabc8", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-5", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-6", + "insertionIndex": 29 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/3-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/3-r_h_github-api.json index 8bfad0e960..9935dbf289 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/3-r_h_github-api.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/3-r_h_github-api.json @@ -1,5 +1,5 @@ { - "id": "1893f17b-1315-4dc4-8fe2-96bd3e747e84", + "id": "f35438e2-f0c6-4f2d-9008-e9cf077f0f98", "name": "repos_hub4j-test-org_github-api", "request": { "url": "/repos/hub4j-test-org/github-api", @@ -15,34 +15,37 @@ "bodyFileName": "3-r_h_github-api.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:16 GMT", + "Date": "Sun, 16 Jun 2024 10:20:02 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"cb99d6332ac5c8b2c09a1b93d8c078ce24f73cb0b79858a1516f6f939aae0a72\"", - "Last-Modified": "Mon, 23 May 2022 14:23:52 GMT", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "ETag": "W/\"cc6d0fe1a2532d022712082d96ea7fad2f6f3cebe92b9972d26c0cc69e8a6b2a\"", + "Last-Modified": "Fri, 22 Mar 2024 23:30:32 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "repo", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4993", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "7", + "X-RateLimit-Remaining": "4813", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "187", "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF62:DDCC:3B63EA:3CF72D:62B1FD58" + "X-GitHub-Request-Id": "CAA2:5E86B:8023F40:8118E7A:666EBC51" } }, - "uuid": "1893f17b-1315-4dc4-8fe2-96bd3e747e84", + "uuid": "f35438e2-f0c6-4f2d-9008-e9cf077f0f98", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_456.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_456.json deleted file mode 100644 index 569ddf9ebf..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_456.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "2ef0656b-ee95-4cb0-9b2b-30a96164114b", - "name": "repos_hub4j-test-org_github-api_pulls_456", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456", - "method": "PATCH", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"state\":\"closed\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 200, - "bodyFileName": "30-r_h_g_pulls_456.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:36 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"14e4628277ee83d18534ba6608492413533702d07c90b617ad7a2c72e1fa8722\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4966", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "34", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF98:BA0B:4D3E8B:4EEBAE:62B1FD6A" - } - }, - "uuid": "2ef0656b-ee95-4cb0-9b2b-30a96164114b", - "persistent": true, - "insertionIndex": 30 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_comments_1641776783.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_comments_1641776783.json new file mode 100644 index 0000000000..e707e7a77f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/30-r_h_g_pulls_comments_1641776783.json @@ -0,0 +1,43 @@ +{ + "id": "6bfe4e17-295f-4656-b8c7-65b299464e2a", + "name": "repos_hub4j-test-org_github-api_pulls_comments_1641776783", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/1641776783", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:14 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4786", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "214", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "CABE:3AF55A:C2CF907:C446AAA:666EBC5D" + } + }, + "uuid": "6bfe4e17-295f-4656-b8c7-65b299464e2a", + "persistent": true, + "insertionIndex": 30 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/31-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/31-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..171119899d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/31-r_h_g_pulls_484_comments.json @@ -0,0 +1,52 @@ +{ + "id": "4c3acc2d-7f24-436a-b30a-efbb7aec063a", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "31-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:14 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"f0283a2591bdc11131647a412df16f250a4c8cec7026bd8bc0a76fe0b3fe3df3\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4785", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "215", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CABF:0EF4:1CED5048:1D21696B:666EBC5E" + } + }, + "uuid": "4c3acc2d-7f24-436a-b30a-efbb7aec063a", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-6", + "insertionIndex": 31 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/32-r_h_g_pulls_484.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/32-r_h_g_pulls_484.json new file mode 100644 index 0000000000..cd28087aa3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/32-r_h_g_pulls_484.json @@ -0,0 +1,57 @@ +{ + "id": "ad1058c8-1747-4552-a905-25f8a0aea4c4", + "name": "repos_hub4j-test-org_github-api_pulls_484", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484", + "method": "PATCH", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"state\":\"closed\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "32-r_h_g_pulls_484.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:15 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"95b52407e61f123ba1881b3dc23c523e57dad5ef9daeb2c28be2983c4de403c9\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4784", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "216", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAC0:1768C1:66ABC94:676EEB1:666EBC5E" + } + }, + "uuid": "ad1058c8-1747-4552-a905-25f8a0aea4c4", + "persistent": true, + "insertionIndex": 32 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/4-r_h_g_pulls.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/4-r_h_g_pulls.json index b77f862f58..4551f97848 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/4-r_h_g_pulls.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/4-r_h_g_pulls.json @@ -1,5 +1,5 @@ { - "id": "b24c0aff-401f-4e35-add3-2d27e799860c", + "id": "c33e044c-aeba-4730-a34f-2959b9fdb665", "name": "repos_hub4j-test-org_github-api_pulls", "request": { "url": "/repos/hub4j-test-org/github-api/pulls", @@ -22,34 +22,37 @@ "bodyFileName": "4-r_h_g_pulls.json", "headers": { "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:17 GMT", + "Date": "Sun, 16 Jun 2024 10:20:03 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"801196cbb450ae48f1d688f815e6830d4e6a687017f5373765f170cd3af6b501\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", + "ETag": "\"b924fb17a54b909bae43a2754576f9bf62fda2439537c149818d7c3186defaa9\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; param=shadow-cat-preview; format=json", + "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4992", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "8", + "X-RateLimit-Remaining": "4812", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "188", "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF64:9DB3:1B392:2BAFF:62B1FD58", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/456" + "X-GitHub-Request-Id": "CAA3:7844E:158CDF6C:15B42BE5:666EBC52", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/484" } }, - "uuid": "b24c0aff-401f-4e35-add3-2d27e799860c", + "uuid": "c33e044c-aeba-4730-a34f-2959b9fdb665", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_456_comments.json deleted file mode 100644 index e92c3c5ab8..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "e563f1db-bc81-41c8-a710-187ae27783c4", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "body": "[]", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:18 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"20fc4441d036edca28dbcc065f9e32b03003e2a9085ffd64254446cf3cf0604f\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4991", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "9", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF66:10EF1:52F61F:54B37F:62B1FD5A" - } - }, - "uuid": "e563f1db-bc81-41c8-a710-187ae27783c4", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-2", - "insertionIndex": 5 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..2d9d205060 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/5-r_h_g_pulls_484_comments.json @@ -0,0 +1,53 @@ +{ + "id": "d7b1db5e-d26a-4122-bf11-d883fa8a237f", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"1b5805e5b5590e41a379084e0302960f5b511ecf3553fc6d28e46f603b15210e\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4811", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "189", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAA4:2EA35F:1EE4E57A:1F1B44EE:666EBC53" + } + }, + "uuid": "d7b1db5e-d26a-4122-bf11-d883fa8a237f", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-2", + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_456_comments.json deleted file mode 100644 index c1f9d39838..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "id": "006f3169-0085-45a1-b7ba-8a246c639b03", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"path\":\"README.md\",\"position\":1,\"body\":\"Sample review comment\",\"commit_id\":\"07374fe73aff1c2024a8d4114b32406c7a8e89b7\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "6-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:19 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"36a5ee598a508736adcb8410419b27920cc05df644e0a393a293378ac9d5479f\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4990", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "10", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF68:4006:15415:25A5D:62B1FD5A", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/902875759" - } - }, - "uuid": "006f3169-0085-45a1-b7ba-8a246c639b03", - "persistent": true, - "insertionIndex": 6 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..159c6be9de --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/6-r_h_g_pulls_484_comments.json @@ -0,0 +1,58 @@ +{ + "id": "33e4c312-78c3-4d69-ba9f-0fb46d2e353e", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"README.md\",\"position\":1,\"body\":\"Sample review comment\",\"commit_id\":\"07374fe73aff1c2024a8d4114b32406c7a8e89b7\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "6-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:04 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"3d0ba55bf943c522629d751ebf47bef805a02ce2e62e4345f203f25fb3cae2f0\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4810", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "190", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAA5:253CFA:1EC487BF:1EFAE8BA:666EBC53", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776780" + } + }, + "uuid": "33e4c312-78c3-4d69-ba9f-0fb46d2e353e", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_456_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_456_comments.json deleted file mode 100644 index 5f67fdc202..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_456_comments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "567785f1-9e06-4054-86c9-4a10605ec52a", - "name": "repos_hub4j-test-org_github-api_pulls_456_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/456/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "7-r_h_g_pulls_456_comments.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:20 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"53d5962598630d2c8c75bc71115eb7887c93b96424168d2183c1e9b2beedff65\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4989", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "11", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF6A:BA0B:4D2C30:4ED8D6:62B1FD5B" - } - }, - "uuid": "567785f1-9e06-4054-86c9-4a10605ec52a", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-2", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-456-comments-3", - "insertionIndex": 7 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..c62816d287 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/7-r_h_g_pulls_484_comments.json @@ -0,0 +1,58 @@ +{ + "id": "43f15589-cf59-4ed5-a2b8-8f6b7ebae791", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"README.md\",\"line\":2,\"body\":\"A single line review comment\",\"commit_id\":\"07374fe73aff1c2024a8d4114b32406c7a8e89b7\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "7-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:05 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"f4ad16b622a43c19bbb4347683a37b2421bfd9b13c0b46ea9370fd964f759702\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4809", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "191", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAA6:340707:1EB296E6:1EE8C145:666EBC54", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776782" + } + }, + "uuid": "43f15589-cf59-4ed5-a2b8-8f6b7ebae791", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..2b80fe4f36 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-r_h_g_pulls_484_comments.json @@ -0,0 +1,58 @@ +{ + "id": "efe94b1b-7f9c-4bba-9af2-0a7a59a498ab", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"README.md\",\"line\":3,\"start_line\":2,\"body\":\"A multiline review comment\",\"commit_id\":\"07374fe73aff1c2024a8d4114b32406c7a8e89b7\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "8-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:05 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"3f2d9a517ab5baa36940a98c5f9a861848e0feb5ef0fd58c654801b8c3015590\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4808", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "192", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAA7:1768C1:66A75E7:676A78B:666EBC55", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641776783" + } + }, + "uuid": "efe94b1b-7f9c-4bba-9af2-0a7a59a498ab", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-users_kisaga.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-users_kisaga.json deleted file mode 100644 index 500da65c48..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/8-users_kisaga.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "id": "0892a1ba-a9f8-44fe-a199-1c8d3274548f", - "name": "users_kisaga", - "request": { - "url": "/users/kisaga", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "8-users_kisaga.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:20 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"c08249a37ca4953ffb58ac5b74889c6ce74c4d10ed91dd199fa45e1b93196eef\"", - "Last-Modified": "Sun, 19 Jun 2022 00:21:42 GMT", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4988", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "12", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF6C:21C5:567FD6:58294B:62B1FD5C" - } - }, - "uuid": "0892a1ba-a9f8-44fe-a199-1c8d3274548f", - "persistent": true, - "insertionIndex": 8 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_484_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_484_comments.json new file mode 100644 index 0000000000..ba8b9d6b46 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_484_comments.json @@ -0,0 +1,53 @@ +{ + "id": "b90b66bc-ebae-478f-8591-47c4a97723d1", + "name": "repos_hub4j-test-org_github-api_pulls_484_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/484/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "9-r_h_g_pulls_484_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 10:20:06 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"bc851e53d17184ccbb0dc54aa5331a034a774e0f1aff0a4b0df3485e2f986948\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4807", + "X-RateLimit-Reset": "1718536663", + "X-RateLimit-Used": "193", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "CAA8:3353D6:1E0FE118:1E460E21:666EBC55" + } + }, + "uuid": "b90b66bc-ebae-478f-8591-47c4a97723d1", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-2", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-484-comments-3", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_comments_902875759_reactions.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_comments_902875759_reactions.json deleted file mode 100644 index 502dd240f6..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/9-r_h_g_pulls_comments_902875759_reactions.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "id": "6148fd96-101d-45af-984a-53407454b15c", - "name": "repos_hub4j-test-org_github-api_pulls_comments_902875759_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/902875759/reactions", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"content\":\"eyes\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "9-r_h_g_pulls_comments_902875759_reactions.json", - "headers": { - "Server": "GitHub.com", - "Date": "Tue, 21 Jun 2022 17:18:21 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "\"e21c10f436977c155cb2612b9a13066a568a4c8b1e82c1ca3b0218bd50064771\"", - "X-OAuth-Scopes": "admin:gpg_key, notifications, repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "github-authentication-token-expiration": "2022-07-17 15:27:30 UTC", - "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4987", - "X-RateLimit-Reset": "1655835493", - "X-RateLimit-Used": "13", - "X-RateLimit-Resource": "core", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "0", - "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "AF6E:0C3E:33A10C:351889:62B1FD5D" - } - }, - "uuid": "6148fd96-101d-45af-984a-53407454b15c", - "persistent": true, - "insertionIndex": 9 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-user.json new file mode 100644 index 0000000000..4a175d1c5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-user.json @@ -0,0 +1,46 @@ +{ + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false, + "name": "Maxime Wiewiora", + "company": "@neofacto", + "blog": "", + "location": "France", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", + "private_gists": 0, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, + "collaborators": 0, + "two_factor_authentication": true, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_475_reviews_1926195021.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_475_reviews_1926195021.json deleted file mode 100644 index 9a8107f60a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_475_reviews_1926195021.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "id": 1926195021, - "node_id": "PRR_kwDODFTdCc5yz2dN", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Some new review", - "state": "PENDING", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195021", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195021" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_482_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_482_reviews.json new file mode 100644 index 0000000000..45c2bb2416 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/10-r_h_g_pulls_482_reviews.json @@ -0,0 +1,38 @@ +{ + "id": 2121311995, + "node_id": "PRR_kwDODFTdCc5-cKb7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some new review", + "state": "PENDING", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121311995", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121311995" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/11-r_h_g_pulls_482_reviews_2121311995.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/11-r_h_g_pulls_482_reviews_2121311995.json new file mode 100644 index 0000000000..45c2bb2416 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/11-r_h_g_pulls_482_reviews_2121311995.json @@ -0,0 +1,38 @@ +{ + "id": 2121311995, + "node_id": "PRR_kwDODFTdCc5-cKb7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some new review", + "state": "PENDING", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121311995", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121311995" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-orgs_hub4j-test-org.json similarity index 98% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-orgs_hub4j-test-org.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-orgs_hub4j-test-org.json index 749c1ff664..a6ece8248a 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/1-orgs_hub4j-test-org.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-orgs_hub4j-test-org.json @@ -20,7 +20,7 @@ "is_verified": false, "has_organization_projects": true, "has_repository_projects": true, - "public_repos": 26, + "public_repos": 27, "public_gists": 0, "followers": 2, "following": 0, @@ -51,7 +51,7 @@ "name": "free", "space": 976562499, "private_repos": 10000, - "filled_seats": 50, + "filled_seats": 52, "seats": 3 }, "advanced_security_enabled_for_new_repositories": false, diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_github-api.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-r_h_github-api.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_github-api.json index 9e8a5a346f..39ddcf878d 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/2-r_h_github-api.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_github-api.json @@ -65,8 +65,8 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2023-01-31T10:03:44Z", - "pushed_at": "2024-03-09T12:57:12Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:42:30Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", @@ -210,16 +210,16 @@ "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", "created_at": "2010-04-19T04:13:03Z", - "updated_at": "2024-03-03T08:57:47Z", - "pushed_at": "2024-03-09T13:21:50Z", + "updated_at": "2024-06-16T08:25:00Z", + "pushed_at": "2024-06-16T08:24:55Z", "git_url": "git://github.com/hub4j/github-api.git", "ssh_url": "git@github.com:hub4j/github-api.git", "clone_url": "https://github.com/hub4j/github-api.git", "svn_url": "https://github.com/hub4j/github-api", "homepage": "https://github-api.kohsuke.org/", - "size": 47162, - "stargazers_count": 1086, - "watchers_count": 1086, + "size": 50713, + "stargazers_count": 1110, + "watchers_count": 1110, "language": "Java", "has_issues": true, "has_projects": true, @@ -227,11 +227,11 @@ "has_wiki": true, "has_pages": true, "has_discussions": true, - "forks_count": 701, + "forks_count": 712, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 152, + "open_issues_count": 156, "license": { "key": "mit", "name": "MIT License", @@ -252,9 +252,9 @@ "java-api" ], "visibility": "public", - "forks": 701, - "open_issues": 152, - "watchers": 1086, + "forks": 712, + "open_issues": 156, + "watchers": 1110, "default_branch": "main" }, "source": { @@ -324,16 +324,16 @@ "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", "created_at": "2010-04-19T04:13:03Z", - "updated_at": "2024-03-03T08:57:47Z", - "pushed_at": "2024-03-09T13:21:50Z", + "updated_at": "2024-06-16T08:25:00Z", + "pushed_at": "2024-06-16T08:24:55Z", "git_url": "git://github.com/hub4j/github-api.git", "ssh_url": "git@github.com:hub4j/github-api.git", "clone_url": "https://github.com/hub4j/github-api.git", "svn_url": "https://github.com/hub4j/github-api", "homepage": "https://github-api.kohsuke.org/", - "size": 47162, - "stargazers_count": 1086, - "watchers_count": 1086, + "size": 50713, + "stargazers_count": 1110, + "watchers_count": 1110, "language": "Java", "has_issues": true, "has_projects": true, @@ -341,11 +341,11 @@ "has_wiki": true, "has_pages": true, "has_discussions": true, - "forks_count": 701, + "forks_count": 712, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 152, + "open_issues_count": 156, "license": { "key": "mit", "name": "MIT License", @@ -366,9 +366,9 @@ "java-api" ], "visibility": "public", - "forks": 701, - "open_issues": 152, - "watchers": 1086, + "forks": 712, + "open_issues": 156, + "watchers": 1110, "default_branch": "main" }, "security_and_analysis": { @@ -385,6 +385,6 @@ "status": "disabled" } }, - "network_count": 701, + "network_count": 712, "subscribers_count": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_g_pulls.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/4-r_h_g_pulls.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_g_pulls.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/4-r_h_g_pulls.json index a57f49c2c6..4a97cbb036 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/3-r_h_g_pulls.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/4-r_h_g_pulls.json @@ -1,38 +1,38 @@ { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "id": 1764042569, - "node_id": "PR_kwDODFTdCc5pJSdJ", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475", - "diff_url": "https://github.com/hub4j-test-org/github-api/pull/475.diff", - "patch_url": "https://github.com/hub4j-test-org/github-api/pull/475.patch", - "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/475", - "number": 475, + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "id": 1922717147, + "node_id": "PR_kwDODFTdCc5ymlXb", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482", + "diff_url": "https://github.com/hub4j-test-org/github-api/pull/482.diff", + "patch_url": "https://github.com/hub4j-test-org/github-api/pull/482.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/482", + "number": 482, "state": "open", "locked": false, "title": "testPullRequestReviews", "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", "type": "User", "site_admin": false }, "body": "## test", - "created_at": "2024-03-09T13:29:41Z", - "updated_at": "2024-03-09T13:29:41Z", + "created_at": "2024-06-16T09:55:52Z", + "updated_at": "2024-06-16T09:55:52Z", "closed_at": null, "merged_at": null, "merge_commit_sha": null, @@ -43,10 +43,10 @@ "labels": [], "milestone": null, "draft": false, - "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475/commits", - "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475/comments", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482/comments", "review_comment_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/475/comments", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/482/comments", "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7", "head": { "label": "hub4j-test-org:test/stable", @@ -139,8 +139,8 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2023-01-31T10:03:44Z", - "pushed_at": "2024-03-09T12:57:12Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:42:30Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", @@ -270,8 +270,8 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", "created_at": "2019-09-06T23:26:04Z", - "updated_at": "2023-01-31T10:03:44Z", - "pushed_at": "2024-03-09T12:57:12Z", + "updated_at": "2024-03-22T23:30:32Z", + "pushed_at": "2024-06-16T09:42:30Z", "git_url": "git://github.com/hub4j-test-org/github-api.git", "ssh_url": "git@github.com:hub4j-test-org/github-api.git", "clone_url": "https://github.com/hub4j-test-org/github-api.git", @@ -312,25 +312,25 @@ }, "_links": { "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" }, "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475" + "href": "https://github.com/hub4j-test-org/github-api/pull/482" }, "issue": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/475" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/482" }, "comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/475/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/482/comments" }, "review_comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482/comments" }, "review_comment": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments{/number}" }, "commits": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475/commits" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482/commits" }, "statuses": { "href": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7" diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/5-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/5-r_h_g_pulls_475_reviews.json deleted file mode 100644 index a8ba753d04..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/5-r_h_g_pulls_475_reviews.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "id": 1926195017, - "node_id": "PRR_kwDODFTdCc5yz2dJ", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Some draft review", - "state": "PENDING", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_475_reviews.json deleted file mode 100644 index 172dd48b6c..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_475_reviews.json +++ /dev/null @@ -1,40 +0,0 @@ -[ - { - "id": 1926195017, - "node_id": "PRR_kwDODFTdCc5yz2dJ", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Some draft review", - "state": "PENDING", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_482_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_482_reviews.json new file mode 100644 index 0000000000..12bad1384c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/6-r_h_g_pulls_482_reviews.json @@ -0,0 +1,38 @@ +{ + "id": 2121304234, + "node_id": "PRR_kwDODFTdCc5-cIiq", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some draft review", + "state": "PENDING", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_475_reviews_1926195017_events.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_475_reviews_1926195017_events.json deleted file mode 100644 index 4f4be79792..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_475_reviews_1926195017_events.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "id": 1926195017, - "node_id": "PRR_kwDODFTdCc5yz2dJ", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Some review comment", - "state": "COMMENTED", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195017" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "submitted_at": "2024-03-09T13:29:44Z", - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_482_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_482_reviews.json new file mode 100644 index 0000000000..a775b10515 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/7-r_h_g_pulls_482_reviews.json @@ -0,0 +1,40 @@ +[ + { + "id": 2121304234, + "node_id": "PRR_kwDODFTdCc5-cIiq", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some draft review", + "state": "PENDING", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_475_reviews_1926195017_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_475_reviews_1926195017_comments.json deleted file mode 100644 index a8102905a0..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_475_reviews_1926195017_comments.json +++ /dev/null @@ -1,63 +0,0 @@ -[ - { - "id": 1518573431, - "node_id": "PRRC_kwDODFTdCc5ag5d3", - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1518573431", - "pull_request_review_id": 1926195017, - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Some niggle", - "created_at": "2024-03-09T13:29:43Z", - "updated_at": "2024-03-09T13:29:44Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#discussion_r1518573431", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1518573431" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#discussion_r1518573431" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", - "reactions": { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1518573431/reactions", - "total_count": 0, - "+1": 0, - "-1": 0, - "laugh": 0, - "hooray": 0, - "confused": 0, - "heart": 0, - "rocket": 0, - "eyes": 0 - } - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_482_reviews_2121304234_events.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_482_reviews_2121304234_events.json new file mode 100644 index 0000000000..6241395296 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/8-r_h_g_pulls_482_reviews_2121304234_events.json @@ -0,0 +1,39 @@ +{ + "id": 2121304234, + "node_id": "PRR_kwDODFTdCc5-cIiq", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some review comment", + "state": "COMMENTED", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#pullrequestreview-2121304234" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "submitted_at": "2024-06-16T09:55:55Z", + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_475_reviews.json deleted file mode 100644 index 9a8107f60a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_475_reviews.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "id": 1926195021, - "node_id": "PRR_kwDODFTdCc5yz2dN", - "user": { - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?u=e462a6165ea17647aed446ca31fae604338ae18c&v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false - }, - "body": "Some new review", - "state": "PENDING", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195021", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475", - "author_association": "MEMBER", - "_links": { - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/475#pullrequestreview-1926195021" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" - } - }, - "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_482_reviews_2121304234_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_482_reviews_2121304234_comments.json new file mode 100644 index 0000000000..836f41dcc4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/__files/9-r_h_g_pulls_482_reviews_2121304234_comments.json @@ -0,0 +1,185 @@ +[ + { + "id": 1641771497, + "node_id": "PRRC_kwDODFTdCc5h23Hp", + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771497", + "pull_request_review_id": 2121304234, + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "Some niggle", + "created_at": "2024-06-16T09:55:53Z", + "updated_at": "2024-06-16T09:55:55Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771497", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771497" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771497" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771497/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + } + }, + { + "id": 1641771499, + "node_id": "PRRC_kwDODFTdCc5h23Hr", + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771499", + "pull_request_review_id": 2121304234, + "diff_hunk": "@@ -2,2 +1,4 @@\n+# Java API for GitHub TEST (stable)\n ", + "path": "README.md", + "position": 4, + "original_position": 4, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A single line comment", + "created_at": "2024-06-16T09:55:53Z", + "updated_at": "2024-06-16T09:55:55Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771499", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771499" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771499" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771499/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + } + }, + { + "id": 1641771500, + "node_id": "PRRC_kwDODFTdCc5h23Hs", + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771500", + "pull_request_review_id": 2121304234, + "diff_hunk": "@@ -2,2 +1,4 @@\n+# Java API for GitHub TEST (stable)\n \n See https://github-api.kohsuke.org/ for more details", + "path": "README.md", + "position": 5, + "original_position": 5, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?u=dddf34bffc2dba9093e2c24ade2191b0336261cf&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false + }, + "body": "A multiline comment", + "created_at": "2024-06-16T09:55:53Z", + "updated_at": "2024-06-16T09:55:55Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771500", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771500" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/482#discussion_r1641771500" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" + } + }, + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/1641771500/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + } + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-user.json new file mode 100644 index 0000000000..c1693bd622 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-user.json @@ -0,0 +1,51 @@ +{ + "id": "ae8e1c81-d2ce-4e3b-8ef0-bead12942fca", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 09:55:50 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4378", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "622", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C5D8:0FA7:1444E7D2:146ACC90:666EB6A6" + } + }, + "uuid": "ae8e1c81-d2ce-4e3b-8ef0-bead12942fca", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_482_reviews.json similarity index 68% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_475_reviews.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_482_reviews.json index 3e1dc934f8..4856026f1b 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_475_reviews.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_482_reviews.json @@ -1,8 +1,8 @@ { - "id": "c47a19f1-4c37-4fb2-84c9-09f9554a4738", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews", + "id": "52e817b3-f666-416f-bdd8-9dcc4584d26d", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews", "method": "POST", "headers": { "Accept": { @@ -19,25 +19,26 @@ }, "response": { "status": 200, - "bodyFileName": "9-r_h_g_pulls_475_reviews.json", + "bodyFileName": "10-r_h_g_pulls_482_reviews.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:45 GMT", + "Date": "Sun, 16 Jun 2024 10:09:44 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"f4b487b2907023f655db7ed06eb47f861564347109551e144fb34b9026e7dcf9\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"ff790a9d0b473686691dbde88cdc06fd6f0048f145c28231c5e7c7948d9ccc01\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4953", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "47", + "X-RateLimit-Remaining": "3808", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "1192", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -47,10 +48,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "8356:21CA73:E245284:E3D93AC:65EC6449" + "X-GitHub-Request-Id": "C8D7:39C3A8:1E7F2317:1EB5684B:666EB9E8" } }, - "uuid": "c47a19f1-4c37-4fb2-84c9-09f9554a4738", + "uuid": "52e817b3-f666-416f-bdd8-9dcc4584d26d", "persistent": true, - "insertionIndex": 9 + "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_475_reviews_1926195021.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/11-r_h_g_pulls_482_reviews_2121311995.json similarity index 63% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_475_reviews_1926195021.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/11-r_h_g_pulls_482_reviews_2121311995.json index a8714a1611..caeaf7eb22 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/10-r_h_g_pulls_475_reviews_1926195021.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/11-r_h_g_pulls_482_reviews_2121311995.json @@ -1,8 +1,8 @@ { - "id": "2a0521b3-e234-4275-9ca7-c528f8259d87", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews_1926195021", + "id": "ea34f4f2-27de-49e4-a58b-181e0f06fb46", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews_2121311995", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews/1926195021", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews/2121311995", "method": "DELETE", "headers": { "Accept": { @@ -12,25 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "10-r_h_g_pulls_475_reviews_1926195021.json", + "bodyFileName": "11-r_h_g_pulls_482_reviews_2121311995.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:46 GMT", + "Date": "Sun, 16 Jun 2024 10:09:45 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"f4b487b2907023f655db7ed06eb47f861564347109551e144fb34b9026e7dcf9\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"ff790a9d0b473686691dbde88cdc06fd6f0048f145c28231c5e7c7948d9ccc01\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "public_repo, repo", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4952", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "48", + "X-RateLimit-Remaining": "3807", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "1193", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,10 +41,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "8362:2EA360:578A0C0:5830B22:65EC6449" + "X-GitHub-Request-Id": "C8D8:5E86B:7F23204:80166D4:666EB9E8" } }, - "uuid": "2a0521b3-e234-4275-9ca7-c528f8259d87", + "uuid": "ea34f4f2-27de-49e4-a58b-181e0f06fb46", "persistent": true, - "insertionIndex": 10 + "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-orgs_hub4j-test-org.json similarity index 70% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-orgs_hub4j-test-org.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-orgs_hub4j-test-org.json index f44ded366b..7f5e1d091c 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/1-orgs_hub4j-test-org.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-orgs_hub4j-test-org.json @@ -1,5 +1,5 @@ { - "id": "b294b5e8-218e-4337-9271-d31ae67be2ca", + "id": "b531d035-88fb-4219-965a-d47fb1426016", "name": "orgs_hub4j-test-org", "request": { "url": "/orgs/hub4j-test-org", @@ -12,26 +12,27 @@ }, "response": { "status": 200, - "bodyFileName": "1-orgs_hub4j-test-org.json", + "bodyFileName": "2-orgs_hub4j-test-org.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:41 GMT", + "Date": "Sun, 16 Jun 2024 09:55:51 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"19982b123aa27e3186d4142a976fd226b48a2c2dc6b65260e1b971e7361a5c8e\"", + "ETag": "W/\"1a25138946edf22ffb0d2a4077820d7ce4ede3f21fcb684ab25abfedf6fe863c\"", "Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4961", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "39", + "X-RateLimit-Remaining": "4373", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "627", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -41,10 +42,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "A14E:3D6430:E483F17:E6180AD:65EC6445" + "X-GitHub-Request-Id": "C5DA:39C3A8:1E67DE9E:1E9E0086:666EB6A7" } }, - "uuid": "b294b5e8-218e-4337-9271-d31ae67be2ca", + "uuid": "b531d035-88fb-4219-965a-d47fb1426016", "persistent": true, - "insertionIndex": 1 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_github-api.json similarity index 68% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-r_h_github-api.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_github-api.json index c0c01318c0..a4805a0530 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/2-r_h_github-api.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_github-api.json @@ -1,5 +1,5 @@ { - "id": "b343d4f0-3db1-455d-b967-1a383fad2b68", + "id": "747e9d0e-d725-4d87-b63f-e0d79e1afc43", "name": "repos_hub4j-test-org_github-api", "request": { "url": "/repos/hub4j-test-org/github-api", @@ -12,26 +12,27 @@ }, "response": { "status": 200, - "bodyFileName": "2-r_h_github-api.json", + "bodyFileName": "3-r_h_github-api.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:41 GMT", + "Date": "Sun, 16 Jun 2024 09:55:52 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"d69a5805c6d97804ef8dbcf9cfa8a002efd5f3b27f12f30cff472f3a0956a9c1\"", - "Last-Modified": "Tue, 31 Jan 2023 10:03:44 GMT", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"b0cc862bde1ff25b534b12dbe43d40afc807595da6bbd8ba7a68f780bfb546d2\"", + "Last-Modified": "Fri, 22 Mar 2024 23:30:32 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4960", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "40", + "X-RateLimit-Remaining": "4372", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "628", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -41,10 +42,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "A150:E2829:DBC16C1:DD52E63:65EC6445" + "X-GitHub-Request-Id": "C5DB:3795B1:1F47552C:1F7D779A:666EB6A7" } }, - "uuid": "b343d4f0-3db1-455d-b967-1a383fad2b68", + "uuid": "747e9d0e-d725-4d87-b63f-e0d79e1afc43", "persistent": true, - "insertionIndex": 2 + "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_g_pulls.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls.json similarity index 74% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_g_pulls.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls.json index 121b083c73..2ee83f15d4 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/3-r_h_g_pulls.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls.json @@ -1,5 +1,5 @@ { - "id": "7775c633-0a23-478e-aa6b-e95f65ec9cf0", + "id": "6cd1ba24-2cdb-443c-aa7d-89845f656cc1", "name": "repos_hub4j-test-org_github-api_pulls", "request": { "url": "/repos/hub4j-test-org/github-api/pulls", @@ -19,25 +19,26 @@ }, "response": { "status": 201, - "bodyFileName": "3-r_h_g_pulls.json", + "bodyFileName": "4-r_h_g_pulls.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:42 GMT", + "Date": "Sun, 16 Jun 2024 09:55:52 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"b1eecd0523d052757ad1268c33725ba94f475f416b3993760742d5e560ce6c83\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"f9f359c0b19bd419a398b46bbc092928f59aaef3005b7f945ddb96ef2cdd3717\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; param=shadow-cat-preview; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4959", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "41", + "X-RateLimit-Remaining": "4371", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "629", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -47,11 +48,11 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "A15A:3648D8:E155576:E2E974A:65EC6445", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/475" + "X-GitHub-Request-Id": "C5DC:253CFA:1E9C4A19:1ED26D6C:666EB6A8", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/482" } }, - "uuid": "7775c633-0a23-478e-aa6b-e95f65ec9cf0", + "uuid": "6cd1ba24-2cdb-443c-aa7d-89845f656cc1", "persistent": true, - "insertionIndex": 3 + "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_482_reviews.json similarity index 67% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls_475_reviews.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_482_reviews.json index 5ab14cf678..d900e29025 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/4-r_h_g_pulls_475_reviews.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_482_reviews.json @@ -1,8 +1,8 @@ { - "id": "5c467e98-45ef-48d4-bb1f-60c387d2eadb", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews", + "id": "5152dd1c-fa4c-4a8c-b0b3-df0e248aac3c", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews", "method": "GET", "headers": { "Accept": { @@ -15,22 +15,23 @@ "body": "[]", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:42 GMT", + "Date": "Sun, 16 Jun 2024 09:55:53 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"e33d671b99cfd3b69cbea6599065ce3f5431730434d2452958e0865316fdb5be\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"1b5805e5b5590e41a379084e0302960f5b511ecf3553fc6d28e46f603b15210e\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4958", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "42", + "X-RateLimit-Remaining": "4370", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "630", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,13 +41,13 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "A16A:5EC0F:DF16F19:E0A85A5:65EC6446" + "X-GitHub-Request-Id": "C5DD:3795B1:1F475C3A:1F7D7EB4:666EB6A9" } }, - "uuid": "5c467e98-45ef-48d4-bb1f-60c387d2eadb", + "uuid": "5152dd1c-fa4c-4a8c-b0b3-df0e248aac3c", "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-475-reviews", + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-482-reviews", "requiredScenarioState": "Started", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-475-reviews-2", - "insertionIndex": 4 + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-482-reviews-2", + "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_482_reviews.json similarity index 62% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_475_reviews.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_482_reviews.json index efef3f5828..747532411f 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/5-r_h_g_pulls_475_reviews.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_482_reviews.json @@ -1,8 +1,8 @@ { - "id": "33e37bae-8cf2-4afc-ab98-9bc7b3c8a7a3", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews", + "id": "67d09d77-c9ee-4c8a-8570-39b3a8415c40", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews", "method": "POST", "headers": { "Accept": { @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"comments\":[{\"body\":\"Some niggle\",\"path\":\"README.md\",\"position\":1}],\"body\":\"Some draft review\"}", + "equalToJson": "{\"comments\":[{\"body\":\"Some niggle\",\"path\":\"README.md\",\"position\":1},{\"body\":\"A single line comment\",\"path\":\"README.md\",\"line\":2},{\"body\":\"A multiline comment\",\"path\":\"README.md\",\"line\":3,\"start_line\":2}],\"body\":\"Some draft review\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -19,25 +19,26 @@ }, "response": { "status": 200, - "bodyFileName": "5-r_h_g_pulls_475_reviews.json", + "bodyFileName": "6-r_h_g_pulls_482_reviews.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:43 GMT", + "Date": "Sun, 16 Jun 2024 09:55:54 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"c454859282735c8662d1a205cc8163591fe6d21faf3d561e60b9b92975becb6b\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"b94ef0eeeaefe771d12aaa0fa07cd4e22284db93b05d8b221cb6db0109beb031\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4957", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "43", + "X-RateLimit-Remaining": "4369", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "631", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -47,10 +48,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "A17A:3BEAE9:E4A2735:E632F20:65EC6446" + "X-GitHub-Request-Id": "C5DE:0FA7:1444FC98:146AE179:666EB6A9" } }, - "uuid": "33e37bae-8cf2-4afc-ab98-9bc7b3c8a7a3", + "uuid": "67d09d77-c9ee-4c8a-8570-39b3a8415c40", "persistent": true, - "insertionIndex": 5 + "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_475_reviews.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_482_reviews.json similarity index 65% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_475_reviews.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_482_reviews.json index 156b152556..35a2f8804c 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/6-r_h_g_pulls_475_reviews.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_482_reviews.json @@ -1,8 +1,8 @@ { - "id": "ddefb205-42dc-4141-8c2b-fac707c063fd", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews", + "id": "bb043981-2c62-4eda-a619-018913a4e038", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews", "method": "GET", "headers": { "Accept": { @@ -12,25 +12,26 @@ }, "response": { "status": 200, - "bodyFileName": "6-r_h_g_pulls_475_reviews.json", + "bodyFileName": "7-r_h_g_pulls_482_reviews.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:43 GMT", + "Date": "Sun, 16 Jun 2024 09:55:54 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"8ca9151a732f5547445631885b7ab951fe59b045bf6624dbca0ff05461a5ed79\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"73d4101eabd7ce63fd0a4a974b9aab88b05d1336d7e88a00639eefc4595edbc2\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4956", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "44", + "X-RateLimit-Remaining": "4368", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "632", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,12 +41,12 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "A17E:50746:E78766D:E918C56:65EC6447" + "X-GitHub-Request-Id": "C5DF:5E86B:7DC19D4:7EB2B77:666EB6AA" } }, - "uuid": "ddefb205-42dc-4141-8c2b-fac707c063fd", + "uuid": "bb043981-2c62-4eda-a619-018913a4e038", "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-475-reviews", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-475-reviews-2", - "insertionIndex": 6 + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-482-reviews", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-482-reviews-2", + "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_475_reviews_1926195017_events.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_482_reviews_2121304234_events.json similarity index 66% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_475_reviews_1926195017_events.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_482_reviews_2121304234_events.json index 14a438a77e..4a2bd8e943 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/7-r_h_g_pulls_475_reviews_1926195017_events.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_482_reviews_2121304234_events.json @@ -1,8 +1,8 @@ { - "id": "378b1981-7dcb-4e61-8818-a536d980ac1b", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews_1926195017_events", + "id": "5f0aa5a6-02d0-4ac0-9e2d-60b13fa2e7f9", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews_2121304234_events", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews/1926195017/events", + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews/2121304234/events", "method": "POST", "headers": { "Accept": { @@ -19,25 +19,26 @@ }, "response": { "status": 200, - "bodyFileName": "7-r_h_g_pulls_475_reviews_1926195017_events.json", + "bodyFileName": "8-r_h_g_pulls_482_reviews_2121304234_events.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:44 GMT", + "Date": "Sun, 16 Jun 2024 09:55:55 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"dbea4fb1107d17977ebe332acaa5375dc80760e468bfd2b1cfa62180577cf34c\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"9416a7df936948ae4a9d9fac9b6168dd4dcad4fba0ca4a7aa67f717ccddeff9f\"", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "public_repo, repo", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4955", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "45", + "X-RateLimit-Remaining": "4367", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "633", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -47,10 +48,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "A18C:3D6430:E485580:E619717:65EC6447" + "X-GitHub-Request-Id": "C5E0:3E2E9D:6B2C20C:6BFF3EA:666EB6AA" } }, - "uuid": "378b1981-7dcb-4e61-8818-a536d980ac1b", + "uuid": "5f0aa5a6-02d0-4ac0-9e2d-60b13fa2e7f9", "persistent": true, - "insertionIndex": 7 + "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_482_reviews_2121304234_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_482_reviews_2121304234_comments.json new file mode 100644 index 0000000000..353b70e5a8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/9-r_h_g_pulls_482_reviews_2121304234_comments.json @@ -0,0 +1,50 @@ +{ + "id": "03fe67cc-4cee-4f34-9f67-39590f0e8705", + "name": "repos_hub4j-test-org_github-api_pulls_482_reviews_2121304234_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/482/reviews/2121304234/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "9-r_h_g_pulls_482_reviews_2121304234_comments.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 09:55:56 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"4f8f144e118dfe44063b888e4fbb42a7f16476784cd45e795a406ea90574fd55\"", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4366", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "634", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C5E1:3AF55A:C04266A:C1B5A8D:666EB6AB" + } + }, + "uuid": "03fe67cc-4cee-4f34-9f67-39590f0e8705", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/__files/10-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/__files/10-user.json new file mode 100644 index 0000000000..4a175d1c5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/__files/10-user.json @@ -0,0 +1,46 @@ +{ + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false, + "name": "Maxime Wiewiora", + "company": "@neofacto", + "blog": "", + "location": "France", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", + "private_gists": 0, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, + "collaborators": 0, + "two_factor_authentication": true, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/mappings/10-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/mappings/10-user.json new file mode 100644 index 0000000000..2eb8ab0735 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/reactions/mappings/10-user.json @@ -0,0 +1,51 @@ +{ + "id": "f8fd38eb-2e49-4cf8-9847-b1dbee854ec8", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "10-user.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 09:29:44 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4761", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "239", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C3DC:2213B1:1F17BE39:1F4D6722:666EB088" + } + }, + "uuid": "f8fd38eb-2e49-4cf8-9847-b1dbee854ec8", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/__files/7-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/__files/7-user.json new file mode 100644 index 0000000000..4a175d1c5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/__files/7-user.json @@ -0,0 +1,46 @@ +{ + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false, + "name": "Maxime Wiewiora", + "company": "@neofacto", + "blog": "", + "location": "France", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", + "private_gists": 0, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, + "collaborators": 0, + "two_factor_authentication": true, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/mappings/7-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/mappings/7-user.json new file mode 100644 index 0000000000..2c1cd076d9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/refreshFromSearchResults/mappings/7-user.json @@ -0,0 +1,51 @@ +{ + "id": "2275abb7-f86b-45b4-b089-dfc44a0be822", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "7-user.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sun, 16 Jun 2024 09:29:43 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4768", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "232", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C3D4:11EF2B:263DD72:26A21D8:666EB087" + } + }, + "uuid": "2275abb7-f86b-45b4-b089-dfc44a0be822", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/7-organizations_7544739_team_3451996.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/7-o_7_t_3451996.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/7-organizations_7544739_team_3451996.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/7-o_7_t_3451996.json diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/8-user.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/8-user.json new file mode 100644 index 0000000000..4a175d1c5f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/__files/8-user.json @@ -0,0 +1,46 @@ +{ + "login": "maximevw", + "id": 48218208, + "node_id": "MDQ6VXNlcjQ4MjE4MjA4", + "avatar_url": "https://avatars.githubusercontent.com/u/48218208?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/maximevw", + "html_url": "https://github.com/maximevw", + "followers_url": "https://api.github.com/users/maximevw/followers", + "following_url": "https://api.github.com/users/maximevw/following{/other_user}", + "gists_url": "https://api.github.com/users/maximevw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/maximevw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/maximevw/subscriptions", + "organizations_url": "https://api.github.com/users/maximevw/orgs", + "repos_url": "https://api.github.com/users/maximevw/repos", + "events_url": "https://api.github.com/users/maximevw/events{/privacy}", + "received_events_url": "https://api.github.com/users/maximevw/received_events", + "type": "User", + "site_admin": false, + "name": "Maxime Wiewiora", + "company": "@neofacto", + "blog": "", + "location": "France", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 6, + "public_gists": 0, + "followers": 7, + "following": 6, + "created_at": "2019-03-04T16:47:00Z", + "updated_at": "2024-06-15T09:34:50Z", + "private_gists": 0, + "total_private_repos": 3, + "owned_private_repos": 3, + "disk_usage": 523, + "collaborators": 0, + "two_factor_authentication": true, + "plan": { + "name": "free", + "space": 976562499, + "collaborators": 0, + "private_repos": 10000 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-organizations_7544739_team_3451996.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-o_7_t_3451996.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-organizations_7544739_team_3451996.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-o_7_t_3451996.json index 8c2ad2d6cc..dc7b617bd3 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-organizations_7544739_team_3451996.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/7-o_7_t_3451996.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "7-organizations_7544739_team_3451996.json", + "bodyFileName": "7-o_7_t_3451996.json", "headers": { "Server": "GitHub.com", "Date": "Fri, 04 Mar 2022 11:02:10 GMT", diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_475_reviews_1926195017_comments.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/8-user.json similarity index 63% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_475_reviews_1926195017_comments.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/8-user.json index 4b26d0a256..121dac31cc 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/8-r_h_g_pulls_475_reviews_1926195017_comments.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/testPullRequestTeamReviewRequests/mappings/8-user.json @@ -1,8 +1,8 @@ { - "id": "48e032f1-450a-46d5-a6ab-b9f68aad7d61", - "name": "repos_hub4j-test-org_github-api_pulls_475_reviews_1926195017_comments", + "id": "d14da5e5-a21f-4769-a66f-2aee4ad27c06", + "name": "user", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/475/reviews/1926195017/comments", + "url": "/user", "method": "GET", "headers": { "Accept": { @@ -12,25 +12,27 @@ }, "response": { "status": 200, - "bodyFileName": "8-r_h_g_pulls_475_reviews_1926195017_comments.json", + "bodyFileName": "8-user.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 09 Mar 2024 13:29:44 GMT", + "Date": "Sun, 16 Jun 2024 09:29:53 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"af087a506bf6858528abb1d501fc83120d8fe9769669e21eee2c4f8e73c04992\"", - "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"68041e9c0cf9c5c8847fb38c3c501b57bedb374090f39459cccab5ebf4005ff7\"", + "Last-Modified": "Sat, 15 Jun 2024 09:34:50 GMT", + "X-OAuth-Scopes": "repo, user, write:discussion", "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-09-14 09:21:47 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4954", - "X-RateLimit-Reset": "1709992629", - "X-RateLimit-Used": "46", + "X-RateLimit-Remaining": "4730", + "X-RateLimit-Reset": "1718532974", + "X-RateLimit-Used": "270", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,10 +42,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "834A:2F72EC:3F5B750:3FDF0AD:65EC6448" + "X-GitHub-Request-Id": "C402:2AA61C:16FAA640:172485B5:666EB091" } }, - "uuid": "48e032f1-450a-46d5-a6ab-b9f68aad7d61", + "uuid": "d14da5e5-a21f-4769-a66f-2aee4ad27c06", "persistent": true, "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/1-user.json new file mode 100644 index 0000000000..eab16ea068 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/1-user.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 135, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-09-24T19:32:29Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/2-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/2-orgs_hub4j-test-org.json new file mode 100644 index 0000000000..f176fc4ff5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/2-orgs_hub4j-test-org.json @@ -0,0 +1,42 @@ +{ + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/hub4j-test-org", + "repos_url": "https://api.github.com/orgs/hub4j-test-org/repos", + "events_url": "https://api.github.com/orgs/hub4j-test-org/events", + "hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks", + "issues_url": "https://api.github.com/orgs/hub4j-test-org/issues", + "members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "members_allowed_repository_creation_type": "none", + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/3-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/3-r_h_github-api.json new file mode 100644 index 0000000000..d2a3a7aa94 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/3-r_h_github-api.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "hub4j-test-org/github-api", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/github-api", + "description": "Tricky", + "fork": true, + "url": "https://api.github.com/repos/hub4j-test-org/github-api", + "forks_url": "https://api.github.com/repos/hub4j-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-25T23:32:35Z", + "pushed_at": "2019-09-21T14:29:14Z", + "git_url": "git://github.com/hub4j-test-org/github-api.git", + "ssh_url": "git@github.com:hub4j-test-org/github-api.git", + "clone_url": "https://github.com/hub4j-test-org/github-api.git", + "svn_url": "https://github.com/hub4j-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11387, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "hub4j/github-api", + "private": false, + "owner": { + "login": "hub4j", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j", + "html_url": "https://github.com/hub4j", + "followers_url": "https://api.github.com/users/hub4j/followers", + "following_url": "https://api.github.com/users/hub4j/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j/orgs", + "repos_url": "https://api.github.com/users/hub4j/repos", + "events_url": "https://api.github.com/users/hub4j/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/hub4j/github-api", + "forks_url": "https://api.github.com/repos/hub4j/github-api/forks", + "keys_url": "https://api.github.com/repos/hub4j/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j/github-api/teams", + "hooks_url": "https://api.github.com/repos/hub4j/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j/github-api/events", + "assignees_url": "https://api.github.com/repos/hub4j/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j/github-api/tags", + "blobs_url": "https://api.github.com/repos/hub4j/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j/github-api/languages", + "stargazers_url": "https://api.github.com/repos/hub4j/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j/github-api/subscription", + "commits_url": "https://api.github.com/repos/hub4j/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j/github-api/merges", + "archive_url": "https://api.github.com/repos/hub4j/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j/github-api/downloads", + "issues_url": "https://api.github.com/repos/hub4j/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-25T22:47:32Z", + "pushed_at": "2019-09-25T22:56:18Z", + "git_url": "git://github.com/hub4j/github-api.git", + "ssh_url": "git@github.com:hub4j/github-api.git", + "clone_url": "https://github.com/hub4j/github-api.git", + "svn_url": "https://github.com/hub4j/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11678, + "stargazers_count": 553, + "watchers_count": 553, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 553, + "default_branch": "main" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "hub4j/github-api", + "private": false, + "owner": { + "login": "hub4j", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j", + "html_url": "https://github.com/hub4j", + "followers_url": "https://api.github.com/users/hub4j/followers", + "following_url": "https://api.github.com/users/hub4j/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j/orgs", + "repos_url": "https://api.github.com/users/hub4j/repos", + "events_url": "https://api.github.com/users/hub4j/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/hub4j/github-api", + "forks_url": "https://api.github.com/repos/hub4j/github-api/forks", + "keys_url": "https://api.github.com/repos/hub4j/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j/github-api/teams", + "hooks_url": "https://api.github.com/repos/hub4j/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j/github-api/events", + "assignees_url": "https://api.github.com/repos/hub4j/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j/github-api/tags", + "blobs_url": "https://api.github.com/repos/hub4j/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j/github-api/languages", + "stargazers_url": "https://api.github.com/repos/hub4j/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j/github-api/subscription", + "commits_url": "https://api.github.com/repos/hub4j/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j/github-api/merges", + "archive_url": "https://api.github.com/repos/hub4j/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j/github-api/downloads", + "issues_url": "https://api.github.com/repos/hub4j/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-25T22:47:32Z", + "pushed_at": "2019-09-25T22:56:18Z", + "git_url": "git://github.com/hub4j/github-api.git", + "ssh_url": "git@github.com:hub4j/github-api.git", + "clone_url": "https://github.com/hub4j/github-api.git", + "svn_url": "https://github.com/hub4j/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11678, + "stargazers_count": 553, + "watchers_count": 553, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 553, + "default_branch": "main" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/4-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/4-r_h_github-api.json new file mode 100644 index 0000000000..59ae8286f3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/__files/4-r_h_github-api.json @@ -0,0 +1,5 @@ +{ + "message": "Successfully fetched and fast-forwarded from upstream github-api:main", + "merge_type": "fast-forward", + "base_branch": "github-api:main" +} diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/1-user.json new file mode 100644 index 0000000000..a7e5c0c21c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "7f6e9a01-5bfa-4f72-9947-07df902f56c3", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Date": "Wed, 25 Sep 2019 23:35:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4992", + "X-RateLimit-Reset": "1569457884", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"14ffd29009ddc2209c450bb29a5a8330\"", + "Last-Modified": "Tue, 24 Sep 2019 19:32:29 GMT", + "X-OAuth-Scopes": "gist, notifications, read:org, read:public_key, read:repo_hook, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "F845:5D1D:FFA88A:12FE539:5D8BF9C5" + } + }, + "uuid": "7f6e9a01-5bfa-4f72-9947-07df902f56c3", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/2-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/2-orgs_hub4j-test-org.json new file mode 100644 index 0000000000..64182cc8c5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/2-orgs_hub4j-test-org.json @@ -0,0 +1,48 @@ +{ + "id": "cb173af2-c793-444a-acdf-c3850e7afdbe", + "name": "orgs_hub4j-test-org", + "request": { + "url": "/orgs/hub4j-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "2-orgs_hub4j-test-org.json", + "headers": { + "Date": "Wed, 25 Sep 2019 23:35:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4989", + "X-RateLimit-Reset": "1569457884", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"b7989d48e6539c9c76038995b902421b\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, read:org, read:public_key, read:repo_hook, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "F855:59E1:1397ED7:171400E:5D8BF9DE" + } + }, + "uuid": "cb173af2-c793-444a-acdf-c3850e7afdbe", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/3-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/3-r_h_github-api.json new file mode 100644 index 0000000000..265e1fd4bb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/3-r_h_github-api.json @@ -0,0 +1,51 @@ +{ + "id": "0a4d7a1a-f99c-47ca-840a-3e920c18bd1f", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "3-r_h_github-api.json", + "headers": { + "Date": "Wed, 25 Sep 2019 23:35:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4988", + "X-RateLimit-Reset": "1569457884", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"0678d1c39ea574f68cc0fb330b067cb7\"", + "Last-Modified": "Wed, 25 Sep 2019 23:32:35 GMT", + "X-OAuth-Scopes": "gist, notifications, read:org, read:public_key, read:repo_hook, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "F855:59E1:1397EEB:1714029:5D8BF9DE" + } + }, + "uuid": "0a4d7a1a-f99c-47ca-840a-3e920c18bd1f", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/4-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/4-r_h_github-api.json new file mode 100644 index 0000000000..d3f36a5627 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/sync/mappings/4-r_h_github-api.json @@ -0,0 +1,54 @@ +{ + "id": "2c69d5c8-dd81-4204-bad9-ee37f5b0ebfd", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api/merge-upstream", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"branch\":\"main\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ], + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "4-r_h_github-api.json", + "headers": { + "Date": "Wed, 25 Sep 2019 23:35:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4987", + "X-RateLimit-Reset": "1569457884", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"e40487cafd3670c0de171f4250dbefb8\"", + "X-OAuth-Scopes": "gist, notifications, read:org, read:public_key, read:repo_hook, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "F855:59E1:1397F0E:1714041:5D8BF9DE" + } + }, + "uuid": "2c69d5c8-dd81-4204-bad9-ee37f5b0ebfd", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/1-user.json new file mode 100644 index 0000000000..eab16ea068 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/1-user.json @@ -0,0 +1,33 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 166, + "public_gists": 4, + "followers": 135, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-09-24T19:32:29Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/2-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/2-orgs_hub4j-test-org.json new file mode 100644 index 0000000000..f176fc4ff5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/2-orgs_hub4j-test-org.json @@ -0,0 +1,42 @@ +{ + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "url": "https://api.github.com/orgs/hub4j-test-org", + "repos_url": "https://api.github.com/orgs/hub4j-test-org/repos", + "events_url": "https://api.github.com/orgs/hub4j-test-org/events", + "hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks", + "issues_url": "https://api.github.com/orgs/hub4j-test-org/issues", + "members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/hub4j-test-org/public_members{/member}", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 9, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2015-04-20T00:42:30Z", + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 132, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "members_allowed_repository_creation_type": "none", + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 3, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/3-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/3-r_h_github-api.json new file mode 100644 index 0000000000..2680467bcb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/3-r_h_github-api.json @@ -0,0 +1,330 @@ +{ + "id": 206888201, + "node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=", + "name": "github-api", + "full_name": "hub4j-test-org/github-api", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/github-api", + "description": "Tricky", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/github-api", + "forks_url": "https://api.github.com/repos/hub4j-test-org/github-api/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/github-api/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/github-api/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/github-api/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/github-api/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/github-api/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/github-api/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/github-api/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/github-api/deployments", + "created_at": "2019-09-06T23:26:04Z", + "updated_at": "2019-09-25T23:32:35Z", + "pushed_at": "2019-09-21T14:29:14Z", + "git_url": "git://github.com/hub4j-test-org/github-api.git", + "ssh_url": "git@github.com:hub4j-test-org/github-api.git", + "clone_url": "https://github.com/hub4j-test-org/github-api.git", + "svn_url": "https://github.com/hub4j-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11387, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "hub4j/github-api", + "private": false, + "owner": { + "login": "hub4j", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j", + "html_url": "https://github.com/hub4j", + "followers_url": "https://api.github.com/users/hub4j/followers", + "following_url": "https://api.github.com/users/hub4j/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j/orgs", + "repos_url": "https://api.github.com/users/hub4j/repos", + "events_url": "https://api.github.com/users/hub4j/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j/github-api", + "description": "Java API for GitHub", + "fork": true, + "url": "https://api.github.com/repos/hub4j/github-api", + "forks_url": "https://api.github.com/repos/hub4j/github-api/forks", + "keys_url": "https://api.github.com/repos/hub4j/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j/github-api/teams", + "hooks_url": "https://api.github.com/repos/hub4j/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j/github-api/events", + "assignees_url": "https://api.github.com/repos/hub4j/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j/github-api/tags", + "blobs_url": "https://api.github.com/repos/hub4j/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j/github-api/languages", + "stargazers_url": "https://api.github.com/repos/hub4j/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j/github-api/subscription", + "commits_url": "https://api.github.com/repos/hub4j/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j/github-api/merges", + "archive_url": "https://api.github.com/repos/hub4j/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j/github-api/downloads", + "issues_url": "https://api.github.com/repos/hub4j/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-25T22:47:32Z", + "pushed_at": "2019-09-25T22:56:18Z", + "git_url": "git://github.com/hub4j/github-api.git", + "ssh_url": "git@github.com:hub4j/github-api.git", + "clone_url": "https://github.com/hub4j/github-api.git", + "svn_url": "https://github.com/hub4j/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11678, + "stargazers_count": 553, + "watchers_count": 553, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 553, + "default_branch": "main" + }, + "source": { + "id": 617210, + "node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=", + "name": "github-api", + "full_name": "hub4j/github-api", + "private": false, + "owner": { + "login": "hub4j", + "id": 54909825, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", + "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j", + "html_url": "https://github.com/hub4j", + "followers_url": "https://api.github.com/users/hub4j/followers", + "following_url": "https://api.github.com/users/hub4j/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j/orgs", + "repos_url": "https://api.github.com/users/hub4j/repos", + "events_url": "https://api.github.com/users/hub4j/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/hub4j/github-api", + "description": "Java API for GitHub", + "fork": false, + "url": "https://api.github.com/repos/hub4j/github-api", + "forks_url": "https://api.github.com/repos/hub4j/github-api/forks", + "keys_url": "https://api.github.com/repos/hub4j/github-api/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j/github-api/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j/github-api/teams", + "hooks_url": "https://api.github.com/repos/hub4j/github-api/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j/github-api/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j/github-api/events", + "assignees_url": "https://api.github.com/repos/hub4j/github-api/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j/github-api/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j/github-api/tags", + "blobs_url": "https://api.github.com/repos/hub4j/github-api/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j/github-api/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j/github-api/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j/github-api/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j/github-api/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j/github-api/languages", + "stargazers_url": "https://api.github.com/repos/hub4j/github-api/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j/github-api/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j/github-api/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j/github-api/subscription", + "commits_url": "https://api.github.com/repos/hub4j/github-api/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j/github-api/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j/github-api/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j/github-api/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j/github-api/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j/github-api/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j/github-api/merges", + "archive_url": "https://api.github.com/repos/hub4j/github-api/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j/github-api/downloads", + "issues_url": "https://api.github.com/repos/hub4j/github-api/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j/github-api/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j/github-api/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j/github-api/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j/github-api/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", + "created_at": "2010-04-19T04:13:03Z", + "updated_at": "2019-09-25T22:47:32Z", + "pushed_at": "2019-09-25T22:56:18Z", + "git_url": "git://github.com/hub4j/github-api.git", + "ssh_url": "git@github.com:hub4j/github-api.git", + "clone_url": "https://github.com/hub4j/github-api.git", + "svn_url": "https://github.com/hub4j/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 11678, + "stargazers_count": 553, + "watchers_count": 553, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 427, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 96, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "forks": 427, + "open_issues": 96, + "watchers": 553, + "default_branch": "main" + }, + "network_count": 427, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/4-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/4-r_h_github-api.json new file mode 100644 index 0000000000..6d03114863 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/__files/4-r_h_github-api.json @@ -0,0 +1,5 @@ +{ + "message": "Validation Failed", + "documentation_url": "https://docs.github.com/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository", + "status": "422" +} diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/1-user.json new file mode 100644 index 0000000000..a7e5c0c21c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "7f6e9a01-5bfa-4f72-9947-07df902f56c3", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Date": "Wed, 25 Sep 2019 23:35:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4992", + "X-RateLimit-Reset": "1569457884", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"14ffd29009ddc2209c450bb29a5a8330\"", + "Last-Modified": "Tue, 24 Sep 2019 19:32:29 GMT", + "X-OAuth-Scopes": "gist, notifications, read:org, read:public_key, read:repo_hook, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "F845:5D1D:FFA88A:12FE539:5D8BF9C5" + } + }, + "uuid": "7f6e9a01-5bfa-4f72-9947-07df902f56c3", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/2-orgs_hub4j-test-org.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/2-orgs_hub4j-test-org.json new file mode 100644 index 0000000000..64182cc8c5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/2-orgs_hub4j-test-org.json @@ -0,0 +1,48 @@ +{ + "id": "cb173af2-c793-444a-acdf-c3850e7afdbe", + "name": "orgs_hub4j-test-org", + "request": { + "url": "/orgs/hub4j-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "2-orgs_hub4j-test-org.json", + "headers": { + "Date": "Wed, 25 Sep 2019 23:35:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4989", + "X-RateLimit-Reset": "1569457884", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"b7989d48e6539c9c76038995b902421b\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "gist, notifications, read:org, read:public_key, read:repo_hook, repo", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "F855:59E1:1397ED7:171400E:5D8BF9DE" + } + }, + "uuid": "cb173af2-c793-444a-acdf-c3850e7afdbe", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/3-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/3-r_h_github-api.json new file mode 100644 index 0000000000..265e1fd4bb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/3-r_h_github-api.json @@ -0,0 +1,51 @@ +{ + "id": "0a4d7a1a-f99c-47ca-840a-3e920c18bd1f", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "3-r_h_github-api.json", + "headers": { + "Date": "Wed, 25 Sep 2019 23:35:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4988", + "X-RateLimit-Reset": "1569457884", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"0678d1c39ea574f68cc0fb330b067cb7\"", + "Last-Modified": "Wed, 25 Sep 2019 23:32:35 GMT", + "X-OAuth-Scopes": "gist, notifications, read:org, read:public_key, read:repo_hook, repo", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "F855:59E1:1397EEB:1714029:5D8BF9DE" + } + }, + "uuid": "0a4d7a1a-f99c-47ca-840a-3e920c18bd1f", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/4-r_h_github-api.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/4-r_h_github-api.json new file mode 100644 index 0000000000..ec44fcf0d3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/syncNoFork/mappings/4-r_h_github-api.json @@ -0,0 +1,54 @@ +{ + "id": "2c69d5c8-dd81-4204-bad9-ee37f5b0ebfd", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api/merge-upstream", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"branch\":\"main\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ], + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 422, + "bodyFileName": "4-r_h_github-api.json", + "headers": { + "Date": "Wed, 25 Sep 2019 23:35:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "422 Unprocessable Entity", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4987", + "X-RateLimit-Reset": "1569457884", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"e40487cafd3670c0de171f4250dbefb8\"", + "X-OAuth-Scopes": "gist, notifications, read:org, read:public_key, read:repo_hook, repo", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "F855:59E1:1397F0E:1714041:5D8BF9DE" + } + }, + "uuid": "2c69d5c8-dd81-4204-bad9-ee37f5b0ebfd", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/__files/1-user.json new file mode 100644 index 0000000000..4e07e04a7b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/__files/1-user.json @@ -0,0 +1,34 @@ +{ + "login": "ihrigb", + "id": 3423161, + "node_id": "MDQ6VXNlcjM0MjMxNjE=", + "avatar_url": "https://avatars.githubusercontent.com/u/3423161?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ihrigb", + "html_url": "https://github.com/ihrigb", + "followers_url": "https://api.github.com/users/ihrigb/followers", + "following_url": "https://api.github.com/users/ihrigb/following{/other_user}", + "gists_url": "https://api.github.com/users/ihrigb/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ihrigb/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ihrigb/subscriptions", + "organizations_url": "https://api.github.com/users/ihrigb/orgs", + "repos_url": "https://api.github.com/users/ihrigb/repos", + "events_url": "https://api.github.com/users/ihrigb/events{/privacy}", + "received_events_url": "https://api.github.com/users/ihrigb/received_events", + "type": "User", + "site_admin": false, + "name": "Benjamin Ihrig", + "company": "SAP SE", + "blog": "", + "location": "Germany", + "email": null, + "hireable": null, + "bio": "Working at @SAP.\r\nDoing software projects for a volunteer fire brigade in free time. Smart home enthusiast. Scuba diving instructor.", + "twitter_username": null, + "public_repos": 27, + "public_gists": 1, + "followers": 5, + "following": 20, + "created_at": "2013-01-30T02:20:16Z", + "updated_at": "2024-07-08T08:46:37Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/__files/2-r_i_node-doorbird.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/__files/2-r_i_node-doorbird.json new file mode 100644 index 0000000000..22b2e05ec6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/__files/2-r_i_node-doorbird.json @@ -0,0 +1,150 @@ +{ + "id": 404133501, + "node_id": "MDEwOlJlcG9zaXRvcnk0MDQxMzM1MDE=", + "name": "node-doorbird", + "full_name": "ihrigb/node-doorbird", + "private": false, + "owner": { + "login": "ihrigb", + "id": 3423161, + "node_id": "MDQ6VXNlcjM0MjMxNjE=", + "avatar_url": "https://avatars.githubusercontent.com/u/3423161?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ihrigb", + "html_url": "https://github.com/ihrigb", + "followers_url": "https://api.github.com/users/ihrigb/followers", + "following_url": "https://api.github.com/users/ihrigb/following{/other_user}", + "gists_url": "https://api.github.com/users/ihrigb/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ihrigb/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ihrigb/subscriptions", + "organizations_url": "https://api.github.com/users/ihrigb/orgs", + "repos_url": "https://api.github.com/users/ihrigb/repos", + "events_url": "https://api.github.com/users/ihrigb/events{/privacy}", + "received_events_url": "https://api.github.com/users/ihrigb/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/ihrigb/node-doorbird", + "description": "Node client library for Doorbird's HTTP API.", + "fork": false, + "url": "https://api.github.com/repos/ihrigb/node-doorbird", + "forks_url": "https://api.github.com/repos/ihrigb/node-doorbird/forks", + "keys_url": "https://api.github.com/repos/ihrigb/node-doorbird/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/ihrigb/node-doorbird/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/ihrigb/node-doorbird/teams", + "hooks_url": "https://api.github.com/repos/ihrigb/node-doorbird/hooks", + "issue_events_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues/events{/number}", + "events_url": "https://api.github.com/repos/ihrigb/node-doorbird/events", + "assignees_url": "https://api.github.com/repos/ihrigb/node-doorbird/assignees{/user}", + "branches_url": "https://api.github.com/repos/ihrigb/node-doorbird/branches{/branch}", + "tags_url": "https://api.github.com/repos/ihrigb/node-doorbird/tags", + "blobs_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/ihrigb/node-doorbird/statuses/{sha}", + "languages_url": "https://api.github.com/repos/ihrigb/node-doorbird/languages", + "stargazers_url": "https://api.github.com/repos/ihrigb/node-doorbird/stargazers", + "contributors_url": "https://api.github.com/repos/ihrigb/node-doorbird/contributors", + "subscribers_url": "https://api.github.com/repos/ihrigb/node-doorbird/subscribers", + "subscription_url": "https://api.github.com/repos/ihrigb/node-doorbird/subscription", + "commits_url": "https://api.github.com/repos/ihrigb/node-doorbird/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/ihrigb/node-doorbird/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/ihrigb/node-doorbird/contents/{+path}", + "compare_url": "https://api.github.com/repos/ihrigb/node-doorbird/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/ihrigb/node-doorbird/merges", + "archive_url": "https://api.github.com/repos/ihrigb/node-doorbird/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/ihrigb/node-doorbird/downloads", + "issues_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues{/number}", + "pulls_url": "https://api.github.com/repos/ihrigb/node-doorbird/pulls{/number}", + "milestones_url": "https://api.github.com/repos/ihrigb/node-doorbird/milestones{/number}", + "notifications_url": "https://api.github.com/repos/ihrigb/node-doorbird/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/ihrigb/node-doorbird/labels{/name}", + "releases_url": "https://api.github.com/repos/ihrigb/node-doorbird/releases{/id}", + "deployments_url": "https://api.github.com/repos/ihrigb/node-doorbird/deployments", + "created_at": "2021-09-07T21:58:15Z", + "updated_at": "2024-07-01T18:54:00Z", + "pushed_at": "2024-07-10T21:44:07Z", + "git_url": "git://github.com/ihrigb/node-doorbird.git", + "ssh_url": "git@github.com:ihrigb/node-doorbird.git", + "clone_url": "https://github.com/ihrigb/node-doorbird.git", + "svn_url": "https://github.com/ihrigb/node-doorbird", + "homepage": "", + "size": 1055, + "stargazers_count": 4, + "watchers_count": 4, + "language": "TypeScript", + "has_issues": true, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 2, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 5, + "license": { + "key": "apache-2.0", + "name": "Apache License 2.0", + "spdx_id": "Apache-2.0", + "url": "https://api.github.com/licenses/apache-2.0", + "node_id": "MDc6TGljZW5zZTI=" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [ + "client-library", + "doorbell", + "doorbird", + "library", + "smarthome" + ], + "visibility": "public", + "forks": 2, + "open_issues": 5, + "watchers": 4, + "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" + }, + "secret_scanning_non_provider_patterns": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 2, + "subscribers_count": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/__files/3-r_i_n_rules_branches_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/__files/3-r_i_n_rules_branches_main.json new file mode 100644 index 0000000000..82223a475d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/__files/3-r_i_n_rules_branches_main.json @@ -0,0 +1,27 @@ +[ + { + "type": "deletion", + "ruleset_source_type": "Repository", + "ruleset_source": "ihrigb/node-doorbird", + "ruleset_id": 1170520 + }, + { + "type": "non_fast_forward", + "ruleset_source_type": "Repository", + "ruleset_source": "ihrigb/node-doorbird", + "ruleset_id": 1170520 + }, + { + "type": "pull_request", + "parameters": { + "required_approving_review_count": 1, + "dismiss_stale_reviews_on_push": true, + "require_code_owner_review": false, + "require_last_push_approval": false, + "required_review_thread_resolution": false + }, + "ruleset_source_type": "Repository", + "ruleset_source": "ihrigb/node-doorbird", + "ruleset_id": 1170520 + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/mappings/1-user.json new file mode 100644 index 0000000000..4bc414dbff --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "3db4f955-4396-42bc-9025-19cf605fc06c", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Date": "Mon, 15 Jul 2024 08:30:49 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/\"ddc9069d08e23a7137c1afd3a7582b40343a9531d163859e421e699865eed231\"", + "Last-Modified": "Mon, 08 Jul 2024 08:46:37 GMT", + "X-OAuth-Scopes": "admin:org, repo", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-08-14 08:24:53 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4986", + "X-RateLimit-Reset": "1721035644", + "X-RateLimit-Used": "14", + "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'", + "Server": "github.com", + "X-GitHub-Request-Id": "2F9F:1AB9D3:A03037B:A25F83C:6694DE39" + } + }, + "uuid": "3db4f955-4396-42bc-9025-19cf605fc06c", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/mappings/2-r_i_node-doorbird.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/mappings/2-r_i_node-doorbird.json new file mode 100644 index 0000000000..8345afaed9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/mappings/2-r_i_node-doorbird.json @@ -0,0 +1,48 @@ +{ + "id": "348f8bdb-afc0-42cf-8160-bf3bf5596ed7", + "name": "repos_ihrigb_node-doorbird", + "request": { + "url": "/repos/ihrigb/node-doorbird", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "2-r_i_node-doorbird.json", + "headers": { + "Date": "Mon, 15 Jul 2024 08:30:49 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/\"185e10d64c2a19173cb1150148d87a1c0da1f66d8b553c79689f0a5e73143d30\"", + "Last-Modified": "Mon, 01 Jul 2024 18:54:00 GMT", + "X-OAuth-Scopes": "admin:org, repo", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2024-08-14 08:24:53 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4984", + "X-RateLimit-Reset": "1721035644", + "X-RateLimit-Used": "16", + "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'", + "Server": "github.com", + "X-GitHub-Request-Id": "442E:34EF67:55A9DC3:56E9441:6694DE39" + } + }, + "uuid": "348f8bdb-afc0-42cf-8160-bf3bf5596ed7", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/mappings/3-r_i_n_rules_branches_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/mappings/3-r_i_n_rules_branches_main.json new file mode 100644 index 0000000000..8f7a60dd10 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRulesForBranch/mappings/3-r_i_n_rules_branches_main.json @@ -0,0 +1,47 @@ +{ + "id": "5d5471fe-6842-47d0-876e-0083b8d7708f", + "name": "repos_ihrigb_node-doorbird_rules_branches_main", + "request": { + "url": "/repos/ihrigb/node-doorbird/rules/branches/main", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "3-r_i_n_rules_branches_main.json", + "headers": { + "Date": "Mon, 15 Jul 2024 08:30:50 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "W/\"bfdf4f7b088f8bb098a04db8694a3e420c4e6953de47a7a0fb0f1c8f756a1854\"", + "X-OAuth-Scopes": "admin:org, repo", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-08-14 08:24:53 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4983", + "X-RateLimit-Reset": "1721035644", + "X-RateLimit-Used": "17", + "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'", + "Server": "github.com", + "X-GitHub-Request-Id": "E229:31B5A3:74633C:759FE7:6694DE39" + } + }, + "uuid": "5d5471fe-6842-47d0-876e-0083b8d7708f", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/__files/1-user.json new file mode 100644 index 0000000000..3f1e83ed32 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/__files/1-user.json @@ -0,0 +1,34 @@ +{ + "login": "ihrigb", + "id": 3423161, + "node_id": "MDQ6VXNlcjM0MjMxNjE=", + "avatar_url": "https://avatars.githubusercontent.com/u/3423161?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ihrigb", + "html_url": "https://github.com/ihrigb", + "followers_url": "https://api.github.com/users/ihrigb/followers", + "following_url": "https://api.github.com/users/ihrigb/following{/other_user}", + "gists_url": "https://api.github.com/users/ihrigb/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ihrigb/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ihrigb/subscriptions", + "organizations_url": "https://api.github.com/users/ihrigb/orgs", + "repos_url": "https://api.github.com/users/ihrigb/repos", + "events_url": "https://api.github.com/users/ihrigb/events{/privacy}", + "received_events_url": "https://api.github.com/users/ihrigb/received_events", + "type": "User", + "site_admin": false, + "name": "Benjamin Ihrig", + "company": "SAP SE", + "blog": "", + "location": "Germany", + "email": null, + "hireable": null, + "bio": "Working at @SAP.\r\nDoing software projects for a volunteer fire brigade in free time. Smart home enthusiast. Scuba diving instructor.", + "twitter_username": null, + "public_repos": 26, + "public_gists": 1, + "followers": 5, + "following": 20, + "created_at": "2013-01-30T02:20:16Z", + "updated_at": "2024-02-23T21:51:51Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/__files/2-r_i_node-doorbird.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/__files/2-r_i_node-doorbird.json new file mode 100644 index 0000000000..2bc400fb02 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/__files/2-r_i_node-doorbird.json @@ -0,0 +1,135 @@ +{ + "id": 404133501, + "node_id": "MDEwOlJlcG9zaXRvcnk0MDQxMzM1MDE=", + "name": "node-doorbird", + "full_name": "ihrigb/node-doorbird", + "private": false, + "owner": { + "login": "ihrigb", + "id": 3423161, + "node_id": "MDQ6VXNlcjM0MjMxNjE=", + "avatar_url": "https://avatars.githubusercontent.com/u/3423161?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ihrigb", + "html_url": "https://github.com/ihrigb", + "followers_url": "https://api.github.com/users/ihrigb/followers", + "following_url": "https://api.github.com/users/ihrigb/following{/other_user}", + "gists_url": "https://api.github.com/users/ihrigb/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ihrigb/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ihrigb/subscriptions", + "organizations_url": "https://api.github.com/users/ihrigb/orgs", + "repos_url": "https://api.github.com/users/ihrigb/repos", + "events_url": "https://api.github.com/users/ihrigb/events{/privacy}", + "received_events_url": "https://api.github.com/users/ihrigb/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/ihrigb/node-doorbird", + "description": "Node client library for Doorbird's HTTP API.", + "fork": false, + "url": "https://api.github.com/repos/ihrigb/node-doorbird", + "forks_url": "https://api.github.com/repos/ihrigb/node-doorbird/forks", + "keys_url": "https://api.github.com/repos/ihrigb/node-doorbird/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/ihrigb/node-doorbird/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/ihrigb/node-doorbird/teams", + "hooks_url": "https://api.github.com/repos/ihrigb/node-doorbird/hooks", + "issue_events_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues/events{/number}", + "events_url": "https://api.github.com/repos/ihrigb/node-doorbird/events", + "assignees_url": "https://api.github.com/repos/ihrigb/node-doorbird/assignees{/user}", + "branches_url": "https://api.github.com/repos/ihrigb/node-doorbird/branches{/branch}", + "tags_url": "https://api.github.com/repos/ihrigb/node-doorbird/tags", + "blobs_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/ihrigb/node-doorbird/statuses/{sha}", + "languages_url": "https://api.github.com/repos/ihrigb/node-doorbird/languages", + "stargazers_url": "https://api.github.com/repos/ihrigb/node-doorbird/stargazers", + "contributors_url": "https://api.github.com/repos/ihrigb/node-doorbird/contributors", + "subscribers_url": "https://api.github.com/repos/ihrigb/node-doorbird/subscribers", + "subscription_url": "https://api.github.com/repos/ihrigb/node-doorbird/subscription", + "commits_url": "https://api.github.com/repos/ihrigb/node-doorbird/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/ihrigb/node-doorbird/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/ihrigb/node-doorbird/contents/{+path}", + "compare_url": "https://api.github.com/repos/ihrigb/node-doorbird/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/ihrigb/node-doorbird/merges", + "archive_url": "https://api.github.com/repos/ihrigb/node-doorbird/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/ihrigb/node-doorbird/downloads", + "issues_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues{/number}", + "pulls_url": "https://api.github.com/repos/ihrigb/node-doorbird/pulls{/number}", + "milestones_url": "https://api.github.com/repos/ihrigb/node-doorbird/milestones{/number}", + "notifications_url": "https://api.github.com/repos/ihrigb/node-doorbird/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/ihrigb/node-doorbird/labels{/name}", + "releases_url": "https://api.github.com/repos/ihrigb/node-doorbird/releases{/id}", + "deployments_url": "https://api.github.com/repos/ihrigb/node-doorbird/deployments", + "created_at": "2021-09-07T21:58:15Z", + "updated_at": "2024-06-20T20:02:34Z", + "pushed_at": "2024-06-24T22:22:00Z", + "git_url": "git://github.com/ihrigb/node-doorbird.git", + "ssh_url": "git@github.com:ihrigb/node-doorbird.git", + "clone_url": "https://github.com/ihrigb/node-doorbird.git", + "svn_url": "https://github.com/ihrigb/node-doorbird", + "homepage": "", + "size": 1279, + "stargazers_count": 4, + "watchers_count": 4, + "language": "TypeScript", + "has_issues": true, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 2, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": { + "key": "apache-2.0", + "name": "Apache License 2.0", + "spdx_id": "Apache-2.0", + "url": "https://api.github.com/licenses/apache-2.0", + "node_id": "MDc6TGljZW5zZTI=" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [ + "client-library", + "doorbell", + "doorbird", + "library", + "smarthome" + ], + "visibility": "public", + "forks": 2, + "open_issues": 3, + "watchers": 4, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 2, + "subscribers_count": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/mappings/1-user.json new file mode 100644 index 0000000000..0d8f0be37d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "2ae410dc-5442-442b-b7d6-145106cdd630", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Server": "istio-envoy", + "Date": "Mon, 01 Jul 2024 08:23:10 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "W/\"18e79cac306e2b256847587d121593af4c51df3d8d367e392289c99bfbeb77f0\"", + "Last-Modified": "Fri, 23 Feb 2024 21:51:51 GMT", + "github-authentication-token-expiration": "2024-07-31 10:13:04 +0200", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-accepted-github-permissions": "allows_permissionless_access=true", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4026", + "X-RateLimit-Reset": "1719823001", + "X-RateLimit-Used": "974", + "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-envoy-upstream-service-time": "65", + "X-GitHub-Request-Id": "3D98:27C18F:32B92B7:3352E53:6682676E" + } + }, + "uuid": "2ae410dc-5442-442b-b7d6-145106cdd630", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/mappings/2-r_i_node-doorbird.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/mappings/2-r_i_node-doorbird.json new file mode 100644 index 0000000000..1c766aece9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/mappings/2-r_i_node-doorbird.json @@ -0,0 +1,49 @@ +{ + "id": "4022161d-3ae8-4b11-a389-9c14ab9f2d23", + "name": "repos_ihrigb_node-doorbird", + "request": { + "url": "/repos/ihrigb/node-doorbird", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "2-r_i_node-doorbird.json", + "headers": { + "Server": "istio-envoy", + "Date": "Mon, 01 Jul 2024 08:23: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/\"55d3ba68210c42d7349064b62572ac3f5649ea91cda0e535dafffd6cdc8d366d\"", + "Last-Modified": "Thu, 20 Jun 2024 20:02:34 GMT", + "github-authentication-token-expiration": "2024-07-31 10:13:04 +0200", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-accepted-github-permissions": "metadata=read", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4024", + "X-RateLimit-Reset": "1719823001", + "X-RateLimit-Used": "976", + "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-envoy-upstream-service-time": "152", + "x-envoy-decorator-operation": "unicorn-api.github-production.svc.cluster.local:80/*", + "X-GitHub-Request-Id": "4EF8:23E496:33C7BC8:3461A9E:6682676E" + } + }, + "uuid": "4022161d-3ae8-4b11-a389-9c14ab9f2d23", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/mappings/3-r_i_n_traffic_popular_paths.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/mappings/3-r_i_n_traffic_popular_paths.json new file mode 100644 index 0000000000..cb9e009c0b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralPaths/mappings/3-r_i_n_traffic_popular_paths.json @@ -0,0 +1,47 @@ +{ + "id": "e9539f90-d4be-4c80-a4bd-6a8364eb1c91", + "name": "repos_ihrigb_node-doorbird_traffic_popular_paths", + "request": { + "url": "/repos/ihrigb/node-doorbird/traffic/popular/paths", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "body": "[{\"path\":\"/ihrigb/node-doorbird\",\"title\":\"ihrigb/node-doorbird: Node client library for Doorbird's HTTP API.\",\"count\":7,\"uniques\":7}]", + "headers": { + "Server": "istio-envoy", + "Date": "Mon, 01 Jul 2024 08:23: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/\"006eb2ae8e15394459f8f30538923500d1c69cae53950a43dac01801004e1cb6\"", + "github-authentication-token-expiration": "2024-07-31 10:13:04 +0200", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-accepted-github-permissions": "administration=read", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4023", + "X-RateLimit-Reset": "1719823001", + "X-RateLimit-Used": "977", + "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-envoy-upstream-service-time": "109", + "X-GitHub-Request-Id": "9D4E:1DD08D:3271725:3309DBF:6682676F" + } + }, + "uuid": "e9539f90-d4be-4c80-a4bd-6a8364eb1c91", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/__files/1-user.json new file mode 100644 index 0000000000..3f1e83ed32 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/__files/1-user.json @@ -0,0 +1,34 @@ +{ + "login": "ihrigb", + "id": 3423161, + "node_id": "MDQ6VXNlcjM0MjMxNjE=", + "avatar_url": "https://avatars.githubusercontent.com/u/3423161?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ihrigb", + "html_url": "https://github.com/ihrigb", + "followers_url": "https://api.github.com/users/ihrigb/followers", + "following_url": "https://api.github.com/users/ihrigb/following{/other_user}", + "gists_url": "https://api.github.com/users/ihrigb/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ihrigb/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ihrigb/subscriptions", + "organizations_url": "https://api.github.com/users/ihrigb/orgs", + "repos_url": "https://api.github.com/users/ihrigb/repos", + "events_url": "https://api.github.com/users/ihrigb/events{/privacy}", + "received_events_url": "https://api.github.com/users/ihrigb/received_events", + "type": "User", + "site_admin": false, + "name": "Benjamin Ihrig", + "company": "SAP SE", + "blog": "", + "location": "Germany", + "email": null, + "hireable": null, + "bio": "Working at @SAP.\r\nDoing software projects for a volunteer fire brigade in free time. Smart home enthusiast. Scuba diving instructor.", + "twitter_username": null, + "public_repos": 26, + "public_gists": 1, + "followers": 5, + "following": 20, + "created_at": "2013-01-30T02:20:16Z", + "updated_at": "2024-02-23T21:51:51Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/__files/2-r_i_node-doorbird.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/__files/2-r_i_node-doorbird.json new file mode 100644 index 0000000000..2bc400fb02 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/__files/2-r_i_node-doorbird.json @@ -0,0 +1,135 @@ +{ + "id": 404133501, + "node_id": "MDEwOlJlcG9zaXRvcnk0MDQxMzM1MDE=", + "name": "node-doorbird", + "full_name": "ihrigb/node-doorbird", + "private": false, + "owner": { + "login": "ihrigb", + "id": 3423161, + "node_id": "MDQ6VXNlcjM0MjMxNjE=", + "avatar_url": "https://avatars.githubusercontent.com/u/3423161?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ihrigb", + "html_url": "https://github.com/ihrigb", + "followers_url": "https://api.github.com/users/ihrigb/followers", + "following_url": "https://api.github.com/users/ihrigb/following{/other_user}", + "gists_url": "https://api.github.com/users/ihrigb/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ihrigb/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ihrigb/subscriptions", + "organizations_url": "https://api.github.com/users/ihrigb/orgs", + "repos_url": "https://api.github.com/users/ihrigb/repos", + "events_url": "https://api.github.com/users/ihrigb/events{/privacy}", + "received_events_url": "https://api.github.com/users/ihrigb/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/ihrigb/node-doorbird", + "description": "Node client library for Doorbird's HTTP API.", + "fork": false, + "url": "https://api.github.com/repos/ihrigb/node-doorbird", + "forks_url": "https://api.github.com/repos/ihrigb/node-doorbird/forks", + "keys_url": "https://api.github.com/repos/ihrigb/node-doorbird/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/ihrigb/node-doorbird/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/ihrigb/node-doorbird/teams", + "hooks_url": "https://api.github.com/repos/ihrigb/node-doorbird/hooks", + "issue_events_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues/events{/number}", + "events_url": "https://api.github.com/repos/ihrigb/node-doorbird/events", + "assignees_url": "https://api.github.com/repos/ihrigb/node-doorbird/assignees{/user}", + "branches_url": "https://api.github.com/repos/ihrigb/node-doorbird/branches{/branch}", + "tags_url": "https://api.github.com/repos/ihrigb/node-doorbird/tags", + "blobs_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/ihrigb/node-doorbird/statuses/{sha}", + "languages_url": "https://api.github.com/repos/ihrigb/node-doorbird/languages", + "stargazers_url": "https://api.github.com/repos/ihrigb/node-doorbird/stargazers", + "contributors_url": "https://api.github.com/repos/ihrigb/node-doorbird/contributors", + "subscribers_url": "https://api.github.com/repos/ihrigb/node-doorbird/subscribers", + "subscription_url": "https://api.github.com/repos/ihrigb/node-doorbird/subscription", + "commits_url": "https://api.github.com/repos/ihrigb/node-doorbird/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/ihrigb/node-doorbird/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/ihrigb/node-doorbird/contents/{+path}", + "compare_url": "https://api.github.com/repos/ihrigb/node-doorbird/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/ihrigb/node-doorbird/merges", + "archive_url": "https://api.github.com/repos/ihrigb/node-doorbird/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/ihrigb/node-doorbird/downloads", + "issues_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues{/number}", + "pulls_url": "https://api.github.com/repos/ihrigb/node-doorbird/pulls{/number}", + "milestones_url": "https://api.github.com/repos/ihrigb/node-doorbird/milestones{/number}", + "notifications_url": "https://api.github.com/repos/ihrigb/node-doorbird/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/ihrigb/node-doorbird/labels{/name}", + "releases_url": "https://api.github.com/repos/ihrigb/node-doorbird/releases{/id}", + "deployments_url": "https://api.github.com/repos/ihrigb/node-doorbird/deployments", + "created_at": "2021-09-07T21:58:15Z", + "updated_at": "2024-06-20T20:02:34Z", + "pushed_at": "2024-06-24T22:22:00Z", + "git_url": "git://github.com/ihrigb/node-doorbird.git", + "ssh_url": "git@github.com:ihrigb/node-doorbird.git", + "clone_url": "https://github.com/ihrigb/node-doorbird.git", + "svn_url": "https://github.com/ihrigb/node-doorbird", + "homepage": "", + "size": 1279, + "stargazers_count": 4, + "watchers_count": 4, + "language": "TypeScript", + "has_issues": true, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 2, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 3, + "license": { + "key": "apache-2.0", + "name": "Apache License 2.0", + "spdx_id": "Apache-2.0", + "url": "https://api.github.com/licenses/apache-2.0", + "node_id": "MDc6TGljZW5zZTI=" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [ + "client-library", + "doorbell", + "doorbird", + "library", + "smarthome" + ], + "visibility": "public", + "forks": 2, + "open_issues": 3, + "watchers": 4, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 2, + "subscribers_count": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/mappings/1-user.json new file mode 100644 index 0000000000..ed4d3e3ac2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "8108f0e0-5de3-4794-8f85-b9940ebbbce7", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Server": "istio-envoy", + "Date": "Mon, 01 Jul 2024 08:22:45 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "W/\"18e79cac306e2b256847587d121593af4c51df3d8d367e392289c99bfbeb77f0\"", + "Last-Modified": "Fri, 23 Feb 2024 21:51:51 GMT", + "github-authentication-token-expiration": "2024-07-31 10:13:04 +0200", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-accepted-github-permissions": "allows_permissionless_access=true", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4132", + "X-RateLimit-Reset": "1719823001", + "X-RateLimit-Used": "868", + "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-envoy-upstream-service-time": "71", + "X-GitHub-Request-Id": "4E8A:279108:27D16D3:2855622:66826755" + } + }, + "uuid": "8108f0e0-5de3-4794-8f85-b9940ebbbce7", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/mappings/2-r_i_node-doorbird.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/mappings/2-r_i_node-doorbird.json new file mode 100644 index 0000000000..6f15857291 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/mappings/2-r_i_node-doorbird.json @@ -0,0 +1,48 @@ +{ + "id": "0b16951e-7447-44a8-95d5-a86a6a37b600", + "name": "repos_ihrigb_node-doorbird", + "request": { + "url": "/repos/ihrigb/node-doorbird", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "2-r_i_node-doorbird.json", + "headers": { + "Server": "istio-envoy", + "Date": "Mon, 01 Jul 2024 08:22:45 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "W/\"55d3ba68210c42d7349064b62572ac3f5649ea91cda0e535dafffd6cdc8d366d\"", + "Last-Modified": "Thu, 20 Jun 2024 20:02:34 GMT", + "github-authentication-token-expiration": "2024-07-31 10:13:04 +0200", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-accepted-github-permissions": "metadata=read", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4130", + "X-RateLimit-Reset": "1719823001", + "X-RateLimit-Used": "870", + "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-envoy-upstream-service-time": "125", + "X-GitHub-Request-Id": "BB97:1A6A5B:337D621:3417090:66826755" + } + }, + "uuid": "0b16951e-7447-44a8-95d5-a86a6a37b600", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/mappings/3-r_i_n_traffic_popular_referrers.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/mappings/3-r_i_n_traffic_popular_referrers.json new file mode 100644 index 0000000000..b6f44ffee9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetTopReferralSources/mappings/3-r_i_n_traffic_popular_referrers.json @@ -0,0 +1,47 @@ +{ + "id": "700d7c9d-6bfe-4f28-bcdc-2a3c0e8e00f7", + "name": "repos_ihrigb_node-doorbird_traffic_popular_referrers", + "request": { + "url": "/repos/ihrigb/node-doorbird/traffic/popular/referrers", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "body": "[{\"referrer\":\"Google\",\"count\":5,\"uniques\":5},{\"referrer\":\"github.com\",\"count\":1,\"uniques\":1}]", + "headers": { + "Server": "istio-envoy", + "Date": "Mon, 01 Jul 2024 08:22: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/\"6095454e0e2facdf82dbc587d67b5647c571803ca74057741dceb0e7737791fe\"", + "github-authentication-token-expiration": "2024-07-31 10:13:04 +0200", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-accepted-github-permissions": "administration=read", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4129", + "X-RateLimit-Reset": "1719823001", + "X-RateLimit-Used": "871", + "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-envoy-upstream-service-time": "114", + "X-GitHub-Request-Id": "5F33:DCC42:2FC56E3:305E165:66826756" + } + }, + "uuid": "700d7c9d-6bfe-4f28-bcdc-2a3c0e8e00f7", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/__files/1-user.json new file mode 100644 index 0000000000..b0a63df4ba --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/__files/1-user.json @@ -0,0 +1,35 @@ +{ + "login": "ihrigb", + "id": 3423161, + "node_id": "MDQ6VXNlcjM0MjMxNjE=", + "avatar_url": "https://avatars.githubusercontent.com/u/3423161?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ihrigb", + "html_url": "https://github.com/ihrigb", + "followers_url": "https://api.github.com/users/ihrigb/followers", + "following_url": "https://api.github.com/users/ihrigb/following{/other_user}", + "gists_url": "https://api.github.com/users/ihrigb/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ihrigb/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ihrigb/subscriptions", + "organizations_url": "https://api.github.com/users/ihrigb/orgs", + "repos_url": "https://api.github.com/users/ihrigb/repos", + "events_url": "https://api.github.com/users/ihrigb/events{/privacy}", + "received_events_url": "https://api.github.com/users/ihrigb/received_events", + "type": "User", + "site_admin": false, + "name": "Benjamin Ihrig", + "company": "SAP SE", + "blog": "", + "location": "Germany", + "email": null, + "hireable": null, + "bio": "Working at @SAP.\r\nDoing software projects for a volunteer fire brigade in free time. Smart home enthusiast. Scuba diving instructor.", + "twitter_username": null, + "notification_email": null, + "public_repos": 27, + "public_gists": 1, + "followers": 5, + "following": 20, + "created_at": "2013-01-30T02:20:16Z", + "updated_at": "2024-08-12T12:00:08Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/__files/2-r_i_node-doorbird.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/__files/2-r_i_node-doorbird.json new file mode 100644 index 0000000000..d803b9a99f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/__files/2-r_i_node-doorbird.json @@ -0,0 +1,150 @@ +{ + "id": 404133501, + "node_id": "MDEwOlJlcG9zaXRvcnk0MDQxMzM1MDE=", + "name": "node-doorbird", + "full_name": "ihrigb/node-doorbird", + "private": false, + "owner": { + "login": "ihrigb", + "id": 3423161, + "node_id": "MDQ6VXNlcjM0MjMxNjE=", + "avatar_url": "https://avatars.githubusercontent.com/u/3423161?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ihrigb", + "html_url": "https://github.com/ihrigb", + "followers_url": "https://api.github.com/users/ihrigb/followers", + "following_url": "https://api.github.com/users/ihrigb/following{/other_user}", + "gists_url": "https://api.github.com/users/ihrigb/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ihrigb/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ihrigb/subscriptions", + "organizations_url": "https://api.github.com/users/ihrigb/orgs", + "repos_url": "https://api.github.com/users/ihrigb/repos", + "events_url": "https://api.github.com/users/ihrigb/events{/privacy}", + "received_events_url": "https://api.github.com/users/ihrigb/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/ihrigb/node-doorbird", + "description": "Node client library for Doorbird's HTTP API.", + "fork": false, + "url": "https://api.github.com/repos/ihrigb/node-doorbird", + "forks_url": "https://api.github.com/repos/ihrigb/node-doorbird/forks", + "keys_url": "https://api.github.com/repos/ihrigb/node-doorbird/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/ihrigb/node-doorbird/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/ihrigb/node-doorbird/teams", + "hooks_url": "https://api.github.com/repos/ihrigb/node-doorbird/hooks", + "issue_events_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues/events{/number}", + "events_url": "https://api.github.com/repos/ihrigb/node-doorbird/events", + "assignees_url": "https://api.github.com/repos/ihrigb/node-doorbird/assignees{/user}", + "branches_url": "https://api.github.com/repos/ihrigb/node-doorbird/branches{/branch}", + "tags_url": "https://api.github.com/repos/ihrigb/node-doorbird/tags", + "blobs_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/ihrigb/node-doorbird/statuses/{sha}", + "languages_url": "https://api.github.com/repos/ihrigb/node-doorbird/languages", + "stargazers_url": "https://api.github.com/repos/ihrigb/node-doorbird/stargazers", + "contributors_url": "https://api.github.com/repos/ihrigb/node-doorbird/contributors", + "subscribers_url": "https://api.github.com/repos/ihrigb/node-doorbird/subscribers", + "subscription_url": "https://api.github.com/repos/ihrigb/node-doorbird/subscription", + "commits_url": "https://api.github.com/repos/ihrigb/node-doorbird/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/ihrigb/node-doorbird/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/ihrigb/node-doorbird/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/ihrigb/node-doorbird/contents/{+path}", + "compare_url": "https://api.github.com/repos/ihrigb/node-doorbird/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/ihrigb/node-doorbird/merges", + "archive_url": "https://api.github.com/repos/ihrigb/node-doorbird/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/ihrigb/node-doorbird/downloads", + "issues_url": "https://api.github.com/repos/ihrigb/node-doorbird/issues{/number}", + "pulls_url": "https://api.github.com/repos/ihrigb/node-doorbird/pulls{/number}", + "milestones_url": "https://api.github.com/repos/ihrigb/node-doorbird/milestones{/number}", + "notifications_url": "https://api.github.com/repos/ihrigb/node-doorbird/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/ihrigb/node-doorbird/labels{/name}", + "releases_url": "https://api.github.com/repos/ihrigb/node-doorbird/releases{/id}", + "deployments_url": "https://api.github.com/repos/ihrigb/node-doorbird/deployments", + "created_at": "2021-09-07T21:58:15Z", + "updated_at": "2024-07-01T18:54:00Z", + "pushed_at": "2024-09-03T07:44:00Z", + "git_url": "git://github.com/ihrigb/node-doorbird.git", + "ssh_url": "git@github.com:ihrigb/node-doorbird.git", + "clone_url": "https://github.com/ihrigb/node-doorbird.git", + "svn_url": "https://github.com/ihrigb/node-doorbird", + "homepage": "", + "size": 1066, + "stargazers_count": 4, + "watchers_count": 4, + "language": "TypeScript", + "has_issues": true, + "has_projects": false, + "has_downloads": true, + "has_wiki": false, + "has_pages": false, + "has_discussions": false, + "forks_count": 2, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 9, + "license": { + "key": "apache-2.0", + "name": "Apache License 2.0", + "spdx_id": "Apache-2.0", + "url": "https://api.github.com/licenses/apache-2.0", + "node_id": "MDc6TGljZW5zZTI=" + }, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [ + "client-library", + "doorbell", + "doorbird", + "library", + "smarthome" + ], + "visibility": "public", + "forks": 2, + "open_issues": 9, + "watchers": 4, + "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" + }, + "secret_scanning_non_provider_patterns": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 2, + "subscribers_count": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/mappings/1-user.json new file mode 100644 index 0000000000..631aa277c3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "057181f4-19fc-497e-bc79-78485c3fbb4b", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Date": "Tue, 03 Sep 2024 14:40: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/\"feef28d57fd914d7e1936fb4ddd2616ea7a4fe2cf5be3eb97ce9b82e603eeaac\"", + "Last-Modified": "Mon, 12 Aug 2024 12:00:08 GMT", + "X-OAuth-Scopes": "admin:org, repo", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2024-10-03 12:42:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4995", + "X-RateLimit-Reset": "1725376444", + "X-RateLimit-Used": "5", + "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'", + "Server": "github.com", + "X-GitHub-Request-Id": "D968:3A978A:64638FE:6586262:66D71FD4" + } + }, + "uuid": "057181f4-19fc-497e-bc79-78485c3fbb4b", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/mappings/2-r_i_node-doorbird.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/mappings/2-r_i_node-doorbird.json new file mode 100644 index 0000000000..db7be78b9f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/mappings/2-r_i_node-doorbird.json @@ -0,0 +1,48 @@ +{ + "id": "d075c001-c9f2-4b76-9493-6d70164c8226", + "name": "repos_ihrigb_node-doorbird", + "request": { + "url": "/repos/ihrigb/node-doorbird", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "2-r_i_node-doorbird.json", + "headers": { + "Date": "Tue, 03 Sep 2024 14:40: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/\"b3bb65178f0f4bfb02d44a277db22b6ea92fa8fc50b4bd6577ca997f31474424\"", + "Last-Modified": "Mon, 01 Jul 2024 18:54:00 GMT", + "X-OAuth-Scopes": "admin:org, repo", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2024-10-03 12:42:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4993", + "X-RateLimit-Reset": "1725376444", + "X-RateLimit-Used": "7", + "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'", + "Server": "github.com", + "X-GitHub-Request-Id": "6888:328A84:5D538DD:5E63CD4:66D71FD5" + } + }, + "uuid": "d075c001-c9f2-4b76-9493-6d70164c8226", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/mappings/3-r_i_n_vulnerability-alerts.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/mappings/3-r_i_n_vulnerability-alerts.json new file mode 100644 index 0000000000..2242b382df --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testIsVulnerabilityAlertsEnabled/mappings/3-r_i_n_vulnerability-alerts.json @@ -0,0 +1,43 @@ +{ + "id": "fd134a9f-b379-4cce-9eed-4f11d181ec3b", + "name": "repos_ihrigb_node-doorbird_vulnerability-alerts", + "request": { + "url": "/repos/ihrigb/node-doorbird/vulnerability-alerts", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Date": "Tue, 03 Sep 2024 14:40:22 GMT", + "X-OAuth-Scopes": "admin:org, repo", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2024-10-03 12:42:47 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4992", + "X-RateLimit-Reset": "1725376444", + "X-RateLimit-Used": "8", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "Server": "github.com", + "X-GitHub-Request-Id": "F915:364E9B:17BDCA1:17F450B:66D71FD5" + } + }, + "uuid": "fd134a9f-b379-4cce-9eed-4f11d181ec3b", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/__files/1-users_normal.json b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/__files/1-users_normal.json new file mode 100644 index 0000000000..11ffa2db95 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/__files/1-users_normal.json @@ -0,0 +1,35 @@ +{ + "login": "kartikpatodi", + "id": 23272937, + "node_id": "MDQ6VXNlcjIzMjcyOTM3", + "avatar_url": "https://avatars.githubusercontent.com/u/23272937?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kartikpatodi", + "html_url": "https://github.com/kartikpatodi", + "followers_url": "https://api.github.com/users/kartikpatodi/followers", + "following_url": "https://api.github.com/users/kartikpatodi/following{/other_user}", + "gists_url": "https://api.github.com/users/kartikpatodi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kartikpatodi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kartikpatodi/subscriptions", + "organizations_url": "https://api.github.com/users/kartikpatodi/orgs", + "repos_url": "https://api.github.com/users/kartikpatodi/repos", + "events_url": "https://api.github.com/users/kartikpatodi/events{/privacy}", + "received_events_url": "https://api.github.com/users/kartikpatodi/received_events", + "type": "User", + "ldap_dn": "CN=kartikpatodi,OU=Users,DC=github,DC=com", + "site_admin": false, + "name": "Kartik Patodi", + "company": null, + "blog": "", + "location": "Nimbahera, Rajasthan, India", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": "kartikpatodi", + "public_repos": 12, + "public_gists": 0, + "followers": 2, + "following": 7, + "created_at": "2016-11-05T05:01:41Z", + "updated_at": "2022-02-24T13:54:34Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/__files/1-users_suspended.json b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/__files/1-users_suspended.json new file mode 100644 index 0000000000..74546e01fb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/__files/1-users_suspended.json @@ -0,0 +1,36 @@ +{ + "login": "kartikpatodi", + "id": 23272937, + "node_id": "MDQ6VXNlcjIzMjcyOTM3", + "avatar_url": "https://avatars.githubusercontent.com/u/23272937?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kartikpatodi", + "html_url": "https://github.com/kartikpatodi", + "followers_url": "https://api.github.com/users/kartikpatodi/followers", + "following_url": "https://api.github.com/users/kartikpatodi/following{/other_user}", + "gists_url": "https://api.github.com/users/kartikpatodi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kartikpatodi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kartikpatodi/subscriptions", + "organizations_url": "https://api.github.com/users/kartikpatodi/orgs", + "repos_url": "https://api.github.com/users/kartikpatodi/repos", + "events_url": "https://api.github.com/users/kartikpatodi/events{/privacy}", + "received_events_url": "https://api.github.com/users/kartikpatodi/received_events", + "type": "User", + "ldap_dn": "CN=kartikpatodi,OU=Users,DC=github,DC=com", + "site_admin": false, + "name": "Kartik Patodi", + "company": null, + "blog": "", + "location": "Nimbahera, Rajasthan, India", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": "kartikpatodi", + "public_repos": 12, + "public_gists": 0, + "followers": 2, + "following": 7, + "created_at": "2016-11-05T05:01:41Z", + "updated_at": "2022-02-24T13:54:34Z", + "suspended_at": "2024-08-08T00:00:00Z" +} diff --git a/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/mappings/1-users_normal.json b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/mappings/1-users_normal.json new file mode 100644 index 0000000000..c9cdc70136 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/mappings/1-users_normal.json @@ -0,0 +1,41 @@ +{ + "name": "users_normal", + "request": { + "url": "/users/normal", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-users_normal.json", + "headers": { + "server": "GitHub.com", + "date": "Mon, 04 Apr 2022 19:10:00 GMT", + "content-type": "application/json; charset=utf-8", + "status": "200 OK", + "cache-control": "public, max-age=60, s-maxage=60", + "vary": "Accept, Accept-Encoding, Accept, X-Requested-With", + "etag": "W/\"960f568b7a2dd1591a136e36748cc44e\"", + "last-modified": "Thu, 24 Feb 2022 13:54:34 GMT", + "x-github-media-type": "unknown, github.v3", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "x-frame-options": "deny", + "x-content-type-options": "nosniff", + "x-xss-protection": "1; mode=block", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "content-security-policy": "default-src 'none'", + "X-Ratelimit-Limit": "60", + "X-Ratelimit-Remaining": "47", + "X-Ratelimit-Reset": "1649100347", + "Accept-Ranges": "bytes", + "X-GitHub-Request-Id": "45F4:0D15:1B4EE4:373E4C:624B4288" + } + }, + "uuid": "39860a04-002b-45da-aae7-70c97031c79e", + "persistent": true, + "insertionIndex": 1 +} diff --git a/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/mappings/1-users_suspended.json b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/mappings/1-users_suspended.json new file mode 100644 index 0000000000..15654a0813 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifySuspendedAt/mappings/1-users_suspended.json @@ -0,0 +1,41 @@ +{ + "name": "users_suspended", + "request": { + "url": "/users/suspended", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-users_suspended.json", + "headers": { + "server": "GitHub.com", + "date": "Mon, 04 Apr 2022 19:10:00 GMT", + "content-type": "application/json; charset=utf-8", + "status": "200 OK", + "cache-control": "public, max-age=60, s-maxage=60", + "vary": "Accept, Accept-Encoding, Accept, X-Requested-With", + "etag": "W/\"960f568b7a2dd1591a136e36748cc44e\"", + "last-modified": "Thu, 24 Feb 2022 13:54:34 GMT", + "x-github-media-type": "unknown, github.v3", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "x-frame-options": "deny", + "x-content-type-options": "nosniff", + "x-xss-protection": "1; mode=block", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "content-security-policy": "default-src 'none'", + "X-Ratelimit-Limit": "60", + "X-Ratelimit-Remaining": "47", + "X-Ratelimit-Reset": "1649100347", + "Accept-Ranges": "bytes", + "X-GitHub-Request-Id": "45F4:0D15:1B4EE4:373E4C:624B4288" + } + }, + "uuid": "39860a04-002b-45da-aae7-70c97031c79e", + "persistent": true, + "insertionIndex": 1 +} diff --git a/src/test/resources/reflection-and-serialization-test-error-message b/src/test/resources/reflection-and-serialization-test-error-message new file mode 100644 index 0000000000..a56576c62c --- /dev/null +++ b/src/test/resources/reflection-and-serialization-test-error-message @@ -0,0 +1,33 @@ +The class "%1$s" needs to be configured or excluded for reflection / serialization and was not mentioned in one of the following resources: + +src/main/resources/META-INF/reflect-config.json - example: + + { + "name": "%1$s", + "allPublicFields": true, + "allDeclaredFields": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredConstructors": true, + "allPublicConstructors": true, + "allDeclaredConstructors": true, + "queryAllPublicMethods": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredMethods": true, + "allPublicClasses": true, + "allDeclaredClasses": true + } + +src/main/resources/META-INF/serialization.json - example: + + { + "name": "%1$s" + } + +src/test/resources/no-reflect-and-serialization-list - example: + + %1$s + +Please add it to either no-reflect-and-serialization-list or to serialization.json and / or reflect-config.json + + diff --git a/src/test/resources/slow-or-flaky-tests.txt b/src/test/resources/slow-or-flaky-tests.txt index 6b1b48fe7b..b9c6fbbdc2 100644 --- a/src/test/resources/slow-or-flaky-tests.txt +++ b/src/test/resources/slow-or-flaky-tests.txt @@ -4,3 +4,6 @@ **/RequesterRetryTest **/RateLimitCheckerTest **/RateLimitHandlerTest +**/AotIntegrationTest +**/ArchTests +**/GHPullRequestMockTest \ No newline at end of file