diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ddc1e952ee..038bc93fad 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -20,8 +20,15 @@ on: schedule: - cron: '20 0 * * 6' +permissions: + contents: read + jobs: analyze: + permissions: + actions: read # for github/codeql-action/init to get workflow details + contents: read # for actions/checkout to fetch code + security-events: write # for github/codeql-action/autobuild to send a status report name: Analyze runs-on: ubuntu-latest @@ -35,11 +42,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -50,7 +57,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -64,4 +71,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 595b8f1ac9..76391020dc 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -14,6 +14,9 @@ on: env: JAVA_11_PLUS_MAVEN_OPTS: "--add-opens jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED" +permissions: + contents: read + jobs: build: name: build-only (Java ${{ matrix.java }}) @@ -21,11 +24,11 @@ jobs: strategy: fail-fast: false matrix: - java: [ 16, 17 ] + java: [ 17 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} distribution: 'zulu' @@ -40,51 +43,62 @@ jobs: strategy: fail-fast: false matrix: - java: [ 8, 11 ] + java: [ 11 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} distribution: 'adopt' cache: 'maven' - name: Maven Site run: mvn -B clean site -D enable-ci --file pom.xml - test: - name: test (${{ matrix.os }}, Java ${{ matrix.java }}) + test-8: + name: test (${{ matrix.os }}, Java 8) runs-on: ${{ matrix.os }}-latest strategy: fail-fast: false matrix: - os: [ ubuntu, windows ] - java: [ 8.0.192, 8, 11.0.3, 11, 16, 17 ] + os: [ ubuntu ] + java: [ 8 ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} distribution: 'zulu' cache: 'maven' # JDK 8 - - name: Maven Install without Code Coverage - if: matrix.os == 'windows' && startsWith(matrix.java, '8') - run: mvn -B clean install --file pom.xml - name: Maven Install with Code Coverage - if: matrix.os != 'windows' && startsWith(matrix.java, '8') - run: mvn -B clean install -D enable-ci --file pom.xml + run: mvn -B clean install -D enable-ci -Djapicmp.skip --file pom.xml - name: Codecov Report - if: matrix.os != 'windows' && startsWith(matrix.java, '8') - uses: codecov/codecov-action@v2.1.0 + uses: codecov/codecov-action@v3.1.0 + test: + name: test (${{ matrix.os }}, Java ${{ matrix.java }}) + runs-on: ${{ matrix.os }}-latest + strategy: + fail-fast: false + matrix: + os: [ ubuntu, windows ] + java: [ 11, 17 ] + steps: + - uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java }} + distribution: 'zulu' + cache: 'maven' # JDK 11+ - name: Maven Install without Code Coverage - if: matrix.os == 'windows' && !startsWith(matrix.java, '8') + if: matrix.os == 'windows' env: MAVEN_OPTS: ${{ env.JAVA_11_PLUS_MAVEN_OPTS }} - run: mvn -B clean install --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED" + run: mvn -B clean install -D japicmp.skip=true --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED" - name: Maven Install with Code Coverage - if: matrix.os != 'windows' && !startsWith(matrix.java, '8') + if: matrix.os != 'windows' env: MAVEN_OPTS: ${{ env.JAVA_11_PLUS_MAVEN_OPTS }} run: mvn -B clean install -D enable-ci --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED" diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index cdff903bd9..235b6cb783 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -6,8 +6,14 @@ on: branches: - main +permissions: + contents: read + jobs: update_release_draft: + permissions: + contents: write # for release-drafter/release-drafter to create a github release + pull-requests: write # for release-drafter/release-drafter to add label to PR runs-on: ubuntu-latest steps: - name: Release Drafter diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 47e969ded7..5192c47bb8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,15 @@ # Contributing +## Make sure it's spotless + +Run `mvn spotless:apply` to fix any formatting, etc issues. + +## Make sure you pass CI + +If the following does not succeed, you will not pass the pull request checks. + +`mvn -D enable-ci clean install site` + ## Using WireMock and Snapshots This project has started converting to using WireMock to stub out http responses instead of use live data. diff --git a/pom.xml b/pom.xml index 928c0256fe..5d2bf3ec93 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.kohsuke github-api - 1.303 + 1.308 GitHub API for Java https://github-api.kohsuke.org/ GitHub API for Java @@ -11,7 +11,7 @@ scm:git:git@github.com/hub4j/${project.artifactId}.git scm:git:ssh://git@github.com/hub4j/${project.artifactId}.git https://github.com/hub4j/github-api/ - github-api-1.303 + github-api-1.308 @@ -33,8 +33,8 @@ UTF-8 - 4.5.3.0 - 4.5.3 + 4.7.1.1 + 4.7.1 true 2.2 4.9.2 @@ -44,7 +44,7 @@ 0.50 false - 0.11.2 + 0.11.5 @@ -55,12 +55,12 @@ org.apache.maven.scm maven-scm-provider-gitexe - 1.12.2 + 1.13.0 org.apache.maven.scm maven-scm-manager-plexus - 1.12.2 + 1.13.0 @@ -213,7 +213,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.4.0 8 true @@ -223,7 +223,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.12 + 1.6.13 true sonatype-nexus-staging @@ -258,7 +258,7 @@ org.apache.maven.plugins maven-site-plugin - 3.11.0 + 3.12.1 org.apache.maven.plugins @@ -278,7 +278,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.2 + 3.4.0 org.apache.bcel @@ -289,7 +289,7 @@ maven-compiler-plugin - 3.10.0 + 3.10.1 1.8 1.8 @@ -333,7 +333,7 @@ com.diffplug.spotless spotless-maven-plugin - 2.21.0 + 2.24.0 spotless-check @@ -393,6 +393,32 @@ + + com.github.siom79.japicmp + japicmp-maven-plugin + 0.15.7 + + + true + true + true + + + org.kohsuke.github.internal + + org.kohsuke.github.extras.HttpClientGitHubConnector#HttpClientGitHubConnector(java.net.http.HttpClient) + + + + + + verify + + cmp + + + + @@ -436,13 +462,13 @@ org.awaitility awaitility - 4.1.1 + 4.2.0 test com.fasterxml.jackson.core jackson-databind - 2.13.1 + 2.13.3 commons-io @@ -485,7 +511,7 @@ org.eclipse.jgit org.eclipse.jgit - 6.0.0.202111291000-r + 6.1.0.202203080745-r test @@ -541,7 +567,7 @@ org.mockito mockito-core - 4.3.1 + 4.6.1 test @@ -559,7 +585,7 @@ com.google.code.gson gson - 2.9.0 + 2.9.1 test @@ -672,7 +698,7 @@ org.apache.maven.plugins maven-enforcer-plugin - 3.0.0 + 3.1.0 enforce-jacoco-exist @@ -768,7 +794,7 @@ maven-compiler-plugin - 3.10.0 + 3.10.1 compile-java-11 diff --git a/src/main/java/org/kohsuke/github/GHAppCreateTokenBuilder.java b/src/main/java/org/kohsuke/github/GHAppCreateTokenBuilder.java index 9222ca7fe4..44b49e0129 100644 --- a/src/main/java/org/kohsuke/github/GHAppCreateTokenBuilder.java +++ b/src/main/java/org/kohsuke/github/GHAppCreateTokenBuilder.java @@ -46,6 +46,20 @@ public GHAppCreateTokenBuilder repositoryIds(List repositoryIds) { return this; } + /** + * By default the installation token has access to all repositories that the installation can access. To restrict + * the access to specific repositories, you can provide repository names when creating the token. + * + * @param repositories + * Array containing the repository names + * @return a GHAppCreateTokenBuilder + */ + @BetaApi + public GHAppCreateTokenBuilder repositories(List repositories) { + this.builder.with("repositories", repositories); + return this; + } + /** * Set the permissions granted to the access token. The permissions object includes the permission names and their * access type. diff --git a/src/main/java/org/kohsuke/github/GHArtifact.java b/src/main/java/org/kohsuke/github/GHArtifact.java index 9302c500f2..dd3b425c73 100644 --- a/src/main/java/org/kohsuke/github/GHArtifact.java +++ b/src/main/java/org/kohsuke/github/GHArtifact.java @@ -99,7 +99,7 @@ public URL getHtmlUrl() throws IOException { * the io exception */ public void delete() throws IOException { - root().createRequest().method("DELETE").withUrlPath(getApiRoute()).fetchHttpStatusCode(); + root().createRequest().method("DELETE").withUrlPath(getApiRoute()).send(); } /** diff --git a/src/main/java/org/kohsuke/github/GHCommit.java b/src/main/java/org/kohsuke/github/GHCommit.java index 680814baf1..38b7515462 100644 --- a/src/main/java/org/kohsuke/github/GHCommit.java +++ b/src/main/java/org/kohsuke/github/GHCommit.java @@ -1,6 +1,5 @@ package org.kohsuke.github; -import com.infradna.tool.bridge_method_injector.WithBridgeMethods; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.io.IOException; @@ -34,86 +33,44 @@ public class GHCommit { value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "UWF_UNWRITTEN_FIELD" }, justification = "JSON API") - public static class ShortInfo { - private GHAuthor author; - private GHAuthor committer; + public static class ShortInfo extends GitCommit { - private String message; - - private int comment_count; - - private GHVerification verification; - - static class Tree { - String sha; - } - - private Tree tree; - - /** - * Gets author. - * - * @return the author - */ - @WithBridgeMethods(value = GHAuthor.class, castRequired = true) - public GitUser getAuthor() { - return author; - } + private int comment_count = -1; /** - * Gets authored date. + * Gets comment count. * - * @return the authored date + * @return the comment count */ - public Date getAuthoredDate() { - return author.getDate(); + public int getCommentCount() throws GHException { + if (comment_count < 0) { + throw new GHException("Not available on this endpoint."); + } + return comment_count; } /** - * Gets committer. - * - * @return the committer + * Creates instance of {@link GHCommit.ShortInfo}. */ - @WithBridgeMethods(value = GHAuthor.class, castRequired = true) - public GitUser getCommitter() { - return committer; - } + public ShortInfo() { + // Empty constructor required for Jackson binding + }; - /** - * Gets commit date. - * - * @return the commit date - */ - public Date getCommitDate() { - return committer.getDate(); + ShortInfo(GitCommit commit) { + // Inherited copy constructor, used for bridge method from {@link GitCommit}, + // which is used in {@link GHContentUpdateResponse}) to {@link GHCommit}. + super(commit); } - /** - * Gets message. - * - * @return Commit message. - */ - public String getMessage() { - return message; - } - - /** - * Gets comment count. - * - * @return the comment count - */ - public int getCommentCount() { - return comment_count; + @Override + public List getParentSHA1s() { + List shortInfoParents = super.getParentSHA1s(); + if (shortInfoParents == null) { + throw new GHException("Not available on this endpoint. Try calling getParentSHA1s from outer class."); + } + return shortInfoParents; } - /** - * Gets Verification Status. - * - * @return the Verification status - */ - public GHVerification getVerification() { - return verification; - } } /** @@ -121,7 +78,15 @@ public GHVerification getVerification() { * * @deprecated Use {@link GitUser} instead. */ + @Deprecated public static class GHAuthor extends GitUser { + public GHAuthor() { + super(); + } + + public GHAuthor(GitUser user) { + super(user); + } } /** @@ -263,6 +228,27 @@ static class User { List parents; User author, committer; + /** + * Creates an instance of {@link GHCommit}. + */ + public GHCommit() { + // empty constructor needed for Jackson binding + } + + @SuppressFBWarnings(value = "EI_EXPOSE_REP2", justification = "acceptable") + GHCommit(ShortInfo shortInfo) { + // Constructs a (relatively sparse) GHCommit from a GitCommit. Used for + // bridge method from {@link GitCommit}, which is used in + // {@link GHContentUpdateResponse}) to {@link GHCommit}. + commit = shortInfo; + + owner = commit.getOwner(); + html_url = commit.getHtmlUrl(); + sha = commit.getSha(); + url = commit.getUrl(); + parents = commit.getParents(); + } + /** * Gets commit short info. * @@ -330,7 +316,7 @@ public int getLinesDeleted() throws IOException { * on error */ public GHTree getTree() throws IOException { - return owner.getTree(getCommitShortInfo().tree.sha); + return owner.getTree(getCommitShortInfo().getTreeSHA1()); } /** @@ -379,7 +365,7 @@ public List getFiles() throws IOException { * @return SHA1 of parent commit objects. */ public List getParentSHA1s() { - if (parents == null) + if (parents == null || parents.size() == 0) return Collections.emptyList(); return new AbstractList() { @Override @@ -596,4 +582,5 @@ GHCommit wrapUp(GHRepository owner) { this.owner = owner; return this; } + } diff --git a/src/main/java/org/kohsuke/github/GHCommitComment.java b/src/main/java/org/kohsuke/github/GHCommitComment.java index 733c63f927..ace4a9f443 100644 --- a/src/main/java/org/kohsuke/github/GHCommitComment.java +++ b/src/main/java/org/kohsuke/github/GHCommitComment.java @@ -134,6 +134,14 @@ public GHReaction createReaction(ReactionContent content) throws IOException { .fetch(GHReaction.class); } + public void deleteReaction(GHReaction reaction) throws IOException { + owner.root() + .createRequest() + .method("DELETE") + .withUrlPath(getApiTail(), "reactions", String.valueOf(reaction.getId())) + .send(); + } + @Preview(SQUIRREL_GIRL) public PagedIterable listReactions() { return owner.root() diff --git a/src/main/java/org/kohsuke/github/GHContentUpdateResponse.java b/src/main/java/org/kohsuke/github/GHContentUpdateResponse.java index 0121e2395b..444f4c075f 100644 --- a/src/main/java/org/kohsuke/github/GHContentUpdateResponse.java +++ b/src/main/java/org/kohsuke/github/GHContentUpdateResponse.java @@ -1,5 +1,6 @@ package org.kohsuke.github; +import com.infradna.tool.bridge_method_injector.WithBridgeMethods; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; /** @@ -7,7 +8,7 @@ */ public class GHContentUpdateResponse { private GHContent content; - private GHCommit commit; + private GitCommit commit; /** * Gets content. @@ -25,7 +26,14 @@ public GHContent getContent() { * @return the commit */ @SuppressFBWarnings(value = { "EI_EXPOSE_REP" }, justification = "Expected behavior") - public GHCommit getCommit() { + @WithBridgeMethods(value = GHCommit.class, adapterMethod = "gitCommitToGHCommit") + public GitCommit getCommit() { return commit; } + + @SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD", justification = "bridge method of getCommit") + private Object gitCommitToGHCommit(GitCommit commit, Class targetType) { + return new GHCommit(new GHCommit.ShortInfo(commit)); + } + } diff --git a/src/main/java/org/kohsuke/github/GHEventPayload.java b/src/main/java/org/kohsuke/github/GHEventPayload.java index 899717017c..371ed92f10 100644 --- a/src/main/java/org/kohsuke/github/GHEventPayload.java +++ b/src/main/java/org/kohsuke/github/GHEventPayload.java @@ -1506,6 +1506,43 @@ void lateBind() { } } + /** + * A workflow job has been queued, is in progress, or has been completed. + * + * @see + * workflow job event + * @see Actions Workflow Jobs + */ + public static class WorkflowJob extends GHEventPayload { + + private GHWorkflowJob workflowJob; + + /** + * Gets the workflow job. + * + * @return the workflow job + */ + @SuppressFBWarnings(value = { "EI_EXPOSE_REP" }, justification = "Expected") + public GHWorkflowJob getWorkflowJob() { + return workflowJob; + } + + @Override + void lateBind() { + if (workflowJob == null) { + throw new IllegalStateException( + "Expected workflow_job payload, but got something else. Maybe we've got another type of event?"); + } + super.lateBind(); + GHRepository repository = getRepository(); + if (repository == null) { + throw new IllegalStateException("Repository must not be null"); + } + workflowJob.wrapUp(repository); + } + } + /** * A label was created, edited or deleted. * @@ -1572,4 +1609,47 @@ public GHLabel getLabel() { return label; } } + + /** + * A star was created or deleted on a repository. + * + * @see star + * event + */ + public static class Star extends GHEventPayload { + + private String starredAt; + + /** + * Gets the date when the star is added. Is null when the star is deleted. + * + * @return the date when the star is added + */ + public Date getStarredAt() { + return GitHubClient.parseDate(starredAt); + } + } + + /** + * A project v2 item was archived, converted, created, edited, restored, deleted, or reordered. + * + * @see star + * event + */ + public static class ProjectsV2Item extends GHEventPayload { + + private GHProjectsV2Item projectsV2Item; + private GHProjectsV2ItemChanges changes; + + @SuppressFBWarnings(value = { "EI_EXPOSE_REP" }, justification = "Expected") + public GHProjectsV2Item getProjectsV2Item() { + return projectsV2Item; + } + + public GHProjectsV2ItemChanges getChanges() { + return changes; + } + } } diff --git a/src/main/java/org/kohsuke/github/GHIssue.java b/src/main/java/org/kohsuke/github/GHIssue.java index 605f8824e8..1b52c3bf9a 100644 --- a/src/main/java/org/kohsuke/github/GHIssue.java +++ b/src/main/java/org/kohsuke/github/GHIssue.java @@ -501,6 +501,14 @@ public GHReaction createReaction(ReactionContent content) throws IOException { .fetch(GHReaction.class); } + public void deleteReaction(GHReaction reaction) throws IOException { + owner.root() + .createRequest() + .method("DELETE") + .withUrlPath(getApiRoute(), "reactions", String.valueOf(reaction.getId())) + .send(); + } + @Preview(SQUIRREL_GIRL) public PagedIterable listReactions() { return root().createRequest() diff --git a/src/main/java/org/kohsuke/github/GHIssueComment.java b/src/main/java/org/kohsuke/github/GHIssueComment.java index 7c1d68a5ed..3f6fb08d92 100644 --- a/src/main/java/org/kohsuke/github/GHIssueComment.java +++ b/src/main/java/org/kohsuke/github/GHIssueComment.java @@ -141,6 +141,14 @@ public GHReaction createReaction(ReactionContent content) throws IOException { .fetch(GHReaction.class); } + public void deleteReaction(GHReaction reaction) throws IOException { + owner.root() + .createRequest() + .method("DELETE") + .withUrlPath(getApiRoute(), "reactions", String.valueOf(reaction.getId())) + .send(); + } + @Preview(SQUIRREL_GIRL) public PagedIterable listReactions() { return owner.root() diff --git a/src/main/java/org/kohsuke/github/GHOrganization.java b/src/main/java/org/kohsuke/github/GHOrganization.java index d690285706..90d0bba0c9 100644 --- a/src/main/java/org/kohsuke/github/GHOrganization.java +++ b/src/main/java/org/kohsuke/github/GHOrganization.java @@ -86,7 +86,6 @@ public GHRepository createRepository(String name, /** * Starts a builder that creates a new repository. - * *

* You use the returned builder to set various properties, then call {@link GHCreateRepositoryBuilder#create()} to * finally create a repository. @@ -135,7 +134,6 @@ public PagedIterable listTeams() throws IOException { * @return the team * @throws IOException * the io exception - * * @deprecated Use {@link GHOrganization#getTeam(long)} */ @Deprecated @@ -151,7 +149,6 @@ public GHTeam getTeam(int teamId) throws IOException { * @return the team * @throws IOException * the io exception - * * @see documentation */ public GHTeam getTeam(long teamId) throws IOException { @@ -449,11 +446,37 @@ public GHProject createProject(String name, String body) throws IOException { /** * The enum Permission. + * + * @see RepositoryRole */ public enum Permission { ADMIN, MAINTAIN, PUSH, TRIAGE, PULL } + /** + * Repository permissions (roles) for teams and collaborators. + */ + public static class RepositoryRole { + private final String permission; + + private RepositoryRole(String permission) { + this.permission = permission; + } + + public static RepositoryRole custom(String permission) { + return new RepositoryRole(permission); + } + + public static RepositoryRole from(Permission permission) { + return custom(permission.toString().toLowerCase()); + } + + @Override + public String toString() { + return permission; + } + } + /** * Creates a new team and assigns the repositories. * @@ -542,7 +565,6 @@ public GHTeam createTeam(String name, GHRepository... repositories) throws IOExc /** * Starts a builder that creates a new team. - * *

* You use the returned builder to set various properties, then call {@link GHTeamBuilder#create()} to finally * create a team. @@ -604,9 +626,8 @@ public PagedIterable listEvents() throws IOException { * Lists up all the repositories using the specified page size. * * @param pageSize - * size for each page of items returned by GitHub. Maximum page size is 100. - * - * Unlike {@link #getRepositories()}, this does not wait until all the repositories are returned. + * size for each page of items returned by GitHub. Maximum page size is 100. Unlike + * {@link #getRepositories()}, this does not wait until all the repositories are returned. */ @Override public PagedIterable listRepositories(final int pageSize) { diff --git a/src/main/java/org/kohsuke/github/GHPermissionType.java b/src/main/java/org/kohsuke/github/GHPermissionType.java index 26892f3f76..7b0952817b 100644 --- a/src/main/java/org/kohsuke/github/GHPermissionType.java +++ b/src/main/java/org/kohsuke/github/GHPermissionType.java @@ -6,5 +6,20 @@ * @author Kohsuke Kawaguchi */ public enum GHPermissionType { - ADMIN, WRITE, READ, NONE + ADMIN(30), WRITE(20), READ(10), NONE(0); + + private final int level; + + GHPermissionType(int level) { + this.level = level; + } + + boolean implies(GHPermissionType other) { + // NONE is a special case + if (other == NONE) { + return this == NONE; + } + + return this.level >= other.level; + } } diff --git a/src/main/java/org/kohsuke/github/GHProjectsV2Item.java b/src/main/java/org/kohsuke/github/GHProjectsV2Item.java new file mode 100644 index 0000000000..2841858f53 --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHProjectsV2Item.java @@ -0,0 +1,59 @@ +package org.kohsuke.github; + +import org.kohsuke.github.internal.EnumUtils; + +import java.io.IOException; +import java.net.URL; +import java.util.Date; + +/** + * A Projects V2 item in the organization. + *

+ * Projects V2 are not attached to a repository but to an organization, even if it is possible to create shortcuts at + * the repository level. + *

+ * This event exposes the GraphQL object (more or less - the ids are handled differently for instance) directly. The new + * Projects V2 API is only available through GraphQL so for now you cannot execute any actions on this object. + * + * @author Guillaume Smet + * @see The + * GraphQL API for Projects V2 + */ +public class GHProjectsV2Item extends GHObject { + + private String projectNodeId; + private String contentNodeId; + private String contentType; + + private GHUser creator; + private String archivedAt; + + public String getProjectNodeId() { + return projectNodeId; + } + + public String getContentNodeId() { + return contentNodeId; + } + + public ContentType getContentType() { + return EnumUtils.getEnumOrDefault(ContentType.class, contentType, ContentType.UNKNOWN); + } + + public GHUser getCreator() throws IOException { + return root().intern(creator); + } + + public Date getArchivedAt() { + return GitHubClient.parseDate(archivedAt); + } + + public URL getHtmlUrl() { + throw new IllegalStateException(getClass().getName() + " does not offer a HTML URL."); + } + + public enum ContentType { + ISSUE, DRAFTISSUE, PULLREQUEST, UNKNOWN; + } +} diff --git a/src/main/java/org/kohsuke/github/GHProjectsV2ItemChanges.java b/src/main/java/org/kohsuke/github/GHProjectsV2ItemChanges.java new file mode 100644 index 0000000000..6c74e8d706 --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHProjectsV2ItemChanges.java @@ -0,0 +1,80 @@ +package org.kohsuke.github; + +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; +import org.kohsuke.github.internal.EnumUtils; + +import java.util.Date; + +/** + * An object to track changes in projects_v2_item payloads. + *

+ * Note that this is best effort only as nothing is documented in the GitHub documentation. + */ +@SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD" }, justification = "JSON API") +public class GHProjectsV2ItemChanges { + + private FieldValue fieldValue; + + private FromToDate archivedAt; + + private FromTo previousProjectsV2ItemNodeId; + + public FieldValue getFieldValue() { + return fieldValue; + } + + public FromToDate getArchivedAt() { + return archivedAt; + } + + public FromTo getPreviousProjectsV2ItemNodeId() { + return previousProjectsV2ItemNodeId; + } + + public static class FieldValue { + + private String fieldNodeId; + private String fieldType; + + public String getFieldNodeId() { + return fieldNodeId; + } + + public FieldType getFieldType() { + return EnumUtils.getEnumOrDefault(FieldType.class, fieldType, FieldType.UNKNOWN); + } + } + + public static class FromTo { + + private String from; + private String to; + + public String getFrom() { + return from; + } + + public String getTo() { + return to; + } + } + + public static class FromToDate { + + private String from; + private String to; + + public Date getFrom() { + return GitHubClient.parseDate(from); + } + + public Date getTo() { + return GitHubClient.parseDate(to); + } + } + + public enum FieldType { + + TEXT, NUMBER, DATE, SINGLE_SELECT, ITERATION, UNKNOWN; + } +} diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java index fa8653061f..c46d7dd4f2 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java @@ -50,6 +50,10 @@ public class GHPullRequestReviewComment extends GHObject implements Reactable { private int position = -1; private int original_position = -1; private long in_reply_to_id = -1L; + private String diff_hunk; + private String commit_id; + private String original_commit_id; + private GHCommentAuthorAssociation author_association; /** * Draft gh pull request review comment. @@ -135,6 +139,42 @@ public int getOriginalPosition() { return original_position; } + /** + * Gets diff hunk. + * + * @return the diff hunk + */ + public String getDiffHunk() { + return diff_hunk; + } + + /** + * Gets commit id. + * + * @return the commit id + */ + public String getCommitId() { + return commit_id; + } + + /** + * Gets commit id. + * + * @return the commit id + */ + public String getOriginalCommitId() { + return original_commit_id; + } + + /** + * Gets the author association to the project. + * + * @return the author association to the project + */ + public GHCommentAuthorAssociation getAuthorAssociation() { + return author_association; + } + /** * Gets in reply to id. * @@ -225,6 +265,14 @@ public GHReaction createReaction(ReactionContent content) throws IOException { .fetch(GHReaction.class); } + public void deleteReaction(GHReaction reaction) throws IOException { + owner.root() + .createRequest() + .method("DELETE") + .withUrlPath(getApiRoute(), "reactions", String.valueOf(reaction.getId())) + .send(); + } + @Preview(SQUIRREL_GIRL) public PagedIterable listReactions() { return owner.root() diff --git a/src/main/java/org/kohsuke/github/GHReaction.java b/src/main/java/org/kohsuke/github/GHReaction.java index 7d747a5ad0..df4f230ad1 100644 --- a/src/main/java/org/kohsuke/github/GHReaction.java +++ b/src/main/java/org/kohsuke/github/GHReaction.java @@ -51,8 +51,13 @@ public URL getHtmlUrl() { * * @throws IOException * the io exception + * @deprecated this API is no longer supported by GitHub, keeping it as is for old versions of GitHub Enterprise + * @see Legacy Delete + * reactions REST API removed */ + @Deprecated public void delete() throws IOException { - root().createRequest().method("DELETE").withPreview(SQUIRREL_GIRL).withUrlPath("/reactions/" + getId()).send(); + throw new UnsupportedOperationException( + "This method is not supported anymore. Please use Reactable#deleteReaction(GHReaction)."); } } diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index b97143dfb2..58ef89578b 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -94,7 +94,7 @@ public class GHRepository extends GHObject { private GHUser owner; // not fully populated. beware. - private boolean has_issues, has_wiki, fork, has_downloads, has_pages, archived, has_projects; + private boolean has_issues, has_wiki, fork, has_downloads, has_pages, archived, disabled, has_projects; private boolean allow_squash_merge; @@ -113,11 +113,11 @@ public class GHRepository extends GHObject { private String pushed_at; - private Map milestones = new WeakHashMap(); + private Map milestones = Collections.synchronizedMap(new WeakHashMap<>()); private String default_branch, language; - private Map commits = new WeakHashMap(); + private Map commits = Collections.synchronizedMap(new WeakHashMap<>()); @SkipFromToString private GHRepoPermission permissions; @@ -660,6 +660,15 @@ public boolean isArchived() { return archived; } + /** + * Is disabled boolean. + * + * @return the boolean + */ + public boolean isDisabled() { + return disabled; + } + /** * Is allow squash merge boolean. * @@ -1013,6 +1022,21 @@ public Set getCollaboratorNames(CollaboratorAffiliation affiliation) thr return r; } + /** + * Checks if the given user is a collaborator for this repository. + * + * @param user + * a {@link GHUser} + * @return true if the user is a collaborator for this repository + * @throws IOException + * the io exception + */ + public boolean isCollaborator(GHUser user) throws IOException { + return root().createRequest() + .withUrlPath(getApiTailUrl("collaborators/" + user.getLogin())) + .fetchHttpStatusCode() == 204; + } + /** * Obtain permission for a given user in this repository. * @@ -1042,6 +1066,36 @@ public GHPermissionType getPermission(GHUser u) throws IOException { return getPermission(u.getLogin()); } + /** + * Check if a user has at least the given permission in this repository. + * + * @param user + * a {@link GHUser#getLogin} + * @param permission + * the permission to check + * @return true if the user has at least this permission level + * @throws IOException + * the io exception + */ + public boolean hasPermission(String user, GHPermissionType permission) throws IOException { + return getPermission(user).implies(permission); + } + + /** + * Check if a user has at least the given permission in this repository. + * + * @param user + * the user + * @param permission + * the permission to check + * @return true if the user has at least this permission level + * @throws IOException + * the io exception + */ + public boolean hasPermission(GHUser user, GHPermissionType permission) throws IOException { + return hasPermission(user.getLogin(), permission); + } + /** * If this repository belongs to an organization, return a set of teams. * @@ -1060,14 +1114,31 @@ public Set getTeams() throws IOException { /** * Add collaborators. * + * @param permission + * the permission level * @param users * the users + * @throws IOException + * the io exception + * @deprecated #addCollaborators(GHOrganization.RolePermission, GHUser) + */ + @Deprecated + public void addCollaborators(GHOrganization.Permission permission, GHUser... users) throws IOException { + addCollaborators(asList(users), permission); + } + + /** + * Add collaborators. + * * @param permission * the permission level + * @param users + * the users + * * @throws IOException * the io exception */ - public void addCollaborators(GHOrganization.Permission permission, GHUser... users) throws IOException { + public void addCollaborators(GHOrganization.RepositoryRole permission, GHUser... users) throws IOException { addCollaborators(asList(users), permission); } @@ -1104,8 +1175,25 @@ public void addCollaborators(Collection users) throws IOException { * the permission level * @throws IOException * the io exception + * @deprecated #addCollaborators(Collection, GHOrganization.RolePermission) */ + @Deprecated public void addCollaborators(Collection users, GHOrganization.Permission permission) throws IOException { + modifyCollaborators(users, "PUT", GHOrganization.RepositoryRole.from(permission)); + } + + /** + * Add collaborators. + * + * @param users + * the users + * @param permission + * the permission level + * @throws IOException + * the io exception + */ + public void addCollaborators(Collection users, GHOrganization.RepositoryRole permission) + throws IOException { modifyCollaborators(users, "PUT", permission); } @@ -1135,14 +1223,14 @@ public void removeCollaborators(Collection users) throws IOException { private void modifyCollaborators(@NonNull Collection users, @NonNull String method, - @CheckForNull GHOrganization.Permission permission) throws IOException { + @CheckForNull GHOrganization.RepositoryRole permission) throws IOException { Requester requester = root().createRequest().method(method); if (permission != null) { - requester = requester.with("permission", permission).inBody(); + requester = requester.with("permission", permission.toString()).inBody(); } // Make sure that the users collection doesn't have any duplicates - for (GHUser user : new LinkedHashSet(users)) { + for (GHUser user : new LinkedHashSet<>(users)) { requester.withUrlPath(getApiTailUrl("collaborators/" + user.getLogin())).send(); } } @@ -1156,7 +1244,7 @@ private void modifyCollaborators(@NonNull Collection users, * the io exception */ public void setEmailServiceHook(String address) throws IOException { - Map config = new HashMap(); + Map config = new HashMap<>(); config.put("address", address); root().createRequest() .method("POST") @@ -3111,6 +3199,20 @@ public GHWorkflowJob getWorkflowJob(long id) throws IOException { .wrapUp(this); } + /** + * Gets the public key for the given repo + * + * @return the public key + * @throws IOException + * the io exception + */ + public GHRepositoryPublicKey getPublicKey() throws IOException { + return root().createRequest() + .withUrlPath(getApiTailUrl("/actions/secrets/public-key")) + .fetch(GHRepositoryPublicKey.class) + .wrapUp(this); + } + // Only used within listTopics(). private static class Topics { public List names; @@ -3150,6 +3252,27 @@ public void setTopics(List topics) throws IOException { .send(); } + /** + * Set/Update a repository secret + * "https://docs.github.com/rest/reference/actions#create-or-update-a-repository-secret" + * + * @param secretName + * the name of the secret + * @param encryptedValue + * The encrypted value for this secret + * @param publicKeyId + * The id of the Public Key used to encrypt this secret + * @throws IOException + * the io exception + */ + public void createSecret(String secretName, String encryptedValue, String publicKeyId) throws IOException { + root().createRequest() + .method("PUT") + .with("encrypted_value", encryptedValue) + .with("key_id", publicKeyId) + .withUrlPath(getApiTailUrl("actions/secrets") + "/" + secretName) + .send(); + } /** * Create a tag. See https://developer.github.com/v3/git/tags/#create-a-tag-object * diff --git a/src/main/java/org/kohsuke/github/GHRepositoryPublicKey.java b/src/main/java/org/kohsuke/github/GHRepositoryPublicKey.java new file mode 100644 index 0000000000..506987e53c --- /dev/null +++ b/src/main/java/org/kohsuke/github/GHRepositoryPublicKey.java @@ -0,0 +1,38 @@ +package org.kohsuke.github; + +import com.fasterxml.jackson.annotation.JsonIgnore; + +import java.io.IOException; +import java.net.URL; + +/** + * A public key for the given repository + * + * @author Aditya Bansal + */ +public class GHRepositoryPublicKey extends GHObject { + // Not provided by the API. + @JsonIgnore + private GHRepository owner; + + private String keyId; + private String key; + + @Override + public URL getHtmlUrl() throws IOException { + return null; + } + + public String getKeyId() { + return keyId; + } + + public String getKey() { + return key; + } + + GHRepositoryPublicKey wrapUp(GHRepository owner) { + this.owner = owner; + return this; + } +} diff --git a/src/main/java/org/kohsuke/github/GHTeam.java b/src/main/java/org/kohsuke/github/GHTeam.java index 143f63312f..c0f7cade3d 100644 --- a/src/main/java/org/kohsuke/github/GHTeam.java +++ b/src/main/java/org/kohsuke/github/GHTeam.java @@ -7,11 +7,14 @@ import java.net.URL; import java.util.Map; import java.util.Objects; +import java.util.Optional; import java.util.Set; import java.util.TreeMap; import javax.annotation.Nonnull; +import static org.kohsuke.github.GitHubRequest.transformEnum; + /** * A team in GitHub organization. * @@ -150,6 +153,19 @@ public PagedIterable listMembers(String role) throws IOException { return root().createRequest().withUrlPath(api("/members")).with("role", role).toIterable(GHUser[].class, null); } + /** + * List members with specified role paged iterable. + * + * @param role + * the role + * @return the paged iterable + * @throws IOException + * the io exception + */ + public PagedIterable listMembers(Role role) throws IOException { + return listMembers(transformEnum(role)); + } + /** * Gets a single discussion by ID. * @@ -214,7 +230,7 @@ public boolean hasMember(GHUser user) { try { root().createRequest().withUrlPath(api("/memberships/" + user.getLogin())).send(); return true; - } catch (IOException ignore) { + } catch (@SuppressWarnings("unused") IOException ignore) { return false; } } @@ -227,7 +243,7 @@ public boolean hasMember(GHUser user) { * the io exception */ public Map getRepositories() throws IOException { - Map m = new TreeMap(); + Map m = new TreeMap<>(); for (GHRepository r : listRepositories()) { m.put(r.getName(), r); } @@ -287,7 +303,7 @@ public void add(GHUser user, Role role) throws IOException { * the io exception */ public void remove(GHUser u) throws IOException { - root().createRequest().method("DELETE").withUrlPath(api("/members/" + u.getLogin())).send(); + root().createRequest().method("DELETE").withUrlPath(api("/memberships/" + u.getLogin())).send(); } /** @@ -299,11 +315,11 @@ public void remove(GHUser u) throws IOException { * the io exception */ public void add(GHRepository r) throws IOException { - add(r, null); + add(r, (GHOrganization.RepositoryRole) null); } /** - * Add. + * * Add. * * @param r * the r @@ -311,11 +327,28 @@ public void add(GHRepository r) throws IOException { * the permission * @throws IOException * the io exception + * @deprecated use {@link GHTeam#add(GHRepository, org.kohsuke.github.GHOrganization.RepositoryRole)} */ + @Deprecated public void add(GHRepository r, GHOrganization.Permission permission) throws IOException { + add(r, GHOrganization.RepositoryRole.from(permission)); + } + + /** + * Add. + * + * @param r + * the r + * @param permission + * the permission + * @throws IOException + * the io exception + */ + public void add(GHRepository r, GHOrganization.RepositoryRole permission) throws IOException { root().createRequest() .method("PUT") - .with("permission", permission) + .with("permission", + Optional.ofNullable(permission).map(GHOrganization.RepositoryRole::toString).orElse(null)) .withUrlPath(api("/repos/" + r.getOwnerName() + '/' + r.getName())) .send(); } diff --git a/src/main/java/org/kohsuke/github/GHUser.java b/src/main/java/org/kohsuke/github/GHUser.java index 1e36182f0c..a46c0161c1 100644 --- a/src/main/java/org/kohsuke/github/GHUser.java +++ b/src/main/java/org/kohsuke/github/GHUser.java @@ -37,6 +37,8 @@ */ public class GHUser extends GHPerson { + protected String ldap_dn; + /** * Gets keys. * @@ -242,6 +244,23 @@ public PagedIterable listGists() throws IOException { .toIterable(GHGist[].class, null); } + /** + * Gets LDAP information for user. + * + * @return The LDAP information + * + * @see Github + * LDAP + * + * @throws IOException + * the io exception + */ + public Optional getLdapDn() throws IOException { + super.populate(); + return Optional.ofNullable(ldap_dn); + } + @Override public int hashCode() { return login.hashCode(); diff --git a/src/main/java/org/kohsuke/github/GHWorkflow.java b/src/main/java/org/kohsuke/github/GHWorkflow.java index ea195e5b10..752982e098 100644 --- a/src/main/java/org/kohsuke/github/GHWorkflow.java +++ b/src/main/java/org/kohsuke/github/GHWorkflow.java @@ -87,7 +87,7 @@ public URL getBadgeUrl() { * the io exception */ public void disable() throws IOException { - root().createRequest().method("PUT").withUrlPath(getApiRoute(), "disable").fetchHttpStatusCode(); + root().createRequest().method("PUT").withUrlPath(getApiRoute(), "disable").send(); } /** @@ -97,7 +97,7 @@ public void disable() throws IOException { * the io exception */ public void enable() throws IOException { - root().createRequest().method("PUT").withUrlPath(getApiRoute(), "enable").fetchHttpStatusCode(); + root().createRequest().method("PUT").withUrlPath(getApiRoute(), "enable").send(); } /** @@ -133,7 +133,7 @@ public void dispatch(String ref, Map inputs) throws IOException requester.with("inputs", inputs); } - requester.fetchHttpStatusCode(); + requester.send(); } /** diff --git a/src/main/java/org/kohsuke/github/GHWorkflowJob.java b/src/main/java/org/kohsuke/github/GHWorkflowJob.java index 9e701d7f32..710930e740 100644 --- a/src/main/java/org/kohsuke/github/GHWorkflowJob.java +++ b/src/main/java/org/kohsuke/github/GHWorkflowJob.java @@ -9,7 +9,11 @@ import java.io.IOException; import java.net.URL; -import java.util.*; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Date; +import java.util.List; +import java.util.Objects; import static java.util.Objects.requireNonNull; @@ -35,12 +39,20 @@ public class GHWorkflowJob extends GHObject { private String conclusion; private long runId; + private int runAttempt; private String htmlUrl; private String checkRunUrl; + private int runnerId; + private String runnerName; + private int runnerGroupId; + private String runnerGroupName; + private List steps = new ArrayList<>(); + private List labels = new ArrayList<>(); + /** * The name of the job. * @@ -108,6 +120,15 @@ public long getRunId() { return runId; } + /** + * Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run. + * + * @return attempt number + */ + public int getRunAttempt() { + return runAttempt; + } + @Override public URL getHtmlUrl() { return GitHubClient.parseURL(htmlUrl); @@ -131,6 +152,51 @@ public List getSteps() { return Collections.unmodifiableList(steps); } + /** + * Gets the labels of the job. + * + * @return the labels + */ + public List getLabels() { + return Collections.unmodifiableList(labels); + } + + /** + * the runner id. + * + * @return runnerId + */ + public int getRunnerId() { + return runnerId; + } + + /** + * the runner name. + * + * @return runnerName + */ + public String getRunnerName() { + return runnerName; + } + + /** + * the runner group id. + * + * @return runnerGroupId + */ + public int getRunnerGroupId() { + return runnerGroupId; + } + + /** + * the runner group name. + * + * @return runnerGroupName + */ + public String getRunnerGroupName() { + return runnerGroupName; + } + /** * Repository to which the job belongs. * diff --git a/src/main/java/org/kohsuke/github/GHWorkflowRun.java b/src/main/java/org/kohsuke/github/GHWorkflowRun.java index 1a9122124f..6b2a3ab063 100644 --- a/src/main/java/org/kohsuke/github/GHWorkflowRun.java +++ b/src/main/java/org/kohsuke/github/GHWorkflowRun.java @@ -32,6 +32,9 @@ public class GHWorkflowRun extends GHObject { private long runNumber; private long workflowId; + private long runAttempt; + private String runStartedAt; + private String htmlUrl; private String jobsUrl; private String logsUrl; @@ -79,6 +82,26 @@ public long getWorkflowId() { return workflowId; } + /** + * The run attempt. + * + * @return the run attempt + */ + public long getRunAttempt() { + return runAttempt; + } + + /** + * When was this run triggered? + * + * @return run triggered + * @throws IOException + * on error + */ + public Date getRunStartedAt() throws IOException { + return GitHubClient.parseDate(runStartedAt); + } + @Override public URL getHtmlUrl() throws IOException { return GitHubClient.parseURL(htmlUrl); @@ -253,7 +276,7 @@ public List getPullRequests() throws IOException { * the io exception */ public void cancel() throws IOException { - root().createRequest().method("POST").withUrlPath(getApiRoute(), "cancel").fetchHttpStatusCode(); + root().createRequest().method("POST").withUrlPath(getApiRoute(), "cancel").send(); } /** @@ -263,7 +286,7 @@ public void cancel() throws IOException { * the io exception */ public void delete() throws IOException { - root().createRequest().method("DELETE").withUrlPath(getApiRoute()).fetchHttpStatusCode(); + root().createRequest().method("DELETE").withUrlPath(getApiRoute()).send(); } /** @@ -273,7 +296,17 @@ public void delete() throws IOException { * the io exception */ public void rerun() throws IOException { - root().createRequest().method("POST").withUrlPath(getApiRoute(), "rerun").fetchHttpStatusCode(); + root().createRequest().method("POST").withUrlPath(getApiRoute(), "rerun").send(); + } + + /** + * Approve the workflow run. + * + * @throws IOException + * the io exception + */ + public void approve() throws IOException { + root().createRequest().method("POST").withUrlPath(getApiRoute(), "approve").send(); } /** @@ -313,7 +346,7 @@ public T downloadLogs(InputStreamFunction streamFunction) throws IOExcept * the io exception */ public void deleteLogs() throws IOException { - root().createRequest().method("DELETE").withUrlPath(getApiRoute(), "logs").fetchHttpStatusCode(); + root().createRequest().method("DELETE").withUrlPath(getApiRoute(), "logs").send(); } /** diff --git a/src/main/java/org/kohsuke/github/GHWorkflowRunQueryBuilder.java b/src/main/java/org/kohsuke/github/GHWorkflowRunQueryBuilder.java index 57a482d1bf..444814525a 100644 --- a/src/main/java/org/kohsuke/github/GHWorkflowRunQueryBuilder.java +++ b/src/main/java/org/kohsuke/github/GHWorkflowRunQueryBuilder.java @@ -1,5 +1,6 @@ package org.kohsuke.github; +import org.kohsuke.github.GHWorkflowRun.Conclusion; import org.kohsuke.github.GHWorkflowRun.Status; /** @@ -88,6 +89,20 @@ public GHWorkflowRunQueryBuilder status(Status status) { return this; } + /** + * Conclusion workflow run query builder. + *

+ * The GitHub API is also using the status field to search by conclusion. + * + * @param conclusion + * the conclusion + * @return the gh workflow run query builder + */ + public GHWorkflowRunQueryBuilder conclusion(Conclusion conclusion) { + req.with("status", conclusion.toString()); + return this; + } + @Override public PagedIterable list() { return new GHWorkflowRunsIterable(repo, req.withUrlPath(repo.getApiTailUrl("actions/runs"))); diff --git a/src/main/java/org/kohsuke/github/GitCommit.java b/src/main/java/org/kohsuke/github/GitCommit.java new file mode 100644 index 0000000000..b0de7f0c58 --- /dev/null +++ b/src/main/java/org/kohsuke/github/GitCommit.java @@ -0,0 +1,220 @@ +package org.kohsuke.github; + +import com.infradna.tool.bridge_method_injector.WithBridgeMethods; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; + +import java.util.AbstractList; +import java.util.Collections; +import java.util.Date; +import java.util.List; + +/** + * @author Emily Xia-Reinert + * @see GHContentUpdateResponse#getCommit() GHContentUpdateResponse#getCommit() + */ + +@SuppressFBWarnings(value = { "NP_UNWRITTEN_FIELD", "UWF_UNWRITTEN_FIELD" }, justification = "JSON API") +public class GitCommit { + private GHRepository owner; + private String sha, node_id, url, html_url; + private GitUser author; + private GitUser committer; + + private String message; + + private GHVerification verification; + + static class Tree { + String url; + String sha; + + public String getUrl() { + return url; + } + + public String getSha() { + return sha; + } + + } + + private Tree tree; + + private List parents; + + public GitCommit() { + // empty constructor for Jackson binding + }; + + GitCommit(GitCommit commit) { + // copy constructor used to cast to GitCommit.ShortInfo and from there + // to GHCommit, for GHContentUpdateResponse bridge method to GHCommit + this.owner = commit.getOwner(); + this.sha = commit.getSha(); + this.node_id = commit.getNodeId(); + this.url = commit.getUrl(); + this.html_url = commit.getHtmlUrl(); + this.author = commit.getAuthor(); + this.committer = commit.getCommitter(); + this.message = commit.getMessage(); + this.verification = commit.getVerification(); + this.tree = commit.getTree(); + this.parents = commit.getParents(); + } + + /** + * Gets owner. + * + * @return the repository that contains the commit. + */ + @SuppressFBWarnings(value = { "EI_EXPOSE_REP" }, justification = "Expected behavior") + public GHRepository getOwner() { + return owner; + } + + /** + * Gets SHA1. + * + * @return The SHA1 of this commit + */ + public String getSHA1() { + return sha; + } + + /** + * Gets SHA. + * + * @return The SHA of this commit + */ + public String getSha() { + return sha; + } + + /** + * Gets node id. + * + * @return The node id of this commit + */ + public String getNodeId() { + return node_id; + } + + /** + * Gets URL. + * + * @return The URL of this commit + */ + public String getUrl() { + return url; + } + + /** + * Gets HTML URL. + * + * @return The HTML URL of this commit + */ + public String getHtmlUrl() { + return html_url; + } + + /** + * Gets author. + * + * @return the author + */ + @WithBridgeMethods(value = GHCommit.GHAuthor.class, adapterMethod = "gitUserToGHAuthor") + public GitUser getAuthor() { + return author; + } + + @SuppressFBWarnings(value = "UPM_UNCALLED_PRIVATE_METHOD", + justification = "bridge method of getAuthor & getCommitter") + private Object gitUserToGHAuthor(GitUser author, Class targetType) { + return new GHCommit.GHAuthor(author); + } + + /** + * Gets authored date. + * + * @return the authored date + */ + public Date getAuthoredDate() { + return author.getDate(); + } + + /** + * Gets committer. + * + * @return the committer + */ + @WithBridgeMethods(value = GHCommit.GHAuthor.class, adapterMethod = "gitUserToGHAuthor") + public GitUser getCommitter() { + return committer; + } + + /** + * Gets commit date. + * + * @return the commit date + */ + public Date getCommitDate() { + return committer.getDate(); + } + + /** + * Gets message. + * + * @return Commit message. + */ + public String getMessage() { + return message; + } + + /** + * Gets Verification Status. + * + * @return the Verification status + */ + public GHVerification getVerification() { + return verification; + } + + Tree getTree() { + return tree; + } + + public String getTreeSHA1() { + return tree.getSha(); + } + + public String getTreeUrl() { + return tree.getUrl(); + } + + @SuppressFBWarnings(value = "EI_EXPOSE_REP", justification = "acceptable") + List getParents() { + return parents; + } + + public List getParentSHA1s() { + if (parents == null || parents.size() == 0) + return Collections.emptyList(); + return new AbstractList() { + @Override + public String get(int index) { + return parents.get(index).sha; + } + + @Override + public int size() { + return parents.size(); + } + }; + } + + GitCommit wrapUp(GHRepository owner) { + this.owner = owner; + return this; + } + +} diff --git a/src/main/java/org/kohsuke/github/GitHub.java b/src/main/java/org/kohsuke/github/GitHub.java index f81d8cbee6..5244cb374d 100644 --- a/src/main/java/org/kohsuke/github/GitHub.java +++ b/src/main/java/org/kohsuke/github/GitHub.java @@ -1396,16 +1396,14 @@ Requester createRequest() { } GHUser intern(GHUser user) throws IOException { - if (user == null) - return user; - - // if we already have this user in our map, use it - GHUser u = users.get(user.getLogin()); - if (u != null) - return u; - - // if not, remember this new user - users.putIfAbsent(user.getLogin(), user); + if (user != null) { + // if we already have this user in our map, get it + // if not, remember this new user + GHUser existingUser = users.putIfAbsent(user.getLogin(), user); + if (existingUser != null) { + user = existingUser; + } + } return user; } diff --git a/src/main/java/org/kohsuke/github/GitUser.java b/src/main/java/org/kohsuke/github/GitUser.java index bf0b2e6b21..3e75975909 100644 --- a/src/main/java/org/kohsuke/github/GitUser.java +++ b/src/main/java/org/kohsuke/github/GitUser.java @@ -55,4 +55,16 @@ public String getUsername() { public Date getDate() { return GitHubClient.parseDate(date); } + + public GitUser() { + // Empty constructor for Jackson binding + } + + public GitUser(GitUser user) { + // Copy constructor to convert to GHCommit.GHAuthor + name = user.getName(); + email = user.getEmail(); + date = user.getDate().toString(); + username = user.getUsername(); + } } diff --git a/src/main/java/org/kohsuke/github/Reactable.java b/src/main/java/org/kohsuke/github/Reactable.java index 0e576faa6f..f8e7585a46 100644 --- a/src/main/java/org/kohsuke/github/Reactable.java +++ b/src/main/java/org/kohsuke/github/Reactable.java @@ -30,4 +30,14 @@ public interface Reactable { */ @Preview(SQUIRREL_GIRL) GHReaction createReaction(ReactionContent content) throws IOException; + + /** + * Delete a reaction from this object. + * + * @param reaction + * the reaction to delete + * @throws IOException + * the io exception + */ + void deleteReaction(GHReaction reaction) throws IOException; } diff --git a/src/main/java/org/kohsuke/github/Requester.java b/src/main/java/org/kohsuke/github/Requester.java index 54a3c9e86f..24d5fdae66 100644 --- a/src/main/java/org/kohsuke/github/Requester.java +++ b/src/main/java/org/kohsuke/github/Requester.java @@ -50,7 +50,7 @@ class Requester extends GitHubRequest.Builder { } /** - * Sends a request to the specified URL and checks that it is sucessful. + * Sends a request to the specified URL and checks that it is successful. * * @throws IOException * the io exception diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java index 71f99bcb8e..be5010cd01 100755 --- a/src/test/java/org/kohsuke/github/AppTest.java +++ b/src/test/java/org/kohsuke/github/AppTest.java @@ -183,7 +183,12 @@ public void testIssueWithComment() throws IOException { ReactionContent.HOORAY, ReactionContent.ROCKET)); - reaction.delete(); + // test retired delete reaction API throws UnsupportedOperationException + final GHReaction reactionToDelete = reaction; + assertThrows(UnsupportedOperationException.class, () -> reactionToDelete.delete()); + + // test new delete reaction API + v.get(1).deleteReaction(reaction); reaction = null; v = i.getComments(); reactions = v.get(1).listReactions().toList(); @@ -191,7 +196,8 @@ public void testIssueWithComment() throws IOException { containsInAnyOrder(ReactionContent.EYES, ReactionContent.HOORAY, ReactionContent.ROCKET)); } finally { if (reaction != null) { - reaction.delete(); + v.get(1).deleteReaction(reaction); + reaction = null; } } } @@ -683,6 +689,20 @@ public void testCreateCommitComment() throws Exception { assertThat(commit.getCommitShortInfo().getCommentCount(), equalTo(31)); + // testing reactions + List reactions = c.listReactions().toList(); + assertThat(reactions, is(empty())); + + GHReaction reaction = c.createReaction(ReactionContent.CONFUSED); + assertThat(reaction.getContent(), equalTo(ReactionContent.CONFUSED)); + + reactions = c.listReactions().toList(); + assertThat(reactions.size(), equalTo(1)); + + c.deleteReaction(reaction); + + reactions = c.listReactions().toList(); + assertThat(reactions.size(), equalTo(0)); } finally { c.delete(); } @@ -1273,7 +1293,7 @@ public void reactions() throws Exception { a = i.createReaction(ReactionContent.HOORAY); assertThat(a.getUser().getLogin(), is(gitHub.getMyself().getLogin())); assertThat(a.getContent(), is(ReactionContent.HOORAY)); - a.delete(); + i.deleteReaction(a); l = i.listReactions().toList(); assertThat(l.size(), equalTo(1)); @@ -1307,10 +1327,10 @@ public void reactions() throws Exception { assertThat(l.get(4).getUser().getLogin(), is(gitHub.getMyself().getLogin())); assertThat(l.get(4).getContent(), is(ReactionContent.ROCKET)); - l.get(1).delete(); - l.get(2).delete(); - l.get(3).delete(); - l.get(4).delete(); + i.deleteReaction(l.get(1)); + i.deleteReaction(l.get(2)); + i.deleteReaction(l.get(3)); + i.deleteReaction(l.get(4)); l = i.listReactions().toList(); assertThat(l.size(), equalTo(1)); diff --git a/src/test/java/org/kohsuke/github/GHAppTest.java b/src/test/java/org/kohsuke/github/GHAppTest.java index c3ebb3c6bb..29e0da23c6 100644 --- a/src/test/java/org/kohsuke/github/GHAppTest.java +++ b/src/test/java/org/kohsuke/github/GHAppTest.java @@ -146,6 +146,27 @@ public void createToken() throws IOException { assertThat(installationToken2.getRepositories(), nullValue());; } + @Test + public void createTokenWithRepositories() throws IOException { + GHApp app = gitHub.getApp(); + GHAppInstallation installation = app.getInstallationByUser("bogus"); + + // Create token specifying repositories (not repository_ids!) + GHAppInstallationToken installationToken = installation.createToken() + .repositories(Collections.singletonList("bogus")) + .create(); + + assertThat(installationToken.getToken(), is("bogus")); + assertThat(installationToken.getPermissions().entrySet(), hasSize(4)); + assertThat(installationToken.getRepositorySelection(), is(GHRepositorySelection.SELECTED)); + assertThat(installationToken.getExpiresAt(), is(GitHubClient.parseDate("2022-07-27T21:38:33Z"))); + + GHRepository repository = installationToken.getRepositories().get(0); + assertThat(installationToken.getRepositories().size(), is(1)); + assertThat(repository.getId(), is((long) 11111111)); + assertThat(repository.getName(), is("bogus")); + } + private void testAppInstallation(GHAppInstallation appInstallation) throws IOException { Map appPermissions = appInstallation.getPermissions(); GHUser appAccount = appInstallation.getAccount(); diff --git a/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java b/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java index 6f8416ba17..fa732db16d 100644 --- a/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java +++ b/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java @@ -2,12 +2,15 @@ import org.apache.commons.io.IOUtils; import org.junit.After; +import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; import java.nio.charset.StandardCharsets; import java.util.List; @@ -94,48 +97,16 @@ public void testCRUDContent() throws Exception { GHContent createdContent = created.getContent(); assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); - assertThat(created.getCommit(), notNullValue()); - assertThat(created.getContent(), notNullValue()); + expectedRequestCount = checkCreatedCommits(created.getCommit(), getGHCommit(created), expectedRequestCount); + + assertThat(created.getContent(), notNullValue()); assertThat(createdContent.getPath(), equalTo(createdFilename)); assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); - assertThat(createdContent.getContent(), notNullValue()); assertThat(createdContent.getContent(), equalTo("this is an awesome file I created\n")); - - ; assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); - assertThat(created.getCommit().getSHA1(), notNullValue()); - assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); - assertThat(created.getCommit().getUrl().toString(), - endsWith( - "/repos/hub4j-test-org/GHContentIntegrationTest/git/commits/" + created.getCommit().getSHA1())); - - assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); - - assertThat(created.getCommit().getCommitShortInfo().getMessage(), - equalTo("Creating a file for integration tests.")); - - assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); - - assertThat(created.getCommit().getAuthor().getName(), equalTo("Liam Newman")); - assertThat(created.getCommit().getAuthor().getEmail(), equalTo("bitwiseman@gmail.com")); - assertThat(created.getCommit().getCommitter().getName(), equalTo("Liam Newman")); - assertThat(created.getCommit().getCommitter().getEmail(), equalTo("bitwiseman@gmail.com")); - - assertThat("Resolving GHUser", mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); - - assertThat(created.getCommit().getTree().getSha(), notNullValue()); - - assertThat("Resolving GHTree", mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); - - assertThat(created.getCommit().getTree().getUrl().toString(), - endsWith("/repos/hub4j-test-org/GHContentIntegrationTest/git/trees/" - + created.getCommit().getTree().getSha())); - - assertThat("Resolving GHTree is not cached", mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 2)); - GHContent content = repo.getFileContent(createdFilename); assertThat(content, is(notNullValue())); assertThat(content.getSha(), equalTo(createdContent.getSha())); @@ -159,7 +130,6 @@ public void testCRUDContent() throws Exception { assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); - assertThat(updatedContentResponse.getCommit(), notNullValue()); assertThat(updatedContentResponse.getContent(), notNullValue()); assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); @@ -171,40 +141,14 @@ public void testCRUDContent() throws Exception { assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); - assertThat(updatedContentResponse.getCommit().getSHA1(), notNullValue()); - assertThat(updatedContentResponse.getCommit().getUrl().toString(), - endsWith("/repos/hub4j-test-org/GHContentIntegrationTest/git/commits/" - + updatedContentResponse.getCommit().getSHA1())); - - assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); - - assertThat(updatedContentResponse.getCommit().getCommitShortInfo().getMessage(), - equalTo("Updated file for integration tests.")); - - assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); - - assertThat(updatedContentResponse.getCommit().getAuthor().getName(), equalTo("Liam Newman")); - assertThat(updatedContentResponse.getCommit().getAuthor().getEmail(), equalTo("bitwiseman@gmail.com")); - assertThat(updatedContentResponse.getCommit().getCommitter().getName(), equalTo("Liam Newman")); - assertThat(updatedContentResponse.getCommit().getCommitter().getEmail(), equalTo("bitwiseman@gmail.com")); - - assertThat("Resolving GHUser - was already resolved", - mockGitHub.getRequestCount(), - equalTo(expectedRequestCount)); - - assertThat(updatedContentResponse.getCommit().getTree().getSha(), notNullValue()); - - assertThat("Resolving GHTree", mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); - - assertThat(updatedContentResponse.getCommit().getTree().getUrl().toString(), - endsWith("/repos/hub4j-test-org/GHContentIntegrationTest/git/trees/" - + updatedContentResponse.getCommit().getTree().getSha())); - - assertThat("Resolving GHTree is not cached", mockGitHub.getRequestCount(), equalTo(expectedRequestCount + 2)); + expectedRequestCount = checkUpdatedContentResponseCommits(updatedContentResponse.getCommit(), + getGHCommit(updatedContentResponse), + expectedRequestCount); GHContentUpdateResponse deleteResponse = updatedContent.delete("Enough of this foolishness!"); assertThat(deleteResponse.getCommit(), notNullValue()); + assertThat(deleteResponse.getContent(), nullValue()); try { @@ -217,6 +161,162 @@ public void testCRUDContent() throws Exception { } } + int checkCreatedCommits(GitCommit gitCommit, GHCommit ghCommit, int expectedRequestCount) throws Exception { + expectedRequestCount = checkBasicCommitInfo(gitCommit, ghCommit, expectedRequestCount); + assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); + + assertThat(gitCommit.getMessage(), equalTo("Creating a file for integration tests.")); + assertThat(gitCommit.getAuthoredDate(), equalTo(GitHubClient.parseDate("2021-06-28T20:37:49Z"))); + assertThat(gitCommit.getCommitDate(), equalTo(GitHubClient.parseDate("2021-06-28T20:37:49Z"))); + + assertThat(ghCommit.getCommitShortInfo().getMessage(), equalTo("Creating a file for integration tests.")); + assertThat("Message already resolved", mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); + Assert.assertThrows(GHException.class, () -> ghCommit.getCommitShortInfo().getCommentCount()); + + ghCommit.populate(); + assertThat("Populate GHCommit", mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); + + expectedRequestCount = checkCommitUserInfo(gitCommit, ghCommit, expectedRequestCount); + assertThat("Resolved GHUser for GHCommit", mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); + + expectedRequestCount = checkCommitTree(gitCommit, ghCommit, expectedRequestCount); + + expectedRequestCount = checkCommitParents(gitCommit, ghCommit, expectedRequestCount); + + return expectedRequestCount; + } + + GHCommit getGHCommit(GHContentUpdateResponse resp) throws Exception { + for (Method method : resp.getClass().getMethods()) { + if (method.getName().equals("getCommit") && method.getReturnType().equals(GHCommit.class)) { + return (GHCommit) method.invoke(resp); + } + } + System.out.println("Unable to find bridge method"); + return null; + } + + int checkUpdatedContentResponseCommits(GitCommit gitCommit, GHCommit ghCommit, int expectedRequestCount) + throws Exception { + + expectedRequestCount = checkBasicCommitInfo(gitCommit, ghCommit, expectedRequestCount); + assertThat(mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); + + assertThat(gitCommit.getMessage(), equalTo("Updated file for integration tests.")); + assertThat(gitCommit.getAuthoredDate(), equalTo(GitHubClient.parseDate("2021-06-28T20:37:51Z"))); + assertThat(gitCommit.getCommitDate(), equalTo(GitHubClient.parseDate("2021-06-28T20:37:51Z"))); + + assertThat(ghCommit.getCommitShortInfo().getMessage(), equalTo("Updated file for integration tests.")); + assertThat("Message already resolved", mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); + + ghCommit.populate(); + assertThat("Populate GHCommit", mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); + + expectedRequestCount = checkCommitUserInfo(gitCommit, ghCommit, expectedRequestCount); + assertThat("GHUser already resolved", mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); + + expectedRequestCount = checkCommitTree(gitCommit, ghCommit, expectedRequestCount); + + return expectedRequestCount; + } + + int checkBasicCommitInfo(GitCommit gitCommit, GHCommit ghCommit, int expectedRequestCount) throws IOException { + assertThat(gitCommit, notNullValue()); + assertThat(gitCommit.getSHA1(), notNullValue()); + assertThat(gitCommit.getUrl().toString(), + endsWith("/repos/hub4j-test-org/GHContentIntegrationTest/git/commits/" + gitCommit.getSHA1())); + assertThat(gitCommit.getNodeId(), notNullValue()); + assertThat(gitCommit.getHtmlUrl().toString(), + equalTo("https://github.com/hub4j-test-org/GHContentIntegrationTest/commit/" + gitCommit.getSHA1())); + assertThat(gitCommit.getVerification(), notNullValue()); + + assertThat(ghCommit, notNullValue()); + assertThat(ghCommit.getSHA1(), notNullValue()); + assertThat(ghCommit.getUrl().toString(), + endsWith("/repos/hub4j-test-org/GHContentIntegrationTest/git/commits/" + ghCommit.getSHA1())); + + return expectedRequestCount; + } + + int checkCommitUserInfo(GitCommit gitCommit, GHCommit ghCommit, int expectedRequestCount) throws Exception { + assertThat(gitCommit.getAuthor().getName(), equalTo("Liam Newman")); + assertThat(gitCommit.getAuthor().getEmail(), equalTo("bitwiseman@gmail.com")); + + // Check that GHCommit.GHAuthor bridge method still works + assertThat(getGHAuthor(gitCommit).getName(), equalTo("Liam Newman")); + assertThat(getGHAuthor(gitCommit).getEmail(), equalTo("bitwiseman@gmail.com")); + + assertThat(gitCommit.getAuthor().getName(), equalTo("Liam Newman")); + assertThat(gitCommit.getAuthor().getEmail(), equalTo("bitwiseman@gmail.com")); + assertThat(gitCommit.getCommitter().getName(), equalTo("Liam Newman")); + assertThat(gitCommit.getCommitter().getEmail(), equalTo("bitwiseman@gmail.com")); + assertThat("GHUser already resolved", mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); + + assertThat(ghCommit.getAuthor().getName(), equalTo("Liam Newman")); + assertThat(ghCommit.getAuthor().getEmail(), equalTo("bitwiseman@gmail.com")); + + // Check that GHCommit.GHAuthor bridge method still works + assertThat(getGHAuthor(ghCommit.getCommitShortInfo()).getName(), equalTo("Liam Newman")); + assertThat(getGHAuthor(ghCommit.getCommitShortInfo()).getEmail(), equalTo("bitwiseman@gmail.com")); + + assertThat(ghCommit.getCommitter().getName(), equalTo("Liam Newman")); + assertThat(ghCommit.getCommitter().getEmail(), equalTo("bitwiseman@gmail.com")); + + return expectedRequestCount; + } + + GHCommit.GHAuthor getGHAuthor(GitCommit commit) + throws GHException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { + for (Method method : commit.getClass().getMethods()) { + if (method.getName().equals("getAuthor") && method.getReturnType().equals(GHCommit.GHAuthor.class)) { + return (GHCommit.GHAuthor) method.invoke(commit); + } + } + System.out.println("Unable to find bridge method"); + return null; + } + + GHCommit.GHAuthor getGHAuthor(GHCommit.ShortInfo commit) + throws GHException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { + for (Method method : commit.getClass().getMethods()) { + if (method.getName().equals("getAuthor") && method.getReturnType().equals(GHCommit.GHAuthor.class)) { + return (GHCommit.GHAuthor) method.invoke(commit); + } + } + System.out.println("Unable to find bridge method"); + return null; + } + + int checkCommitTree(GitCommit gitCommit, GHCommit ghCommit, int expectedRequestCount) throws IOException { + assertThat(gitCommit.getTreeSHA1(), notNullValue()); + assertThat(gitCommit.getTreeUrl(), + endsWith("/repos/hub4j-test-org/GHContentIntegrationTest/git/trees/" + gitCommit.getTree().getSha())); + assertThat("GHTree already resolved", mockGitHub.getRequestCount(), equalTo(expectedRequestCount)); + + assertThat(ghCommit.getTree().getSha(), notNullValue()); + assertThat("GHCommit has to resolve GHTree", mockGitHub.getRequestCount(), equalTo(expectedRequestCount += 1)); + assertThat(ghCommit.getTree().getUrl().toString(), + endsWith("/repos/hub4j-test-org/GHContentIntegrationTest/git/trees/" + ghCommit.getTree().getSha())); + assertThat("GHCommit resolving GHTree is not cached", + mockGitHub.getRequestCount(), + equalTo(expectedRequestCount += 2)); + + return expectedRequestCount; + } + + int checkCommitParents(GitCommit gitCommit, GHCommit ghCommit, int expectedRequestCount) throws IOException { + assertThat(gitCommit.getParentSHA1s().size(), is(greaterThan(0))); + assertThat(ghCommit.getParentSHA1s().size(), is(greaterThan(0))); + assertThat(gitCommit.getParentSHA1s().get(0), notNullValue()); + assertThat(ghCommit.getParentSHA1s().get(0), notNullValue()); + return expectedRequestCount; + } + + // @Test + // public void testGitCommit2GHCommitExceptions() { + + // } + @Test public void testMIMESmall() throws IOException { GHRepository ghRepository = getTempRepository(); @@ -278,4 +378,5 @@ public void testGetFileContentWithSymlink() throws Exception { // this needs special handling and will 404 from GitHub // assertThat(IOUtils.toString(fileContent.read(), StandardCharsets.UTF_8), is("")); } + } diff --git a/src/test/java/org/kohsuke/github/GHEventPayloadTest.java b/src/test/java/org/kohsuke/github/GHEventPayloadTest.java index f39573191f..18c06db28c 100644 --- a/src/test/java/org/kohsuke/github/GHEventPayloadTest.java +++ b/src/test/java/org/kohsuke/github/GHEventPayloadTest.java @@ -4,6 +4,8 @@ import org.junit.Test; import org.kohsuke.github.GHCheckRun.Conclusion; import org.kohsuke.github.GHCheckRun.Status; +import org.kohsuke.github.GHProjectsV2Item.ContentType; +import org.kohsuke.github.GHProjectsV2ItemChanges.FieldType; import java.io.IOException; import java.text.SimpleDateFormat; @@ -11,7 +13,18 @@ import java.util.List; import java.util.TimeZone; -import static org.hamcrest.Matchers.*; +import static org.hamcrest.Matchers.aMapWithSize; +import static org.hamcrest.Matchers.contains; +import static org.hamcrest.Matchers.endsWith; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.hasProperty; +import static org.hamcrest.Matchers.hasToString; +import static org.hamcrest.Matchers.is; +import static org.hamcrest.Matchers.lessThanOrEqualTo; +import static org.hamcrest.Matchers.notNullValue; +import static org.hamcrest.Matchers.nullValue; +import static org.hamcrest.Matchers.sameInstance; +import static org.hamcrest.Matchers.startsWith; import static org.junit.Assert.assertThrows; public class GHEventPayloadTest extends AbstractGitHubWireMockTest { @@ -851,6 +864,8 @@ public void workflow_run() throws Exception { is("https://api.github.com/repos/gsmet/quarkus-bot-java-playground/actions/workflows/7087581")); assertThat(workflowRun.getCreatedAt().getTime(), is(1616524526000L)); assertThat(workflowRun.getUpdatedAt().getTime(), is(1616524543000L)); + assertThat(workflowRun.getRunAttempt(), is(1L)); + assertThat(workflowRun.getRunStartedAt().getTime(), is(1616524526000L)); assertThat(workflowRun.getHeadCommit().getId(), is("dbea8d8b6ed2cf764dfd84a215f3f9040b3d4423")); assertThat(workflowRun.getHeadCommit().getTreeId(), is("b17089e6a2574ec1002566fe980923e62dce3026")); assertThat(workflowRun.getHeadCommit().getMessage(), is("Update main.yml")); @@ -874,7 +889,6 @@ public void workflow_run_pull_request() throws Exception { GHPullRequest pullRequest = pullRequests.get(0); assertThat(pullRequest.getId(), is(599098265L)); assertThat(pullRequest.getRepository(), sameInstance(workflowRunPayload.getRepository())); - } @Test @@ -890,6 +904,40 @@ public void workflow_run_other_repository() throws Exception { assertThat(workflowRunPayload.getWorkflow().getRepository(), sameInstance(workflowRunPayload.getRepository())); } + @Test + public void workflow_job() throws Exception { + final GHEventPayload.WorkflowJob workflowJobPayload = GitHub.offline() + .parseEventPayload(payload.asReader(), GHEventPayload.WorkflowJob.class); + + assertThat(workflowJobPayload.getAction(), is("completed")); + assertThat(workflowJobPayload.getRepository().getFullName(), is("gsmet/quarkus-bot-java-playground")); + assertThat(workflowJobPayload.getSender().getLogin(), is("gsmet")); + + GHWorkflowJob workflowJob = workflowJobPayload.getWorkflowJob(); + assertThat(workflowJob.getId(), is(6653410527L)); + assertThat(workflowJob.getRunId(), is(2408553341L)); + assertThat(workflowJob.getRunAttempt(), is(1)); + assertThat(workflowJob.getUrl().toString(), + is("https://api.github.com/repos/gsmet/quarkus-bot-java-playground/actions/jobs/6653410527")); + assertThat(workflowJob.getHtmlUrl().toString(), + is("https://github.com/gsmet/quarkus-bot-java-playground/runs/6653410527?check_suite_focus=true")); + assertThat(workflowJob.getNodeId(), is("CR_kwDOEq3cwc8AAAABjJL83w")); + assertThat(workflowJob.getHeadSha(), is("5dd2dadfbdc2a722c08a8ad42ae4e26e3e731042")); + assertThat(workflowJob.getStatus(), is(GHWorkflowRun.Status.COMPLETED)); + assertThat(workflowJob.getConclusion(), is(GHWorkflowRun.Conclusion.FAILURE)); + assertThat(workflowJob.getStartedAt().getTime(), is(1653908125000L)); + assertThat(workflowJob.getCompletedAt().getTime(), is(1653908157000L)); + assertThat(workflowJob.getName(), is("JVM Tests - JDK JDK16")); + assertThat(workflowJob.getSteps(), + contains(hasProperty("name", is("Set up job")), + hasProperty("name", is("Run actions/checkout@v2")), + hasProperty("name", is("Build with Maven")), + hasProperty("name", is("Post Run actions/checkout@v2")), + hasProperty("name", is("Complete job")))); + assertThat(workflowJob.getCheckRunUrl().toString(), + is("https://api.github.com/repos/gsmet/quarkus-bot-java-playground/check-runs/6653410527")); + } + @Test public void label_created() throws Exception { final GHEventPayload.Label labelPayload = GitHub.offline() @@ -1095,4 +1143,113 @@ public void discussion_labeled() throws Exception { assertThat(label.isDefault(), is(false)); assertThat(label.getDescription(), is(nullValue())); } + + @Test + public void starred() throws Exception { + final GHEventPayload.Star starPayload = GitHub.offline() + .parseEventPayload(payload.asReader(), GHEventPayload.Star.class); + + assertThat(starPayload.getAction(), is("created")); + assertThat(starPayload.getRepository().getFullName(), is("gsmet/quarkus-bot-java-playground")); + assertThat(starPayload.getSender().getLogin(), is("gsmet")); + assertThat(starPayload.getStarredAt().getTime(), is(1654017876000L)); + } + + @Test + public void projectsv2item_created() throws Exception { + final GHEventPayload.ProjectsV2Item projectsV2ItemPayload = GitHub.offline() + .parseEventPayload(payload.asReader(), GHEventPayload.ProjectsV2Item.class); + + assertThat(projectsV2ItemPayload.getAction(), is("created")); + + assertThat(projectsV2ItemPayload.getProjectsV2Item().getId(), is(8083254L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getNodeId(), is("PVTI_lADOBNft-M4AEjBWzgB7VzY")); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getProjectNodeId(), is("PVT_kwDOBNft-M4AEjBW")); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getContentNodeId(), is("I_kwDOFOkjw85Ozz26")); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getContentType(), is(ContentType.ISSUE)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getCreator().getLogin(), is("gsmet")); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getCreator().getNodeId(), is("MDQ6VXNlcjEyNzk3NDk=")); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getCreatedAt().getTime(), is(1659532028000L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getUpdatedAt().getTime(), is(1659532028000L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getArchivedAt(), is(nullValue())); + + assertThat(projectsV2ItemPayload.getOrganization().getLogin(), is("gsmet-bot-playground")); + assertThat(projectsV2ItemPayload.getOrganization().getId(), is(81260024L)); + assertThat(projectsV2ItemPayload.getOrganization().getNodeId(), is("MDEyOk9yZ2FuaXphdGlvbjgxMjYwMDI0")); + + assertThat(projectsV2ItemPayload.getSender().getLogin(), is("gsmet")); + assertThat(projectsV2ItemPayload.getSender().getId(), is(1279749L)); + assertThat(projectsV2ItemPayload.getSender().getNodeId(), is("MDQ6VXNlcjEyNzk3NDk=")); + + assertThat(projectsV2ItemPayload.getInstallation().getId(), is(16779846L)); + assertThat(projectsV2ItemPayload.getInstallation().getNodeId(), + is("MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTY3Nzk4NDY=")); + } + + @Test + public void projectsv2item_edited() throws Exception { + final GHEventPayload.ProjectsV2Item projectsV2ItemPayload = GitHub.offline() + .parseEventPayload(payload.asReader(), GHEventPayload.ProjectsV2Item.class); + + assertThat(projectsV2ItemPayload.getAction(), is("edited")); + + assertThat(projectsV2ItemPayload.getProjectsV2Item().getId(), is(8083254L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getCreatedAt().getTime(), is(1659532028000L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getUpdatedAt().getTime(), is(1659532033000L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getArchivedAt(), is(nullValue())); + + assertThat(projectsV2ItemPayload.getChanges().getFieldValue().getFieldNodeId(), + is("PVTF_lADOBNft-M4AEjBWzgCnp5Q")); + assertThat(projectsV2ItemPayload.getChanges().getFieldValue().getFieldType(), is(FieldType.SINGLE_SELECT)); + } + + @Test + public void projectsv2item_archived() throws Exception { + final GHEventPayload.ProjectsV2Item projectsV2ItemPayload = GitHub.offline() + .parseEventPayload(payload.asReader(), GHEventPayload.ProjectsV2Item.class); + + assertThat(projectsV2ItemPayload.getAction(), is("archived")); + + assertThat(projectsV2ItemPayload.getProjectsV2Item().getId(), is(8083794L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getCreatedAt().getTime(), is(1659532431000L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getUpdatedAt().getTime(), is(1660086629000L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getArchivedAt().getTime(), is(1660086629000L)); + + assertThat(projectsV2ItemPayload.getChanges().getArchivedAt().getFrom(), is(nullValue())); + assertThat(projectsV2ItemPayload.getChanges().getArchivedAt().getTo().getTime(), is(1660086629000L)); + } + + @Test + public void projectsv2item_restored() throws Exception { + final GHEventPayload.ProjectsV2Item projectsV2ItemPayload = GitHub.offline() + .parseEventPayload(payload.asReader(), GHEventPayload.ProjectsV2Item.class); + + assertThat(projectsV2ItemPayload.getAction(), is("restored")); + + assertThat(projectsV2ItemPayload.getProjectsV2Item().getId(), is(8083254L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getCreatedAt().getTime(), is(1659532028000L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getUpdatedAt().getTime(), is(1659532419000L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getArchivedAt(), is(nullValue())); + + assertThat(projectsV2ItemPayload.getChanges().getArchivedAt().getFrom().getTime(), is(1659532142000L)); + assertThat(projectsV2ItemPayload.getChanges().getArchivedAt().getTo(), is(nullValue())); + } + + @Test + public void projectsv2item_reordered() throws Exception { + final GHEventPayload.ProjectsV2Item projectsV2ItemPayload = GitHub.offline() + .parseEventPayload(payload.asReader(), GHEventPayload.ProjectsV2Item.class); + + assertThat(projectsV2ItemPayload.getAction(), is("reordered")); + + assertThat(projectsV2ItemPayload.getProjectsV2Item().getId(), is(8083794L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getCreatedAt().getTime(), is(1659532431000L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getUpdatedAt().getTime(), is(1659532439000L)); + assertThat(projectsV2ItemPayload.getProjectsV2Item().getArchivedAt(), is(nullValue())); + + assertThat(projectsV2ItemPayload.getChanges().getPreviousProjectsV2ItemNodeId().getFrom(), + is("PVTI_lADOBNft-M4AEjBWzgB7VzY")); + assertThat(projectsV2ItemPayload.getChanges().getPreviousProjectsV2ItemNodeId().getTo(), + is("PVTI_lADOBNft-M4AEjBWzgB7VzY")); + } } diff --git a/src/test/java/org/kohsuke/github/GHOrganizationTest.java b/src/test/java/org/kohsuke/github/GHOrganizationTest.java index e7c48d714f..38b7f8e966 100644 --- a/src/test/java/org/kohsuke/github/GHOrganizationTest.java +++ b/src/test/java/org/kohsuke/github/GHOrganizationTest.java @@ -4,6 +4,7 @@ import org.junit.Before; import org.junit.Test; import org.kohsuke.github.GHOrganization.Permission; +import org.kohsuke.github.GHOrganization.RepositoryRole; import java.io.IOException; import java.util.List; @@ -196,6 +197,75 @@ public void testCreateTeamWithRepoAccess() throws IOException { assertThat(team.getPermission(), equalTo(Permission.PUSH.toString().toLowerCase())); } + @Test + public void testCreateTeamWithNullPerm() throws Exception { + String REPO_NAME = "github-api"; + + GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG); + GHRepository repo = org.getRepository(REPO_NAME); + + // Create team with access to repository. Check access was granted. + GHTeam team = org.createTeam(TEAM_NAME_CREATE).create(); + + team.add(repo); + + assertThat( + repo.getTeams() + .stream() + .filter(t -> TEAM_NAME_CREATE.equals(t.getName())) + .findFirst() + .get() + .getPermission(), + equalTo(Permission.PULL.toString().toLowerCase())); + } + + @Test + public void testCreateTeamWithRepoPerm() throws Exception { + String REPO_NAME = "github-api"; + + GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG); + GHRepository repo = org.getRepository(REPO_NAME); + + // Create team with access to repository. Check access was granted. + GHTeam team = org.createTeam(TEAM_NAME_CREATE).create(); + + team.add(repo, GHOrganization.Permission.PUSH); + + assertThat( + repo.getTeams() + .stream() + .filter(t -> TEAM_NAME_CREATE.equals(t.getName())) + .findFirst() + .get() + .getPermission(), + equalTo(Permission.PUSH.toString().toLowerCase())); + + } + + @Test + public void testCreateTeamWithRepoRole() throws IOException { + String REPO_NAME = "github-api"; + + GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG); + GHRepository repo = org.getRepository(REPO_NAME); + + // Create team with access to repository. Check access was granted. + GHTeam team = org.createTeam(TEAM_NAME_CREATE).create(); + + RepositoryRole role = RepositoryRole.from(GHOrganization.Permission.TRIAGE); + team.add(repo, role); + + // 'getPermission' does not return triage even though the UI shows that value + // assertThat( + // repo.getTeams() + // .stream() + // .filter(t -> TEAM_NAME_CREATE.equals(t.getName())) + // .findFirst() + // .get() + // .getPermission(), + // equalTo(role.toString())); + } + @Test public void testCreateTeam() throws IOException { String REPO_NAME = "github-api"; diff --git a/src/test/java/org/kohsuke/github/GHPullRequestTest.java b/src/test/java/org/kohsuke/github/GHPullRequestTest.java index 165e50ba0b..4c6ae3d491 100644 --- a/src/test/java/org/kohsuke/github/GHPullRequestTest.java +++ b/src/test/java/org/kohsuke/github/GHPullRequestTest.java @@ -131,6 +131,10 @@ public void pullRequestReviewComments() throws Exception { assertThat(comment.getInReplyToId(), equalTo(-1L)); assertThat(comment.getPath(), equalTo("README.md")); assertThat(comment.getPosition(), equalTo(1)); + assertThat(comment.getDiffHunk(), equalTo("@@ -1,3 +1,4 @@\n-Java API for GitHub")); + assertThat(comment.getCommitId(), equalTo("07374fe73aff1c2024a8d4114b32406c7a8e89b7")); + assertThat(comment.getOriginalCommitId(), equalTo("07374fe73aff1c2024a8d4114b32406c7a8e89b7")); + assertThat(comment.getAuthorAssociation(), equalTo(GHCommentAuthorAssociation.MEMBER)); assertThat(comment.getUser(), notNullValue()); // Assert htmlUrl is not null assertThat(comment.getHtmlUrl(), notNullValue()); @@ -146,6 +150,11 @@ public void pullRequestReviewComments() throws Exception { reactions = comment.listReactions().toList(); assertThat(reactions.size(), equalTo(1)); + comment.deleteReaction(reaction); + + reactions = comment.listReactions().toList(); + assertThat(reactions.size(), equalTo(0)); + GHPullRequestReviewComment reply = comment.reply("This is a reply."); assertThat(reply.getInReplyToId(), equalTo(comment.getId())); comments = p.listReviewComments().toList(); diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java index b214999c8e..3b8466df8a 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java @@ -4,6 +4,7 @@ import org.apache.commons.io.IOUtils; import org.junit.Test; import org.kohsuke.github.GHCheckRun.Conclusion; +import org.kohsuke.github.GHOrganization.RepositoryRole; import org.kohsuke.github.GHRepository.Visibility; import java.io.ByteArrayInputStream; @@ -92,6 +93,20 @@ public void archive() throws Exception { assertThat(getRepository().isArchived(), is(true)); } + @Test + public void isDisabled() throws Exception { + GHRepository r = getRepository(); + + assertThat(r.isDisabled(), is(false)); + } + + @Test + public void isDisabledTrue() throws Exception { + GHRepository r = getRepository(); + + assertThat(r.isDisabled(), is(true)); + } + @Test public void getBranch_URLEncoded() throws Exception { GHRepository repo = getRepository(); @@ -324,6 +339,35 @@ public void getPermission() throws Exception { } } + @Test + public void hasPermission() throws Exception { + kohsuke(); + GHRepository publicRepository = gitHub.getRepository("hub4j-test-org/test-permission"); + assertThat(publicRepository.hasPermission("kohsuke", GHPermissionType.ADMIN), equalTo(true)); + assertThat(publicRepository.hasPermission("kohsuke", GHPermissionType.WRITE), equalTo(true)); + assertThat(publicRepository.hasPermission("kohsuke", GHPermissionType.READ), equalTo(true)); + assertThat(publicRepository.hasPermission("kohsuke", GHPermissionType.NONE), equalTo(false)); + + assertThat(publicRepository.hasPermission("dude", GHPermissionType.ADMIN), equalTo(false)); + assertThat(publicRepository.hasPermission("dude", GHPermissionType.WRITE), equalTo(false)); + assertThat(publicRepository.hasPermission("dude", GHPermissionType.READ), equalTo(true)); + assertThat(publicRepository.hasPermission("dude", GHPermissionType.NONE), equalTo(false)); + + // also check the GHUser method + GHUser kohsuke = gitHub.getUser("kohsuke"); + assertThat(publicRepository.hasPermission(kohsuke, GHPermissionType.ADMIN), equalTo(true)); + assertThat(publicRepository.hasPermission(kohsuke, GHPermissionType.WRITE), equalTo(true)); + assertThat(publicRepository.hasPermission(kohsuke, GHPermissionType.READ), equalTo(true)); + assertThat(publicRepository.hasPermission(kohsuke, GHPermissionType.NONE), equalTo(false)); + + // check NONE on a private project + GHRepository privateRepository = gitHub.getRepository("hub4j-test-org/test-permission-private"); + assertThat(privateRepository.hasPermission("dude", GHPermissionType.ADMIN), equalTo(false)); + assertThat(privateRepository.hasPermission("dude", GHPermissionType.WRITE), equalTo(false)); + assertThat(privateRepository.hasPermission("dude", GHPermissionType.READ), equalTo(false)); + assertThat(privateRepository.hasPermission("dude", GHPermissionType.NONE), equalTo(true)); + } + @Test public void LatestRepositoryExist() { try { @@ -340,19 +384,32 @@ public void LatestRepositoryExist() { public void addCollaborators() throws Exception { GHRepository repo = getRepository(); GHUser user = getUser(); - List users = new ArrayList(); + List users = new ArrayList<>(); users.add(user); users.add(gitHub.getUser("jimmysombrero2")); repo.addCollaborators(users, GHOrganization.Permission.PUSH); GHPersonSet collabs = repo.getCollaborators(); - GHUser colabUser = collabs.byLogin("jimmysombrero"); assertThat(user.getName(), equalTo(colabUser.getName())); } + @Test + public void addCollaboratorsRepoPerm() throws Exception { + GHRepository repo = getRepository(); + GHUser user = getUser(); + + RepositoryRole role = RepositoryRole.from(GHOrganization.Permission.PULL); + repo.addCollaborators(role, user); + + GHPersonSet collabs = repo.getCollaborators(); + GHUser colabUser = collabs.byLogin("jgangemi"); + + assertThat(user.getName(), equalTo(colabUser.getName())); + } + @Test public void LatestRepositoryNotExist() { try { @@ -696,6 +753,15 @@ public void getRefs() throws Exception { assertThat(refs[0].getRef(), equalTo("refs/heads/main")); } + @Test + public void getPublicKey() throws Exception { + GHRepository repo = getTempRepository(); + GHRepositoryPublicKey publicKey = repo.getPublicKey(); + assertThat(publicKey, notNullValue()); + assertThat(publicKey.getKey(), equalTo("test-key")); + assertThat(publicKey.getKeyId(), equalTo("key-id")); + } + @Test public void getRefsHeads() throws Exception { GHRepository repo = getTempRepository(); @@ -877,6 +943,13 @@ public void listCollaboratorsFiltered() throws Exception { assertThat(filteredCollaborators.size(), lessThan(allCollaborators.size())); } + @Test + public void userIsCollaborator() throws Exception { + GHRepository repo = getRepository(); + GHUser collaborator = repo.listCollaborators().toList().get(0); + assertThat(repo.isCollaborator(collaborator), is(true)); + } + @Test public void getCheckRuns() throws Exception { final int expectedCount = 8; @@ -1042,4 +1115,9 @@ public void createDispatchEventWithClientPayload() throws Exception { repository.dispatch("test", clientPayload); } + @Test + public void createSecret() throws Exception { + GHRepository repo = getTempRepository(); + repo.createSecret("secret", "encrypted", "public"); + } } diff --git a/src/test/java/org/kohsuke/github/GHTeamTest.java b/src/test/java/org/kohsuke/github/GHTeamTest.java index eb81c0cae0..0a741a405a 100644 --- a/src/test/java/org/kohsuke/github/GHTeamTest.java +++ b/src/test/java/org/kohsuke/github/GHTeamTest.java @@ -2,12 +2,18 @@ import org.junit.Test; import org.kohsuke.github.GHTeam.Privacy; +import org.kohsuke.github.GHTeam.Role; import java.io.IOException; import java.util.List; import java.util.Set; -import static org.hamcrest.Matchers.*; +import static org.hamcrest.Matchers.containsInAnyOrder; +import static org.hamcrest.Matchers.empty; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.hasProperty; +import static org.hamcrest.Matchers.is; +import static org.hamcrest.Matchers.notNullValue; public class GHTeamTest extends AbstractGitHubWireMockTest { @@ -137,4 +143,66 @@ public void testFetchEmptyChildTeams() throws IOException { assertThat(result, is(empty())); } + @Test + public void addRemoveMember() throws IOException { + String teamSlug = "dummy-team"; + + GHTeam team = gitHub.getOrganization(GITHUB_API_TEST_ORG).getTeamBySlug(teamSlug); + + List members = team.listMembers().toList(); + + assertThat(members, notNullValue()); + assertThat("One admin in dummy team", members.size(), equalTo(1)); + assertThat("Specific user in admin team", + members.stream().anyMatch(ghUser -> ghUser.getLogin().equals("bitwiseman"))); + + GHUser user = gitHub.getUser("gsmet"); + + try { + team.add(user, Role.MAINTAINER); + + // test all + members = team.listMembers().toList(); + + assertThat(members, notNullValue()); + assertThat("Two members for all roles in dummy team", members.size(), equalTo(2)); + assertThat("Specific users in team", + members, + containsInAnyOrder(hasProperty("login", equalTo("bitwiseman")), + hasProperty("login", equalTo("gsmet")))); + + // test maintainer role filter + members = team.listMembers(Role.MAINTAINER).toList(); + + assertThat(members, notNullValue()); + assertThat("Two members for all roles in dummy team", members.size(), equalTo(2)); + assertThat("Specific users in team", + members, + containsInAnyOrder(hasProperty("login", equalTo("bitwiseman")), + hasProperty("login", equalTo("gsmet")))); + + // test member role filter + // it's hard to test this as owner of the org are automatically made maintainer + // so let's just test that we don't have any members around + members = team.listMembers(Role.MEMBER).toList(); + + assertThat(members, notNullValue()); + assertThat("No members in dummy team", members.size(), equalTo(0)); + + // test removing the user has effect + team.remove(user); + + members = team.listMembers().toList(); + + assertThat(members, notNullValue()); + assertThat("One member for all roles in dummy team", members.size(), equalTo(1)); + assertThat("Specific user in team", + members, + containsInAnyOrder(hasProperty("login", equalTo("bitwiseman")))); + } finally { + if (team.hasMember(user)) { + team.remove(user); + } + } + } } diff --git a/src/test/java/org/kohsuke/github/GHUserTest.java b/src/test/java/org/kohsuke/github/GHUserTest.java index d682d1a566..c2446715a4 100644 --- a/src/test/java/org/kohsuke/github/GHUserTest.java +++ b/src/test/java/org/kohsuke/github/GHUserTest.java @@ -6,6 +6,7 @@ import java.util.*; import static org.hamcrest.CoreMatchers.*; +import static org.hamcrest.Matchers.emptyString; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.is; @@ -162,4 +163,10 @@ public void verifyBioAndHireable() throws IOException { assertThat(u.getPublicGistCount(), equalTo(4)); assertThat(u.getPublicRepoCount(), equalTo(96)); } + + @Test + public void verifyLdapdn() throws IOException { + GHUser u = gitHub.getUser("kartikpatodi"); + assertThat(u.getLdapDn().orElse(""), not(emptyString())); + } } diff --git a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java index d7b5442716..1132b23276 100644 --- a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java +++ b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java @@ -3,6 +3,7 @@ import org.awaitility.Awaitility; import org.junit.Before; import org.junit.Test; +import org.kohsuke.github.GHPullRequestQueryBuilder.Sort; import org.kohsuke.github.GHWorkflowJob.Step; import org.kohsuke.github.GHWorkflowRun.Conclusion; import org.kohsuke.github.GHWorkflowRun.Status; @@ -39,6 +40,7 @@ public class GHWorkflowRunTest extends AbstractGitHubWireMockTest { private static final String MULTI_JOBS_WORKFLOW_PATH = "multi-jobs-workflow.yml"; private static final String MULTI_JOBS_WORKFLOW_NAME = "Multi jobs workflow"; private static final String RUN_A_ONE_LINE_SCRIPT_STEP_NAME = "Run a one-line script"; + private static final String UBUNTU_LABEL = "ubuntu-latest"; private GHRepository repo; @@ -361,18 +363,57 @@ public void testJobs() throws IOException { assertThat(allJobs.size(), greaterThanOrEqualTo(2)); } - private void await(Function condition) throws IOException { + @Test + public void testApproval() throws IOException { + List pullRequests = repo.queryPullRequests() + .base(MAIN_BRANCH) + .sort(Sort.CREATED) + .direction(GHDirection.DESC) + .state(GHIssueState.OPEN) + .list() + .toList(); + + assertThat(pullRequests.size(), greaterThanOrEqualTo(1)); + GHPullRequest pullRequest = pullRequests.get(0); + + await("Waiting for workflow run to be pending", + (nonRecordingRepo) -> getWorkflowRun(nonRecordingRepo, + FAST_WORKFLOW_NAME, + MAIN_BRANCH, + Conclusion.ACTION_REQUIRED).isPresent()); + + GHWorkflowRun workflowRun = getWorkflowRun(FAST_WORKFLOW_NAME, MAIN_BRANCH, Conclusion.ACTION_REQUIRED) + .orElseThrow(() -> new IllegalStateException("We must have a valid workflow run starting from here")); + + workflowRun.approve(); + + await("Waiting for workflow run to be approved", + (nonRecordingRepo) -> getWorkflowRun(nonRecordingRepo, + FAST_WORKFLOW_NAME, + pullRequest.getHead().getRef(), + Conclusion.SUCCESS).isPresent()); + + workflowRun = repo.getWorkflowRun(workflowRun.getId()); + + assertThat(workflowRun.getConclusion(), is(Conclusion.SUCCESS)); + } + + private void await(String alias, Function condition) throws IOException { if (!mockGitHub.isUseProxy()) { return; } GHRepository nonRecordingRepo = getNonRecordingGitHub().getRepository(REPO_NAME); - Awaitility.await().pollInterval(Duration.ofSeconds(5)).atMost(Duration.ofSeconds(60)).until(() -> { + Awaitility.await(alias).pollInterval(Duration.ofSeconds(5)).atMost(Duration.ofSeconds(60)).until(() -> { return condition.apply(nonRecordingRepo); }); } + private void await(Function condition) throws IOException { + await(null, condition); + } + private long getLatestPreexistingWorkflowRunId() { return repo.queryWorkflowRuns().list().withPageSize(1).iterator().next().getId(); } @@ -406,6 +447,31 @@ private Optional getWorkflowRun(String workflowName, return getWorkflowRun(this.repo, workflowName, branch, status, latestPreexistingWorkflowRunId); } + private static Optional getWorkflowRun(GHRepository repository, + String workflowName, + String branch, + Conclusion conclusion) { + List workflowRuns = repository.queryWorkflowRuns() + .branch(branch) + .conclusion(conclusion) + .event(GHEvent.PULL_REQUEST) + .list() + .withPageSize(20) + .iterator() + .nextPage(); + + for (GHWorkflowRun workflowRun : workflowRuns) { + if (workflowRun.getName().equals(workflowName)) { + return Optional.of(workflowRun); + } + } + return Optional.empty(); + } + + private Optional getWorkflowRun(String workflowName, String branch, Conclusion conclusion) { + return getWorkflowRun(this.repo, workflowName, branch, conclusion); + } + private static Status getWorkflowRunStatus(GHRepository repository, long workflowRunId) { try { return repository.getWorkflowRun(workflowRunId).getStatus(); @@ -477,6 +543,10 @@ private static void checkJobProperties(long workflowRunId, GHWorkflowJob job, St assertThat(job.getUrl().getPath(), containsString("/actions/jobs/")); assertThat(job.getHtmlUrl().getPath(), containsString("/runs/" + job.getId())); assertThat(job.getCheckRunUrl().getPath(), containsString("/check-runs/")); + assertThat(job.getRunnerId(), is(1)); + assertThat(job.getRunnerName(), containsString("my runner")); + assertThat(job.getRunnerGroupId(), is(2)); + assertThat(job.getRunnerGroupName(), containsString("my runner group")); // we only test the step we have control over, the others are added by GitHub Optional step = job.getSteps() @@ -487,6 +557,11 @@ private static void checkJobProperties(long workflowRunId, GHWorkflowJob job, St fail("Unable to find " + RUN_A_ONE_LINE_SCRIPT_STEP_NAME + " step"); } + Optional labelOptional = job.getLabels().stream().filter(s -> s.equals(UBUNTU_LABEL)).findFirst(); + if (!labelOptional.isPresent()) { + fail("Unable to find " + UBUNTU_LABEL + " label"); + } + checkStepProperties(step.get(), RUN_A_ONE_LINE_SCRIPT_STEP_NAME, 2); } diff --git a/src/test/java/org/kohsuke/github/GHWorkflowTest.java b/src/test/java/org/kohsuke/github/GHWorkflowTest.java index a91f9f4ca9..e309a31d8c 100644 --- a/src/test/java/org/kohsuke/github/GHWorkflowTest.java +++ b/src/test/java/org/kohsuke/github/GHWorkflowTest.java @@ -115,7 +115,7 @@ public void testListWorkflowRuns() throws IOException { GHWorkflow workflow = repo.getWorkflow("test-workflow.yml"); List workflowRuns = workflow.listRuns().toList(); - assertThat(workflowRuns.size(), is(2)); + assertThat(workflowRuns.size(), greaterThan(2)); checkWorkflowRunProperties(workflowRuns.get(0), workflow.getId()); checkWorkflowRunProperties(workflowRuns.get(1), workflow.getId()); diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api-2.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api-1.json similarity index 88% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api-2.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api-1.json index df6bca44dd..82927cb459 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api-2.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api-1.json @@ -8,7 +8,7 @@ "login": "hub4j", "id": 54909825, "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", - "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "avatar_url": "https://avatars.githubusercontent.com/u/54909825?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hub4j", "html_url": "https://github.com/hub4j", @@ -65,27 +65,27 @@ "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", "created_at": "2010-04-19T04:13:03Z", - "updated_at": "2020-02-23T02:42:15Z", - "pushed_at": "2020-02-23T02:48:53Z", + "updated_at": "2022-04-05T15:53:55Z", + "pushed_at": "2022-04-08T04:02:11Z", "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": 19552, - "stargazers_count": 613, - "watchers_count": 613, + "size": 39875, + "stargazers_count": 878, + "watchers_count": 878, "language": "Java", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": true, - "forks_count": 456, + "forks_count": 601, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 57, + "open_issues_count": 99, "license": { "key": "mit", "name": "MIT License", @@ -93,25 +93,35 @@ "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, - "forks": 456, - "open_issues": 57, - "watchers": 613, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 601, + "open_issues": 99, + "watchers": 878, "default_branch": "main", "permissions": { - "admin": true, - "push": true, + "admin": false, + "maintain": false, + "push": false, + "triage": false, "pull": true }, "temp_clone_token": "", - "allow_squash_merge": true, - "allow_merge_commit": true, - "allow_rebase_merge": true, - "delete_branch_on_merge": false, "organization": { "login": "hub4j", "id": 54909825, "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", - "avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4", + "avatar_url": "https://avatars.githubusercontent.com/u/54909825?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hub4j", "html_url": "https://github.com/hub4j", @@ -127,6 +137,6 @@ "type": "Organization", "site_admin": false }, - "network_count": 456, - "subscribers_count": 47 + "network_count": 601, + "subscribers_count": 48 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311-3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311-2.json similarity index 82% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311-3.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311-2.json index b7fbe36f99..c768abfa53 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311-3.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311-2.json @@ -13,7 +13,7 @@ "login": "kohsuke", "id": 50003, "node_id": "MDQ6VXNlcjUwMDAz", - "avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kohsuke", "html_url": "https://github.com/kohsuke", @@ -39,13 +39,14 @@ "created_at": "2016-11-17T02:40:08Z", "updated_at": "2016-11-17T02:40:11Z", "closed_at": "2016-11-17T02:40:11Z", - "author_association": "MEMBER", + "author_association": "COLLABORATOR", + "active_lock_reason": null, "body": "", "closed_by": { "login": "kohsuke", "id": 50003, "node_id": "MDQ6VXNlcjUwMDAz", - "avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", "gravatar_id": "", "url": "https://api.github.com/users/kohsuke", "html_url": "https://github.com/kohsuke", @@ -60,5 +61,19 @@ "received_events_url": "https://api.github.com/users/kohsuke/received_events", "type": "User", "site_admin": false - } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j/github-api/issues/311/reactions", + "total_count": 1, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 1, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/hub4j/github-api/issues/311/timeline", + "performed_via_github_app": null } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-10.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-10.json index 4bb5d5aa05..9dd2ef4e7a 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-10.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-10.json @@ -1,26 +1,26 @@ { - "id": 63220306, - "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNg==", + "id": 158437739, + "node_id": "REA_lAHOAAlq-s4LUe0lzglxkWs", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/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", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", "type": "User", "site_admin": false }, "content": "eyes", - "created_at": "2020-02-23T03:15:56Z" + "created_at": "2022-04-08T17:54:36Z" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-11.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-11.json index d477b817de..234d6f9543 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-11.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-11.json @@ -1,26 +1,26 @@ { - "id": 63220307, - "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNw==", + "id": 158437742, + "node_id": "REA_lAHOAAlq-s4LUe0lzglxkW4", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/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", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", "type": "User", "site_admin": false }, "content": "rocket", - "created_at": "2020-02-23T03:15:57Z" + "created_at": "2022-04-08T17:54:36Z" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-12.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-12.json index ab1fca7f0e..8ff3ced963 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-12.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-12.json @@ -6,7 +6,7 @@ "login": "kohsuke", "id": 50003, "node_id": "MDQ6VXNlcjUwMDAz", - "avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?u=30898a401fb77ecabed2368bc6742f004f52650d&v=4", "gravatar_id": "", "url": "https://api.github.com/users/kohsuke", "html_url": "https://github.com/kohsuke", @@ -26,107 +26,107 @@ "created_at": "2016-11-17T02:40:15Z" }, { - "id": 63220303, - "node_id": "MDg6UmVhY3Rpb242MzIyMDMwMw==", + "id": 158437736, + "node_id": "REA_lAHOAAlq-s4LUe0lzglxkWg", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "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/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", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", "type": "User", "site_admin": false }, "content": "+1", - "created_at": "2020-02-23T03:15:55Z" + "created_at": "2022-04-08T17:54:35Z" }, { - "id": 63220305, - "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNQ==", + "id": 158437737, + "node_id": "REA_lAHOAAlq-s4LUe0lzglxkWk", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "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/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", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", "type": "User", "site_admin": false }, "content": "confused", - "created_at": "2020-02-23T03:15:56Z" + "created_at": "2022-04-08T17:54:35Z" }, { - "id": 63220306, - "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNg==", + "id": 158437739, + "node_id": "REA_lAHOAAlq-s4LUe0lzglxkWs", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "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/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", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", "type": "User", "site_admin": false }, "content": "eyes", - "created_at": "2020-02-23T03:15:56Z" + "created_at": "2022-04-08T17:54:36Z" }, { - "id": 63220307, - "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNw==", + "id": 158437742, + "node_id": "REA_lAHOAAlq-s4LUe0lzglxkW4", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "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/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", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", "type": "User", "site_admin": false }, "content": "rocket", - "created_at": "2020-02-23T03:15:57Z" + "created_at": "2022-04-08T17:54:36Z" } ] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-17.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-17.json index ee767d3d2b..f8551f16ed 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-17.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-17.json @@ -6,7 +6,7 @@ "login": "kohsuke", "id": 50003, "node_id": "MDQ6VXNlcjUwMDAz", - "avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?u=30898a401fb77ecabed2368bc6742f004f52650d&v=4", "gravatar_id": "", "url": "https://api.github.com/users/kohsuke", "html_url": "https://github.com/kohsuke", diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-3.json new file mode 100644 index 0000000000..f8551f16ed --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-3.json @@ -0,0 +1,28 @@ +[ + { + "id": 5037900, + "node_id": "MDg6UmVhY3Rpb241MDM3OTAw", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?u=30898a401fb77ecabed2368bc6742f004f52650d&v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2016-11-17T02:40:15Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-4.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-4.json index ee767d3d2b..cb5e9560ce 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-4.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-4.json @@ -1,28 +1,26 @@ -[ - { - "id": 5037900, - "node_id": "MDg6UmVhY3Rpb241MDM3OTAw", - "user": { - "login": "kohsuke", - "id": 50003, - "node_id": "MDQ6VXNlcjUwMDAz", - "avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/kohsuke", - "html_url": "https://github.com/kohsuke", - "followers_url": "https://api.github.com/users/kohsuke/followers", - "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", - "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", - "organizations_url": "https://api.github.com/users/kohsuke/orgs", - "repos_url": "https://api.github.com/users/kohsuke/repos", - "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", - "received_events_url": "https://api.github.com/users/kohsuke/received_events", - "type": "User", - "site_admin": false - }, - "content": "heart", - "created_at": "2016-11-17T02:40:15Z" - } -] \ No newline at end of file +{ + "id": 158437734, + "node_id": "REA_lAHOAAlq-s4LUe0lzglxkWY", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "content": "hooray", + "created_at": "2022-04-08T17:54:34Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-5.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-5.json deleted file mode 100644 index 46cc80343d..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-5.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": 63220302, - "node_id": "MDg6UmVhY3Rpb242MzIyMDMwMg==", - "user": { - "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 - }, - "content": "hooray", - "created_at": "2020-02-23T03:15:55Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-7.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-7.json index ee767d3d2b..f8551f16ed 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-7.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-7.json @@ -6,7 +6,7 @@ "login": "kohsuke", "id": 50003, "node_id": "MDQ6VXNlcjUwMDAz", - "avatar_url": "https://avatars1.githubusercontent.com/u/50003?v=4", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?u=30898a401fb77ecabed2368bc6742f004f52650d&v=4", "gravatar_id": "", "url": "https://api.github.com/users/kohsuke", "html_url": "https://github.com/kohsuke", diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-8.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-8.json index 51292a6985..b110ac7308 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-8.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-8.json @@ -1,26 +1,26 @@ { - "id": 63220303, - "node_id": "MDg6UmVhY3Rpb242MzIyMDMwMw==", + "id": 158437736, + "node_id": "REA_lAHOAAlq-s4LUe0lzglxkWg", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/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", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", "type": "User", "site_admin": false }, "content": "+1", - "created_at": "2020-02-23T03:15:55Z" + "created_at": "2022-04-08T17:54:35Z" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-9.json index 2dc6bb8df7..01d4e4e966 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-9.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/repos_hub4j_github-api_issues_311_reactions-9.json @@ -1,26 +1,26 @@ { - "id": 63220305, - "node_id": "MDg6UmVhY3Rpb242MzIyMDMwNQ==", + "id": 158437737, + "node_id": "REA_lAHOAAlq-s4LUe0lzglxkWk", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/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", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", "type": "User", "site_admin": false }, "content": "confused", - "created_at": "2020-02-23T03:15:56Z" + "created_at": "2022-04-08T17:54:35Z" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-1.json deleted file mode 100644 index 8a28d7cbe3..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-1.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "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": 147, - "following": 9, - "created_at": "2012-07-11T20:38:33Z", - "updated_at": "2020-02-21T20:59:33Z", - "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/GHWorkflowTest/wiremock/testBasicInformation/__files/user-1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-5.json similarity index 89% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/user-1.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-5.json index 79bade964e..6fa76a1f24 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/user-1.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/__files/user-5.json @@ -19,22 +19,22 @@ "site_admin": false, "name": "Guillaume Smet", "company": "Red Hat", - "blog": "https://www.redhat.com/", + "blog": "https://lesincroyableslivres.fr/", "location": "Lyon, France", "email": "guillaume.smet@gmail.com", "hireable": null, "bio": "Happy camper at Red Hat, working on Quarkus and the Hibernate portfolio.", "twitter_username": "gsmet_", - "public_repos": 102, - "public_gists": 14, - "followers": 127, + "public_repos": 147, + "public_gists": 15, + "followers": 172, "following": 3, "created_at": "2011-12-22T11:03:22Z", - "updated_at": "2021-03-23T17:35:45Z", + "updated_at": "2022-04-06T15:07:12Z", "private_gists": 14, "total_private_repos": 4, "owned_private_repos": 1, - "disk_usage": 68258, + "disk_usage": 70882, "collaborators": 1, "two_factor_authentication": true, "plan": { diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220302-6.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220302-6.json deleted file mode 100644 index 8fa3b4608b..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220302-6.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "b596150f-299c-48fc-8c7f-aae75105e09f", - "name": "reactions_63220302", - "request": { - "url": "/reactions/63220302", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Sun, 23 Feb 2020 03:15:55 GMT", - "Server": "GitHub.com", - "Status": "204 No Content", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4887", - "X-RateLimit-Reset": "1582428789", - "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": "github.squirrel-girl-preview; format=json", - "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'", - "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "C701:8993:A68E26:C0D6BE:5E51EE6B" - } - }, - "uuid": "b596150f-299c-48fc-8c7f-aae75105e09f", - "persistent": true, - "insertionIndex": 6 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220303-13.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220303-13.json deleted file mode 100644 index 0b94c0f7aa..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220303-13.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "cf170df9-400c-4e8f-a5fb-29657271beea", - "name": "reactions_63220303", - "request": { - "url": "/reactions/63220303", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Sun, 23 Feb 2020 03:15:57 GMT", - "Server": "GitHub.com", - "Status": "204 No Content", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4880", - "X-RateLimit-Reset": "1582428788", - "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": "github.squirrel-girl-preview; format=json", - "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'", - "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "C701:8993:A68EA9:C0D74A:5E51EE6D" - } - }, - "uuid": "cf170df9-400c-4e8f-a5fb-29657271beea", - "persistent": true, - "insertionIndex": 13 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220305-14.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220305-14.json deleted file mode 100644 index 2019c634eb..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220305-14.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "dcbdbe23-adc4-4f58-9a1b-11a3f976fb7c", - "name": "reactions_63220305", - "request": { - "url": "/reactions/63220305", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Sun, 23 Feb 2020 03:15:58 GMT", - "Server": "GitHub.com", - "Status": "204 No Content", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4879", - "X-RateLimit-Reset": "1582428789", - "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": "github.squirrel-girl-preview; format=json", - "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'", - "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "C701:8993:A68EC2:C0D760:5E51EE6D" - } - }, - "uuid": "dcbdbe23-adc4-4f58-9a1b-11a3f976fb7c", - "persistent": true, - "insertionIndex": 14 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220306-15.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220306-15.json deleted file mode 100644 index babc5186d5..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220306-15.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "08b50aa8-c491-48a6-99ae-d4cb492515cd", - "name": "reactions_63220306", - "request": { - "url": "/reactions/63220306", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Sun, 23 Feb 2020 03:15:58 GMT", - "Server": "GitHub.com", - "Status": "204 No Content", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4878", - "X-RateLimit-Reset": "1582428788", - "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": "github.squirrel-girl-preview; format=json", - "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'", - "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "C701:8993:A68ED9:C0D77E:5E51EE6E" - } - }, - "uuid": "08b50aa8-c491-48a6-99ae-d4cb492515cd", - "persistent": true, - "insertionIndex": 15 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220307-16.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220307-16.json deleted file mode 100644 index b03ef61e66..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/reactions_63220307-16.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "id": "12cbca2c-5e73-4317-9f86-0e52224a952e", - "name": "reactions_63220307", - "request": { - "url": "/reactions/63220307", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Sun, 23 Feb 2020 03:15:58 GMT", - "Server": "GitHub.com", - "Status": "204 No Content", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4877", - "X-RateLimit-Reset": "1582428788", - "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": "github.squirrel-girl-preview; format=json", - "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'", - "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "C701:8993:A68EE6:C0D795:5E51EE6E" - } - }, - "uuid": "12cbca2c-5e73-4317-9f86-0e52224a952e", - "persistent": true, - "insertionIndex": 16 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api-1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api-1.json new file mode 100644 index 0000000000..a78b2b4bbf --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api-1.json @@ -0,0 +1,47 @@ +{ + "id": "c6efc5bd-de9c-4e88-94bc-a850d7464aac", + "name": "repos_hub4j_github-api", + "request": { + "url": "/repos/hub4j/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j_github-api-1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 08 Apr 2022 17:54:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"0724239a9126b3b497da24f1ce2ee091034494cf97120f4a600d34f03060486f\"", + "Last-Modified": "Tue, 05 Apr 2022 15:53:55 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-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4913", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "87", + "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": "C576:5C2C:7944B:7E586:625076D9" + } + }, + "uuid": "c6efc5bd-de9c-4e88-94bc-a850d7464aac", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311-2.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311-2.json new file mode 100644 index 0000000000..0c3e3e900f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311-2.json @@ -0,0 +1,47 @@ +{ + "id": "44f3d919-45be-4d78-b934-50b8d4310bcb", + "name": "repos_hub4j_github-api_issues_311", + "request": { + "url": "/repos/hub4j/github-api/issues/311", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j_github-api_issues_311-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 08 Apr 2022 17:54:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"a74231dd33e02a888660adf7e9da0bd44d542e343e6ff46e6dc4ee687201989d\"", + "Last-Modified": "Fri, 18 Mar 2022 23:13: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-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4912", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "88", + "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": "C578:93CF:17735E:17E3F7:625076D9" + } + }, + "uuid": "44f3d919-45be-4d78-b934-50b8d4310bcb", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-10.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-10.json index 44210ae288..29b9fb9996 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-10.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-10.json @@ -1,5 +1,5 @@ { - "id": "1a36428c-ce04-4580-b160-ffc42b4629ff", + "id": "00213761-d7a8-4c46-8b30-d7cfbfccbf15", "name": "repos_hub4j_github-api_issues_311_reactions", "request": { "url": "/repos/hub4j/github-api/issues/311/reactions", @@ -13,7 +13,7 @@ { "equalToJson": "{\"content\":\"eyes\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, @@ -21,34 +21,33 @@ "status": 201, "bodyFileName": "repos_hub4j_github-api_issues_311_reactions-10.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:56 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "201 Created", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4883", - "X-RateLimit-Reset": "1582428788", + "Date": "Fri, 08 Apr 2022 17:54: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": "\"7b229544c753e8c32911036296d1b2eb\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "\"035bba4eba323236f968f02d5e8fdb08e07e1cdaad5c2bfbb81ca92ccd61fdc9\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", - "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": "*", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4904", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "96", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C701:8993:A68E6C:C0D703:5E51EE6C" + "X-GitHub-Request-Id": "C58A:6F17:F6D17:FCB1E:625076DB" } }, - "uuid": "1a36428c-ce04-4580-b160-ffc42b4629ff", + "uuid": "00213761-d7a8-4c46-8b30-d7cfbfccbf15", "persistent": true, "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-11.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-11.json index 2fe2a2232d..0de1e5696a 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-11.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-11.json @@ -1,5 +1,5 @@ { - "id": "41bca581-4ce9-4d1a-94ee-407bb996afc8", + "id": "7d18a5b2-f744-41cd-a905-b8cbc6cffaaf", "name": "repos_hub4j_github-api_issues_311_reactions", "request": { "url": "/repos/hub4j/github-api/issues/311/reactions", @@ -13,7 +13,7 @@ { "equalToJson": "{\"content\":\"rocket\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, @@ -21,34 +21,33 @@ "status": 201, "bodyFileName": "repos_hub4j_github-api_issues_311_reactions-11.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:57 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "201 Created", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4882", - "X-RateLimit-Reset": "1582428789", + "Date": "Fri, 08 Apr 2022 17:54: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": "\"264de84eeb4bbbfd44ee646c90683d2d\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "\"902a7a017817ebc2fbe4d203f74fe6707029b566cfd17c98abf2390f014fa13d\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", - "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": "*", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4903", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "97", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C701:8993:A68E83:C0D71E:5E51EE6C" + "X-GitHub-Request-Id": "C58C:39AB:16689E:16D609:625076DC" } }, - "uuid": "41bca581-4ce9-4d1a-94ee-407bb996afc8", + "uuid": "7d18a5b2-f744-41cd-a905-b8cbc6cffaaf", "persistent": true, "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-12.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-12.json index 3f59ca74a9..977b0dad40 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-12.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-12.json @@ -1,5 +1,5 @@ { - "id": "ec5b4512-28c1-46fe-95d2-710c6da55cb3", + "id": "aead86e6-8e90-4e86-ade3-39e03b86cfa0", "name": "repos_hub4j_github-api_issues_311_reactions", "request": { "url": "/repos/hub4j/github-api/issues/311/reactions", @@ -14,37 +14,36 @@ "status": 200, "bodyFileName": "repos_hub4j_github-api_issues_311_reactions-12.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:57 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4881", - "X-RateLimit-Reset": "1582428788", + "Date": "Fri, 08 Apr 2022 17:54: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/\"e7f76146c68532e9ccff19c1a86daf0a\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"87a51b277fa8bc107445451a451e0f21d15f4f7526ee999e398ef8a4321bd965\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", - "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": "*", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4902", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "98", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C701:8993:A68E9B:C0D731:5E51EE6D" + "X-GitHub-Request-Id": "C58E:AE8B:1825E:1C6DF:625076DC" } }, - "uuid": "ec5b4512-28c1-46fe-95d2-710c6da55cb3", + "uuid": "aead86e6-8e90-4e86-ade3-39e03b86cfa0", "persistent": true, - "scenarioName": "scenario-1-repos-github-api-github-api-issues-311-reactions", - "requiredScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-3", - "newScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-4", + "scenarioName": "scenario-1-repos-hub4j-github-api-issues-311-reactions", + "requiredScenarioState": "scenario-1-repos-hub4j-github-api-issues-311-reactions-3", + "newScenarioState": "scenario-1-repos-hub4j-github-api-issues-311-reactions-4", "insertionIndex": 12 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-17.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-17.json index be10616e03..9bc6a31bfe 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-17.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-17.json @@ -1,5 +1,5 @@ { - "id": "e6be4fe8-bb46-418f-bd08-dba996ef250c", + "id": "38b71e3d-52fe-49ea-8a62-4d4ec3bcae8d", "name": "repos_hub4j_github-api_issues_311_reactions", "request": { "url": "/repos/hub4j/github-api/issues/311/reactions", @@ -14,36 +14,35 @@ "status": 200, "bodyFileName": "repos_hub4j_github-api_issues_311_reactions-17.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:59 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4876", - "X-RateLimit-Reset": "1582428789", + "Date": "Fri, 08 Apr 2022 17:54:38 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"17896e19dfa86d3946ff4a8c47200920\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"6ff5ec5d70f5a161a16ebfe5125f01c7d9f7ff54d0bb662b4939f3a8aa77c8c3\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", - "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": "*", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4897", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "103", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C701:8993:A68F04:C0D7BB:5E51EE6E" + "X-GitHub-Request-Id": "C598:020D:10104B:106F41:625076DE" } }, - "uuid": "e6be4fe8-bb46-418f-bd08-dba996ef250c", + "uuid": "38b71e3d-52fe-49ea-8a62-4d4ec3bcae8d", "persistent": true, - "scenarioName": "scenario-1-repos-github-api-github-api-issues-311-reactions", - "requiredScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-4", + "scenarioName": "scenario-1-repos-hub4j-github-api-issues-311-reactions", + "requiredScenarioState": "scenario-1-repos-hub4j-github-api-issues-311-reactions-4", "insertionIndex": 17 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-3.json new file mode 100644 index 0000000000..0381f97132 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-3.json @@ -0,0 +1,49 @@ +{ + "id": "8f5c6061-fc93-4f0f-841e-e2cea3dfaa8a", + "name": "repos_hub4j_github-api_issues_311_reactions", + "request": { + "url": "/repos/hub4j/github-api/issues/311/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j_github-api_issues_311_reactions-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 08 Apr 2022 17:54:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"6ff5ec5d70f5a161a16ebfe5125f01c7d9f7ff54d0bb662b4939f3a8aa77c8c3\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4911", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "89", + "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": "C57C:AE8F:154B38:15B768:625076D9" + } + }, + "uuid": "8f5c6061-fc93-4f0f-841e-e2cea3dfaa8a", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-github-api-issues-311-reactions", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-hub4j-github-api-issues-311-reactions-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-4.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-4.json index abb17818ab..896151a49e 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-4.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-4.json @@ -1,50 +1,53 @@ { - "id": "a94639e7-cb76-4ea2-a6a2-8d9a5642f3ec", + "id": "174d99d0-6e90-4e1c-aab0-e0b8fcfd7d42", "name": "repos_hub4j_github-api_issues_311_reactions", "request": { "url": "/repos/hub4j/github-api/issues/311/reactions", - "method": "GET", + "method": "POST", "headers": { "Accept": { "equalTo": "application/vnd.github.squirrel-girl-preview+json" } - } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"hooray\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] }, "response": { - "status": 200, + "status": 201, "bodyFileName": "repos_hub4j_github-api_issues_311_reactions-4.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:54 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4889", - "X-RateLimit-Reset": "1582428788", + "Date": "Fri, 08 Apr 2022 17:54: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/\"17896e19dfa86d3946ff4a8c47200920\"", - "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": "github.squirrel-girl-preview; format=json", - "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": "*", + "ETag": "\"a02da1e1f58a3192bd8b65fb8dca01b5319460a81bd0b9137055508710ea0479\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4910", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "90", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C701:8993:A68E0B:C0D69D:5E51EE6A" + "X-GitHub-Request-Id": "C57E:020B:2F658:33E75:625076DA" } }, - "uuid": "a94639e7-cb76-4ea2-a6a2-8d9a5642f3ec", + "uuid": "174d99d0-6e90-4e1c-aab0-e0b8fcfd7d42", "persistent": true, - "scenarioName": "scenario-1-repos-github-api-github-api-issues-311-reactions", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-2", "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-7.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-7.json index bbe7ec0dba..b309065464 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-7.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-7.json @@ -1,5 +1,5 @@ { - "id": "39f59d4e-7875-4b75-a093-97a0b4e7239b", + "id": "0a1ba1f9-b075-4865-825f-8d471b33da3f", "name": "repos_hub4j_github-api_issues_311_reactions", "request": { "url": "/repos/hub4j/github-api/issues/311/reactions", @@ -14,37 +14,36 @@ "status": 200, "bodyFileName": "repos_hub4j_github-api_issues_311_reactions-7.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:55 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4886", - "X-RateLimit-Reset": "1582428788", + "Date": "Fri, 08 Apr 2022 17:54:35 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/\"17896e19dfa86d3946ff4a8c47200920\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"6ff5ec5d70f5a161a16ebfe5125f01c7d9f7ff54d0bb662b4939f3a8aa77c8c3\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", - "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": "*", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4907", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "93", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C701:8993:A68E33:C0D6CD:5E51EE6B" + "X-GitHub-Request-Id": "C584:C0C9:E74A9:ED2DF:625076DA" } }, - "uuid": "39f59d4e-7875-4b75-a093-97a0b4e7239b", + "uuid": "0a1ba1f9-b075-4865-825f-8d471b33da3f", "persistent": true, - "scenarioName": "scenario-1-repos-github-api-github-api-issues-311-reactions", - "requiredScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-2", - "newScenarioState": "scenario-1-repos-github-api-github-api-issues-311-reactions-3", + "scenarioName": "scenario-1-repos-hub4j-github-api-issues-311-reactions", + "requiredScenarioState": "scenario-1-repos-hub4j-github-api-issues-311-reactions-2", + "newScenarioState": "scenario-1-repos-hub4j-github-api-issues-311-reactions-3", "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-8.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-8.json index 82f3479d3e..60ec4f239c 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-8.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-8.json @@ -1,5 +1,5 @@ { - "id": "d9de8255-dcbc-409d-b311-b7824a3ddeb6", + "id": "d15a81b4-dbd1-4c75-8abb-998c644d0ff2", "name": "repos_hub4j_github-api_issues_311_reactions", "request": { "url": "/repos/hub4j/github-api/issues/311/reactions", @@ -13,7 +13,7 @@ { "equalToJson": "{\"content\":\"+1\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, @@ -21,34 +21,33 @@ "status": 201, "bodyFileName": "repos_hub4j_github-api_issues_311_reactions-8.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:55 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "201 Created", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4885", - "X-RateLimit-Reset": "1582428788", + "Date": "Fri, 08 Apr 2022 17:54:35 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": "\"6830982bf9c6904a3f72d80ecc83fbaa\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "\"e466e9581a3f51886974183d8c4b81e04a58168cafb785a1373085b556b04ee8\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", - "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": "*", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4906", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "94", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C701:8993:A68E43:C0D6DC:5E51EE6B" + "X-GitHub-Request-Id": "C586:020C:80DA7:85EAB:625076DB" } }, - "uuid": "d9de8255-dcbc-409d-b311-b7824a3ddeb6", + "uuid": "d15a81b4-dbd1-4c75-8abb-998c644d0ff2", "persistent": true, "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-9.json index 1745ad0ee8..fa1799623a 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-9.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-9.json @@ -1,5 +1,5 @@ { - "id": "9904f18c-def2-4249-b64c-956a2d12f2bd", + "id": "10cdf5f8-533b-465c-867e-8b23af484926", "name": "repos_hub4j_github-api_issues_311_reactions", "request": { "url": "/repos/hub4j/github-api/issues/311/reactions", @@ -13,7 +13,7 @@ { "equalToJson": "{\"content\":\"confused\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, @@ -21,34 +21,33 @@ "status": 201, "bodyFileName": "repos_hub4j_github-api_issues_311_reactions-9.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:56 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "201 Created", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4884", - "X-RateLimit-Reset": "1582428789", + "Date": "Fri, 08 Apr 2022 17:54:35 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": "\"dd432412a55d48e08377920b04f443c5\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "\"6bcb76b192943fc8adc003707e9c3a198ba7e176bdcd00da01b751bd35e5d9d6\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", - "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": "*", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4905", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "95", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "C701:8993:A68E5A:C0D6EE:5E51EE6B" + "X-GitHub-Request-Id": "C588:93CC:31CA1:364CA:625076DB" } }, - "uuid": "9904f18c-def2-4249-b64c-956a2d12f2bd", + "uuid": "10cdf5f8-533b-465c-867e-8b23af484926", "persistent": true, "insertionIndex": 9 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437734-6.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437734-6.json new file mode 100644 index 0000000000..3db13f5934 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437734-6.json @@ -0,0 +1,39 @@ +{ + "id": "b8e4f3fb-9c4a-492e-a035-5425aab358d4", + "name": "repos_hub4j_github-api_issues_311_reactions_158437734", + "request": { + "url": "/repos/hub4j/github-api/issues/311/reactions/158437734", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 08 Apr 2022 17:54:34 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-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4908", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "92", + "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": "C582:AE8E:F9158:FF0C5:625076DA" + } + }, + "uuid": "b8e4f3fb-9c4a-492e-a035-5425aab358d4", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437736-13.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437736-13.json new file mode 100644 index 0000000000..3ce129556b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437736-13.json @@ -0,0 +1,39 @@ +{ + "id": "e54f95a4-06bd-445d-9392-b462910d75f5", + "name": "repos_hub4j_github-api_issues_311_reactions_158437736", + "request": { + "url": "/repos/hub4j/github-api/issues/311/reactions/158437736", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 08 Apr 2022 17:54:37 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-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4901", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "99", + "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": "C590:10501:F6C1A:FCB13:625076DC" + } + }, + "uuid": "e54f95a4-06bd-445d-9392-b462910d75f5", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437737-14.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437737-14.json new file mode 100644 index 0000000000..3c24d9cf19 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437737-14.json @@ -0,0 +1,39 @@ +{ + "id": "b22431c6-6715-4bcc-9e2d-d0d5ad291d4b", + "name": "repos_hub4j_github-api_issues_311_reactions_158437737", + "request": { + "url": "/repos/hub4j/github-api/issues/311/reactions/158437737", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 08 Apr 2022 17:54:37 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-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4900", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "100", + "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": "C592:AE8F:155010:15BC66:625076DD" + } + }, + "uuid": "b22431c6-6715-4bcc-9e2d-d0d5ad291d4b", + "persistent": true, + "insertionIndex": 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437739-15.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437739-15.json new file mode 100644 index 0000000000..dbe24d9010 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437739-15.json @@ -0,0 +1,39 @@ +{ + "id": "0d7dfcdb-e1e0-4b44-b1b0-f6247a086acd", + "name": "repos_hub4j_github-api_issues_311_reactions_158437739", + "request": { + "url": "/repos/hub4j/github-api/issues/311/reactions/158437739", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 08 Apr 2022 17:54:37 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-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4899", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "101", + "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": "C594:93CF:177A70:17EB2F:625076DD" + } + }, + "uuid": "0d7dfcdb-e1e0-4b44-b1b0-f6247a086acd", + "persistent": true, + "insertionIndex": 15 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437742-16.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437742-16.json new file mode 100644 index 0000000000..a769bc9902 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions_158437742-16.json @@ -0,0 +1,39 @@ +{ + "id": "41297757-effc-48fc-a675-e42c96e29b7b", + "name": "repos_hub4j_github-api_issues_311_reactions_158437742", + "request": { + "url": "/repos/hub4j/github-api/issues/311/reactions/158437742", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 08 Apr 2022 17:54:38 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-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4898", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "102", + "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": "C596:5189:172502:179412:625076DE" + } + }, + "uuid": "41297757-effc-48fc-a675-e42c96e29b7b", + "persistent": true, + "insertionIndex": 16 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-5.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-5.json new file mode 100644 index 0000000000..ff61de1875 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-5.json @@ -0,0 +1,47 @@ +{ + "id": "3849d265-f369-40ad-97f1-66836909c6ff", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "user-5.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 08 Apr 2022 17:54: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/\"605a6e2d9d7f031745f48efc2d00aca72a7f359a6b0da5b1722467b9cf322aa9\"", + "Last-Modified": "Wed, 06 Apr 2022 15:07:12 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4909", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "91", + "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": "C580:AE8E:F9109:FF087:625076DA" + } + }, + "uuid": "3849d265-f369-40ad-97f1-66836909c6ff", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-2.json similarity index 97% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-3.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-2.json index 264ca5a0ff..950fc81a74 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-3.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-2.json @@ -87,13 +87,19 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 2, "open_issues": 0, "watchers": 2, "default_branch": "master", "permissions": { "admin": false, + "maintain": false, "push": false, + "triage": false, "pull": true }, "temp_clone_token": "", @@ -186,6 +192,10 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 4, "open_issues": 0, "watchers": 4, @@ -280,6 +290,10 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 4, "open_issues": 0, "watchers": 4, diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-8.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-7.json similarity index 97% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-8.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-7.json index 264ca5a0ff..950fc81a74 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-8.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant-7.json @@ -87,13 +87,19 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 2, "open_issues": 0, "watchers": 2, "default_branch": "master", "permissions": { "admin": false, + "maintain": false, "push": false, + "triage": false, "pull": true }, "temp_clone_token": "", @@ -186,6 +192,10 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 4, "open_issues": 0, "watchers": 4, @@ -280,6 +290,10 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 4, "open_issues": 0, "watchers": 4, diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_70874649-6.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_70874649-6.json new file mode 100644 index 0000000000..45de214471 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_70874649-6.json @@ -0,0 +1,46 @@ +{ + "url": "https://api.github.com/repos/kohsuke/sandbox-ant/comments/70874649", + "html_url": "https://github.com/kohsuke/sandbox-ant/commit/8ae38db0ea5837313ab5f39d43a6f73de3bd9000#commitcomment-70874649", + "id": 70874649, + "node_id": "CC_kwDOADQ5ic4EOXYZ", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "position": null, + "line": null, + "path": null, + "commit_id": "8ae38db0ea5837313ab5f39d43a6f73de3bd9000", + "created_at": "2022-04-09T12:14:10Z", + "updated_at": "2022-04-09T12:14:10Z", + "author_association": "NONE", + "body": "updated text", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/sandbox-ant/comments/70874649/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/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_70874649_reactions-10.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_70874649_reactions-10.json new file mode 100644 index 0000000000..94681cb3c3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_70874649_reactions-10.json @@ -0,0 +1,26 @@ +{ + "id": 158534087, + "node_id": "REA_lADOADQ5ic4EOXYZzglzCcc", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2022-04-09T12:14:12Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_70874649_reactions-11.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_70874649_reactions-11.json new file mode 100644 index 0000000000..fe123b202b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_70874649_reactions-11.json @@ -0,0 +1,28 @@ +[ + { + "id": 158534087, + "node_id": "REA_lADOADQ5ic4EOXYZzglzCcc", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2022-04-09T12:14:12Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-4.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-3.json similarity index 100% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-4.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-3.json diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-8.json similarity index 100% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-9.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-8.json diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-4.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-4.json new file mode 100644 index 0000000000..cd4c4144c8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-4.json @@ -0,0 +1,46 @@ +{ + "url": "https://api.github.com/repos/kohsuke/sandbox-ant/comments/70874649", + "html_url": "https://github.com/kohsuke/sandbox-ant/commit/8ae38db0ea5837313ab5f39d43a6f73de3bd9000#commitcomment-70874649", + "id": 70874649, + "node_id": "CC_kwDOADQ5ic4EOXYZ", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "position": null, + "line": null, + "path": null, + "commit_id": "8ae38db0ea5837313ab5f39d43a6f73de3bd9000", + "created_at": "2022-04-09T12:14:10Z", + "updated_at": "2022-04-09T12:14:10Z", + "author_association": "NONE", + "body": "[testing](http://kohsuse.org/)", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/sandbox-ant/comments/70874649/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/AppTest/wiremock/testCreateCommitComment/__files/user-1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/user-1.json deleted file mode 100644 index bf387d5fd4..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/user-1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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": null, - "twitter_username": "bitwiseman", - "public_repos": 209, - "public_gists": 8, - "followers": 192, - "following": 12, - "created_at": "2012-07-11T20:38:33Z", - "updated_at": "2021-06-28T20:48:08Z", - "private_gists": 19, - "total_private_repos": 21, - "owned_private_repos": 0, - "disk_usage": 33700, - "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/AppTest/wiremock/testIssueWithComment/__files/users_kohsuke-5.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/users_kohsuke-1.json similarity index 95% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/users_kohsuke-5.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/users_kohsuke-1.json index c7a0e5e125..05071d4716 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/users_kohsuke-5.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/users_kohsuke-1.json @@ -27,8 +27,8 @@ "twitter_username": null, "public_repos": 265, "public_gists": 113, - "followers": 1944, + "followers": 1997, "following": 3, "created_at": "2009-01-28T18:53:21Z", - "updated_at": "2021-08-30T20:04:20Z" + "updated_at": "2022-03-18T23:13:10Z" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-2.json similarity index 63% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-3.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-2.json index 1ef9227b42..0178c86385 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-3.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-2.json @@ -1,5 +1,5 @@ { - "id": "fc21e92c-6d87-4c33-8e32-0c31f8f87b5f", + "id": "b97b4020-2034-463b-880c-033c9a5bc8bc", "name": "repos_kohsuke_sandbox-ant", "request": { "url": "/repos/kohsuke/sandbox-ant", @@ -12,25 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_sandbox-ant-3.json", + "bodyFileName": "repos_kohsuke_sandbox-ant-2.json", "headers": { "Server": "GitHub.com", - "Date": "Mon, 28 Jun 2021 22:41:29 GMT", + "Date": "Sat, 09 Apr 2022 12:14: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/\"92ab34a0d1e058ee50ecd90d841f80a46f02d5c91d20bb7a04459824a3b57dbc\"", + "ETag": "W/\"708705a6eaa6180bb27ec64e5722d0b31c0d2398032e1ba2b8c1f99144743635\"", "Last-Modified": "Tue, 13 Aug 2019 14:56:58 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4937", - "X-RateLimit-Reset": "1624920219", - "X-RateLimit-Used": "63", + "X-RateLimit-Remaining": "4998", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "2", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,13 +38,13 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "FF98:896D:1ACCC5C:1C673F6:60DA5019" + "X-GitHub-Request-Id": "BF0A:93CF:1861CEF:18D36E5:62517891" } }, - "uuid": "fc21e92c-6d87-4c33-8e32-0c31f8f87b5f", + "uuid": "b97b4020-2034-463b-880c-033c9a5bc8bc", "persistent": true, "scenarioName": "scenario-1-repos-kohsuke-sandbox-ant", "requiredScenarioState": "Started", "newScenarioState": "scenario-1-repos-kohsuke-sandbox-ant-2", - "insertionIndex": 3 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-8.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-7.json similarity index 63% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-8.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-7.json index 7a6998fb30..f815616500 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-8.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant-7.json @@ -1,5 +1,5 @@ { - "id": "f53fc165-5533-47e2-a5a9-c63cac72e3a8", + "id": "2482cf6e-adf9-4c24-865b-377246005e9d", "name": "repos_kohsuke_sandbox-ant", "request": { "url": "/repos/kohsuke/sandbox-ant", @@ -12,25 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_sandbox-ant-8.json", + "bodyFileName": "repos_kohsuke_sandbox-ant-7.json", "headers": { "Server": "GitHub.com", - "Date": "Mon, 28 Jun 2021 22:41:30 GMT", + "Date": "Sat, 09 Apr 2022 12:14: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/\"92ab34a0d1e058ee50ecd90d841f80a46f02d5c91d20bb7a04459824a3b57dbc\"", + "ETag": "W/\"708705a6eaa6180bb27ec64e5722d0b31c0d2398032e1ba2b8c1f99144743635\"", "Last-Modified": "Tue, 13 Aug 2019 14:56:58 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4932", - "X-RateLimit-Reset": "1624920219", - "X-RateLimit-Used": "68", + "X-RateLimit-Remaining": "4993", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "7", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,12 +38,12 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "FF50:4805:CCC269:E16584:60DA501A" + "X-GitHub-Request-Id": "BF14:E0D7:1AE2060:1B55CA3:62517893" } }, - "uuid": "f53fc165-5533-47e2-a5a9-c63cac72e3a8", + "uuid": "2482cf6e-adf9-4c24-865b-377246005e9d", "persistent": true, "scenarioName": "scenario-1-repos-kohsuke-sandbox-ant", "requiredScenarioState": "scenario-1-repos-kohsuke-sandbox-ant-2", - "insertionIndex": 8 + "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649-14.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649-14.json new file mode 100644 index 0000000000..7785f445b7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649-14.json @@ -0,0 +1,39 @@ +{ + "id": "4428d35d-faaa-449a-ae0e-09e7b4066cdb", + "name": "repos_kohsuke_sandbox-ant_comments_70874649", + "request": { + "url": "/repos/kohsuke/sandbox-ant/comments/70874649", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:14:13 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-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4986", + "X-RateLimit-Reset": "1649510049", + "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'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "BF22:10500:8D24B9:926E95:62517895" + } + }, + "uuid": "4428d35d-faaa-449a-ae0e-09e7b4066cdb", + "persistent": true, + "insertionIndex": 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_52782621-7.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649-6.json similarity index 57% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_52782621-7.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649-6.json index 240ab0df96..1bdcbc920a 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_52782621-7.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649-6.json @@ -1,8 +1,8 @@ { - "id": "b63a9e4c-331d-4241-9f12-862579fd662f", - "name": "repos_kohsuke_sandbox-ant_comments_52782621", + "id": "bbb67a99-5827-4232-b763-1af55bcb1ea1", + "name": "repos_kohsuke_sandbox-ant_comments_70874649", "request": { - "url": "/repos/kohsuke/sandbox-ant/comments/52782621", + "url": "/repos/kohsuke/sandbox-ant/comments/70874649", "method": "PATCH", "headers": { "Accept": { @@ -19,24 +19,24 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_sandbox-ant_comments_52782621-7.json", + "bodyFileName": "repos_kohsuke_sandbox-ant_comments_70874649-6.json", "headers": { "Server": "GitHub.com", - "Date": "Mon, 28 Jun 2021 22:41:30 GMT", + "Date": "Sat, 09 Apr 2022 12:14: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/\"6aaf6a758f2482891bdf651e3fb9ede41b46075a839ea9fe644835c96dc2122a\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"d0a11a8ea51f45d8b37ea535275efc2a56eb1a735a14c935204287ac6e98ee42\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4933", - "X-RateLimit-Reset": "1624920219", - "X-RateLimit-Used": "67", + "X-RateLimit-Remaining": "4994", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "6", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -44,10 +44,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": "FFA2:9A01:25092F:2794F9:60DA501A" + "X-GitHub-Request-Id": "BF12:5C30:19C646D:1A34F36:62517892" } }, - "uuid": "b63a9e4c-331d-4241-9f12-862579fd662f", + "uuid": "bbb67a99-5827-4232-b763-1af55bcb1ea1", "persistent": true, - "insertionIndex": 7 + "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-8.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-10.json similarity index 55% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-8.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-10.json index e04461da19..0858913f1d 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-8.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-10.json @@ -1,8 +1,8 @@ { - "id": "72a61318-dd15-449d-aa35-f9c2751603e5", - "name": "repos_kohsuke_test_issues_comments_8547251_reactions", + "id": "e50b2494-0a58-4a78-8264-99b26a6c529a", + "name": "repos_kohsuke_sandbox-ant_comments_70874649_reactions", "request": { - "url": "/repos/kohsuke/test/issues/comments/8547251/reactions", + "url": "/repos/kohsuke/sandbox-ant/comments/70874649/reactions", "method": "POST", "headers": { "Accept": { @@ -19,24 +19,24 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kohsuke_test_issues_comments_8547251_reactions-8.json", + "bodyFileName": "repos_kohsuke_sandbox-ant_comments_70874649_reactions-10.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:05 GMT", + "Date": "Sat, 09 Apr 2022 12:14: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": "\"e3a7660a19ce0367909ae23dffa3b1a10c53971c61c2748e0ce65d71a289d8b6\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"88bb3170a87930eacd4149d4092f73b2180b6dac28b67ed38b819ed6e1e42aec\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4928", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "72", + "X-RateLimit-Remaining": "4990", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "10", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -44,10 +44,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": "D370:60B8:79A850:7F41F1:613C54A9" + "X-GitHub-Request-Id": "BF1A:1172D:100C232:106F103:62517893" } }, - "uuid": "72a61318-dd15-449d-aa35-f9c2751603e5", + "uuid": "e50b2494-0a58-4a78-8264-99b26a6c529a", "persistent": true, - "insertionIndex": 8 + "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-11.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-11.json new file mode 100644 index 0000000000..e9c3b75c38 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-11.json @@ -0,0 +1,49 @@ +{ + "id": "42e2652e-51fd-4622-bc67-983301cab668", + "name": "repos_kohsuke_sandbox-ant_comments_70874649_reactions", + "request": { + "url": "/repos/kohsuke/sandbox-ant/comments/70874649/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_kohsuke_sandbox-ant_comments_70874649_reactions-11.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:14: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/\"8f481c4a6a3bf630ad1ad4eccae6d6b2aa25efd4123d50554292a8eae869be1b\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4989", + "X-RateLimit-Reset": "1649510049", + "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": "BF1C:39A9:7C0457:8159B9:62517894" + } + }, + "uuid": "42e2652e-51fd-4622-bc67-983301cab668", + "persistent": true, + "scenarioName": "scenario-3-repos-kohsuke-sandbox-ant-comments-70874649-reactions", + "requiredScenarioState": "scenario-3-repos-kohsuke-sandbox-ant-comments-70874649-reactions-3", + "newScenarioState": "scenario-3-repos-kohsuke-sandbox-ant-comments-70874649-reactions-4", + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_52782621_reactions-6.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-13.json similarity index 50% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_52782621_reactions-6.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-13.json index bfa8695918..a0ee45a588 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_52782621_reactions-6.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-13.json @@ -1,8 +1,8 @@ { - "id": "e3012630-c000-4dd9-9338-b64d2743b66c", - "name": "repos_kohsuke_sandbox-ant_comments_52782621_reactions", + "id": "ced5e944-ae5f-455d-894e-1c55b655bbca", + "name": "repos_kohsuke_sandbox-ant_comments_70874649_reactions", "request": { - "url": "/repos/kohsuke/sandbox-ant/comments/52782621/reactions", + "url": "/repos/kohsuke/sandbox-ant/comments/70874649/reactions", "method": "GET", "headers": { "Accept": { @@ -15,21 +15,21 @@ "body": "[]", "headers": { "Server": "GitHub.com", - "Date": "Mon, 28 Jun 2021 22:41:30 GMT", + "Date": "Sat, 09 Apr 2022 12:14: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": "\"09f1fd8ad1f7a8a86a061a6ee6b2506a7740a8d58da6ba3c8f1d53124411aaf1\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"1edf80ecd98d11d98113d5aa3cef7021f4a60d76d4a01328e8d3552451f43ce4\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4934", - "X-RateLimit-Reset": "1624920219", - "X-RateLimit-Used": "66", + "X-RateLimit-Remaining": "4987", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "13", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,10 +37,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": "FFA0:71CA:E47E15:F58A88:60DA501A" + "X-GitHub-Request-Id": "BF20:AE8C:3D1273:41E3DB:62517894" } }, - "uuid": "e3012630-c000-4dd9-9338-b64d2743b66c", + "uuid": "ced5e944-ae5f-455d-894e-1c55b655bbca", "persistent": true, - "insertionIndex": 6 + "scenarioName": "scenario-3-repos-kohsuke-sandbox-ant-comments-70874649-reactions", + "requiredScenarioState": "scenario-3-repos-kohsuke-sandbox-ant-comments-70874649-reactions-4", + "insertionIndex": 13 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-5.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-5.json new file mode 100644 index 0000000000..6dd96df415 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-5.json @@ -0,0 +1,49 @@ +{ + "id": "00187b9b-5022-419f-bdcf-90a2887a4dd3", + "name": "repos_kohsuke_sandbox-ant_comments_70874649_reactions", + "request": { + "url": "/repos/kohsuke/sandbox-ant/comments/70874649/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:14: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": "\"1edf80ecd98d11d98113d5aa3cef7021f4a60d76d4a01328e8d3552451f43ce4\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4995", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "5", + "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": "BF10:39A8:37DB68:3CAAF4:62517892" + } + }, + "uuid": "00187b9b-5022-419f-bdcf-90a2887a4dd3", + "persistent": true, + "scenarioName": "scenario-3-repos-kohsuke-sandbox-ant-comments-70874649-reactions", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-3-repos-kohsuke-sandbox-ant-comments-70874649-reactions-2", + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-9.json new file mode 100644 index 0000000000..e4f81b05e1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions-9.json @@ -0,0 +1,49 @@ +{ + "id": "1c14d619-c1f0-4a7f-895d-7d3847ab0752", + "name": "repos_kohsuke_sandbox-ant_comments_70874649_reactions", + "request": { + "url": "/repos/kohsuke/sandbox-ant/comments/70874649/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:14: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": "\"1edf80ecd98d11d98113d5aa3cef7021f4a60d76d4a01328e8d3552451f43ce4\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4991", + "X-RateLimit-Reset": "1649510049", + "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": "BF18:AE8E:EC737A:F294FD:62517893" + } + }, + "uuid": "1c14d619-c1f0-4a7f-895d-7d3847ab0752", + "persistent": true, + "scenarioName": "scenario-3-repos-kohsuke-sandbox-ant-comments-70874649-reactions", + "requiredScenarioState": "scenario-3-repos-kohsuke-sandbox-ant-comments-70874649-reactions-2", + "newScenarioState": "scenario-3-repos-kohsuke-sandbox-ant-comments-70874649-reactions-3", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions_158534087-12.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions_158534087-12.json new file mode 100644 index 0000000000..494992a14a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_70874649_reactions_158534087-12.json @@ -0,0 +1,39 @@ +{ + "id": "0a12f2b9-8493-4942-ab74-06b06643df44", + "name": "repos_kohsuke_sandbox-ant_comments_70874649_reactions_158534087", + "request": { + "url": "/repos/kohsuke/sandbox-ant/comments/70874649/reactions/158534087", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:14:12 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4988", + "X-RateLimit-Reset": "1649510049", + "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'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "BF1E:5C30:19C6718:1A351ED:62517894" + } + }, + "uuid": "0a12f2b9-8493-4942-ab74-06b06643df44", + "persistent": true, + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-4.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-3.json similarity index 68% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-4.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-3.json index 31e97eb879..923a2a7e23 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-4.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-3.json @@ -1,5 +1,5 @@ { - "id": "6aa66931-3264-4a43-a422-8157ba8c3a54", + "id": "d20ccc54-34c2-48cc-a456-7e98e1d247e2", "name": "repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000", "request": { "url": "/repos/kohsuke/sandbox-ant/commits/8ae38db0ea5837313ab5f39d43a6f73de3bd9000", @@ -12,25 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-4.json", + "bodyFileName": "repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-3.json", "headers": { "Server": "GitHub.com", - "Date": "Mon, 28 Jun 2021 22:41:29 GMT", + "Date": "Sat, 09 Apr 2022 12:14: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/\"e6cc148cc910d5ab7335b47664bc427e08b5ae459c19ad745d9148f93a0a7f65\"", + "ETag": "W/\"875d3e8c72cd8f14529b6225c641b6de181d365d8c3606a2d95ab2c20467abc1\"", "Last-Modified": "Tue, 24 Apr 2012 22:54:20 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4936", - "X-RateLimit-Reset": "1624920219", - "X-RateLimit-Used": "64", + "X-RateLimit-Remaining": "4997", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "3", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,13 +38,13 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "FF9C:99FB:C635:25D82:60DA5019" + "X-GitHub-Request-Id": "BF0C:E0D7:1AE1E0E:1B55A2D:62517891" } }, - "uuid": "6aa66931-3264-4a43-a422-8157ba8c3a54", + "uuid": "d20ccc54-34c2-48cc-a456-7e98e1d247e2", "persistent": true, "scenarioName": "scenario-2-repos-kohsuke-sandbox-ant-commits-8ae38db0ea5837313ab5f39d43a6f73de3bd9000", "requiredScenarioState": "Started", "newScenarioState": "scenario-2-repos-kohsuke-sandbox-ant-commits-8ae38db0ea5837313ab5f39d43a6f73de3bd9000-2", - "insertionIndex": 4 + "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-8.json similarity index 68% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-9.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-8.json index 95aa83d0e6..694fd5d59f 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-9.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-8.json @@ -1,5 +1,5 @@ { - "id": "7b3d0677-7c51-45a6-b2c6-a34823921b31", + "id": "430057e2-8c0d-471d-b6b8-2dca449210f3", "name": "repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000", "request": { "url": "/repos/kohsuke/sandbox-ant/commits/8ae38db0ea5837313ab5f39d43a6f73de3bd9000", @@ -12,25 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-9.json", + "bodyFileName": "repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000-8.json", "headers": { "Server": "GitHub.com", - "Date": "Mon, 28 Jun 2021 22:41:30 GMT", + "Date": "Sat, 09 Apr 2022 12:14: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/\"5ef515abb3f8502576dd4e84b41dc5d504650f0d559ff828f01485c91e6432b2\"", + "ETag": "W/\"d00fe1d56131d3165cc07ad7bcbea2f87e2e99acabe469169388419dfd10f9bb\"", "Last-Modified": "Tue, 24 Apr 2012 22:54:20 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4931", - "X-RateLimit-Reset": "1624920219", - "X-RateLimit-Used": "69", + "X-RateLimit-Remaining": "4992", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "8", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,12 +38,12 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "FF52:52C5:10B104A:121C9C2:60DA501A" + "X-GitHub-Request-Id": "BF16:1172C:7FECF5:8545EB:62517893" } }, - "uuid": "7b3d0677-7c51-45a6-b2c6-a34823921b31", + "uuid": "430057e2-8c0d-471d-b6b8-2dca449210f3", "persistent": true, "scenarioName": "scenario-2-repos-kohsuke-sandbox-ant-commits-8ae38db0ea5837313ab5f39d43a6f73de3bd9000", "requiredScenarioState": "scenario-2-repos-kohsuke-sandbox-ant-commits-8ae38db0ea5837313ab5f39d43a6f73de3bd9000-2", - "insertionIndex": 9 + "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-5.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-4.json similarity index 67% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-5.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-4.json index dd431ed7d6..6e296f097a 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-5.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-4.json @@ -1,5 +1,5 @@ { - "id": "5a8912b4-7de9-4567-b12b-12a02d59064d", + "id": "2635385d-0572-4a8b-aeab-401b91ddaa17", "name": "repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments", "request": { "url": "/repos/kohsuke/sandbox-ant/commits/8ae38db0ea5837313ab5f39d43a6f73de3bd9000/comments", @@ -19,24 +19,24 @@ }, "response": { "status": 201, - "bodyFileName": "repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-5.json", + "bodyFileName": "repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-4.json", "headers": { "Server": "GitHub.com", - "Date": "Mon, 28 Jun 2021 22:41:30 GMT", + "Date": "Sat, 09 Apr 2022 12:14: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": "\"0370f56de2fb3daaa1930d56adba70e7db1be13f5fac58a2040e0666c12bdaab\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"a232677fa1d916e4cda58e87464973589ce645615da19fbffd671e3d5a92d16f\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4935", - "X-RateLimit-Reset": "1624920219", - "X-RateLimit-Used": "65", + "X-RateLimit-Remaining": "4996", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "4", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -44,11 +44,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": "FF9E:9C39:2E5670:311D55:60DA5019", - "Location": "https://api.github.com/repos/kohsuke/sandbox-ant/comments/52782621" + "X-GitHub-Request-Id": "BF0E:020C:7D95C4:82E123:62517892", + "Location": "https://api.github.com/repos/kohsuke/sandbox-ant/comments/70874649" } }, - "uuid": "5a8912b4-7de9-4567-b12b-12a02d59064d", + "uuid": "2635385d-0572-4a8b-aeab-401b91ddaa17", "persistent": true, - "insertionIndex": 5 + "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/users_kohsuke-2.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/users_kohsuke-1.json similarity index 57% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/users_kohsuke-2.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/users_kohsuke-1.json index 796825ef19..5a12c93b57 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/users_kohsuke-2.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/users_kohsuke-1.json @@ -1,5 +1,5 @@ { - "id": "0ec2d632-17fe-4b84-8a5d-4b578a932947", + "id": "a0a70820-a397-46f7-b3a5-72586e5c73b0", "name": "users_kohsuke", "request": { "url": "/users/kohsuke", @@ -12,25 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "users_kohsuke-2.json", + "bodyFileName": "users_kohsuke-1.json", "headers": { "Server": "GitHub.com", - "Date": "Mon, 28 Jun 2021 22:41:29 GMT", + "Date": "Sat, 09 Apr 2022 12:14: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/\"cc988db5ea82cebc955dddd429f9cf90feeff693334b875a6f426bb39327eb9b\"", - "Last-Modified": "Tue, 25 May 2021 16:25:59 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"6feec589e2e6b6718e1831548a9ce491c3a1cdb88805e0aaec0151a4f0acf7c2\"", + "Last-Modified": "Fri, 18 Mar 2022 23:13: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-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4938", - "X-RateLimit-Reset": "1624920219", - "X-RateLimit-Used": "62", + "X-RateLimit-Remaining": "4999", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "1", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,10 +38,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": "FF96:1BCE:18399A6:19D4BF7:60DA5019" + "X-GitHub-Request-Id": "BF08:5C30:19C61F4:1A34CA7:62517891" } }, - "uuid": "0ec2d632-17fe-4b84-8a5d-4b578a932947", + "uuid": "a0a70820-a397-46f7-b3a5-72586e5c73b0", "persistent": true, - "insertionIndex": 2 + "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test-2.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test-1.json similarity index 98% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test-2.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test-1.json index ac1befd722..965f35f532 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test-2.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test-1.json @@ -87,6 +87,10 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 0, "open_issues": 0, "watchers": 2, diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3-3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3-2.json similarity index 93% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3-3.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3-2.json index 8ecf715014..b7c9f47856 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3-3.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3-2.json @@ -102,5 +102,18 @@ "type": "User", "site_admin": false }, + "reactions": { + "url": "https://api.github.com/repos/kohsuke/test/issues/3/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "timeline_url": "https://api.github.com/repos/kohsuke/test/issues/3/timeline", "performed_via_github_app": null } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-12.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-11.json similarity index 84% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-12.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-11.json index 16a7ac27aa..6ffad7d11f 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-12.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-11.json @@ -29,6 +29,18 @@ "updated_at": "2012-09-13T23:27:33Z", "author_association": "OWNER", "body": "aaa\n", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/test/issues/comments/8547249/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, "performed_via_github_app": null }, { @@ -61,6 +73,18 @@ "updated_at": "2012-09-13T23:27:35Z", "author_association": "OWNER", "body": "bbb\n", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/test/issues/comments/8547251/reactions", + "total_count": 3, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 1, + "confused": 0, + "heart": 0, + "rocket": 1, + "eyes": 1 + }, "performed_via_github_app": null }, { @@ -93,6 +117,18 @@ "updated_at": "2012-09-13T23:27:38Z", "author_association": "OWNER", "body": "ccc\n", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/test/issues/comments/8547253/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, "performed_via_github_app": null } ] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-4.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-3.json similarity index 84% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-4.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-3.json index 16a7ac27aa..6ffad7d11f 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-4.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-3.json @@ -29,6 +29,18 @@ "updated_at": "2012-09-13T23:27:33Z", "author_association": "OWNER", "body": "aaa\n", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/test/issues/comments/8547249/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, "performed_via_github_app": null }, { @@ -61,6 +73,18 @@ "updated_at": "2012-09-13T23:27:35Z", "author_association": "OWNER", "body": "bbb\n", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/test/issues/comments/8547251/reactions", + "total_count": 3, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 1, + "confused": 0, + "heart": 0, + "rocket": 1, + "eyes": 1 + }, "performed_via_github_app": null }, { @@ -93,6 +117,18 @@ "updated_at": "2012-09-13T23:27:38Z", "author_association": "OWNER", "body": "ccc\n", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/test/issues/comments/8547253/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, "performed_via_github_app": null } ] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-8.json similarity index 84% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-9.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-8.json index 16a7ac27aa..a0b71d2d6b 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-9.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_3_comments-8.json @@ -29,6 +29,18 @@ "updated_at": "2012-09-13T23:27:33Z", "author_association": "OWNER", "body": "aaa\n", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/test/issues/comments/8547249/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, "performed_via_github_app": null }, { @@ -61,6 +73,18 @@ "updated_at": "2012-09-13T23:27:35Z", "author_association": "OWNER", "body": "bbb\n", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/test/issues/comments/8547251/reactions", + "total_count": 4, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 1, + "confused": 1, + "heart": 0, + "rocket": 1, + "eyes": 1 + }, "performed_via_github_app": null }, { @@ -93,6 +117,18 @@ "updated_at": "2012-09-13T23:27:38Z", "author_association": "OWNER", "body": "ccc\n", + "reactions": { + "url": "https://api.github.com/repos/kohsuke/test/issues/comments/8547253/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, "performed_via_github_app": null } ] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-13.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-12.json similarity index 100% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-13.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-12.json diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-6.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-6.json new file mode 100644 index 0000000000..d456451d6e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-6.json @@ -0,0 +1,80 @@ +[ + { + "id": 97925670, + "node_id": "MDg6UmVhY3Rpb245NzkyNTY3MA==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars.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 + }, + "content": "hooray", + "created_at": "2021-01-22T16:19:36Z" + }, + { + "id": 97925686, + "node_id": "MDg6UmVhY3Rpb245NzkyNTY4Ng==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars.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 + }, + "content": "rocket", + "created_at": "2021-01-22T16:19:41Z" + }, + { + "id": 97925699, + "node_id": "MDg6UmVhY3Rpb245NzkyNTY5OQ==", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars.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 + }, + "content": "eyes", + "created_at": "2021-01-22T16:19:49Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-7.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-7.json index d456451d6e..1b0d37cc8d 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-7.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-7.json @@ -1,80 +1,26 @@ -[ - { - "id": 97925670, - "node_id": "MDg6UmVhY3Rpb245NzkyNTY3MA==", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "content": "hooray", - "created_at": "2021-01-22T16:19:36Z" +{ + "id": 158437374, + "node_id": "REA_lALOADz3iM4Agmuzzglxj_4", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false }, - { - "id": 97925686, - "node_id": "MDg6UmVhY3Rpb245NzkyNTY4Ng==", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "content": "rocket", - "created_at": "2021-01-22T16:19:41Z" - }, - { - "id": 97925699, - "node_id": "MDg6UmVhY3Rpb245NzkyNTY5OQ==", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "content": "eyes", - "created_at": "2021-01-22T16:19:49Z" - } -] \ No newline at end of file + "content": "confused", + "created_at": "2022-04-08T17:53:03Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-10.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-9.json similarity index 77% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-10.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-9.json index d6c895458e..405a0f9a38 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-10.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-9.json @@ -78,29 +78,29 @@ "created_at": "2021-01-22T16:19:49Z" }, { - "id": 127850403, - "node_id": "MDg6UmVhY3Rpb24xMjc4NTA0MDM=", + "id": 158437374, + "node_id": "REA_lALOADz3iM4Agmuzzglxj_4", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.githubusercontent.com/u/1958953?v=4", + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/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", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", "type": "User", "site_admin": false }, "content": "confused", - "created_at": "2021-09-11T07:03:05Z" + "created_at": "2022-04-08T17:53:03Z" } ] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/user-1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/user-1.json deleted file mode 100644 index 6121fcdbac..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/user-1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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": null, - "twitter_username": "bitwiseman", - "public_repos": 212, - "public_gists": 8, - "followers": 199, - "following": 12, - "created_at": "2012-07-11T20:38:33Z", - "updated_at": "2021-09-10T14:35:52Z", - "private_gists": 19, - "total_private_repos": 22, - "owned_private_repos": 0, - "disk_usage": 33700, - "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/AppTest/wiremock/testCreateCommitComment/__files/users_kohsuke-2.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/users_kohsuke-4.json similarity index 93% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/users_kohsuke-2.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/users_kohsuke-4.json index 681672bdd6..05071d4716 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/users_kohsuke-2.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/users_kohsuke-4.json @@ -25,10 +25,10 @@ "hireable": null, "bio": null, "twitter_username": null, - "public_repos": 264, + "public_repos": 265, "public_gists": 113, - "followers": 1935, + "followers": 1997, "following": 3, "created_at": "2009-01-28T18:53:21Z", - "updated_at": "2021-05-25T16:25:59Z" + "updated_at": "2022-03-18T23:13:10Z" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/reactions_127850403-11.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/reactions_127850403-11.json deleted file mode 100644 index 14bf1b8da7..0000000000 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/reactions_127850403-11.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "id": "d2041463-f07f-41c7-95bd-ba446144a47a", - "name": "reactions_127850403", - "request": { - "url": "/reactions/127850403", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:05 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", - "Deprecation": "Sat, 01 Feb 2020 00:00:00 GMT", - "Sunset": "Mon, 01 Feb 2021 00:00:00 GMT", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4925", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "75", - "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": "D376:86EB:328A2B:370E2C:613C54A9", - "Link": "; rel=\"deprecation\"; type=\"text/html\", ; rel=\"alternate\"" - } - }, - "uuid": "d2041463-f07f-41c7-95bd-ba446144a47a", - "persistent": true, - "insertionIndex": 11 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test-2.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test-1.json similarity index 60% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test-2.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test-1.json index d6d1673f51..d6edba4a26 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test-2.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test-1.json @@ -1,5 +1,5 @@ { - "id": "8a9c56a3-e5be-41af-a45b-879587c13fbd", + "id": "e3b0a1b2-9abf-4ea4-a807-c833348a6507", "name": "repos_kohsuke_test", "request": { "url": "/repos/kohsuke/test", @@ -12,25 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_test-2.json", + "bodyFileName": "repos_kohsuke_test-1.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:04 GMT", + "Date": "Fri, 08 Apr 2022 17:53: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/\"49366a29bce4d033702a1b74aafd3dd7b5ee751eb10966d777e141ff1ea3e74b\"", + "ETag": "W/\"81b45c81616d1f193ff1c8b9cb91b503b2e0a67d33bb6a0f1314221ab1c7e033\"", "Last-Modified": "Tue, 13 Aug 2019 15:00:41 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4934", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "66", + "X-RateLimit-Remaining": "4925", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "75", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,10 +38,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": "D364:45DE:710ECE:76B818:613C54A8" + "X-GitHub-Request-Id": "BEAA:5C29:3417A:3888F:6250767D" } }, - "uuid": "8a9c56a3-e5be-41af-a45b-879587c13fbd", + "uuid": "e3b0a1b2-9abf-4ea4-a807-c833348a6507", "persistent": true, - "insertionIndex": 2 + "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3-3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3-2.json similarity index 57% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3-3.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3-2.json index 4cefc8b75c..ee6765b64c 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3-3.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3-2.json @@ -1,5 +1,5 @@ { - "id": "2bb8e26e-7bc8-458f-a24f-2d3a7b20426b", + "id": "d012c073-c1ba-47d1-b1e9-6c0e10bd505a", "name": "repos_kohsuke_test_issues_3", "request": { "url": "/repos/kohsuke/test/issues/3", @@ -12,25 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_test_issues_3-3.json", + "bodyFileName": "repos_kohsuke_test_issues_3-2.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:04 GMT", + "Date": "Fri, 08 Apr 2022 17:53: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/\"c42accd2e8dc3da9b48bc1a6f7775c25e44d018ad345ca862f99d2f03a45130e\"", - "Last-Modified": "Mon, 30 Aug 2021 20:04:20 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"becc2c7e788b86d49af2f0777feda060acca27f873aa3e77acb0d943074ff86c\"", + "Last-Modified": "Fri, 18 Mar 2022 23:13: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-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4933", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "67", + "X-RateLimit-Remaining": "4924", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "76", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,10 +38,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": "D366:32F4:46ABB2:4BABFC:613C54A8" + "X-GitHub-Request-Id": "BEAE:39AA:D1E5F:D7A22:6250767E" } }, - "uuid": "2bb8e26e-7bc8-458f-a24f-2d3a7b20426b", + "uuid": "d012c073-c1ba-47d1-b1e9-6c0e10bd505a", "persistent": true, - "insertionIndex": 3 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-12.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-11.json similarity index 62% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-12.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-11.json index b11f1561f2..d14ad7e2bb 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-12.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-11.json @@ -1,5 +1,5 @@ { - "id": "83627e28-47f6-4933-954c-3910e5392e5d", + "id": "4e3d9d5f-755f-4120-9c91-1b40d5109ea2", "name": "repos_kohsuke_test_issues_3_comments", "request": { "url": "/repos/kohsuke/test/issues/3/comments", @@ -12,24 +12,24 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_test_issues_3_comments-12.json", + "bodyFileName": "repos_kohsuke_test_issues_3_comments-11.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:06 GMT", + "Date": "Fri, 08 Apr 2022 17:53: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": "W/\"acc78f75dc73507b01f43951c2819009d0f985cb12cef25af138f927cfb03762\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"cd1eb7ae1069345781790f680e452c170adad04aa3acdcb59ce9dfb1d07feb08\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4924", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "76", + "X-RateLimit-Remaining": "4915", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "85", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,12 +37,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": "D378:60B8:79A8ED:7F4295:613C54A9" + "X-GitHub-Request-Id": "BEC2:5C2F:E420D:E9E9F:62507680" } }, - "uuid": "83627e28-47f6-4933-954c-3910e5392e5d", + "uuid": "4e3d9d5f-755f-4120-9c91-1b40d5109ea2", "persistent": true, "scenarioName": "scenario-1-repos-kohsuke-test-issues-3-comments", "requiredScenarioState": "scenario-1-repos-kohsuke-test-issues-3-comments-3", - "insertionIndex": 12 + "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-4.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-3.json similarity index 63% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-4.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-3.json index b17dd57346..af130065a7 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-4.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-3.json @@ -1,5 +1,5 @@ { - "id": "b730b957-6403-4077-87b1-1ea732bc3182", + "id": "ec26b894-11e7-4b5f-8df2-7ab5bc53635c", "name": "repos_kohsuke_test_issues_3_comments", "request": { "url": "/repos/kohsuke/test/issues/3/comments", @@ -12,24 +12,24 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_test_issues_3_comments-4.json", + "bodyFileName": "repos_kohsuke_test_issues_3_comments-3.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:04 GMT", + "Date": "Fri, 08 Apr 2022 17:53: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/\"acc78f75dc73507b01f43951c2819009d0f985cb12cef25af138f927cfb03762\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"cd1eb7ae1069345781790f680e452c170adad04aa3acdcb59ce9dfb1d07feb08\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4932", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "68", + "X-RateLimit-Remaining": "4923", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "77", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,13 +37,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": "D368:8A76:1C4D8C:208793:613C54A8" + "X-GitHub-Request-Id": "BEB0:5C29:341DB:388F6:6250767E" } }, - "uuid": "b730b957-6403-4077-87b1-1ea732bc3182", + "uuid": "ec26b894-11e7-4b5f-8df2-7ab5bc53635c", "persistent": true, "scenarioName": "scenario-1-repos-kohsuke-test-issues-3-comments", "requiredScenarioState": "Started", "newScenarioState": "scenario-1-repos-kohsuke-test-issues-3-comments-2", - "insertionIndex": 4 + "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-8.json similarity index 64% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-9.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-8.json index 7ae264965a..baa6afff2e 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-9.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_3_comments-8.json @@ -1,5 +1,5 @@ { - "id": "b259e7ca-094e-4bff-b04a-a7893b6d8e7a", + "id": "e9a40a6f-8c83-4c16-9671-4fcddc503f7f", "name": "repos_kohsuke_test_issues_3_comments", "request": { "url": "/repos/kohsuke/test/issues/3/comments", @@ -12,24 +12,24 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_test_issues_3_comments-9.json", + "bodyFileName": "repos_kohsuke_test_issues_3_comments-8.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:05 GMT", + "Date": "Fri, 08 Apr 2022 17:53:03 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"acc78f75dc73507b01f43951c2819009d0f985cb12cef25af138f927cfb03762\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"3444d9509151ee38783d8f5dd040453cfdecdf8c4e118ff4026a812d40d648fd\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4927", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "73", + "X-RateLimit-Remaining": "4918", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "82", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,13 +37,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": "D372:32F1:D6ECC:1166DA:613C54A9" + "X-GitHub-Request-Id": "BEBA:1172D:F0EA6:F6DF8:6250767F" } }, - "uuid": "b259e7ca-094e-4bff-b04a-a7893b6d8e7a", + "uuid": "e9a40a6f-8c83-4c16-9671-4fcddc503f7f", "persistent": true, "scenarioName": "scenario-1-repos-kohsuke-test-issues-3-comments", "requiredScenarioState": "scenario-1-repos-kohsuke-test-issues-3-comments-2", "newScenarioState": "scenario-1-repos-kohsuke-test-issues-3-comments-3", - "insertionIndex": 9 + "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547249_reactions-6.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547249_reactions-5.json similarity index 62% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547249_reactions-6.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547249_reactions-5.json index 8000658ccc..f156979e6a 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547249_reactions-6.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547249_reactions-5.json @@ -1,5 +1,5 @@ { - "id": "32c3ea61-7274-4414-9cec-7baf833e2506", + "id": "613fa55a-0a2d-48c5-a991-673f35213eff", "name": "repos_kohsuke_test_issues_comments_8547249_reactions", "request": { "url": "/repos/kohsuke/test/issues/comments/8547249/reactions", @@ -15,21 +15,21 @@ "body": "[]", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:05 GMT", + "Date": "Fri, 08 Apr 2022 17:53: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": "\"09f1fd8ad1f7a8a86a061a6ee6b2506a7740a8d58da6ba3c8f1d53124411aaf1\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"1edf80ecd98d11d98113d5aa3cef7021f4a60d76d4a01328e8d3552451f43ce4\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4930", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "70", + "X-RateLimit-Remaining": "4921", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "79", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,10 +37,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": "D36C:86EC:492A8C:4E2814:613C54A8" + "X-GitHub-Request-Id": "BEB4:93CF:16E39D:1751BA:6250767E" } }, - "uuid": "32c3ea61-7274-4414-9cec-7baf833e2506", + "uuid": "613fa55a-0a2d-48c5-a991-673f35213eff", "persistent": true, - "insertionIndex": 6 + "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-13.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-12.json similarity index 65% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-13.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-12.json index e08d16813d..62e652f061 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-13.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-12.json @@ -1,5 +1,5 @@ { - "id": "666beb37-ba0a-4e97-b29b-4bd524292029", + "id": "b55e29c0-75a2-4a55-99da-566c09a9bccf", "name": "repos_kohsuke_test_issues_comments_8547251_reactions", "request": { "url": "/repos/kohsuke/test/issues/comments/8547251/reactions", @@ -12,24 +12,24 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_test_issues_comments_8547251_reactions-13.json", + "bodyFileName": "repos_kohsuke_test_issues_comments_8547251_reactions-12.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:06 GMT", + "Date": "Fri, 08 Apr 2022 17:53: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": "W/\"361404fe525aa0c8bfcfdba6d71d0ae779b39db1971f01ddf9cd916887f85b00\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"2394c9c6a2a9fa85202f46fd7b53d9d846897711a33a433c53559d62949bcac8\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4923", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "77", + "X-RateLimit-Remaining": "4914", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "86", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,12 +37,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": "D37A:8A79:5E20E9:63B1F7:613C54AA" + "X-GitHub-Request-Id": "BEC6:93CF:16E74E:175553:62507680" } }, - "uuid": "666beb37-ba0a-4e97-b29b-4bd524292029", + "uuid": "b55e29c0-75a2-4a55-99da-566c09a9bccf", "persistent": true, "scenarioName": "scenario-2-repos-kohsuke-test-issues-comments-8547251-reactions", "requiredScenarioState": "scenario-2-repos-kohsuke-test-issues-comments-8547251-reactions-3", - "insertionIndex": 13 + "insertionIndex": 12 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-6.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-6.json new file mode 100644 index 0000000000..fc1618c9c7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-6.json @@ -0,0 +1,49 @@ +{ + "id": "ac751a6a-8139-4269-993a-9bfb044c944c", + "name": "repos_kohsuke_test_issues_comments_8547251_reactions", + "request": { + "url": "/repos/kohsuke/test/issues/comments/8547251/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_kohsuke_test_issues_comments_8547251_reactions-6.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 08 Apr 2022 17:53:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"2394c9c6a2a9fa85202f46fd7b53d9d846897711a33a433c53559d62949bcac8\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4920", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "80", + "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": "BEB6:ECF2:E51F1:EAD76:6250767F" + } + }, + "uuid": "ac751a6a-8139-4269-993a-9bfb044c944c", + "persistent": true, + "scenarioName": "scenario-2-repos-kohsuke-test-issues-comments-8547251-reactions", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-repos-kohsuke-test-issues-comments-8547251-reactions-2", + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-7.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-7.json index f71cc1405c..6a0bf7ba21 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-7.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-7.json @@ -1,35 +1,42 @@ { - "id": "24e3f69b-df35-46f4-a20e-cd9f359c89af", + "id": "78f2e418-780d-44e5-a422-1ebafc2d006c", "name": "repos_kohsuke_test_issues_comments_8547251_reactions", "request": { "url": "/repos/kohsuke/test/issues/comments/8547251/reactions", - "method": "GET", + "method": "POST", "headers": { "Accept": { "equalTo": "application/vnd.github.squirrel-girl-preview+json" } - } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"content\":\"confused\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] }, "response": { - "status": 200, + "status": 201, "bodyFileName": "repos_kohsuke_test_issues_comments_8547251_reactions-7.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:05 GMT", + "Date": "Fri, 08 Apr 2022 17:53:03 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"361404fe525aa0c8bfcfdba6d71d0ae779b39db1971f01ddf9cd916887f85b00\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"d3886dff7615a4c562cdcdb39bf2aa0a0436ee61fea8a2350fa56f50966c904a\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4929", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "71", + "X-RateLimit-Remaining": "4919", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "81", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,13 +44,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": "D36E:60B8:79A830:7F41C7:613C54A9" + "X-GitHub-Request-Id": "BEB8:10500:83CAB:88B80:6250767F" } }, - "uuid": "24e3f69b-df35-46f4-a20e-cd9f359c89af", + "uuid": "78f2e418-780d-44e5-a422-1ebafc2d006c", "persistent": true, - "scenarioName": "scenario-2-repos-kohsuke-test-issues-comments-8547251-reactions", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-2-repos-kohsuke-test-issues-comments-8547251-reactions-2", "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-10.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-9.json similarity index 67% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-10.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-9.json index 5f82c841b8..1082480d82 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-10.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions-9.json @@ -1,5 +1,5 @@ { - "id": "18fff31d-6898-4a80-bc32-b671403b7eff", + "id": "4e16e39b-4057-4442-b2c1-e8a108a59449", "name": "repos_kohsuke_test_issues_comments_8547251_reactions", "request": { "url": "/repos/kohsuke/test/issues/comments/8547251/reactions", @@ -12,24 +12,24 @@ }, "response": { "status": 200, - "bodyFileName": "repos_kohsuke_test_issues_comments_8547251_reactions-10.json", + "bodyFileName": "repos_kohsuke_test_issues_comments_8547251_reactions-9.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:05 GMT", + "Date": "Fri, 08 Apr 2022 17:53: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": "W/\"b2fa05e4026513f1b76b682325ee50b37675c6fd41e01f444181b2fbf3300f76\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"04296e90da166bb6659ffe7a7c8a86da8bd0518676ab55e220e038ae0111182c\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4926", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "74", + "X-RateLimit-Remaining": "4917", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "83", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -37,13 +37,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": "D374:5A23:4DA8F9:52ABAB:613C54A9" + "X-GitHub-Request-Id": "BEBC:6F16:744BD:793BC:6250767F" } }, - "uuid": "18fff31d-6898-4a80-bc32-b671403b7eff", + "uuid": "4e16e39b-4057-4442-b2c1-e8a108a59449", "persistent": true, "scenarioName": "scenario-2-repos-kohsuke-test-issues-comments-8547251-reactions", "requiredScenarioState": "scenario-2-repos-kohsuke-test-issues-comments-8547251-reactions-2", "newScenarioState": "scenario-2-repos-kohsuke-test-issues-comments-8547251-reactions-3", - "insertionIndex": 10 + "insertionIndex": 9 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_52782621-10.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions_158437374-10.json similarity index 53% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_52782621-10.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions_158437374-10.json index 3564a1889d..fa3fb1125d 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_52782621-10.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/repos_kohsuke_test_issues_comments_8547251_reactions_158437374-10.json @@ -1,8 +1,8 @@ { - "id": "141a8d4a-e52a-42f8-9f10-97666ef0c760", - "name": "repos_kohsuke_sandbox-ant_comments_52782621", + "id": "18c445b5-46fc-4331-b8b6-1e9a410ac7ae", + "name": "repos_kohsuke_test_issues_comments_8547251_reactions_158437374", "request": { - "url": "/repos/kohsuke/sandbox-ant/comments/52782621", + "url": "/repos/kohsuke/test/issues/comments/8547251/reactions/158437374", "method": "DELETE", "headers": { "Accept": { @@ -14,14 +14,14 @@ "status": 204, "headers": { "Server": "GitHub.com", - "Date": "Mon, 28 Jun 2021 22:41:31 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "Date": "Fri, 08 Apr 2022 17:53:04 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-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4930", - "X-RateLimit-Reset": "1624920219", - "X-RateLimit-Used": "70", + "X-RateLimit-Remaining": "4916", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "84", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -30,10 +30,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "FF54:52C5:10B105A:121C9D3:60DA501A" + "X-GitHub-Request-Id": "BEBE:ECF2:E5334:EAEB7:62507680" } }, - "uuid": "141a8d4a-e52a-42f8-9f10-97666ef0c760", + "uuid": "18c445b5-46fc-4331-b8b6-1e9a410ac7ae", "persistent": true, "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/users_kohsuke-5.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/users_kohsuke-4.json similarity index 57% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/users_kohsuke-5.json rename to src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/users_kohsuke-4.json index 77ae2a2673..6ff8a1415a 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/users_kohsuke-5.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/users_kohsuke-4.json @@ -1,5 +1,5 @@ { - "id": "89560905-fbd1-4837-8df1-1b26b3550b12", + "id": "daaad445-3cb0-4b71-bafb-7384cb932b2e", "name": "users_kohsuke", "request": { "url": "/users/kohsuke", @@ -12,25 +12,25 @@ }, "response": { "status": 200, - "bodyFileName": "users_kohsuke-5.json", + "bodyFileName": "users_kohsuke-4.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:04 GMT", + "Date": "Fri, 08 Apr 2022 17:53: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/\"2f9a9f8e413765119df0e062c48ab8f926c00c7034e0f14f91bc577ac636c338\"", - "Last-Modified": "Mon, 30 Aug 2021 20:04:20 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"6feec589e2e6b6718e1831548a9ce491c3a1cdb88805e0aaec0151a4f0acf7c2\"", + "Last-Modified": "Fri, 18 Mar 2022 23:13: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-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4931", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "69", + "X-RateLimit-Remaining": "4922", + "X-RateLimit-Reset": "1649442146", + "X-RateLimit-Used": "78", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,10 +38,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": "D36A:32F5:6EB88E:7453CF:613C54A8" + "X-GitHub-Request-Id": "BEB2:39A9:7F918:84A84:6250767E" } }, - "uuid": "89560905-fbd1-4837-8df1-1b26b3550b12", + "uuid": "daaad445-3cb0-4b71-bafb-7384cb932b2e", "persistent": true, - "insertionIndex": 5 + "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/__files/app-1.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/__files/app-1.json new file mode 100644 index 0000000000..98f64483b4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/__files/app-1.json @@ -0,0 +1,41 @@ +{ + "id": 11111111, + "slug": "bogus-testing", + "node_id": "asdfasdfasdf", + "owner": { + "login": "bogus", + "id": 11111111, + "node_id": "asdfasfasdf", + "avatar_url": "https://avatars.githubusercontent.com/u/11111111?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bogus", + "html_url": "https://github.com/bogus", + "followers_url": "https://api.github.com/users/bogus/followers", + "following_url": "https://api.github.com/users/bogus/following{/other_user}", + "gists_url": "https://api.github.com/users/bogus/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bogus/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bogus/subscriptions", + "organizations_url": "https://api.github.com/users/bogus/orgs", + "repos_url": "https://api.github.com/users/bogus/repos", + "events_url": "https://api.github.com/users/bogus/events{/privacy}", + "received_events_url": "https://api.github.com/users/bogus/received_events", + "type": "User", + "site_admin": false + }, + "name": "bogus-testing", + "description": "description here", + "external_url": "https://github.com/bogus", + "html_url": "https://github.com/apps/bogus-testing", + "created_at": "2022-07-15T17:51:32Z", + "updated_at": "2022-07-15T17:51:32Z", + "permissions": { + "contents": "write", + "metadata": "read", + "organization_plan": "read", + "plan": "read", + "pull_requests": "read", + "statuses": "write" + }, + "events": [], + "installations_count": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/__files/app_installations_27419505_access_tokens-3.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/__files/app_installations_27419505_access_tokens-3.json new file mode 100644 index 0000000000..e2ed7454d9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/__files/app_installations_27419505_access_tokens-3.json @@ -0,0 +1,112 @@ +{ + "token": "bogus", + "expires_at": "2022-07-27T21:38:33Z", + "permissions": { + "contents": "write", + "metadata": "read", + "pull_requests": "read", + "statuses": "write" + }, + "repository_selection": "selected", + "repositories": [ + { + "id": 11111111, + "node_id": "asdfasdf", + "name": "bogus", + "full_name": "bogus/bogus", + "private": true, + "owner": { + "login": "bogus", + "id": 11111111, + "node_id": "asdfasdf", + "avatar_url": "https://avatars.githubusercontent.com/u/11111111?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bogus", + "html_url": "https://github.com/bogus", + "followers_url": "https://api.github.com/users/bogus/followers", + "following_url": "https://api.github.com/users/bogus/following{/other_user}", + "gists_url": "https://api.github.com/users/bogus/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bogus/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bogus/subscriptions", + "organizations_url": "https://api.github.com/users/bogus/orgs", + "repos_url": "https://api.github.com/users/bogus/repos", + "events_url": "https://api.github.com/users/bogus/events{/privacy}", + "received_events_url": "https://api.github.com/users/bogus/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/bogus/bogus", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/bogus/bogus", + "forks_url": "https://api.github.com/repos/bogus/bogus/forks", + "keys_url": "https://api.github.com/repos/bogus/bogus/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/bogus/bogus/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/bogus/bogus/teams", + "hooks_url": "https://api.github.com/repos/bogus/bogus/hooks", + "issue_events_url": "https://api.github.com/repos/bogus/bogus/issues/events{/number}", + "events_url": "https://api.github.com/repos/bogus/bogus/events", + "assignees_url": "https://api.github.com/repos/bogus/bogus/assignees{/user}", + "branches_url": "https://api.github.com/repos/bogus/bogus/branches{/branch}", + "tags_url": "https://api.github.com/repos/bogus/bogus/tags", + "blobs_url": "https://api.github.com/repos/bogus/bogus/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/bogus/bogus/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/bogus/bogus/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/bogus/bogus/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/bogus/bogus/statuses/{sha}", + "languages_url": "https://api.github.com/repos/bogus/bogus/languages", + "stargazers_url": "https://api.github.com/repos/bogus/bogus/stargazers", + "contributors_url": "https://api.github.com/repos/bogus/bogus/contributors", + "subscribers_url": "https://api.github.com/repos/bogus/bogus/subscribers", + "subscription_url": "https://api.github.com/repos/bogus/bogus/subscription", + "commits_url": "https://api.github.com/repos/bogus/bogus/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/bogus/bogus/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/bogus/bogus/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/bogus/bogus/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/bogus/bogus/contents/{+path}", + "compare_url": "https://api.github.com/repos/bogus/bogus/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/bogus/bogus/merges", + "archive_url": "https://api.github.com/repos/bogus/bogus/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/bogus/bogus/downloads", + "issues_url": "https://api.github.com/repos/bogus/bogus/issues{/number}", + "pulls_url": "https://api.github.com/repos/bogus/bogus/pulls{/number}", + "milestones_url": "https://api.github.com/repos/bogus/bogus/milestones{/number}", + "notifications_url": "https://api.github.com/repos/bogus/bogus/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/bogus/bogus/labels{/name}", + "releases_url": "https://api.github.com/repos/bogus/bogus/releases{/id}", + "deployments_url": "https://api.github.com/repos/bogus/bogus/deployments", + "created_at": "2018-08-30T17:18:24Z", + "updated_at": "2022-06-14T22:15:20Z", + "pushed_at": "2022-07-15T20:04:26Z", + "git_url": "git://github.com/bogus/bogus.git", + "ssh_url": "git@github.com:bogus/bogus.git", + "clone_url": "https://github.com/bogus/bogus.git", + "svn_url": "https://github.com/bogus/bogus", + "homepage": null, + "size": 36, + "stargazers_count": 0, + "watchers_count": 0, + "language": "Groovy", + "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, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/__files/users_bogus_installation-2.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/__files/users_bogus_installation-2.json new file mode 100644 index 0000000000..07b4061b60 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/__files/users_bogus_installation-2.json @@ -0,0 +1,45 @@ +{ + "id": 11111111, + "account": { + "login": "bogus", + "id": 11111111, + "node_id": "asdfasdfasdf=", + "avatar_url": "https://avatars2.githubusercontent.com/u/111111111?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bogus", + "html_url": "https://github.com/bogus", + "followers_url": "https://api.github.com/users/bogus/followers", + "following_url": "https://api.github.com/users/bogus/following{/other_user}", + "gists_url": "https://api.github.com/users/bogus/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bogus/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bogus/subscriptions", + "organizations_url": "https://api.github.com/users/bogus/orgs", + "repos_url": "https://api.github.com/users/bogus/repos", + "events_url": "https://api.github.com/users/bogus/events{/privacy}", + "received_events_url": "https://api.github.com/users/bogus/received_events", + "type": "Organization", + "site_admin": false + }, + "repository_selection": "all", + "access_tokens_url": "https://api.github.com/app/installations/11111111/access_tokens", + "repositories_url": "https://api.github.com/installation/repositories", + "html_url": "https://github.com/settings/installations/11111111", + "app_id": 111111, + "app_slug": "bogus-testing", + "target_id": 11111111, + "target_type": "Organization", + "permissions": { + "checks": "write", + "pull_requests": "write", + "contents": "read", + "metadata": "read" + }, + "events": [], + "created_at": "2022-07-15T17:55:36.000Z", + "updated_at": "2022-07-15T19:15:12.000Z", + "single_file_name": null, + "has_multiple_single_files": false, + "single_file_paths": [], + "suspended_by": null, + "suspended_at": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/mappings/app-1.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/mappings/app-1.json new file mode 100644 index 0000000000..06417be608 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/mappings/app-1.json @@ -0,0 +1,39 @@ +{ + "id": "32a6d293-46e2-48e0-a7f5-cf9ec061cd02", + "name": "app", + "request": { + "url": "/app", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "app-1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 27 Jul 2022 20:38:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"139628cbc6b3b04a0aa89130c8d2d7eb6935386aeaa396cbef97166394e38723\"", + "X-GitHub-Media-Type": "github.v3; param=machine-man-preview; format=json", + "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": "F861:6983:622AD5:115FE5B:62E1A249" + } + }, + "uuid": "32a6d293-46e2-48e0-a7f5-cf9ec061cd02", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/mappings/app_installations_27419505_access_tokens-3.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/mappings/app_installations_27419505_access_tokens-3.json new file mode 100644 index 0000000000..cc68198f80 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/mappings/app_installations_27419505_access_tokens-3.json @@ -0,0 +1,46 @@ +{ + "id": "9e9f33d9-1b63-4f67-81a3-82ec45bd0afa", + "name": "app_installations_27419505_access_tokens", + "request": { + "url": "/app/installations/11111111/access_tokens", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"repositories\":[\"bogus\"]}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "app_installations_27419505_access_tokens-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 27 Jul 2022 20:38:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"6cfb04630611056af08d2652a018429d37ca8e0df7d861b918a985d5e646e2de\"", + "X-GitHub-Media-Type": "github.v3; param=machine-man-preview; format=json", + "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": "F863:32FC:5F7C97:10FD23D:62E1A249" + } + }, + "uuid": "9e9f33d9-1b63-4f67-81a3-82ec45bd0afa", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/mappings/users_bogus_installation-2.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/mappings/users_bogus_installation-2.json new file mode 100644 index 0000000000..2f2f27a708 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createTokenWithRepositories/mappings/users_bogus_installation-2.json @@ -0,0 +1,39 @@ +{ + "id": "b3d0192b-f564-437c-b705-d1662ba3f8c5", + "name": "users_bogus_installation", + "request": { + "url": "/users/bogus/installation", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "users_bogus_installation-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 27 Jul 2022 20:38:33 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"c95438f7909eebbaa54f451239b617b063a83ab1193afa1e180c144dd6295033\"", + "X-GitHub-Media-Type": "github.v3; param=machine-man-preview; format=json", + "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": "F862:0322:510DC3:B06CF0:62E1A249" + } + }, + "uuid": "b3d0192b-f564-437c-b705-d1662ba3f8c5", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_archived.json b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_archived.json new file mode 100644 index 0000000000..d43d79bfa4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_archived.json @@ -0,0 +1,77 @@ +{ + "action": "archived", + "projects_v2_item": { + "id": 8083794, + "node_id": "PVTI_lADOBNft-M4AEjBWzgB7WVI", + "project_node_id": "PVT_kwDOBNft-M4AEjBW", + "content_node_id": "I_kwDOFOkjw85OzN4w", + "content_type": "Issue", + "creator": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-08-03T13:13:51Z", + "updated_at": "2022-08-09T23:10:29Z", + "archived_at": "2022-08-09T23:10:29Z" + }, + "changes": { + "archived_at": { + "from": null, + "to": "2022-08-10T01:10:29+02:00" + } + }, + "organization": { + "login": "gsmet-bot-playground", + "id": 81260024, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjgxMjYwMDI0", + "url": "https://api.github.com/orgs/gsmet-bot-playground", + "repos_url": "https://api.github.com/orgs/gsmet-bot-playground/repos", + "events_url": "https://api.github.com/orgs/gsmet-bot-playground/events", + "hooks_url": "https://api.github.com/orgs/gsmet-bot-playground/hooks", + "issues_url": "https://api.github.com/orgs/gsmet-bot-playground/issues", + "members_url": "https://api.github.com/orgs/gsmet-bot-playground/members{/member}", + "public_members_url": "https://api.github.com/orgs/gsmet-bot-playground/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/81260024?v=4", + "description": null + }, + "sender": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 16779846, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTY3Nzk4NDY=" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_created.json b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_created.json new file mode 100644 index 0000000000..be27de4a54 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_created.json @@ -0,0 +1,71 @@ +{ + "action": "created", + "projects_v2_item": { + "id": 8083254, + "node_id": "PVTI_lADOBNft-M4AEjBWzgB7VzY", + "project_node_id": "PVT_kwDOBNft-M4AEjBW", + "content_node_id": "I_kwDOFOkjw85Ozz26", + "content_type": "Issue", + "creator": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-08-03T13:07:08Z", + "updated_at": "2022-08-03T13:07:08Z", + "archived_at": null + }, + "organization": { + "login": "gsmet-bot-playground", + "id": 81260024, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjgxMjYwMDI0", + "url": "https://api.github.com/orgs/gsmet-bot-playground", + "repos_url": "https://api.github.com/orgs/gsmet-bot-playground/repos", + "events_url": "https://api.github.com/orgs/gsmet-bot-playground/events", + "hooks_url": "https://api.github.com/orgs/gsmet-bot-playground/hooks", + "issues_url": "https://api.github.com/orgs/gsmet-bot-playground/issues", + "members_url": "https://api.github.com/orgs/gsmet-bot-playground/members{/member}", + "public_members_url": "https://api.github.com/orgs/gsmet-bot-playground/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/81260024?v=4", + "description": null + }, + "sender": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 16779846, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTY3Nzk4NDY=" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_edited.json b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_edited.json new file mode 100644 index 0000000000..1452de2af4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_edited.json @@ -0,0 +1,77 @@ +{ + "action": "edited", + "projects_v2_item": { + "id": 8083254, + "node_id": "PVTI_lADOBNft-M4AEjBWzgB7VzY", + "project_node_id": "PVT_kwDOBNft-M4AEjBW", + "content_node_id": "I_kwDOFOkjw85Ozz26", + "content_type": "Issue", + "creator": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-08-03T13:07:08Z", + "updated_at": "2022-08-03T13:07:13Z", + "archived_at": null + }, + "changes": { + "field_value": { + "field_node_id": "PVTF_lADOBNft-M4AEjBWzgCnp5Q", + "field_type": "single_select" + } + }, + "organization": { + "login": "gsmet-bot-playground", + "id": 81260024, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjgxMjYwMDI0", + "url": "https://api.github.com/orgs/gsmet-bot-playground", + "repos_url": "https://api.github.com/orgs/gsmet-bot-playground/repos", + "events_url": "https://api.github.com/orgs/gsmet-bot-playground/events", + "hooks_url": "https://api.github.com/orgs/gsmet-bot-playground/hooks", + "issues_url": "https://api.github.com/orgs/gsmet-bot-playground/issues", + "members_url": "https://api.github.com/orgs/gsmet-bot-playground/members{/member}", + "public_members_url": "https://api.github.com/orgs/gsmet-bot-playground/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/81260024?v=4", + "description": null + }, + "sender": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 16779846, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTY3Nzk4NDY=" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_reordered.json b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_reordered.json new file mode 100644 index 0000000000..54d100e869 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_reordered.json @@ -0,0 +1,77 @@ +{ + "action": "reordered", + "projects_v2_item": { + "id": 8083794, + "node_id": "PVTI_lADOBNft-M4AEjBWzgB7WVI", + "project_node_id": "PVT_kwDOBNft-M4AEjBW", + "content_node_id": "I_kwDOFOkjw85OzN4w", + "content_type": "Issue", + "creator": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-08-03T13:13:51Z", + "updated_at": "2022-08-03T13:13:59Z", + "archived_at": null + }, + "changes": { + "previous_projects_v2_item_node_id": { + "from": "PVTI_lADOBNft-M4AEjBWzgB7VzY", + "to": "PVTI_lADOBNft-M4AEjBWzgB7VzY" + } + }, + "organization": { + "login": "gsmet-bot-playground", + "id": 81260024, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjgxMjYwMDI0", + "url": "https://api.github.com/orgs/gsmet-bot-playground", + "repos_url": "https://api.github.com/orgs/gsmet-bot-playground/repos", + "events_url": "https://api.github.com/orgs/gsmet-bot-playground/events", + "hooks_url": "https://api.github.com/orgs/gsmet-bot-playground/hooks", + "issues_url": "https://api.github.com/orgs/gsmet-bot-playground/issues", + "members_url": "https://api.github.com/orgs/gsmet-bot-playground/members{/member}", + "public_members_url": "https://api.github.com/orgs/gsmet-bot-playground/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/81260024?v=4", + "description": null + }, + "sender": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 16779846, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTY3Nzk4NDY=" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_restored.json b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_restored.json new file mode 100644 index 0000000000..cce852514f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/projectsv2item_restored.json @@ -0,0 +1,77 @@ +{ + "action": "restored", + "projects_v2_item": { + "id": 8083254, + "node_id": "PVTI_lADOBNft-M4AEjBWzgB7VzY", + "project_node_id": "PVT_kwDOBNft-M4AEjBW", + "content_node_id": "I_kwDOFOkjw85Ozz26", + "content_type": "Issue", + "creator": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-08-03T13:07:08Z", + "updated_at": "2022-08-03T13:13:39Z", + "archived_at": null + }, + "changes": { + "archived_at": { + "from": "2022-08-03T15:09:02+02:00", + "to": null + } + }, + "organization": { + "login": "gsmet-bot-playground", + "id": 81260024, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjgxMjYwMDI0", + "url": "https://api.github.com/orgs/gsmet-bot-playground", + "repos_url": "https://api.github.com/orgs/gsmet-bot-playground/repos", + "events_url": "https://api.github.com/orgs/gsmet-bot-playground/events", + "hooks_url": "https://api.github.com/orgs/gsmet-bot-playground/hooks", + "issues_url": "https://api.github.com/orgs/gsmet-bot-playground/issues", + "members_url": "https://api.github.com/orgs/gsmet-bot-playground/members{/member}", + "public_members_url": "https://api.github.com/orgs/gsmet-bot-playground/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/81260024?v=4", + "description": null + }, + "sender": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 16779846, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTY3Nzk4NDY=" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/starred.json b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/starred.json new file mode 100644 index 0000000000..14da1ff3cf --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/starred.json @@ -0,0 +1,126 @@ +{ + "action": "created", + "starred_at": "2022-05-31T17:24:36Z", + "repository": { + "id": 313384129, + "node_id": "MDEwOlJlcG9zaXRvcnkzMTMzODQxMjk=", + "name": "quarkus-bot-java-playground", + "full_name": "gsmet/quarkus-bot-java-playground", + "private": false, + "owner": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/gsmet/quarkus-bot-java-playground", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground", + "forks_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/forks", + "keys_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/teams", + "hooks_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/hooks", + "issue_events_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/issues/events{/number}", + "events_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/events", + "assignees_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/assignees{/user}", + "branches_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/branches{/branch}", + "tags_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/tags", + "blobs_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/statuses/{sha}", + "languages_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/languages", + "stargazers_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/stargazers", + "contributors_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/contributors", + "subscribers_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/subscribers", + "subscription_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/subscription", + "commits_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/contents/{+path}", + "compare_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/merges", + "archive_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/downloads", + "issues_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/issues{/number}", + "pulls_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/pulls{/number}", + "milestones_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/milestones{/number}", + "notifications_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/labels{/name}", + "releases_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/releases{/id}", + "deployments_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/deployments", + "created_at": "2020-11-16T17:55:53Z", + "updated_at": "2022-05-31T17:24:36Z", + "pushed_at": "2022-05-30T10:55:11Z", + "git_url": "git://github.com/gsmet/quarkus-bot-java-playground.git", + "ssh_url": "git@github.com:gsmet/quarkus-bot-java-playground.git", + "clone_url": "https://github.com/gsmet/quarkus-bot-java-playground.git", + "svn_url": "https://github.com/gsmet/quarkus-bot-java-playground", + "homepage": null, + "size": 89, + "stargazers_count": 1, + "watchers_count": 1, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 2, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 36, + "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 2, + "open_issues": 36, + "watchers": 1, + "default_branch": "main" + }, + "sender": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 13005535, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTMwMDU1MzU=" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_job.json b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_job.json new file mode 100644 index 0000000000..b511765106 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_job.json @@ -0,0 +1,190 @@ +{ + "action": "completed", + "workflow_job": { + "id": 6653410527, + "run_id": 2408553341, + "run_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/actions/runs/2408553341", + "run_attempt": 1, + "node_id": "CR_kwDOEq3cwc8AAAABjJL83w", + "head_sha": "5dd2dadfbdc2a722c08a8ad42ae4e26e3e731042", + "url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/actions/jobs/6653410527", + "html_url": "https://github.com/gsmet/quarkus-bot-java-playground/runs/6653410527?check_suite_focus=true", + "status": "completed", + "conclusion": "failure", + "started_at": "2022-05-30T10:55:25Z", + "completed_at": "2022-05-30T10:55:57Z", + "name": "JVM Tests - JDK JDK16", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2022-05-30T10:55:25.000Z", + "completed_at": "2022-05-30T10:55:27.000Z" + }, + { + "name": "Run actions/checkout@v2", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2022-05-30T10:55:27.000Z", + "completed_at": "2022-05-30T10:55:27.000Z" + }, + { + "name": "Build with Maven", + "status": "completed", + "conclusion": "failure", + "number": 4, + "started_at": "2022-05-30T10:55:35.000Z", + "completed_at": "2022-05-30T10:55:55.000Z" + }, + { + "name": "Post Run actions/checkout@v2", + "status": "completed", + "conclusion": "success", + "number": 10, + "started_at": "2022-05-30T10:55:55.000Z", + "completed_at": "2022-05-30T10:55:56.000Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 11, + "started_at": "2022-05-30T10:55:56.000Z", + "completed_at": "2022-05-30T10:55:56.000Z" + } + ], + "check_run_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/check-runs/6653410527", + "labels": [ + "ubuntu-latest" + ], + "runner_id": 10, + "runner_name": "GitHub Actions 10", + "runner_group_id": 2, + "runner_group_name": "GitHub Actions" + }, + "repository": { + "id": 313384129, + "node_id": "MDEwOlJlcG9zaXRvcnkzMTMzODQxMjk=", + "name": "quarkus-bot-java-playground", + "full_name": "gsmet/quarkus-bot-java-playground", + "private": false, + "owner": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/gsmet/quarkus-bot-java-playground", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground", + "forks_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/forks", + "keys_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/teams", + "hooks_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/hooks", + "issue_events_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/issues/events{/number}", + "events_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/events", + "assignees_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/assignees{/user}", + "branches_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/branches{/branch}", + "tags_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/tags", + "blobs_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/statuses/{sha}", + "languages_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/languages", + "stargazers_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/stargazers", + "contributors_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/contributors", + "subscribers_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/subscribers", + "subscription_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/subscription", + "commits_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/contents/{+path}", + "compare_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/merges", + "archive_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/downloads", + "issues_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/issues{/number}", + "pulls_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/pulls{/number}", + "milestones_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/milestones{/number}", + "notifications_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/labels{/name}", + "releases_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/releases{/id}", + "deployments_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/deployments", + "created_at": "2020-11-16T17:55:53Z", + "updated_at": "2021-12-22T17:20:52Z", + "pushed_at": "2022-05-30T10:55:11Z", + "git_url": "git://github.com/gsmet/quarkus-bot-java-playground.git", + "ssh_url": "git@github.com:gsmet/quarkus-bot-java-playground.git", + "clone_url": "https://github.com/gsmet/quarkus-bot-java-playground.git", + "svn_url": "https://github.com/gsmet/quarkus-bot-java-playground", + "homepage": null, + "size": 88, + "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": 2, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 36, + "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 2, + "open_issues": 36, + "watchers": 0, + "default_branch": "main" + }, + "sender": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 13005535, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTMwMDU1MzU=" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_run.json b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_run.json index 1e4f2d6ef0..2aecb178c3 100644 --- a/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_run.json +++ b/src/test/resources/org/kohsuke/github/GHEventPayloadTest/workflow_run.json @@ -18,6 +18,8 @@ "pull_requests": [], "created_at": "2021-03-23T18:35:26Z", "updated_at": "2021-03-23T18:35:43Z", + "run_attempt": 1, + "run_started_at": "2021-03-23T18:35:26Z", "jobs_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/actions/runs/680604745/jobs", "logs_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/actions/runs/680604745/logs", "check_suite_url": "https://api.github.com/repos/gsmet/quarkus-bot-java-playground/check-suites/2327154397", @@ -304,4 +306,4 @@ "id": 13005535, "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMTMwMDU1MzU=" } -} \ No newline at end of file +} diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/orgs_hub4j-test-org-2.json similarity index 82% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-2.json rename to src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/orgs_hub4j-test-org-2.json index a97e080b15..162ceb1c73 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-2.json +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/orgs_hub4j-test-org-2.json @@ -20,7 +20,7 @@ "is_verified": false, "has_organization_projects": true, "has_repository_projects": true, - "public_repos": 13, + "public_repos": 49, "public_gists": 0, "followers": 0, "following": 0, @@ -28,23 +28,28 @@ "created_at": "2014-05-10T19:39:11Z", "updated_at": "2020-06-04T05:56:10Z", "type": "Organization", - "total_private_repos": 2, - "owned_private_repos": 2, + "total_private_repos": 3, + "owned_private_repos": 3, "private_gists": 0, - "disk_usage": 152, + "disk_usage": 11979, "collaborators": 0, "billing_email": "kk@kohsuke.org", "default_repository_permission": "none", "members_can_create_repositories": false, "two_factor_requirement_enabled": false, + "members_allowed_repository_creation_type": "none", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, "members_can_create_pages": true, + "members_can_fork_private_repositories": false, "members_can_create_public_pages": true, "members_can_create_private_pages": true, "plan": { "name": "free", "space": 976562499, "private_repos": 10000, - "filled_seats": 22, + "filled_seats": 35, "seats": 3 } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/orgs_hub4j-test-org_teams-4.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/orgs_hub4j-test-org_teams-4.json new file mode 100644 index 0000000000..86647e7f73 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/orgs_hub4j-test-org_teams-4.json @@ -0,0 +1,49 @@ +{ + "name": "create-team-test", + "id": 5898310, + "node_id": "T_kwDOAHMfo84AWgBG", + "slug": "create-team-test", + "description": null, + "privacy": "secret", + "url": "https://api.github.com/organizations/7544739/team/5898310", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/create-team-test", + "members_url": "https://api.github.com/organizations/7544739/team/5898310/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/5898310/repos", + "permission": "pull", + "parent": null, + "created_at": "2022-04-06T13:29:41Z", + "updated_at": "2022-04-06T13:29:41Z", + "members_count": 1, + "repos_count": 0, + "organization": { + "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://avatars.githubusercontent.com/u/7544739?v=4", + "description": "Hub4j Test Org Description (this could be null or blank too)", + "name": "Hub4j Test Org Name (this could be null or blank too)", + "company": null, + "blog": "https://hub4j.url.io/could/be/null", + "location": "Hub4j Test Org Location (this could be null or blank too)", + "email": "hub4jtestorgemail@could.be.null.com", + "twitter_username": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 49, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2020-06-04T05:56:10Z", + "type": "Organization" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..286c9b38ae --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/repos_hub4j-test-org_github-api-3.json @@ -0,0 +1,364 @@ +{ + "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://avatars.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": "2021-11-09T20:13:29Z", + "pushed_at": "2022-03-04T11:02:08Z", + "git_url": "git://github.com/hub4j-test-org/github-api.git", + "ssh_url": "git@github.com:hub4j-test-org/github-api.git", + "clone_url": "https://github.com/hub4j-test-org/github-api.git", + "svn_url": "https://github.com/hub4j-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 19045, + "stargazers_count": 0, + "watchers_count": 0, + "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": 7, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 7, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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://avatars.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": "2022-04-05T15:53:55Z", + "pushed_at": "2022-04-06T13:21:45Z", + "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": 39832, + "stargazers_count": 878, + "watchers_count": 878, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 601, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 101, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 601, + "open_issues": 101, + "watchers": 878, + "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://avatars.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": "2022-04-05T15:53:55Z", + "pushed_at": "2022-04-06T13:21:45Z", + "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": 39832, + "stargazers_count": 878, + "watchers_count": 878, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 601, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 101, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 601, + "open_issues": 101, + "watchers": 878, + "default_branch": "main" + }, + "network_count": 601, + "subscribers_count": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/repos_hub4j-test-org_github-api_teams-6.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/repos_hub4j-test-org_github-api_teams-6.json new file mode 100644 index 0000000000..3c5dd713ab --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/repos_hub4j-test-org_github-api_teams-6.json @@ -0,0 +1,86 @@ +[ + { + "name": "Contributors", + "id": 4882699, + "node_id": "MDQ6VGVhbTQ4ODI2OTk=", + "slug": "contributors", + "description": "", + "privacy": "closed", + "url": "https://api.github.com/organizations/7544739/team/4882699", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/contributors", + "members_url": "https://api.github.com/organizations/7544739/team/4882699/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/4882699/repos", + "permission": "admin", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "parent": null + }, + { + "name": "create-team-test", + "id": 5898310, + "node_id": "T_kwDOAHMfo84AWgBG", + "slug": "create-team-test", + "description": null, + "privacy": "secret", + "url": "https://api.github.com/organizations/7544739/team/5898310", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/create-team-test", + "members_url": "https://api.github.com/organizations/7544739/team/5898310/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/5898310/repos", + "permission": "pull", + "permissions": { + "admin": false, + "maintain": false, + "push": false, + "triage": false, + "pull": true + }, + "parent": null + }, + { + "name": "dummy-team", + "id": 3451996, + "node_id": "MDQ6VGVhbTM0NTE5OTY=", + "slug": "dummy-team", + "description": "Updated by API TestModified", + "privacy": "closed", + "url": "https://api.github.com/organizations/7544739/team/3451996", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/dummy-team", + "members_url": "https://api.github.com/organizations/7544739/team/3451996/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/3451996/repos", + "permission": "push", + "permissions": { + "admin": false, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "parent": null + }, + { + "name": "tricky-team", + "id": 3454508, + "node_id": "MDQ6VGVhbTM0NTQ1MDg=", + "slug": "tricky-team", + "description": "", + "privacy": "secret", + "url": "https://api.github.com/organizations/7544739/team/3454508", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/tricky-team", + "members_url": "https://api.github.com/organizations/7544739/team/3454508/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/3454508/repos", + "permission": "push", + "permissions": { + "admin": false, + "maintain": false, + "push": true, + "triage": true, + "pull": true + }, + "parent": null + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/user-1.json new file mode 100644 index 0000000000..cfe0f3a0c9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/__files/user-1.json @@ -0,0 +1,46 @@ +{ + "login": "jgangemi", + "id": 1831839, + "node_id": "MDQ6VXNlcjE4MzE4Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1831839?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jgangemi", + "html_url": "https://github.com/jgangemi", + "followers_url": "https://api.github.com/users/jgangemi/followers", + "following_url": "https://api.github.com/users/jgangemi/following{/other_user}", + "gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions", + "organizations_url": "https://api.github.com/users/jgangemi/orgs", + "repos_url": "https://api.github.com/users/jgangemi/repos", + "events_url": "https://api.github.com/users/jgangemi/events{/privacy}", + "received_events_url": "https://api.github.com/users/jgangemi/received_events", + "type": "User", + "site_admin": false, + "name": "Jae Gangemi", + "company": null, + "blog": "", + "location": null, + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 39, + "public_gists": 1, + "followers": 1, + "following": 0, + "created_at": "2012-06-08T19:54:02Z", + "updated_at": "2022-03-09T12:59:44Z", + "private_gists": 0, + "total_private_repos": 9, + "owned_private_repos": 9, + "disk_usage": 16623, + "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/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/organizations_7544739_team_5898310_repos_hub4j-test-org_github-api-5.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/organizations_7544739_team_5898310_repos_hub4j-test-org_github-api-5.json new file mode 100644 index 0000000000..96ef708e49 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/organizations_7544739_team_5898310_repos_hub4j-test-org_github-api-5.json @@ -0,0 +1,47 @@ +{ + "id": "dcb7a2b8-ec53-4dc9-8f53-472ac3f5fc4f", + "name": "organizations_7544739_team_5898310_repos_hub4j-test-org_github-api", + "request": { + "url": "/organizations/7544739/team/5898310/repos/hub4j-test-org/github-api", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:29:42 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4965", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "35", + "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": "C149:5A29:1184F01:205315A:624D95C6" + } + }, + "uuid": "dcb7a2b8-ec53-4dc9-8f53-472ac3f5fc4f", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..4229ec863b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/orgs_hub4j-test-org-2.json @@ -0,0 +1,48 @@ +{ + "id": "7a68190a-3581-42f6-b990-5648ff704212", + "name": "orgs_hub4j-test-org", + "request": { + "url": "/orgs/hub4j-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_hub4j-test-org-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:29:40 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"9c48b6d97946cc9cca7a7eba9df130c47c977fea9e3ed36222d79a378e2ff6c8\"", + "Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4968", + "X-RateLimit-Reset": "1649254722", + "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'", + "X-GitHub-Request-Id": "C144:0B54:FD88A8:1ED6A36:624D95C4" + } + }, + "uuid": "7a68190a-3581-42f6-b990-5648ff704212", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/orgs_hub4j-test-org_teams-4.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/orgs_hub4j-test-org_teams-4.json new file mode 100644 index 0000000000..af7c93acbe --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/orgs_hub4j-test-org_teams-4.json @@ -0,0 +1,55 @@ +{ + "id": "3ffa4da9-2cec-422d-aa3e-11c1ab5c59db", + "name": "orgs_hub4j-test-org_teams", + "request": { + "url": "/orgs/hub4j-test-org/teams", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"name\":\"create-team-test\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "orgs_hub4j-test-org_teams-4.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:29:41 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"c55b8f7b2a21e5ce24b0a46f885f959dd9d7ffa88197ceabe76128307779cb4a\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "admin:org, repo", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4966", + "X-RateLimit-Reset": "1649254722", + "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": "C148:4D1B:D01588:22CF75B:624D95C5", + "Location": "https://api.github.com/organizations/7544739/team/5898310" + } + }, + "uuid": "3ffa4da9-2cec-422d-aa3e-11c1ab5c59db", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..bdd7712518 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/repos_hub4j-test-org_github-api-3.json @@ -0,0 +1,48 @@ +{ + "id": "dc5d6a77-89fc-4179-8ad9-f0482c251b90", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:29:41 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"f659ce60400fb1f0bd592ef4533029ee2aca8f3785088fc086eb3c10b2548f0f\"", + "Last-Modified": "Tue, 09 Nov 2021 20:13:29 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4967", + "X-RateLimit-Reset": "1649254722", + "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": "C147:6347:FCF879:1F165D4:624D95C4" + } + }, + "uuid": "dc5d6a77-89fc-4179-8ad9-f0482c251b90", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/repos_hub4j-test-org_github-api_teams-6.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/repos_hub4j-test-org_github-api_teams-6.json new file mode 100644 index 0000000000..b94c470d78 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/repos_hub4j-test-org_github-api_teams-6.json @@ -0,0 +1,47 @@ +{ + "id": "beab6b95-c5a0-4e0d-965f-7303beebc45c", + "name": "repos_hub4j-test-org_github-api_teams", + "request": { + "url": "/repos/hub4j-test-org/github-api/teams", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_teams-6.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:29:42 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"54dcceb0bb517b6a007876b4702f6b5fd08e302dc9b2fdb3147c4c7e1dd09cb3\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4964", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "36", + "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": "C14A:54E4:10C3191:22E3B54:624D95C6" + } + }, + "uuid": "beab6b95-c5a0-4e0d-965f-7303beebc45c", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/user-1.json similarity index 60% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/user-1.json rename to src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/user-1.json index 83e7278a28..c0e368656c 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/mappings/user-1.json +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithNullPerm/mappings/user-1.json @@ -1,5 +1,5 @@ { - "id": "cc263bb2-b202-43d7-b2cd-ee6f3ad65aec", + "id": "8a923dcb-86b8-40d6-b636-5501420fbe02", "name": "user", "request": { "url": "/user", @@ -15,22 +15,23 @@ "bodyFileName": "user-1.json", "headers": { "Server": "GitHub.com", - "Date": "Sat, 11 Sep 2021 07:03:03 GMT", + "Date": "Wed, 06 Apr 2022 13:29:38 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"1e4a53189cfad918f0dc47242f1cf6851fa90ece03a5a078f56dcb6d39398c79\"", - "Last-Modified": "Fri, 10 Sep 2021 14:35:52 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"65ac0e73527e3adc4df6bbbde94bb21480926587df8832f0bab8a5fc1bc746c9\"", + "Last-Modified": "Wed, 09 Mar 2022 12:59:44 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4936", - "X-RateLimit-Reset": "1631346154", - "X-RateLimit-Used": "64", + "X-RateLimit-Remaining": "4973", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "27", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "D3C4:7B38:72FAE9:789A75:613C54A7" + "X-GitHub-Request-Id": "C139:7D4A:F0B9DC:1DA06D1:624D95C2" } }, - "uuid": "cc263bb2-b202-43d7-b2cd-ee6f3ad65aec", + "uuid": "8a923dcb-86b8-40d6-b636-5501420fbe02", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..162ceb1c73 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/orgs_hub4j-test-org-2.json @@ -0,0 +1,55 @@ +{ + "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://avatars.githubusercontent.com/u/7544739?v=4", + "description": "Hub4j Test Org Description (this could be null or blank too)", + "name": "Hub4j Test Org Name (this could be null or blank too)", + "company": null, + "blog": "https://hub4j.url.io/could/be/null", + "location": "Hub4j Test Org Location (this could be null or blank too)", + "email": "hub4jtestorgemail@could.be.null.com", + "twitter_username": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 49, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2020-06-04T05:56:10Z", + "type": "Organization", + "total_private_repos": 3, + "owned_private_repos": 3, + "private_gists": 0, + "disk_usage": 11979, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "members_allowed_repository_creation_type": "none", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true, + "members_can_fork_private_repositories": false, + "members_can_create_public_pages": true, + "members_can_create_private_pages": true, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 10000, + "filled_seats": 35, + "seats": 3 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/orgs_hub4j-test-org_teams-4.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/orgs_hub4j-test-org_teams-4.json new file mode 100644 index 0000000000..78c71cfa62 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/orgs_hub4j-test-org_teams-4.json @@ -0,0 +1,49 @@ +{ + "name": "create-team-test", + "id": 5898252, + "node_id": "T_kwDOAHMfo84AWgAM", + "slug": "create-team-test", + "description": null, + "privacy": "secret", + "url": "https://api.github.com/organizations/7544739/team/5898252", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/create-team-test", + "members_url": "https://api.github.com/organizations/7544739/team/5898252/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/5898252/repos", + "permission": "pull", + "parent": null, + "created_at": "2022-04-06T13:19:47Z", + "updated_at": "2022-04-06T13:19:47Z", + "members_count": 1, + "repos_count": 0, + "organization": { + "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://avatars.githubusercontent.com/u/7544739?v=4", + "description": "Hub4j Test Org Description (this could be null or blank too)", + "name": "Hub4j Test Org Name (this could be null or blank too)", + "company": null, + "blog": "https://hub4j.url.io/could/be/null", + "location": "Hub4j Test Org Location (this could be null or blank too)", + "email": "hub4jtestorgemail@could.be.null.com", + "twitter_username": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 49, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2020-06-04T05:56:10Z", + "type": "Organization" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..418d292cb7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/repos_hub4j-test-org_github-api-3.json @@ -0,0 +1,364 @@ +{ + "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://avatars.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": "2021-11-09T20:13:29Z", + "pushed_at": "2022-03-04T11:02:08Z", + "git_url": "git://github.com/hub4j-test-org/github-api.git", + "ssh_url": "git@github.com:hub4j-test-org/github-api.git", + "clone_url": "https://github.com/hub4j-test-org/github-api.git", + "svn_url": "https://github.com/hub4j-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 19045, + "stargazers_count": 0, + "watchers_count": 0, + "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": 7, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 7, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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://avatars.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": "2022-04-05T15:53:55Z", + "pushed_at": "2022-04-05T05:40:16Z", + "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": 39832, + "stargazers_count": 878, + "watchers_count": 878, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 601, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 101, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 601, + "open_issues": 101, + "watchers": 878, + "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://avatars.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": "2022-04-05T15:53:55Z", + "pushed_at": "2022-04-05T05:40:16Z", + "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": 39832, + "stargazers_count": 878, + "watchers_count": 878, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 601, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 101, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 601, + "open_issues": 101, + "watchers": 878, + "default_branch": "main" + }, + "network_count": 601, + "subscribers_count": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/repos_hub4j-test-org_github-api_teams-6.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/repos_hub4j-test-org_github-api_teams-6.json new file mode 100644 index 0000000000..5886a2746b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/repos_hub4j-test-org_github-api_teams-6.json @@ -0,0 +1,86 @@ +[ + { + "name": "Contributors", + "id": 4882699, + "node_id": "MDQ6VGVhbTQ4ODI2OTk=", + "slug": "contributors", + "description": "", + "privacy": "closed", + "url": "https://api.github.com/organizations/7544739/team/4882699", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/contributors", + "members_url": "https://api.github.com/organizations/7544739/team/4882699/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/4882699/repos", + "permission": "admin", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "parent": null + }, + { + "name": "create-team-test", + "id": 5898252, + "node_id": "T_kwDOAHMfo84AWgAM", + "slug": "create-team-test", + "description": null, + "privacy": "secret", + "url": "https://api.github.com/organizations/7544739/team/5898252", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/create-team-test", + "members_url": "https://api.github.com/organizations/7544739/team/5898252/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/5898252/repos", + "permission": "push", + "permissions": { + "admin": false, + "maintain": false, + "push": true, + "triage": true, + "pull": true + }, + "parent": null + }, + { + "name": "dummy-team", + "id": 3451996, + "node_id": "MDQ6VGVhbTM0NTE5OTY=", + "slug": "dummy-team", + "description": "Updated by API TestModified", + "privacy": "closed", + "url": "https://api.github.com/organizations/7544739/team/3451996", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/dummy-team", + "members_url": "https://api.github.com/organizations/7544739/team/3451996/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/3451996/repos", + "permission": "push", + "permissions": { + "admin": false, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "parent": null + }, + { + "name": "tricky-team", + "id": 3454508, + "node_id": "MDQ6VGVhbTM0NTQ1MDg=", + "slug": "tricky-team", + "description": "", + "privacy": "secret", + "url": "https://api.github.com/organizations/7544739/team/3454508", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/tricky-team", + "members_url": "https://api.github.com/organizations/7544739/team/3454508/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/3454508/repos", + "permission": "push", + "permissions": { + "admin": false, + "maintain": false, + "push": true, + "triage": true, + "pull": true + }, + "parent": null + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/user-1.json new file mode 100644 index 0000000000..cfe0f3a0c9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/__files/user-1.json @@ -0,0 +1,46 @@ +{ + "login": "jgangemi", + "id": 1831839, + "node_id": "MDQ6VXNlcjE4MzE4Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1831839?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jgangemi", + "html_url": "https://github.com/jgangemi", + "followers_url": "https://api.github.com/users/jgangemi/followers", + "following_url": "https://api.github.com/users/jgangemi/following{/other_user}", + "gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions", + "organizations_url": "https://api.github.com/users/jgangemi/orgs", + "repos_url": "https://api.github.com/users/jgangemi/repos", + "events_url": "https://api.github.com/users/jgangemi/events{/privacy}", + "received_events_url": "https://api.github.com/users/jgangemi/received_events", + "type": "User", + "site_admin": false, + "name": "Jae Gangemi", + "company": null, + "blog": "", + "location": null, + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 39, + "public_gists": 1, + "followers": 1, + "following": 0, + "created_at": "2012-06-08T19:54:02Z", + "updated_at": "2022-03-09T12:59:44Z", + "private_gists": 0, + "total_private_repos": 9, + "owned_private_repos": 9, + "disk_usage": 16623, + "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/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/organizations_7544739_team_5898252_repos_hub4j-test-org_github-api-5.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/organizations_7544739_team_5898252_repos_hub4j-test-org_github-api-5.json new file mode 100644 index 0000000000..c9ac00f2ff --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/organizations_7544739_team_5898252_repos_hub4j-test-org_github-api-5.json @@ -0,0 +1,47 @@ +{ + "id": "dc4155d3-69b0-4b94-8b18-6259ae79dff7", + "name": "organizations_7544739_team_5898252_repos_hub4j-test-org_github-api", + "request": { + "url": "/organizations/7544739/team/5898252/repos/hub4j-test-org/github-api", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"permission\":\"push\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:19:47 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4978", + "X-RateLimit-Reset": "1649254722", + "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": "F72C:1B85:D1A03D:2972A6A:624D9373" + } + }, + "uuid": "dc4155d3-69b0-4b94-8b18-6259ae79dff7", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..889b20d7c6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/orgs_hub4j-test-org-2.json @@ -0,0 +1,48 @@ +{ + "id": "f38d985a-47ef-4abb-8555-e10dd3b398f1", + "name": "orgs_hub4j-test-org", + "request": { + "url": "/orgs/hub4j-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_hub4j-test-org-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:19: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/\"9c48b6d97946cc9cca7a7eba9df130c47c977fea9e3ed36222d79a378e2ff6c8\"", + "Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4981", + "X-RateLimit-Reset": "1649254722", + "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": "F729:0DD6:B2D800:2174337:624D9371" + } + }, + "uuid": "f38d985a-47ef-4abb-8555-e10dd3b398f1", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/orgs_hub4j-test-org_teams-4.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/orgs_hub4j-test-org_teams-4.json new file mode 100644 index 0000000000..2bd16c4c6b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/orgs_hub4j-test-org_teams-4.json @@ -0,0 +1,55 @@ +{ + "id": "1a8285bb-47f1-4fcc-ba89-5561a234e341", + "name": "orgs_hub4j-test-org_teams", + "request": { + "url": "/orgs/hub4j-test-org/teams", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"name\":\"create-team-test\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "orgs_hub4j-test-org_teams-4.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:19:47 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"246d7c8dfe769b8421f517f58d96f26b3e98841edd53107a9d3efe8b6a09ee41\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "admin:org, repo", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4979", + "X-RateLimit-Reset": "1649254722", + "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": "F72B:8348:D8205D:2794AFE:624D9372", + "Location": "https://api.github.com/organizations/7544739/team/5898252" + } + }, + "uuid": "1a8285bb-47f1-4fcc-ba89-5561a234e341", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..750fde2bf2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/repos_hub4j-test-org_github-api-3.json @@ -0,0 +1,48 @@ +{ + "id": "102f424b-4c0b-4545-b5d3-90ff7c66ed10", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:19: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/\"f659ce60400fb1f0bd592ef4533029ee2aca8f3785088fc086eb3c10b2548f0f\"", + "Last-Modified": "Tue, 09 Nov 2021 20:13:29 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4980", + "X-RateLimit-Reset": "1649254722", + "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": "F72A:27B5:28BC3D:8EBEFF:624D9372" + } + }, + "uuid": "102f424b-4c0b-4545-b5d3-90ff7c66ed10", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/repos_hub4j-test-org_github-api_teams-6.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/repos_hub4j-test-org_github-api_teams-6.json new file mode 100644 index 0000000000..f8b7581e35 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/repos_hub4j-test-org_github-api_teams-6.json @@ -0,0 +1,47 @@ +{ + "id": "6fee3f98-4eab-406f-bb72-b4ec59a61353", + "name": "repos_hub4j-test-org_github-api_teams", + "request": { + "url": "/repos/hub4j-test-org/github-api/teams", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_teams-6.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:19:48 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"bbb7dfb47509650a485809a1b671e6a145fcdb01e4c2ae4b1e279aba283970c3\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4977", + "X-RateLimit-Reset": "1649254722", + "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": "F72D:08CD:C36DCD:23BE34E:624D9374" + } + }, + "uuid": "6fee3f98-4eab-406f-bb72-b4ec59a61353", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/user-1.json similarity index 58% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/user-1.json rename to src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/user-1.json index 7d89468cbe..16d5b8b9f9 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/user-1.json +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoPerm/mappings/user-1.json @@ -1,5 +1,5 @@ { - "id": "c5a67302-c980-47a8-b400-545cf06e8ae7", + "id": "1e877c4a-980d-4d3d-ab86-7525f99558ef", "name": "user", "request": { "url": "/user", @@ -15,32 +15,34 @@ "bodyFileName": "user-1.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:27 GMT", + "Date": "Wed, 06 Apr 2022 13:19: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/\"879f35eed38dcc75ca2b3a8999425e0d51678f4c73ffade3c5bcc853b59245b6\"", - "Last-Modified": "Tue, 23 Mar 2021 17:35:45 GMT", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"65ac0e73527e3adc4df6bbbde94bb21480926587df8832f0bab8a5fc1bc746c9\"", + "Last-Modified": "Wed, 09 Mar 2022 12:59:44 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4977", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "23", + "X-RateLimit-Remaining": "4986", + "X-RateLimit-Reset": "1649254722", + "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": "D5A4:4AE4:1010390:10B0A9B:605C67AB" + "X-GitHub-Request-Id": "F727:8122:1167F00:208AC47:624D936F" } }, - "uuid": "c5a67302-c980-47a8-b400-545cf06e8ae7", + "uuid": "1e877c4a-980d-4d3d-ab86-7525f99558ef", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..ed712b6a45 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/orgs_hub4j-test-org-2.json @@ -0,0 +1,55 @@ +{ + "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://avatars.githubusercontent.com/u/7544739?v=4", + "description": "Hub4j Test Org Description (this could be null or blank too)", + "name": "Hub4j Test Org Name (this could be null or blank too)", + "company": null, + "blog": "https://hub4j.url.io/could/be/null", + "location": "Hub4j Test Org Location (this could be null or blank too)", + "email": "hub4jtestorgemail@could.be.null.com", + "twitter_username": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 48, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2020-06-04T05:56:10Z", + "type": "Organization", + "total_private_repos": 3, + "owned_private_repos": 3, + "private_gists": 0, + "disk_usage": 11979, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "members_allowed_repository_creation_type": "none", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true, + "members_can_fork_private_repositories": false, + "members_can_create_public_pages": true, + "members_can_create_private_pages": true, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 10000, + "filled_seats": 35, + "seats": 3 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/orgs_hub4j-test-org_teams-4.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/orgs_hub4j-test-org_teams-4.json new file mode 100644 index 0000000000..df154ce218 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/orgs_hub4j-test-org_teams-4.json @@ -0,0 +1,49 @@ +{ + "name": "create-team-test", + "id": 5819578, + "node_id": "T_kwDOAHMfo84AWMy6", + "slug": "create-team-test", + "description": null, + "privacy": "secret", + "url": "https://api.github.com/organizations/7544739/team/5819578", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/create-team-test", + "members_url": "https://api.github.com/organizations/7544739/team/5819578/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/5819578/repos", + "permission": "pull", + "parent": null, + "created_at": "2022-03-18T21:50:11Z", + "updated_at": "2022-03-18T21:50:11Z", + "members_count": 1, + "repos_count": 0, + "organization": { + "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://avatars.githubusercontent.com/u/7544739?v=4", + "description": "Hub4j Test Org Description (this could be null or blank too)", + "name": "Hub4j Test Org Name (this could be null or blank too)", + "company": null, + "blog": "https://hub4j.url.io/could/be/null", + "location": "Hub4j Test Org Location (this could be null or blank too)", + "email": "hub4jtestorgemail@could.be.null.com", + "twitter_username": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 48, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2020-06-04T05:56:10Z", + "type": "Organization" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..8bb9249af9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/repos_hub4j-test-org_github-api-3.json @@ -0,0 +1,364 @@ +{ + "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://avatars.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": "2021-11-09T20:13:29Z", + "pushed_at": "2022-03-04T11:02:08Z", + "git_url": "git://github.com/hub4j-test-org/github-api.git", + "ssh_url": "git@github.com:hub4j-test-org/github-api.git", + "clone_url": "https://github.com/hub4j-test-org/github-api.git", + "svn_url": "https://github.com/hub4j-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 19045, + "stargazers_count": 0, + "watchers_count": 0, + "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": 7, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 7, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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://avatars.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": "2022-03-18T10:24:59Z", + "pushed_at": "2022-03-15T12:49:31Z", + "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": 39710, + "stargazers_count": 873, + "watchers_count": 873, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 599, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 100, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 599, + "open_issues": 100, + "watchers": 873, + "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://avatars.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": "2022-03-18T10:24:59Z", + "pushed_at": "2022-03-15T12:49:31Z", + "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": 39710, + "stargazers_count": 873, + "watchers_count": 873, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 599, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 100, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 599, + "open_issues": 100, + "watchers": 873, + "default_branch": "main" + }, + "network_count": 599, + "subscribers_count": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/user-1.json new file mode 100644 index 0000000000..cfe0f3a0c9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/__files/user-1.json @@ -0,0 +1,46 @@ +{ + "login": "jgangemi", + "id": 1831839, + "node_id": "MDQ6VXNlcjE4MzE4Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1831839?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jgangemi", + "html_url": "https://github.com/jgangemi", + "followers_url": "https://api.github.com/users/jgangemi/followers", + "following_url": "https://api.github.com/users/jgangemi/following{/other_user}", + "gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions", + "organizations_url": "https://api.github.com/users/jgangemi/orgs", + "repos_url": "https://api.github.com/users/jgangemi/repos", + "events_url": "https://api.github.com/users/jgangemi/events{/privacy}", + "received_events_url": "https://api.github.com/users/jgangemi/received_events", + "type": "User", + "site_admin": false, + "name": "Jae Gangemi", + "company": null, + "blog": "", + "location": null, + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 39, + "public_gists": 1, + "followers": 1, + "following": 0, + "created_at": "2012-06-08T19:54:02Z", + "updated_at": "2022-03-09T12:59:44Z", + "private_gists": 0, + "total_private_repos": 9, + "owned_private_repos": 9, + "disk_usage": 16623, + "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/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/organizations_7544739_team_5819578_repos_hub4j-test-org_github-api-5.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/organizations_7544739_team_5819578_repos_hub4j-test-org_github-api-5.json new file mode 100644 index 0000000000..1d1ac06e2d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/organizations_7544739_team_5819578_repos_hub4j-test-org_github-api-5.json @@ -0,0 +1,47 @@ +{ + "id": "e4a6ce2a-a5dc-4869-ae9d-50c5723ab190", + "name": "organizations_7544739_team_5819578_repos_hub4j-test-org_github-api", + "request": { + "url": "/organizations/7544739/team/5819578/repos/hub4j-test-org/github-api", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"permission\":\"triage\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 18 Mar 2022 21:50:12 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4937", + "X-RateLimit-Reset": "1647642206", + "X-RateLimit-Used": "63", + "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": "F648:32DC:3A5D6B:6F68FD:6234FE94" + } + }, + "uuid": "e4a6ce2a-a5dc-4869-ae9d-50c5723ab190", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..1255c29fa7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/orgs_hub4j-test-org-2.json @@ -0,0 +1,48 @@ +{ + "id": "c3064708-e979-4ffa-a4fc-2260ae7dc65e", + "name": "orgs_hub4j-test-org", + "request": { + "url": "/orgs/hub4j-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_hub4j-test-org-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 18 Mar 2022 21:50: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/\"7158b1627effd511902a75ae99efc0c0361a7d11186ee2a7540a75e7b63c2d4b\"", + "Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4940", + "X-RateLimit-Reset": "1647642206", + "X-RateLimit-Used": "60", + "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": "F645:75A6:3865AE:6EF8AD:6234FE92" + } + }, + "uuid": "c3064708-e979-4ffa-a4fc-2260ae7dc65e", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/orgs_hub4j-test-org_teams-4.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/orgs_hub4j-test-org_teams-4.json new file mode 100644 index 0000000000..60277c9e72 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/orgs_hub4j-test-org_teams-4.json @@ -0,0 +1,55 @@ +{ + "id": "fc36b944-0b1c-4083-83a5-db23d8ed293d", + "name": "orgs_hub4j-test-org_teams", + "request": { + "url": "/orgs/hub4j-test-org/teams", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"name\":\"create-team-test\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "orgs_hub4j-test-org_teams-4.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 18 Mar 2022 21:50: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": "\"cc1c573c70ea994341e5c3089cfad47333e71adbce083f22824b8f57c2167dea\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "admin:org, repo", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4938", + "X-RateLimit-Reset": "1647642206", + "X-RateLimit-Used": "62", + "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": "F647:6593:2128DD:4BBC82:6234FE93", + "Location": "https://api.github.com/organizations/7544739/team/5819578" + } + }, + "uuid": "fc36b944-0b1c-4083-83a5-db23d8ed293d", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..fcd2110978 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/repos_hub4j-test-org_github-api-3.json @@ -0,0 +1,48 @@ +{ + "id": "97d37ed3-37c5-4b6c-a94a-7e33142295c1", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Fri, 18 Mar 2022 21:50: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/\"f659ce60400fb1f0bd592ef4533029ee2aca8f3785088fc086eb3c10b2548f0f\"", + "Last-Modified": "Tue, 09 Nov 2021 20:13:29 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4939", + "X-RateLimit-Reset": "1647642206", + "X-RateLimit-Used": "61", + "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": "F646:3A72:2CDAC5:819DC7:6234FE93" + } + }, + "uuid": "97d37ed3-37c5-4b6c-a94a-7e33142295c1", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/user-1.json similarity index 60% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/user-1.json rename to src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/user-1.json index ef3780b264..e2ae676f8c 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/user-1.json +++ b/src/test/resources/org/kohsuke/github/GHOrganizationTest/wiremock/testCreateTeamWithRepoRole/mappings/user-1.json @@ -1,5 +1,5 @@ { - "id": "92e4cf09-4909-4a48-9efc-1a579c0ae746", + "id": "35a29373-1735-4afe-9e05-bb08b0a8ddfa", "name": "user", "request": { "url": "/user", @@ -15,22 +15,23 @@ "bodyFileName": "user-1.json", "headers": { "Server": "GitHub.com", - "Date": "Mon, 28 Jun 2021 22:41:28 GMT", + "Date": "Fri, 18 Mar 2022 21:50: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/\"e1fbcd337cca68d53989eddca67b8be55e1a50ce95ddcecc2139323007e5da21\"", - "Last-Modified": "Mon, 28 Jun 2021 20:48:08 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"65ac0e73527e3adc4df6bbbde94bb21480926587df8832f0bab8a5fc1bc746c9\"", + "Last-Modified": "Wed, 09 Mar 2022 12:59:44 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4940", - "X-RateLimit-Reset": "1624920219", - "X-RateLimit-Used": "60", + "X-RateLimit-Remaining": "4945", + "X-RateLimit-Reset": "1647642206", + "X-RateLimit-Used": "55", "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", @@ -38,10 +39,10 @@ "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "FF9A:9C39:2E55FB:311CD1:60DA5018" + "X-GitHub-Request-Id": "F643:3A71:3D5249:73EB94:6234FE90" } }, - "uuid": "92e4cf09-4909-4a48-9efc-1a579c0ae746", + "uuid": "35a29373-1735-4afe-9e05-bb08b0a8ddfa", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-1.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-1.json new file mode 100644 index 0000000000..162ceb1c73 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/orgs_hub4j-test-org-1.json @@ -0,0 +1,55 @@ +{ + "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://avatars.githubusercontent.com/u/7544739?v=4", + "description": "Hub4j Test Org Description (this could be null or blank too)", + "name": "Hub4j Test Org Name (this could be null or blank too)", + "company": null, + "blog": "https://hub4j.url.io/could/be/null", + "location": "Hub4j Test Org Location (this could be null or blank too)", + "email": "hub4jtestorgemail@could.be.null.com", + "twitter_username": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 49, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2020-06-04T05:56:10Z", + "type": "Organization", + "total_private_repos": 3, + "owned_private_repos": 3, + "private_gists": 0, + "disk_usage": 11979, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "members_allowed_repository_creation_type": "none", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true, + "members_can_fork_private_repositories": false, + "members_can_create_public_pages": true, + "members_can_create_private_pages": true, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 10000, + "filled_seats": 35, + "seats": 3 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-2.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-2.json new file mode 100644 index 0000000000..7451fc9078 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-2.json @@ -0,0 +1,364 @@ +{ + "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://avatars.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": "2021-11-09T20:13:29Z", + "pushed_at": "2022-03-04T11:02:08Z", + "git_url": "git://github.com/hub4j-test-org/github-api.git", + "ssh_url": "git@github.com:hub4j-test-org/github-api.git", + "clone_url": "https://github.com/hub4j-test-org/github-api.git", + "svn_url": "https://github.com/hub4j-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 19045, + "stargazers_count": 0, + "watchers_count": 0, + "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": 7, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 7, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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://avatars.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": "2022-04-05T15:53:55Z", + "pushed_at": "2022-04-09T10:25:56Z", + "git_url": "git://github.com/hub4j/github-api.git", + "ssh_url": "git@github.com:hub4j/github-api.git", + "clone_url": "https://github.com/hub4j/github-api.git", + "svn_url": "https://github.com/hub4j/github-api", + "homepage": "https://github-api.kohsuke.org/", + "size": 39875, + "stargazers_count": 878, + "watchers_count": 878, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 601, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 100, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 601, + "open_issues": 100, + "watchers": 878, + "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://avatars.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": "2022-04-05T15:53:55Z", + "pushed_at": "2022-04-09T10:25:56Z", + "git_url": "git://github.com/hub4j/github-api.git", + "ssh_url": "git@github.com:hub4j/github-api.git", + "clone_url": "https://github.com/hub4j/github-api.git", + "svn_url": "https://github.com/hub4j/github-api", + "homepage": "https://github-api.kohsuke.org/", + "size": 39875, + "stargazers_count": 878, + "watchers_count": 878, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 601, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 100, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 601, + "open_issues": 100, + "watchers": 878, + "default_branch": "main" + }, + "network_count": 601, + "subscribers_count": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-4.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-3.json similarity index 88% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-4.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-3.json index 3472cb4545..c718c1e64d 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-4.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls-3.json @@ -1,38 +1,38 @@ { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "id": 560268793, - "node_id": "MDExOlB1bGxSZXF1ZXN0NTYwMjY4Nzkz", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395", - "diff_url": "https://github.com/hub4j-test-org/github-api/pull/395.diff", - "patch_url": "https://github.com/hub4j-test-org/github-api/pull/395.patch", - "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/395", - "number": 395, + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "id": 904870051, + "node_id": "PR_kwDODFTdCc417zij", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450", + "diff_url": "https://github.com/hub4j-test-org/github-api/pull/450.diff", + "patch_url": "https://github.com/hub4j-test-org/github-api/pull/450.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450", + "number": 450, "state": "open", "locked": false, "title": "pullRequestReviewComments", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.githubusercontent.com/u/1958953?v=4", + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/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", + "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": "## test", - "created_at": "2021-01-22T23:38:16Z", - "updated_at": "2021-01-22T23:38:16Z", + "created_at": "2022-04-09T12:15:11Z", + "updated_at": "2022-04-09T12:15:11Z", "closed_at": null, "merged_at": null, "merge_commit_sha": null, @@ -43,15 +43,15 @@ "labels": [], "milestone": null, "draft": false, - "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395/commits", - "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395/comments", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/comments", "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/395/comments", - "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450/comments", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7", "head": { "label": "hub4j-test-org:test/stable", "ref": "test/stable", - "sha": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", + "sha": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", "user": { "login": "hub4j-test-org", "id": 7544739, @@ -99,7 +99,7 @@ "site_admin": false }, "html_url": "https://github.com/hub4j-test-org/github-api", - "description": "Resetting", + "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", @@ -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": "2021-01-22T03:50:37Z", - "pushed_at": "2021-01-22T23:37:43Z", + "updated_at": "2021-11-09T20:13:29Z", + "pushed_at": "2022-03-04T11:02:08Z", "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": 19052, + "size": 19045, "stargazers_count": 0, "watchers_count": 0, "language": "Java", @@ -159,7 +159,7 @@ "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 6, + "open_issues_count": 8, "license": { "key": "mit", "name": "MIT License", @@ -167,8 +167,12 @@ "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 0, - "open_issues": 6, + "open_issues": 8, "watchers": 0, "default_branch": "main" } @@ -224,7 +228,7 @@ "site_admin": false }, "html_url": "https://github.com/hub4j-test-org/github-api", - "description": "Resetting", + "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", @@ -264,14 +268,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": "2021-01-22T03:50:37Z", - "pushed_at": "2021-01-22T23:37:43Z", + "updated_at": "2021-11-09T20:13:29Z", + "pushed_at": "2022-03-04T11:02:08Z", "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": 19052, + "size": 19045, "stargazers_count": 0, "watchers_count": 0, "language": "Java", @@ -284,7 +288,7 @@ "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 6, + "open_issues_count": 8, "license": { "key": "mit", "name": "MIT License", @@ -292,39 +296,44 @@ "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 0, - "open_issues": 6, + "open_issues": 8, "watchers": 0, "default_branch": "main" } }, "_links": { "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" }, "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395" + "href": "https://github.com/hub4j-test-org/github-api/pull/450" }, "issue": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/395" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450" }, "comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/395/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450/comments" }, "review_comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/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/395/commits" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/commits" }, "statuses": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/1f40fdf4acf1adb246c109c21a22f617e4bd1ca8" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7" } }, "author_association": "MEMBER", + "auto_merge": null, "active_lock_reason": null, "merged": false, "mergeable": null, @@ -334,8 +343,8 @@ "comments": 0, "review_comments": 0, "maintainer_can_modify": false, - "commits": 2, - "additions": 2, - "deletions": 1, - "changed_files": 1 + "commits": 3, + "additions": 3, + "deletions": 2, + "changed_files": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-13.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-13.json deleted file mode 100644 index 870fa8ed31..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-13.json +++ /dev/null @@ -1,113 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753", - "pull_request_review_id": 574695538, - "id": 562972753, - "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDU2Mjk3Mjc1Mw==", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "original_commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "body": "Sample review comment", - "created_at": "2021-01-22T23:38:17Z", - "updated_at": "2021-01-22T23:38:17Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972753", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972753" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" - } - }, - "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/562972758", - "pull_request_review_id": 574695548, - "id": 562972758, - "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDU2Mjk3Mjc1OA==", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "original_commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "body": "This is a reply.", - "created_at": "2021-01-22T23:38:20Z", - "updated_at": "2021-01-22T23:38:20Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972758", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972758" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972758" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" - } - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT", - "in_reply_to_id": 562972753 - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-15.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-15.json deleted file mode 100644 index 62223354f4..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-15.json +++ /dev/null @@ -1,113 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753", - "pull_request_review_id": 574695538, - "id": 562972753, - "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDU2Mjk3Mjc1Mw==", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "original_commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "body": "Updated review comment", - "created_at": "2021-01-22T23:38:17Z", - "updated_at": "2021-01-22T23:38:21Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972753", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972753" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" - } - }, - "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/562972758", - "pull_request_review_id": 574695548, - "id": 562972758, - "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDU2Mjk3Mjc1OA==", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "original_commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "body": "This is a reply.", - "created_at": "2021-01-22T23:38:20Z", - "updated_at": "2021-01-22T23:38:20Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972758", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972758" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972758" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" - } - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT", - "in_reply_to_id": 562972753 - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-17.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-17.json deleted file mode 100644 index a483a74495..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-17.json +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972758", - "pull_request_review_id": 574695548, - "id": 562972758, - "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDU2Mjk3Mjc1OA==", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "original_commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "body": "This is a reply.", - "created_at": "2021-01-22T23:38:20Z", - "updated_at": "2021-01-22T23:38:20Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972758", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972758" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972758" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" - } - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-6.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-6.json deleted file mode 100644 index e2c282298f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-6.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753", - "pull_request_review_id": 574695538, - "id": 562972753, - "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDU2Mjk3Mjc1Mw==", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "original_commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "body": "Sample review comment", - "created_at": "2021-01-22T23:38:17Z", - "updated_at": "2021-01-22T23:38:17Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972753", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972753" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" - } - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-7.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-7.json deleted file mode 100644 index e7f364e08c..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments-7.json +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753", - "pull_request_review_id": 574695538, - "id": 562972753, - "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDU2Mjk3Mjc1Mw==", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "original_commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "body": "Sample review comment", - "created_at": "2021-01-22T23:38:17Z", - "updated_at": "2021-01-22T23:38:17Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972753", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972753" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" - } - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments_562972753_replies-12.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments_562972753_replies-12.json deleted file mode 100644 index 7fec2d4b5a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395_comments_562972753_replies-12.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972758", - "pull_request_review_id": 574695548, - "id": 562972758, - "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDU2Mjk3Mjc1OA==", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "original_commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "body": "This is a reply.", - "created_at": "2021-01-22T23:38:20Z", - "updated_at": "2021-01-22T23:38:20Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972758", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972758" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972758" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" - } - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT", - "in_reply_to_id": 562972753 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395-18.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450-19.json similarity index 87% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395-18.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450-19.json index 226299fcc4..741972649d 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_395-18.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450-19.json @@ -1,41 +1,41 @@ { - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "id": 560268793, - "node_id": "MDExOlB1bGxSZXF1ZXN0NTYwMjY4Nzkz", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395", - "diff_url": "https://github.com/hub4j-test-org/github-api/pull/395.diff", - "patch_url": "https://github.com/hub4j-test-org/github-api/pull/395.patch", - "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/395", - "number": 395, + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "id": 904870051, + "node_id": "PR_kwDODFTdCc417zij", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450", + "diff_url": "https://github.com/hub4j-test-org/github-api/pull/450.diff", + "patch_url": "https://github.com/hub4j-test-org/github-api/pull/450.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450", + "number": 450, "state": "closed", "locked": false, "title": "pullRequestReviewComments", "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.githubusercontent.com/u/1958953?v=4", + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", "gravatar_id": "", - "url": "https://api.github.com/users/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", + "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": "## test", - "created_at": "2021-01-22T23:38:16Z", - "updated_at": "2021-01-22T23:38:22Z", - "closed_at": "2021-01-22T23:38:22Z", + "created_at": "2022-04-09T12:15:11Z", + "updated_at": "2022-04-09T12:15:18Z", + "closed_at": "2022-04-09T12:15:18Z", "merged_at": null, - "merge_commit_sha": "b6ea452cf8e8cb14da5cafd34293193f57bd7e3e", + "merge_commit_sha": "1b4f92fc0c970eab91ebee6e8e63d51c657ecb83", "assignee": null, "assignees": [], "requested_reviewers": [], @@ -43,15 +43,15 @@ "labels": [], "milestone": null, "draft": false, - "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395/commits", - "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395/comments", + "commits_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/comments", "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/395/comments", - "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", + "comments_url": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450/comments", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7", "head": { "label": "hub4j-test-org:test/stable", "ref": "test/stable", - "sha": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", + "sha": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", "user": { "login": "hub4j-test-org", "id": 7544739, @@ -99,7 +99,7 @@ "site_admin": false }, "html_url": "https://github.com/hub4j-test-org/github-api", - "description": "Resetting", + "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", @@ -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": "2021-01-22T03:50:37Z", - "pushed_at": "2021-01-22T23:38:17Z", + "updated_at": "2021-11-09T20:13:29Z", + "pushed_at": "2022-04-09T12:15:12Z", "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": 19052, + "size": 19045, "stargazers_count": 0, "watchers_count": 0, "language": "Java", @@ -159,7 +159,7 @@ "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 5, + "open_issues_count": 7, "license": { "key": "mit", "name": "MIT License", @@ -167,8 +167,12 @@ "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 0, - "open_issues": 5, + "open_issues": 7, "watchers": 0, "default_branch": "main" } @@ -224,7 +228,7 @@ "site_admin": false }, "html_url": "https://github.com/hub4j-test-org/github-api", - "description": "Resetting", + "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", @@ -264,14 +268,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": "2021-01-22T03:50:37Z", - "pushed_at": "2021-01-22T23:38:17Z", + "updated_at": "2021-11-09T20:13:29Z", + "pushed_at": "2022-04-09T12:15:12Z", "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": 19052, + "size": 19045, "stargazers_count": 0, "watchers_count": 0, "language": "Java", @@ -284,7 +288,7 @@ "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 5, + "open_issues_count": 7, "license": { "key": "mit", "name": "MIT License", @@ -292,39 +296,44 @@ "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 0, - "open_issues": 5, + "open_issues": 7, "watchers": 0, "default_branch": "main" } }, "_links": { "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" }, "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395" + "href": "https://github.com/hub4j-test-org/github-api/pull/450" }, "issue": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/395" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450" }, "comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/395/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/issues/450/comments" }, "review_comments": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395/comments" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/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/395/commits" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450/commits" }, "statuses": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/1f40fdf4acf1adb246c109c21a22f617e4bd1ca8" + "href": "https://api.github.com/repos/hub4j-test-org/github-api/statuses/07374fe73aff1c2024a8d4114b32406c7a8e89b7" } }, "author_association": "MEMBER", + "auto_merge": null, "active_lock_reason": null, "merged": false, "mergeable": true, @@ -332,10 +341,10 @@ "mergeable_state": "unstable", "merged_by": null, "comments": 0, - "review_comments": 0, + "review_comments": 1, "maintainer_can_modify": false, - "commits": 2, - "additions": 2, - "deletions": 1, - "changed_files": 1 + "commits": 3, + "additions": 3, + "deletions": 2, + "changed_files": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-14.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-14.json new file mode 100644 index 0000000000..4cda5a84e8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-14.json @@ -0,0 +1,137 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633", + "pull_request_review_id": 937124048, + "id": 846624633, + "node_id": "PRRC_kwDODFTdCc4ydnd5", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2022-04-09T12:15:13Z", + "updated_at": "2022-04-09T12:15:13Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637", + "pull_request_review_id": 937124051, + "id": 846624637, + "node_id": "PRRC_kwDODFTdCc4ydnd9", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2022-04-09T12:15:15Z", + "updated_at": "2022-04-09T12:15:15Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "in_reply_to_id": 846624633 + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-16.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-16.json new file mode 100644 index 0000000000..7bdf214904 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-16.json @@ -0,0 +1,137 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633", + "pull_request_review_id": 937124048, + "id": 846624633, + "node_id": "PRRC_kwDODFTdCc4ydnd5", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "body": "Updated review comment", + "created_at": "2022-04-09T12:15:13Z", + "updated_at": "2022-04-09T12:15:16Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" + }, + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637", + "pull_request_review_id": 937124051, + "id": 846624637, + "node_id": "PRRC_kwDODFTdCc4ydnd9", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2022-04-09T12:15:15Z", + "updated_at": "2022-04-09T12:15:15Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "in_reply_to_id": 846624633 + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-18.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-18.json new file mode 100644 index 0000000000..790346e225 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-18.json @@ -0,0 +1,69 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637", + "pull_request_review_id": 937124051, + "id": 846624637, + "node_id": "PRRC_kwDODFTdCc4ydnd9", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2022-04-09T12:15:15Z", + "updated_at": "2022-04-09T12:15:15Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-5.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-5.json new file mode 100644 index 0000000000..ceb0c285e0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-5.json @@ -0,0 +1,67 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633", + "pull_request_review_id": 937124048, + "id": 846624633, + "node_id": "PRRC_kwDODFTdCc4ydnd5", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2022-04-09T12:15:13Z", + "updated_at": "2022-04-09T12:15:13Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-6.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-6.json new file mode 100644 index 0000000000..1800a49e08 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments-6.json @@ -0,0 +1,69 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633", + "pull_request_review_id": 937124048, + "id": 846624633, + "node_id": "PRRC_kwDODFTdCc4ydnd5", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "body": "Sample review comment", + "created_at": "2022-04-09T12:15:13Z", + "updated_at": "2022-04-09T12:15:13Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json new file mode 100644 index 0000000000..d3a084746f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json @@ -0,0 +1,68 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637", + "pull_request_review_id": 937124051, + "id": 846624637, + "node_id": "PRRC_kwDODFTdCc4ydnd9", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is a reply.", + "created_at": "2022-04-09T12:15:15Z", + "updated_at": "2022-04-09T12:15:15Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624637" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT", + "in_reply_to_id": 846624633 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json deleted file mode 100644 index b2f973c935..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753", - "pull_request_review_id": 574695538, - "id": 562972753, - "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDU2Mjk3Mjc1Mw==", - "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", - "path": "README.md", - "position": 1, - "original_position": 1, - "commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "original_commit_id": "1f40fdf4acf1adb246c109c21a22f617e4bd1ca8", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "body": "Updated review comment", - "created_at": "2021-01-22T23:38:17Z", - "updated_at": "2021-01-22T23:38:21Z", - "html_url": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972753", - "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", - "author_association": "MEMBER", - "_links": { - "self": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753" - }, - "html": { - "href": "https://github.com/hub4j-test-org/github-api/pull/395#discussion_r562972753" - }, - "pull_request": { - "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395" - } - }, - "start_line": null, - "original_start_line": null, - "start_side": null, - "line": 1, - "original_line": 1, - "side": "LEFT" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-11.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-11.json deleted file mode 100644 index 64f9fb5ff8..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-11.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "id": 97972784, - "node_id": "MDg6UmVhY3Rpb245Nzk3Mjc4NA==", - "user": { - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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 - }, - "content": "confused", - "created_at": "2021-01-22T23:38:19Z" - } -] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json new file mode 100644 index 0000000000..48ddd1bc34 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json @@ -0,0 +1,67 @@ +{ + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633", + "pull_request_review_id": 937124048, + "id": 846624633, + "node_id": "PRRC_kwDODFTdCc4ydnd5", + "diff_hunk": "@@ -1,3 +1,4 @@\n-Java API for GitHub", + "path": "README.md", + "position": 1, + "original_position": 1, + "commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "original_commit_id": "07374fe73aff1c2024a8d4114b32406c7a8e89b7", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "body": "Updated review comment", + "created_at": "2022-04-09T12:15:13Z", + "updated_at": "2022-04-09T12:15:16Z", + "html_url": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633", + "pull_request_url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450", + "author_association": "MEMBER", + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" + }, + "html": { + "href": "https://github.com/hub4j-test-org/github-api/pull/450#discussion_r846624633" + }, + "pull_request": { + "href": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" + } + }, + "reactions": { + "url": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", + "total_count": 0, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "start_line": null, + "original_start_line": null, + "start_side": null, + "line": 1, + "original_line": 1, + "side": "LEFT" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json new file mode 100644 index 0000000000..8f583f3b19 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json @@ -0,0 +1,28 @@ +[ + { + "id": 158534106, + "node_id": "REA_lATODFTdCc4ydnd5zglzCdo", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2022-04-09T12:15:14Z" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json new file mode 100644 index 0000000000..3060dcda5e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json @@ -0,0 +1,26 @@ +{ + "id": 158534106, + "node_id": "REA_lATODFTdCc4ydnd5zglzCdo", + "user": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "content": "confused", + "created_at": "2022-04-09T12:15:14Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/user-1.json deleted file mode 100644 index 80823e137a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/user-1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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": null, - "twitter_username": "bitwiseman", - "public_repos": 201, - "public_gists": 7, - "followers": 176, - "following": 11, - "created_at": "2012-07-11T20:38:33Z", - "updated_at": "2021-01-22T16:38:42Z", - "private_gists": 19, - "total_private_repos": 17, - "owned_private_repos": 0, - "disk_usage": 33700, - "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/users_bitwiseman-8.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_bitwiseman-8.json deleted file mode 100644 index 80823e137a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_bitwiseman-8.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "login": "bitwiseman", - "id": 1958953, - "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars.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": null, - "twitter_username": "bitwiseman", - "public_repos": 201, - "public_gists": 7, - "followers": 176, - "following": 11, - "created_at": "2012-07-11T20:38:33Z", - "updated_at": "2021-01-22T16:38:42Z", - "private_gists": 19, - "total_private_repos": 17, - "owned_private_repos": 0, - "disk_usage": 33700, - "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/GHWorkflowTest/wiremock/testDisableEnable/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_gsmet-7.json similarity index 89% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/user-1.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_gsmet-7.json index 79bade964e..6fa76a1f24 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/user-1.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/users_gsmet-7.json @@ -19,22 +19,22 @@ "site_admin": false, "name": "Guillaume Smet", "company": "Red Hat", - "blog": "https://www.redhat.com/", + "blog": "https://lesincroyableslivres.fr/", "location": "Lyon, France", "email": "guillaume.smet@gmail.com", "hireable": null, "bio": "Happy camper at Red Hat, working on Quarkus and the Hibernate portfolio.", "twitter_username": "gsmet_", - "public_repos": 102, - "public_gists": 14, - "followers": 127, + "public_repos": 147, + "public_gists": 15, + "followers": 172, "following": 3, "created_at": "2011-12-22T11:03:22Z", - "updated_at": "2021-03-23T17:35:45Z", + "updated_at": "2022-04-06T15:07:12Z", "private_gists": 14, "total_private_repos": 4, "owned_private_repos": 1, - "disk_usage": 68258, + "disk_usage": 70882, "collaborators": 1, "two_factor_authentication": true, "plan": { diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-1.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-1.json new file mode 100644 index 0000000000..0036251e18 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-1.json @@ -0,0 +1,47 @@ +{ + "id": "4b84c118-4a9c-45ee-8cbe-52b6a3763adf", + "name": "orgs_hub4j-test-org", + "request": { + "url": "/orgs/hub4j-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_hub4j-test-org-1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15: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/\"861b38147d37bd59e507771e76ec048def20dd6e5ac5b75aceb01c8b9f0ef4f5\"", + "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-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4982", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "18", + "X-RateLimit-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": "BF26:E0D5:8A28DE:8F7145:625178CE" + } + }, + "uuid": "4b84c118-4a9c-45ee-8cbe-52b6a3763adf", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-2.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-2.json new file mode 100644 index 0000000000..5f2c551e0f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-2.json @@ -0,0 +1,47 @@ +{ + "id": "af7bd5d9-e014-496e-973f-f44f48f8d639", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15: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/\"1c2c68b5cb572680f51498796d0b11bee390107942cb9d9c88b25679760a86c7\"", + "Last-Modified": "Tue, 09 Nov 2021 20:13:29 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4981", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "19", + "X-RateLimit-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": "BF28:5187:88B618:8DFE6A:625178CF" + } + }, + "uuid": "af7bd5d9-e014-496e-973f-f44f48f8d639", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-4.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-3.json similarity index 62% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-4.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-3.json index 37d5d6db2c..a8695af2b2 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-4.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls-3.json @@ -1,5 +1,5 @@ { - "id": "040ee3b9-0b4b-4bad-81da-797e6947ad3c", + "id": "89d3f876-6802-4140-b2d9-cad6e5a66930", "name": "repos_hub4j-test-org_github-api_pulls", "request": { "url": "/repos/hub4j-test-org/github-api/pulls", @@ -19,37 +19,36 @@ }, "response": { "status": 201, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls-4.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls-3.json", "headers": { - "Date": "Fri, 22 Jan 2021 23:38:17 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "201 Created", + "Date": "Sat, 09 Apr 2022 12:15: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", - "Accept-Encoding" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"32fc4ebf798f68ee600cbfe11cce66adc1ee61d8c5565db0a402ad1c79fabb57\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"68840492424616213106fcff4e8b52e7e574d2b1799abeb22e1ee3cc4f65e5b0\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/395", "X-GitHub-Media-Type": "github.v3; param=shadow-cat-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4813", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "187", + "X-RateLimit-Remaining": "4980", + "X-RateLimit-Reset": "1649510049", + "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": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "D013:3B95:10581E:1263C2:600B61E8" + "X-GitHub-Request-Id": "BF2A:5C30:19CC336:1A3AF94:625178CF", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/450" } }, - "uuid": "040ee3b9-0b4b-4bad-81da-797e6947ad3c", + "uuid": "89d3f876-6802-4140-b2d9-cad6e5a66930", "persistent": true, - "insertionIndex": 4 + "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-13.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-13.json deleted file mode 100644 index 8ef57c7773..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-13.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "b1fb172e-6676-4f23-928a-8e07513424d7", - "name": "repos_hub4j-test-org_github-api_pulls_395_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/395/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_395_comments-13.json", - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:20 GMT", - "Content-Type": "application/json; charset=utf-8", - "Server": "GitHub.com", - "Status": "200 OK", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "ETag": "W/\"1e69569dcc19e09759d85dedcb2698dce6d5db7ceb48e8f106de4e0104f11ad7\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4804", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "196", - "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": "D013:3B95:105858:1263FD:600B61EC" - } - }, - "uuid": "b1fb172e-6676-4f23-928a-8e07513424d7", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments-3", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments-4", - "insertionIndex": 13 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-15.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-15.json deleted file mode 100644 index 7bde1cdd1d..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-15.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "81772b1c-7882-41b9-b776-130f43fe8063", - "name": "repos_hub4j-test-org_github-api_pulls_395_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/395/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_395_comments-15.json", - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:21 GMT", - "Content-Type": "application/json; charset=utf-8", - "Server": "GitHub.com", - "Status": "200 OK", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "ETag": "W/\"0a5c27e886e58db538a4db32443d2c437fe13c344b71d5ded73f375e20ed7bc0\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4802", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "198", - "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": "D013:3B95:105862:12640A:600B61ED" - } - }, - "uuid": "81772b1c-7882-41b9-b776-130f43fe8063", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments-4", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments-5", - "insertionIndex": 15 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-17.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-17.json deleted file mode 100644 index 4300e6452c..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-17.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "id": "e3ad6641-9ad6-4c6f-beb3-b2d35c83c110", - "name": "repos_hub4j-test-org_github-api_pulls_395_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/395/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_395_comments-17.json", - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:22 GMT", - "Content-Type": "application/json; charset=utf-8", - "Server": "GitHub.com", - "Status": "200 OK", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "ETag": "W/\"6fe8daefb3089b81348a759c6088069c74b808304d4c62cd9e69f3859ae87088\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4800", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "200", - "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": "D013:3B95:10586E:126418:600B61EE" - } - }, - "uuid": "e3ad6641-9ad6-4c6f-beb3-b2d35c83c110", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments-5", - "insertionIndex": 17 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-6.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-6.json deleted file mode 100644 index 2e0b49c364..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-6.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "id": "9dbbce40-4a41-4d07-9d32-3bc4b7b55dae", - "name": "repos_hub4j-test-org_github-api_pulls_395_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/395/comments", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"path\":\"README.md\",\"position\":1,\"body\":\"Sample review comment\",\"commit_id\":\"1f40fdf4acf1adb246c109c21a22f617e4bd1ca8\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_395_comments-6.json", - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:18 GMT", - "Content-Type": "application/json; charset=utf-8", - "Server": "GitHub.com", - "Status": "201 Created", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "ETag": "\"ec53eabf833612e8f478639eec7143c1e3498f3ab23e039055bba92273b64f4d\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972753", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4811", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "189", - "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": "D013:3B95:10582D:1263D3:600B61E9" - } - }, - "uuid": "9dbbce40-4a41-4d07-9d32-3bc4b7b55dae", - "persistent": true, - "insertionIndex": 6 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-7.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-7.json deleted file mode 100644 index 19631a70ba..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-7.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "e6a0a1ff-c12f-4950-bc73-1bd03f5995d3", - "name": "repos_hub4j-test-org_github-api_pulls_395_comments", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/395/comments", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_395_comments-7.json", - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:18 GMT", - "Content-Type": "application/json; charset=utf-8", - "Server": "GitHub.com", - "Status": "200 OK", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "ETag": "W/\"9888a0a13157acaad48c26c2d4a718dc73ce1d500691037a3b15b8a447da0fba\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4810", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "190", - "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": "D013:3B95:10583A:1263DC:600B61EA" - } - }, - "uuid": "e6a0a1ff-c12f-4950-bc73-1bd03f5995d3", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments-2", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments-3", - "insertionIndex": 7 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments_562972753_replies-12.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments_562972753_replies-12.json deleted file mode 100644 index 25fb56c62b..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments_562972753_replies-12.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "id": "921db344-9c2f-490c-b683-06f269222a5c", - "name": "repos_hub4j-test-org_github-api_pulls_395_comments_562972753_replies", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/395/comments/562972753/replies", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"body\":\"This is a reply.\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 201, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_395_comments_562972753_replies-12.json", - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:20 GMT", - "Content-Type": "application/json; charset=utf-8", - "Server": "GitHub.com", - "Status": "201 Created", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "ETag": "\"cb47518f479227da1db2d0ede03e8509ed8384b9ec5536a47c2972091c6f94e0\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/562972758", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4805", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "195", - "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": "D013:3B95:105851:1263F6:600B61EB" - } - }, - "uuid": "921db344-9c2f-490c-b683-06f269222a5c", - "persistent": true, - "insertionIndex": 12 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395-18.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450-19.json similarity index 50% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395-18.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450-19.json index 3bb0a5c162..7af46ed577 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395-18.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450-19.json @@ -1,8 +1,8 @@ { - "id": "c6d050b9-3c21-4665-9755-dd4239b1bdec", - "name": "repos_hub4j-test-org_github-api_pulls_395", + "id": "e76e5f8a-7440-4747-9db3-8cc42782620e", + "name": "repos_hub4j-test-org_github-api_pulls_450", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/395", + "url": "/repos/hub4j-test-org/github-api/pulls/450", "method": "PATCH", "headers": { "Accept": { @@ -19,36 +19,35 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_395-18.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450-19.json", "headers": { - "Date": "Fri, 22 Jan 2021 23:38:23 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", + "Date": "Sat, 09 Apr 2022 12:15: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", - "Accept-Encoding" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"90509bd8d9725f0f0f27ec990a077b0d7ae666d44e41b40df88021d9431f07b9\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"399c2e3c022b7bf249d0200e9176625d86810ac54e14542e88945ad9df7b0e84\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4799", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "201", + "X-RateLimit-Remaining": "4964", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "36", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "D013:3B95:105872:12641A:600B61EE" + "X-GitHub-Request-Id": "BF4E:39AA:E9643A:EF75F6:625178D6" } }, - "uuid": "c6d050b9-3c21-4665-9755-dd4239b1bdec", + "uuid": "e76e5f8a-7440-4747-9db3-8cc42782620e", "persistent": true, - "insertionIndex": 18 + "insertionIndex": 19 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-14.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-14.json new file mode 100644 index 0000000000..7c967dd7ae --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-14.json @@ -0,0 +1,49 @@ +{ + "id": "688a8bee-65e8-4230-9e8b-9a7b4edf8f5a", + "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments-14.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15:16 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"8710e53c6a4f5e8cb30cd02074a24ed05e154c81a9105e6c7fe8bdea7d708947\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4969", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "31", + "X-RateLimit-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": "BF42:11728:24F9D:6D1C2:625178D4" + } + }, + "uuid": "688a8bee-65e8-4230-9e8b-9a7b4edf8f5a", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-3", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-4", + "insertionIndex": 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-16.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-16.json new file mode 100644 index 0000000000..14ece4fa0f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-16.json @@ -0,0 +1,49 @@ +{ + "id": "6e4fb0b4-c771-4728-bd07-79e2afed9108", + "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments-16.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15:17 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"6f4ddc206cbb07f1bb428abed4f999d54e4173bef1e79779f01b146e301cab19\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4967", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "33", + "X-RateLimit-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": "BF46:020E:1B9F471:1C125DB:625178D5" + } + }, + "uuid": "6e4fb0b4-c771-4728-bd07-79e2afed9108", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-4", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-5", + "insertionIndex": 16 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-18.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-18.json new file mode 100644 index 0000000000..938dd53399 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-18.json @@ -0,0 +1,48 @@ +{ + "id": "ec9a9df9-8cbf-4211-b061-d3452cfd1454", + "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments-18.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15:18 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"edab203c9bce79c86872fcace8d269e5060b9c125aadfccefbe871e663b7c1c2\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4965", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "35", + "X-RateLimit-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": "BF4C:5188:EA0328:F0143F:625178D6" + } + }, + "uuid": "ec9a9df9-8cbf-4211-b061-d3452cfd1454", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-5", + "insertionIndex": 18 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-5.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-4.json similarity index 51% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-5.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-4.json index 5b469d02e4..66d15a4a6d 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395_comments-5.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-4.json @@ -1,8 +1,8 @@ { - "id": "26baa623-674e-4256-a443-42689889d2da", - "name": "repos_hub4j-test-org_github-api_pulls_395_comments", + "id": "bf14e708-e9c6-44f5-97e7-ec6c46ba4976", + "name": "repos_hub4j-test-org_github-api_pulls_450_comments", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/395/comments", + "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", "method": "GET", "headers": { "Accept": { @@ -14,37 +14,36 @@ "status": 200, "body": "[]", "headers": { - "Date": "Fri, 22 Jan 2021 23:38:17 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", + "Date": "Sat, 09 Apr 2022 12:15: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", - "Accept-Encoding" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"9800b2f961691fc98a0e94eb27a51bcc85f19941baa3ad85cbd310e48cf654e3\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "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", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4812", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "188", + "X-RateLimit-Remaining": "4979", + "X-RateLimit-Reset": "1649510049", + "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": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "D013:3B95:10582A:1263CE:600B61E9" + "X-GitHub-Request-Id": "BF2C:5C30:19CC4C4:1A3B129:625178D0" } }, - "uuid": "26baa623-674e-4256-a443-42689889d2da", + "uuid": "bf14e708-e9c6-44f5-97e7-ec6c46ba4976", "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments", + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments", "requiredScenarioState": "Started", - "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-395-comments-2", - "insertionIndex": 5 + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-2", + "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-5.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-5.json new file mode 100644 index 0000000000..43705a131b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-5.json @@ -0,0 +1,54 @@ +{ + "id": "9fd65261-6489-4fab-bc3d-c475bd9d0d65", + "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"path\":\"README.md\",\"position\":1,\"body\":\"Sample review comment\",\"commit_id\":\"07374fe73aff1c2024a8d4114b32406c7a8e89b7\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments-5.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15: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": "\"43b4e6146c9e9e1755b9a4de3f42b00f2c8235931a60c1b30154ec06e6a9290d\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4978", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "22", + "X-RateLimit-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": "BF2E:C0CA:18919B4:19034D3:625178D0", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624633" + } + }, + "uuid": "9fd65261-6489-4fab-bc3d-c475bd9d0d65", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-6.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-6.json new file mode 100644 index 0000000000..76e67d8969 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments-6.json @@ -0,0 +1,49 @@ +{ + "id": "9b869e00-5373-4fb4-99cc-78a9a4d07476", + "name": "repos_hub4j-test-org_github-api_pulls_450_comments", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/450/comments", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments-6.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15: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/\"a5079bbf1657991249b9611ffb3cda3ae41e08b4b8bc0f4c4703fba99fbb0dec\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4977", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "23", + "X-RateLimit-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": "BF30:ECE0:7B8551:80CDD1:625178D1" + } + }, + "uuid": "9b869e00-5373-4fb4-99cc-78a9a4d07476", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-2", + "newScenarioState": "scenario-1-repos-hub4j-test-org-github-api-pulls-450-comments-3", + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json new file mode 100644 index 0000000000..bb2baa99bc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json @@ -0,0 +1,54 @@ +{ + "id": "5838af27-7458-4d23-8891-b604cdbfc226", + "name": "repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/450/comments/846624633/replies", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"body\":\"This is a reply.\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_450_comments_846624633_replies-13.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15:16 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"b084031e7bce31f52fa9ac44e1c459d48890405b660e08b7112aa27b9df8edbe\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4970", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "30", + "X-RateLimit-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": "BF40:ECF2:FE7DEA:10484D5:625178D3", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/pulls/comments/846624637" + } + }, + "uuid": "5838af27-7458-4d23-8891-b604cdbfc226", + "persistent": true, + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753-16.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753-16.json deleted file mode 100644 index e223084f5c..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753-16.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "id": "8b44cc42-31cd-4f69-b91d-4a3c102e13e0", - "name": "repos_hub4j-test-org_github-api_pulls_comments_562972753", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/562972753", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:22 GMT", - "Server": "GitHub.com", - "Status": "204 No Content", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4801", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "199", - "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'", - "Vary": [ - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "X-GitHub-Request-Id": "D013:3B95:105867:12640D:600B61ED" - } - }, - "uuid": "8b44cc42-31cd-4f69-b91d-4a3c102e13e0", - "persistent": true, - "insertionIndex": 16 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-11.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-11.json deleted file mode 100644 index 44bd1eb482..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-11.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "id": "f3ddb81d-9f1d-4895-af3d-7103ab09185f", - "name": "repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/562972753/reactions", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-11.json", - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:19 GMT", - "Content-Type": "application/json; charset=utf-8", - "Server": "GitHub.com", - "Status": "200 OK", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "ETag": "W/\"78837131484409a9ad58966b90df1ec90ed03b72338a19ed32f3bc04c77f9f42\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4806", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "194", - "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": "D013:3B95:10584E:1263F2:600B61EB" - } - }, - "uuid": "f3ddb81d-9f1d-4895-af3d-7103ab09185f", - "persistent": true, - "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-562972753-reactions", - "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-562972753-reactions-2", - "insertionIndex": 11 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-9.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-9.json deleted file mode 100644 index bd78d91a42..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-9.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "id": "15fb671a-3ce3-420c-981c-0e0f6ae5e7b9", - "name": "repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions", - "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/562972753/reactions", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" - } - } - }, - "response": { - "status": 200, - "body": "[]", - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:19 GMT", - "Content-Type": "application/json; charset=utf-8", - "Server": "GitHub.com", - "Status": "200 OK", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "ETag": "\"7d0253ca51c378ca4fa4839bfd5bb1ac338f28e5ac8f6810cbdc8553513d942f\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4808", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "192", - "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": "D013:3B95:105845:1263E9:600B61EB" - } - }, - "uuid": "15fb671a-3ce3-420c-981c-0e0f6ae5e7b9", - "persistent": true, - "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-562972753-reactions", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-562972753-reactions-2", - "insertionIndex": 9 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json similarity index 52% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json index 77fd891e5c..3ec700f20c 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json @@ -1,8 +1,8 @@ { - "id": "38a615e2-c59f-4447-bed0-8a5543e00b86", - "name": "repos_hub4j-test-org_github-api_pulls_comments_562972753", + "id": "7d4604de-66f8-4b0f-8ed6-68ad50f6198b", + "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/562972753", + "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633", "method": "PATCH", "headers": { "Accept": { @@ -19,36 +19,35 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_846624633-15.json", "headers": { - "Date": "Fri, 22 Jan 2021 23:38:21 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", + "Date": "Sat, 09 Apr 2022 12:15:17 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"71d2cc6bb01269b7eca9f1dd314ae71ce6d083d816d8b39b406c205c8c213162\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"cfe05223b8754f8565f9561ec6cceb396bab4d9a715901639759d100e9245f7b\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4803", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "197", + "X-RateLimit-Remaining": "4968", + "X-RateLimit-Reset": "1649510049", + "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": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "D013:3B95:10585D:126404:600B61EC" + "X-GitHub-Request-Id": "BF44:93CC:3347E4:381853:625178D4" } }, - "uuid": "38a615e2-c59f-4447-bed0-8a5543e00b86", + "uuid": "7d4604de-66f8-4b0f-8ed6-68ad50f6198b", "persistent": true, - "insertionIndex": 14 + "insertionIndex": 15 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-17.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-17.json new file mode 100644 index 0000000000..35f340e4db --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633-17.json @@ -0,0 +1,39 @@ +{ + "id": "415948c0-a8be-4ea1-8941-320544683414", + "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15:18 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4966", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "34", + "X-RateLimit-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": "BF4A:E0D5:8A2CAF:8F753C:625178D5" + } + }, + "uuid": "415948c0-a8be-4ea1-8941-320544683414", + "persistent": true, + "insertionIndex": 17 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json new file mode 100644 index 0000000000..dab44cdc59 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json @@ -0,0 +1,49 @@ +{ + "id": "70939cf8-8f75-4e59-9256-8ee42f189524", + "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-10.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15: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/\"22723d49ff74aa1c54569ef296aeda406c960c316d11cf7ba181866b642546f4\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4973", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "27", + "X-RateLimit-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": "BF3A:020B:2F04DA:33D3B6:625178D2" + } + }, + "uuid": "70939cf8-8f75-4e59-9256-8ee42f189524", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions", + "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions-2", + "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions-3", + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-12.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-12.json new file mode 100644 index 0000000000..5a52023df5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-12.json @@ -0,0 +1,48 @@ +{ + "id": "299750d0-5f58-4107-ac52-5abd07ec5399", + "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15:15 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "\"1edf80ecd98d11d98113d5aa3cef7021f4a60d76d4a01328e8d3552451f43ce4\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4971", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "29", + "X-RateLimit-Resource": "core", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "BF3E:6F18:1774C1B:17E58B5:625178D3" + } + }, + "uuid": "299750d0-5f58-4107-ac52-5abd07ec5399", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions", + "requiredScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions-3", + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-8.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-8.json new file mode 100644 index 0000000000..5c8dca174f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-8.json @@ -0,0 +1,49 @@ +{ + "id": "eb2f1f85-6af8-4dd3-88cd-f082810aeff3", + "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.squirrel-girl-preview+json" + } + } + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15: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": "\"1edf80ecd98d11d98113d5aa3cef7021f4a60d76d4a01328e8d3552451f43ce4\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4975", + "X-RateLimit-Reset": "1649510049", + "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": "BF34:5C2F:F456DF:FA731C:625178D2" + } + }, + "uuid": "eb2f1f85-6af8-4dd3-88cd-f082810aeff3", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-repos-hub4j-test-org-github-api-pulls-comments-846624633-reactions-2", + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-10.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json similarity index 51% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-10.json rename to src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json index 47ded97c49..f571e74a36 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-10.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json @@ -1,8 +1,8 @@ { - "id": "2d93d531-56fc-4a81-83a8-f21b2418a475", - "name": "repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions", + "id": "0e508b89-abf3-440e-b24e-26f7b2d76c84", + "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions", "request": { - "url": "/repos/hub4j-test-org/github-api/pulls/comments/562972753/reactions", + "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions", "method": "POST", "headers": { "Accept": { @@ -19,36 +19,35 @@ }, "response": { "status": 201, - "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-10.json", + "bodyFileName": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions-9.json", "headers": { - "Date": "Fri, 22 Jan 2021 23:38:19 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "201 Created", + "Date": "Sat, 09 Apr 2022 12:15: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", - "Accept-Encoding" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"17c3b61f50b2749d3462b15309c137c6b399948518ed4799d5dcb72b28e17d2c\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "\"ae9288e2df123795faa1b32ddb5e80ae7493cc7e64a6508a9edc21242a352f70\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "github.squirrel-girl-preview; format=json", + "X-GitHub-Media-Type": "github.v3; param=squirrel-girl-preview; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4807", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "193", + "X-RateLimit-Remaining": "4974", + "X-RateLimit-Reset": "1649510049", + "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": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "D013:3B95:105847:1263EC:600B61EB" + "X-GitHub-Request-Id": "BF36:1172D:10107B5:10737FF:625178D2" } }, - "uuid": "2d93d531-56fc-4a81-83a8-f21b2418a475", + "uuid": "0e508b89-abf3-440e-b24e-26f7b2d76c84", "persistent": true, - "insertionIndex": 10 + "insertionIndex": 9 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions_158534106-11.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions_158534106-11.json new file mode 100644 index 0000000000..88deaf8afb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions_158534106-11.json @@ -0,0 +1,39 @@ +{ + "id": "b155959e-9d88-4005-8b62-0b5bed5f472b", + "name": "repos_hub4j-test-org_github-api_pulls_comments_846624633_reactions_158534106", + "request": { + "url": "/repos/hub4j-test-org/github-api/pulls/comments/846624633/reactions/158534106", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15:15 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4972", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "28", + "X-RateLimit-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": "BF3C:AE8F:16D6665:1744FC2:625178D2" + } + }, + "uuid": "b155959e-9d88-4005-8b62-0b5bed5f472b", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/user-1.json deleted file mode 100644 index 4840ff3401..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/user-1.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "id": "231ba785-4cfd-40f0-b6e8-88a46d3190f9", - "name": "user", - "request": { - "url": "/user", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "user-1.json", - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:14 GMT", - "Content-Type": "application/json; charset=utf-8", - "Server": "GitHub.com", - "Status": "200 OK", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "ETag": "W/\"c8b61de8f7b00ef1a040d10e88b51dd065defb82f7d94a95a97b3dbab636edbe\"", - "last-modified": "Fri, 22 Jan 2021 16:38:42 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4821", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "179", - "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": "D013:3B95:105805:1263A7:600B61E6" - } - }, - "uuid": "231ba785-4cfd-40f0-b6e8-88a46d3190f9", - "persistent": true, - "insertionIndex": 1 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_bitwiseman-8.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_bitwiseman-8.json deleted file mode 100644 index 3ab16b4039..0000000000 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_bitwiseman-8.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "id": "cf3788f0-b3d8-4397-b28a-3641a25c8101", - "name": "users_bitwiseman", - "request": { - "url": "/users/bitwiseman", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "users_bitwiseman-8.json", - "headers": { - "Date": "Fri, 22 Jan 2021 23:38:19 GMT", - "Content-Type": "application/json; charset=utf-8", - "Server": "GitHub.com", - "Status": "200 OK", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With", - "Accept-Encoding" - ], - "ETag": "W/\"c8b61de8f7b00ef1a040d10e88b51dd065defb82f7d94a95a97b3dbab636edbe\"", - "last-modified": "Fri, 22 Jan 2021 16:38:42 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4809", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "191", - "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": "D013:3B95:105840:1263E4:600B61EA" - } - }, - "uuid": "cf3788f0-b3d8-4397-b28a-3641a25c8101", - "persistent": true, - "insertionIndex": 8 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_gsmet-7.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_gsmet-7.json new file mode 100644 index 0000000000..1ee128743a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/users_gsmet-7.json @@ -0,0 +1,47 @@ +{ + "id": "fbbefaa4-e379-4bf4-8e00-98075d7733a5", + "name": "users_gsmet", + "request": { + "url": "/users/gsmet", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "users_gsmet-7.json", + "headers": { + "Server": "GitHub.com", + "Date": "Sat, 09 Apr 2022 12:15: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/\"605a6e2d9d7f031745f48efc2d00aca72a7f359a6b0da5b1722467b9cf322aa9\"", + "Last-Modified": "Wed, 06 Apr 2022 15:07:12 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4976", + "X-RateLimit-Reset": "1649510049", + "X-RateLimit-Used": "24", + "X-RateLimit-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": "BF32:6F18:1774A3E:17E56CF:625178D2" + } + }, + "uuid": "fbbefaa4-e379-4bf4-8e00-98075d7733a5", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..162ceb1c73 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/orgs_hub4j-test-org-2.json @@ -0,0 +1,55 @@ +{ + "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://avatars.githubusercontent.com/u/7544739?v=4", + "description": "Hub4j Test Org Description (this could be null or blank too)", + "name": "Hub4j Test Org Name (this could be null or blank too)", + "company": null, + "blog": "https://hub4j.url.io/could/be/null", + "location": "Hub4j Test Org Location (this could be null or blank too)", + "email": "hub4jtestorgemail@could.be.null.com", + "twitter_username": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 49, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2020-06-04T05:56:10Z", + "type": "Organization", + "total_private_repos": 3, + "owned_private_repos": 3, + "private_gists": 0, + "disk_usage": 11979, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "members_allowed_repository_creation_type": "none", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true, + "members_can_fork_private_repositories": false, + "members_can_create_public_pages": true, + "members_can_create_private_pages": true, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 10000, + "filled_seats": 35, + "seats": 3 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..ae72e6c57a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/repos_hub4j-test-org_github-api-3.json @@ -0,0 +1,364 @@ +{ + "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://avatars.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": "2021-11-09T20:13:29Z", + "pushed_at": "2022-03-04T11:02:08Z", + "git_url": "git://github.com/hub4j-test-org/github-api.git", + "ssh_url": "git@github.com:hub4j-test-org/github-api.git", + "clone_url": "https://github.com/hub4j-test-org/github-api.git", + "svn_url": "https://github.com/hub4j-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 19045, + "stargazers_count": 0, + "watchers_count": 0, + "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": 7, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 7, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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://avatars.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": "2022-04-05T15:53:55Z", + "pushed_at": "2022-04-06T13:31:06Z", + "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": 39832, + "stargazers_count": 878, + "watchers_count": 878, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 601, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 101, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 601, + "open_issues": 101, + "watchers": 878, + "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://avatars.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": "2022-04-05T15:53:55Z", + "pushed_at": "2022-04-06T13:31:06Z", + "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": 39832, + "stargazers_count": 878, + "watchers_count": 878, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 601, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 101, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 601, + "open_issues": 101, + "watchers": 878, + "default_branch": "main" + }, + "network_count": 601, + "subscribers_count": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/repos_hub4j-test-org_github-api_collaborators-7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/repos_hub4j-test-org_github-api_collaborators-7.json new file mode 100644 index 0000000000..99cc2f77ac --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/repos_hub4j-test-org_github-api_collaborators-7.json @@ -0,0 +1,842 @@ +[ + { + "login": "vbehar", + "id": 6251, + "node_id": "MDQ6VXNlcjYyNTE=", + "avatar_url": "https://avatars.githubusercontent.com/u/6251?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vbehar", + "html_url": "https://github.com/vbehar", + "followers_url": "https://api.github.com/users/vbehar/followers", + "following_url": "https://api.github.com/users/vbehar/following{/other_user}", + "gists_url": "https://api.github.com/users/vbehar/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vbehar/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vbehar/subscriptions", + "organizations_url": "https://api.github.com/users/vbehar/orgs", + "repos_url": "https://api.github.com/users/vbehar/repos", + "events_url": "https://api.github.com/users/vbehar/events{/privacy}", + "received_events_url": "https://api.github.com/users/vbehar/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": false, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "maintain" + }, + { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "gastaldi", + "id": 54133, + "node_id": "MDQ6VXNlcjU0MTMz", + "avatar_url": "https://avatars.githubusercontent.com/u/54133?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gastaldi", + "html_url": "https://github.com/gastaldi", + "followers_url": "https://api.github.com/users/gastaldi/followers", + "following_url": "https://api.github.com/users/gastaldi/following{/other_user}", + "gists_url": "https://api.github.com/users/gastaldi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gastaldi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gastaldi/subscriptions", + "organizations_url": "https://api.github.com/users/gastaldi/orgs", + "repos_url": "https://api.github.com/users/gastaldi/repos", + "events_url": "https://api.github.com/users/gastaldi/events{/privacy}", + "received_events_url": "https://api.github.com/users/gastaldi/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "halkeye", + "id": 110087, + "node_id": "MDQ6VXNlcjExMDA4Nw==", + "avatar_url": "https://avatars.githubusercontent.com/u/110087?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/halkeye", + "html_url": "https://github.com/halkeye", + "followers_url": "https://api.github.com/users/halkeye/followers", + "following_url": "https://api.github.com/users/halkeye/following{/other_user}", + "gists_url": "https://api.github.com/users/halkeye/gists{/gist_id}", + "starred_url": "https://api.github.com/users/halkeye/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/halkeye/subscriptions", + "organizations_url": "https://api.github.com/users/halkeye/orgs", + "repos_url": "https://api.github.com/users/halkeye/repos", + "events_url": "https://api.github.com/users/halkeye/events{/privacy}", + "received_events_url": "https://api.github.com/users/halkeye/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "tedyoung", + "id": 382660, + "node_id": "MDQ6VXNlcjM4MjY2MA==", + "avatar_url": "https://avatars.githubusercontent.com/u/382660?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/tedyoung", + "html_url": "https://github.com/tedyoung", + "followers_url": "https://api.github.com/users/tedyoung/followers", + "following_url": "https://api.github.com/users/tedyoung/following{/other_user}", + "gists_url": "https://api.github.com/users/tedyoung/gists{/gist_id}", + "starred_url": "https://api.github.com/users/tedyoung/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/tedyoung/subscriptions", + "organizations_url": "https://api.github.com/users/tedyoung/orgs", + "repos_url": "https://api.github.com/users/tedyoung/repos", + "events_url": "https://api.github.com/users/tedyoung/events{/privacy}", + "received_events_url": "https://api.github.com/users/tedyoung/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "mrginglymus", + "id": 390569, + "node_id": "MDQ6VXNlcjM5MDU2OQ==", + "avatar_url": "https://avatars.githubusercontent.com/u/390569?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mrginglymus", + "html_url": "https://github.com/mrginglymus", + "followers_url": "https://api.github.com/users/mrginglymus/followers", + "following_url": "https://api.github.com/users/mrginglymus/following{/other_user}", + "gists_url": "https://api.github.com/users/mrginglymus/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mrginglymus/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mrginglymus/subscriptions", + "organizations_url": "https://api.github.com/users/mrginglymus/orgs", + "repos_url": "https://api.github.com/users/mrginglymus/repos", + "events_url": "https://api.github.com/users/mrginglymus/events{/privacy}", + "received_events_url": "https://api.github.com/users/mrginglymus/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "cmoulliard", + "id": 463790, + "node_id": "MDQ6VXNlcjQ2Mzc5MA==", + "avatar_url": "https://avatars.githubusercontent.com/u/463790?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/cmoulliard", + "html_url": "https://github.com/cmoulliard", + "followers_url": "https://api.github.com/users/cmoulliard/followers", + "following_url": "https://api.github.com/users/cmoulliard/following{/other_user}", + "gists_url": "https://api.github.com/users/cmoulliard/gists{/gist_id}", + "starred_url": "https://api.github.com/users/cmoulliard/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/cmoulliard/subscriptions", + "organizations_url": "https://api.github.com/users/cmoulliard/orgs", + "repos_url": "https://api.github.com/users/cmoulliard/repos", + "events_url": "https://api.github.com/users/cmoulliard/events{/privacy}", + "received_events_url": "https://api.github.com/users/cmoulliard/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "farmdawgnation", + "id": 620189, + "node_id": "MDQ6VXNlcjYyMDE4OQ==", + "avatar_url": "https://avatars.githubusercontent.com/u/620189?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/farmdawgnation", + "html_url": "https://github.com/farmdawgnation", + "followers_url": "https://api.github.com/users/farmdawgnation/followers", + "following_url": "https://api.github.com/users/farmdawgnation/following{/other_user}", + "gists_url": "https://api.github.com/users/farmdawgnation/gists{/gist_id}", + "starred_url": "https://api.github.com/users/farmdawgnation/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/farmdawgnation/subscriptions", + "organizations_url": "https://api.github.com/users/farmdawgnation/orgs", + "repos_url": "https://api.github.com/users/farmdawgnation/repos", + "events_url": "https://api.github.com/users/farmdawgnation/events{/privacy}", + "received_events_url": "https://api.github.com/users/farmdawgnation/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "alexanderrtaylor", + "id": 852179, + "node_id": "MDQ6VXNlcjg1MjE3OQ==", + "avatar_url": "https://avatars.githubusercontent.com/u/852179?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/alexanderrtaylor", + "html_url": "https://github.com/alexanderrtaylor", + "followers_url": "https://api.github.com/users/alexanderrtaylor/followers", + "following_url": "https://api.github.com/users/alexanderrtaylor/following{/other_user}", + "gists_url": "https://api.github.com/users/alexanderrtaylor/gists{/gist_id}", + "starred_url": "https://api.github.com/users/alexanderrtaylor/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/alexanderrtaylor/subscriptions", + "organizations_url": "https://api.github.com/users/alexanderrtaylor/orgs", + "repos_url": "https://api.github.com/users/alexanderrtaylor/repos", + "events_url": "https://api.github.com/users/alexanderrtaylor/events{/privacy}", + "received_events_url": "https://api.github.com/users/alexanderrtaylor/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "jlengrand", + "id": 921666, + "node_id": "MDQ6VXNlcjkyMTY2Ng==", + "avatar_url": "https://avatars.githubusercontent.com/u/921666?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jlengrand", + "html_url": "https://github.com/jlengrand", + "followers_url": "https://api.github.com/users/jlengrand/followers", + "following_url": "https://api.github.com/users/jlengrand/following{/other_user}", + "gists_url": "https://api.github.com/users/jlengrand/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jlengrand/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jlengrand/subscriptions", + "organizations_url": "https://api.github.com/users/jlengrand/orgs", + "repos_url": "https://api.github.com/users/jlengrand/repos", + "events_url": "https://api.github.com/users/jlengrand/events{/privacy}", + "received_events_url": "https://api.github.com/users/jlengrand/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "PauloMigAlmeida", + "id": 1011868, + "node_id": "MDQ6VXNlcjEwMTE4Njg=", + "avatar_url": "https://avatars.githubusercontent.com/u/1011868?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/PauloMigAlmeida", + "html_url": "https://github.com/PauloMigAlmeida", + "followers_url": "https://api.github.com/users/PauloMigAlmeida/followers", + "following_url": "https://api.github.com/users/PauloMigAlmeida/following{/other_user}", + "gists_url": "https://api.github.com/users/PauloMigAlmeida/gists{/gist_id}", + "starred_url": "https://api.github.com/users/PauloMigAlmeida/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/PauloMigAlmeida/subscriptions", + "organizations_url": "https://api.github.com/users/PauloMigAlmeida/orgs", + "repos_url": "https://api.github.com/users/PauloMigAlmeida/repos", + "events_url": "https://api.github.com/users/PauloMigAlmeida/events{/privacy}", + "received_events_url": "https://api.github.com/users/PauloMigAlmeida/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "JLLeitschuh", + "id": 1323708, + "node_id": "MDQ6VXNlcjEzMjM3MDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/1323708?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/JLLeitschuh", + "html_url": "https://github.com/JLLeitschuh", + "followers_url": "https://api.github.com/users/JLLeitschuh/followers", + "following_url": "https://api.github.com/users/JLLeitschuh/following{/other_user}", + "gists_url": "https://api.github.com/users/JLLeitschuh/gists{/gist_id}", + "starred_url": "https://api.github.com/users/JLLeitschuh/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/JLLeitschuh/subscriptions", + "organizations_url": "https://api.github.com/users/JLLeitschuh/orgs", + "repos_url": "https://api.github.com/users/JLLeitschuh/repos", + "events_url": "https://api.github.com/users/JLLeitschuh/events{/privacy}", + "received_events_url": "https://api.github.com/users/JLLeitschuh/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "kohsuke2", + "id": 1329242, + "node_id": "MDQ6VXNlcjEzMjkyNDI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1329242?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke2", + "html_url": "https://github.com/kohsuke2", + "followers_url": "https://api.github.com/users/kohsuke2/followers", + "following_url": "https://api.github.com/users/kohsuke2/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke2/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke2/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke2/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke2/orgs", + "repos_url": "https://api.github.com/users/kohsuke2/repos", + "events_url": "https://api.github.com/users/kohsuke2/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke2/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "ecxia", + "id": 1586186, + "node_id": "MDQ6VXNlcjE1ODYxODY=", + "avatar_url": "https://avatars.githubusercontent.com/u/1586186?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ecxia", + "html_url": "https://github.com/ecxia", + "followers_url": "https://api.github.com/users/ecxia/followers", + "following_url": "https://api.github.com/users/ecxia/following{/other_user}", + "gists_url": "https://api.github.com/users/ecxia/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ecxia/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ecxia/subscriptions", + "organizations_url": "https://api.github.com/users/ecxia/orgs", + "repos_url": "https://api.github.com/users/ecxia/repos", + "events_url": "https://api.github.com/users/ecxia/events{/privacy}", + "received_events_url": "https://api.github.com/users/ecxia/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "jgangemi", + "id": 1831839, + "node_id": "MDQ6VXNlcjE4MzE4Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1831839?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jgangemi", + "html_url": "https://github.com/jgangemi", + "followers_url": "https://api.github.com/users/jgangemi/followers", + "following_url": "https://api.github.com/users/jgangemi/following{/other_user}", + "gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions", + "organizations_url": "https://api.github.com/users/jgangemi/orgs", + "repos_url": "https://api.github.com/users/jgangemi/repos", + "events_url": "https://api.github.com/users/jgangemi/events{/privacy}", + "received_events_url": "https://api.github.com/users/jgangemi/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars.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, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "antrix190", + "id": 3845033, + "node_id": "MDQ6VXNlcjM4NDUwMzM=", + "avatar_url": "https://avatars.githubusercontent.com/u/3845033?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/antrix190", + "html_url": "https://github.com/antrix190", + "followers_url": "https://api.github.com/users/antrix190/followers", + "following_url": "https://api.github.com/users/antrix190/following{/other_user}", + "gists_url": "https://api.github.com/users/antrix190/gists{/gist_id}", + "starred_url": "https://api.github.com/users/antrix190/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/antrix190/subscriptions", + "organizations_url": "https://api.github.com/users/antrix190/orgs", + "repos_url": "https://api.github.com/users/antrix190/repos", + "events_url": "https://api.github.com/users/antrix190/events{/privacy}", + "received_events_url": "https://api.github.com/users/antrix190/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "asthinasthi", + "id": 4577101, + "node_id": "MDQ6VXNlcjQ1NzcxMDE=", + "avatar_url": "https://avatars.githubusercontent.com/u/4577101?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/asthinasthi", + "html_url": "https://github.com/asthinasthi", + "followers_url": "https://api.github.com/users/asthinasthi/followers", + "following_url": "https://api.github.com/users/asthinasthi/following{/other_user}", + "gists_url": "https://api.github.com/users/asthinasthi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/asthinasthi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/asthinasthi/subscriptions", + "organizations_url": "https://api.github.com/users/asthinasthi/orgs", + "repos_url": "https://api.github.com/users/asthinasthi/repos", + "events_url": "https://api.github.com/users/asthinasthi/events{/privacy}", + "received_events_url": "https://api.github.com/users/asthinasthi/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "ingwarsw", + "id": 5390156, + "node_id": "MDQ6VXNlcjUzOTAxNTY=", + "avatar_url": "https://avatars.githubusercontent.com/u/5390156?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ingwarsw", + "html_url": "https://github.com/ingwarsw", + "followers_url": "https://api.github.com/users/ingwarsw/followers", + "following_url": "https://api.github.com/users/ingwarsw/following{/other_user}", + "gists_url": "https://api.github.com/users/ingwarsw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ingwarsw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ingwarsw/subscriptions", + "organizations_url": "https://api.github.com/users/ingwarsw/orgs", + "repos_url": "https://api.github.com/users/ingwarsw/repos", + "events_url": "https://api.github.com/users/ingwarsw/events{/privacy}", + "received_events_url": "https://api.github.com/users/ingwarsw/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "Sage-Pierce", + "id": 5396306, + "node_id": "MDQ6VXNlcjUzOTYzMDY=", + "avatar_url": "https://avatars.githubusercontent.com/u/5396306?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Sage-Pierce", + "html_url": "https://github.com/Sage-Pierce", + "followers_url": "https://api.github.com/users/Sage-Pierce/followers", + "following_url": "https://api.github.com/users/Sage-Pierce/following{/other_user}", + "gists_url": "https://api.github.com/users/Sage-Pierce/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Sage-Pierce/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Sage-Pierce/subscriptions", + "organizations_url": "https://api.github.com/users/Sage-Pierce/orgs", + "repos_url": "https://api.github.com/users/Sage-Pierce/repos", + "events_url": "https://api.github.com/users/Sage-Pierce/events{/privacy}", + "received_events_url": "https://api.github.com/users/Sage-Pierce/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "t0m4uk1991", + "id": 6698785, + "node_id": "MDQ6VXNlcjY2OTg3ODU=", + "avatar_url": "https://avatars.githubusercontent.com/u/6698785?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/t0m4uk1991", + "html_url": "https://github.com/t0m4uk1991", + "followers_url": "https://api.github.com/users/t0m4uk1991/followers", + "following_url": "https://api.github.com/users/t0m4uk1991/following{/other_user}", + "gists_url": "https://api.github.com/users/t0m4uk1991/gists{/gist_id}", + "starred_url": "https://api.github.com/users/t0m4uk1991/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/t0m4uk1991/subscriptions", + "organizations_url": "https://api.github.com/users/t0m4uk1991/orgs", + "repos_url": "https://api.github.com/users/t0m4uk1991/repos", + "events_url": "https://api.github.com/users/t0m4uk1991/events{/privacy}", + "received_events_url": "https://api.github.com/users/t0m4uk1991/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "Irialad", + "id": 6895648, + "node_id": "MDQ6VXNlcjY4OTU2NDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/6895648?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Irialad", + "html_url": "https://github.com/Irialad", + "followers_url": "https://api.github.com/users/Irialad/followers", + "following_url": "https://api.github.com/users/Irialad/following{/other_user}", + "gists_url": "https://api.github.com/users/Irialad/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Irialad/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Irialad/subscriptions", + "organizations_url": "https://api.github.com/users/Irialad/orgs", + "repos_url": "https://api.github.com/users/Irialad/repos", + "events_url": "https://api.github.com/users/Irialad/events{/privacy}", + "received_events_url": "https://api.github.com/users/Irialad/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "avano", + "id": 7081216, + "node_id": "MDQ6VXNlcjcwODEyMTY=", + "avatar_url": "https://avatars.githubusercontent.com/u/7081216?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/avano", + "html_url": "https://github.com/avano", + "followers_url": "https://api.github.com/users/avano/followers", + "following_url": "https://api.github.com/users/avano/following{/other_user}", + "gists_url": "https://api.github.com/users/avano/gists{/gist_id}", + "starred_url": "https://api.github.com/users/avano/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/avano/subscriptions", + "organizations_url": "https://api.github.com/users/avano/orgs", + "repos_url": "https://api.github.com/users/avano/repos", + "events_url": "https://api.github.com/users/avano/events{/privacy}", + "received_events_url": "https://api.github.com/users/avano/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "vahrennd", + "id": 8679583, + "node_id": "MDQ6VXNlcjg2Nzk1ODM=", + "avatar_url": "https://avatars.githubusercontent.com/u/8679583?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vahrennd", + "html_url": "https://github.com/vahrennd", + "followers_url": "https://api.github.com/users/vahrennd/followers", + "following_url": "https://api.github.com/users/vahrennd/following{/other_user}", + "gists_url": "https://api.github.com/users/vahrennd/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vahrennd/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vahrennd/subscriptions", + "organizations_url": "https://api.github.com/users/vahrennd/orgs", + "repos_url": "https://api.github.com/users/vahrennd/repos", + "events_url": "https://api.github.com/users/vahrennd/events{/privacy}", + "received_events_url": "https://api.github.com/users/vahrennd/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "bloslo", + "id": 11611189, + "node_id": "MDQ6VXNlcjExNjExMTg5", + "avatar_url": "https://avatars.githubusercontent.com/u/11611189?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bloslo", + "html_url": "https://github.com/bloslo", + "followers_url": "https://api.github.com/users/bloslo/followers", + "following_url": "https://api.github.com/users/bloslo/following{/other_user}", + "gists_url": "https://api.github.com/users/bloslo/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bloslo/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bloslo/subscriptions", + "organizations_url": "https://api.github.com/users/bloslo/orgs", + "repos_url": "https://api.github.com/users/bloslo/repos", + "events_url": "https://api.github.com/users/bloslo/events{/privacy}", + "received_events_url": "https://api.github.com/users/bloslo/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "km2018", + "id": 13594336, + "node_id": "MDQ6VXNlcjEzNTk0MzM2", + "avatar_url": "https://avatars.githubusercontent.com/u/13594336?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/km2018", + "html_url": "https://github.com/km2018", + "followers_url": "https://api.github.com/users/km2018/followers", + "following_url": "https://api.github.com/users/km2018/following{/other_user}", + "gists_url": "https://api.github.com/users/km2018/gists{/gist_id}", + "starred_url": "https://api.github.com/users/km2018/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/km2018/subscriptions", + "organizations_url": "https://api.github.com/users/km2018/orgs", + "repos_url": "https://api.github.com/users/km2018/repos", + "events_url": "https://api.github.com/users/km2018/events{/privacy}", + "received_events_url": "https://api.github.com/users/km2018/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "akashRindhe", + "id": 14114123, + "node_id": "MDQ6VXNlcjE0MTE0MTIz", + "avatar_url": "https://avatars.githubusercontent.com/u/14114123?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/akashRindhe", + "html_url": "https://github.com/akashRindhe", + "followers_url": "https://api.github.com/users/akashRindhe/followers", + "following_url": "https://api.github.com/users/akashRindhe/following{/other_user}", + "gists_url": "https://api.github.com/users/akashRindhe/gists{/gist_id}", + "starred_url": "https://api.github.com/users/akashRindhe/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/akashRindhe/subscriptions", + "organizations_url": "https://api.github.com/users/akashRindhe/orgs", + "repos_url": "https://api.github.com/users/akashRindhe/repos", + "events_url": "https://api.github.com/users/akashRindhe/events{/privacy}", + "received_events_url": "https://api.github.com/users/akashRindhe/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "jberglund-BSFT", + "id": 19560713, + "node_id": "MDQ6VXNlcjE5NTYwNzEz", + "avatar_url": "https://avatars.githubusercontent.com/u/19560713?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jberglund-BSFT", + "html_url": "https://github.com/jberglund-BSFT", + "followers_url": "https://api.github.com/users/jberglund-BSFT/followers", + "following_url": "https://api.github.com/users/jberglund-BSFT/following{/other_user}", + "gists_url": "https://api.github.com/users/jberglund-BSFT/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jberglund-BSFT/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jberglund-BSFT/subscriptions", + "organizations_url": "https://api.github.com/users/jberglund-BSFT/orgs", + "repos_url": "https://api.github.com/users/jberglund-BSFT/repos", + "events_url": "https://api.github.com/users/jberglund-BSFT/events{/privacy}", + "received_events_url": "https://api.github.com/users/jberglund-BSFT/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "timja", + "id": 21194782, + "node_id": "MDQ6VXNlcjIxMTk0Nzgy", + "avatar_url": "https://avatars.githubusercontent.com/u/21194782?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/timja", + "html_url": "https://github.com/timja", + "followers_url": "https://api.github.com/users/timja/followers", + "following_url": "https://api.github.com/users/timja/following{/other_user}", + "gists_url": "https://api.github.com/users/timja/gists{/gist_id}", + "starred_url": "https://api.github.com/users/timja/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/timja/subscriptions", + "organizations_url": "https://api.github.com/users/timja/orgs", + "repos_url": "https://api.github.com/users/timja/repos", + "events_url": "https://api.github.com/users/timja/events{/privacy}", + "received_events_url": "https://api.github.com/users/timja/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/repositories_206888201_collaborators-8.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/repositories_206888201_collaborators-8.json new file mode 100644 index 0000000000..7a82b89785 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/repositories_206888201_collaborators-8.json @@ -0,0 +1,170 @@ +[ + { + "login": "martinvanzijl", + "id": 24422213, + "node_id": "MDQ6VXNlcjI0NDIyMjEz", + "avatar_url": "https://avatars.githubusercontent.com/u/24422213?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/martinvanzijl", + "html_url": "https://github.com/martinvanzijl", + "followers_url": "https://api.github.com/users/martinvanzijl/followers", + "following_url": "https://api.github.com/users/martinvanzijl/following{/other_user}", + "gists_url": "https://api.github.com/users/martinvanzijl/gists{/gist_id}", + "starred_url": "https://api.github.com/users/martinvanzijl/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/martinvanzijl/subscriptions", + "organizations_url": "https://api.github.com/users/martinvanzijl/orgs", + "repos_url": "https://api.github.com/users/martinvanzijl/repos", + "events_url": "https://api.github.com/users/martinvanzijl/events{/privacy}", + "received_events_url": "https://api.github.com/users/martinvanzijl/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "SCHJonathan", + "id": 26502832, + "node_id": "MDQ6VXNlcjI2NTAyODMy", + "avatar_url": "https://avatars.githubusercontent.com/u/26502832?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/SCHJonathan", + "html_url": "https://github.com/SCHJonathan", + "followers_url": "https://api.github.com/users/SCHJonathan/followers", + "following_url": "https://api.github.com/users/SCHJonathan/following{/other_user}", + "gists_url": "https://api.github.com/users/SCHJonathan/gists{/gist_id}", + "starred_url": "https://api.github.com/users/SCHJonathan/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/SCHJonathan/subscriptions", + "organizations_url": "https://api.github.com/users/SCHJonathan/orgs", + "repos_url": "https://api.github.com/users/SCHJonathan/repos", + "events_url": "https://api.github.com/users/SCHJonathan/events{/privacy}", + "received_events_url": "https://api.github.com/users/SCHJonathan/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "willtsai", + "id": 28876888, + "node_id": "MDQ6VXNlcjI4ODc2ODg4", + "avatar_url": "https://avatars.githubusercontent.com/u/28876888?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/willtsai", + "html_url": "https://github.com/willtsai", + "followers_url": "https://api.github.com/users/willtsai/followers", + "following_url": "https://api.github.com/users/willtsai/following{/other_user}", + "gists_url": "https://api.github.com/users/willtsai/gists{/gist_id}", + "starred_url": "https://api.github.com/users/willtsai/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/willtsai/subscriptions", + "organizations_url": "https://api.github.com/users/willtsai/orgs", + "repos_url": "https://api.github.com/users/willtsai/repos", + "events_url": "https://api.github.com/users/willtsai/events{/privacy}", + "received_events_url": "https://api.github.com/users/willtsai/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "Typraeurion", + "id": 36168707, + "node_id": "MDQ6VXNlcjM2MTY4NzA3", + "avatar_url": "https://avatars.githubusercontent.com/u/36168707?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Typraeurion", + "html_url": "https://github.com/Typraeurion", + "followers_url": "https://api.github.com/users/Typraeurion/followers", + "following_url": "https://api.github.com/users/Typraeurion/following{/other_user}", + "gists_url": "https://api.github.com/users/Typraeurion/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Typraeurion/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Typraeurion/subscriptions", + "organizations_url": "https://api.github.com/users/Typraeurion/orgs", + "repos_url": "https://api.github.com/users/Typraeurion/repos", + "events_url": "https://api.github.com/users/Typraeurion/events{/privacy}", + "received_events_url": "https://api.github.com/users/Typraeurion/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "mxandeco", + "id": 42962662, + "node_id": "MDQ6VXNlcjQyOTYyNjYy", + "avatar_url": "https://avatars.githubusercontent.com/u/42962662?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mxandeco", + "html_url": "https://github.com/mxandeco", + "followers_url": "https://api.github.com/users/mxandeco/followers", + "following_url": "https://api.github.com/users/mxandeco/following{/other_user}", + "gists_url": "https://api.github.com/users/mxandeco/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mxandeco/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mxandeco/subscriptions", + "organizations_url": "https://api.github.com/users/mxandeco/orgs", + "repos_url": "https://api.github.com/users/mxandeco/repos", + "events_url": "https://api.github.com/users/mxandeco/events{/privacy}", + "received_events_url": "https://api.github.com/users/mxandeco/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "tginiotis-at-work", + "id": 61763026, + "node_id": "MDQ6VXNlcjYxNzYzMDI2", + "avatar_url": "https://avatars.githubusercontent.com/u/61763026?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/tginiotis-at-work", + "html_url": "https://github.com/tginiotis-at-work", + "followers_url": "https://api.github.com/users/tginiotis-at-work/followers", + "following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}", + "gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}", + "starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions", + "organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs", + "repos_url": "https://api.github.com/users/tginiotis-at-work/repos", + "events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}", + "received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/user-1.json new file mode 100644 index 0000000000..cfe0f3a0c9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/user-1.json @@ -0,0 +1,46 @@ +{ + "login": "jgangemi", + "id": 1831839, + "node_id": "MDQ6VXNlcjE4MzE4Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1831839?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jgangemi", + "html_url": "https://github.com/jgangemi", + "followers_url": "https://api.github.com/users/jgangemi/followers", + "following_url": "https://api.github.com/users/jgangemi/following{/other_user}", + "gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions", + "organizations_url": "https://api.github.com/users/jgangemi/orgs", + "repos_url": "https://api.github.com/users/jgangemi/repos", + "events_url": "https://api.github.com/users/jgangemi/events{/privacy}", + "received_events_url": "https://api.github.com/users/jgangemi/received_events", + "type": "User", + "site_admin": false, + "name": "Jae Gangemi", + "company": null, + "blog": "", + "location": null, + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 39, + "public_gists": 1, + "followers": 1, + "following": 0, + "created_at": "2012-06-08T19:54:02Z", + "updated_at": "2022-03-09T12:59:44Z", + "private_gists": 0, + "total_private_repos": 9, + "owned_private_repos": 9, + "disk_usage": 16623, + "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/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/users_jgangemi-9.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/users_jgangemi-9.json new file mode 100644 index 0000000000..cfe0f3a0c9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/__files/users_jgangemi-9.json @@ -0,0 +1,46 @@ +{ + "login": "jgangemi", + "id": 1831839, + "node_id": "MDQ6VXNlcjE4MzE4Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1831839?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jgangemi", + "html_url": "https://github.com/jgangemi", + "followers_url": "https://api.github.com/users/jgangemi/followers", + "following_url": "https://api.github.com/users/jgangemi/following{/other_user}", + "gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions", + "organizations_url": "https://api.github.com/users/jgangemi/orgs", + "repos_url": "https://api.github.com/users/jgangemi/repos", + "events_url": "https://api.github.com/users/jgangemi/events{/privacy}", + "received_events_url": "https://api.github.com/users/jgangemi/received_events", + "type": "User", + "site_admin": false, + "name": "Jae Gangemi", + "company": null, + "blog": "", + "location": null, + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 39, + "public_gists": 1, + "followers": 1, + "following": 0, + "created_at": "2012-06-08T19:54:02Z", + "updated_at": "2022-03-09T12:59:44Z", + "private_gists": 0, + "total_private_repos": 9, + "owned_private_repos": 9, + "disk_usage": 16623, + "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/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..26879bb37a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/orgs_hub4j-test-org-2.json @@ -0,0 +1,48 @@ +{ + "id": "e6a881ae-37d1-4d13-bfd5-ea974753e28f", + "name": "orgs_hub4j-test-org", + "request": { + "url": "/orgs/hub4j-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_hub4j-test-org-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:42:19 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"9c48b6d97946cc9cca7a7eba9df130c47c977fea9e3ed36222d79a378e2ff6c8\"", + "Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4952", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "48", + "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": "CECF:0B4E:46D1E:3FF6B7:624D98BB" + } + }, + "uuid": "e6a881ae-37d1-4d13-bfd5-ea974753e28f", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..6db0fa4ecc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api-3.json @@ -0,0 +1,48 @@ +{ + "id": "49521425-2e5f-42ad-b3e8-303ec0024cda", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:42: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/\"f659ce60400fb1f0bd592ef4533029ee2aca8f3785088fc086eb3c10b2548f0f\"", + "Last-Modified": "Tue, 09 Nov 2021 20:13:29 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4951", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "49", + "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": "CED2:7498:A2B7E0:1606203:624D98BC" + } + }, + "uuid": "49521425-2e5f-42ad-b3e8-303ec0024cda", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators-7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators-7.json new file mode 100644 index 0000000000..f5c02809df --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators-7.json @@ -0,0 +1,48 @@ +{ + "id": "f869dcab-3062-4b39-837f-c3040ae909e7", + "name": "repos_hub4j-test-org_github-api_collaborators", + "request": { + "url": "/repos/hub4j-test-org/github-api/collaborators", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_collaborators-7.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:45: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/\"c25154dd632007731047bdcf4bd2d6efa956d93da1ff3ec63eb726b5a954531d\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4945", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "55", + "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": "CF41:5446:1F1E10:47661E:624D998D", + "Link": "; rel=\"next\", ; rel=\"last\"" + } + }, + "uuid": "f869dcab-3062-4b39-837f-c3040ae909e7", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators_jgangemi-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators_jgangemi-4.json new file mode 100644 index 0000000000..fe1c414aa7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators_jgangemi-4.json @@ -0,0 +1,49 @@ +{ + "id": "c26dd0b4-763d-4813-ab2e-127a0c97eddd", + "name": "repos_hub4j-test-org_github-api_collaborators_jgangemi", + "request": { + "url": "/repos/hub4j-test-org/github-api/collaborators/jgangemi", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"permission\":{\"permission\":\"push\"}}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 422, + "body": "{\"message\":\"`{\\\"permission\\\"=>\\\"push\\\"}` is not a valid permission.\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#add-a-repository-collaborator\"}", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:42:20 GMT", + "Content-Type": "application/json; charset=utf-8", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4950", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "50", + "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": "CED3:2769:C8D357:235265D:624D98BC" + } + }, + "uuid": "c26dd0b4-763d-4813-ab2e-127a0c97eddd", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators_jgangemi-5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators_jgangemi-5.json new file mode 100644 index 0000000000..f9e6b7ca09 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators_jgangemi-5.json @@ -0,0 +1,49 @@ +{ + "id": "eeea5e22-2c68-417a-9303-11e9bfb7ecfa", + "name": "repos_hub4j-test-org_github-api_collaborators_jgangemi", + "request": { + "url": "/repos/hub4j-test-org/github-api/collaborators/jgangemi", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"permission\":{\"permission\":\"pull\"}}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 422, + "body": "{\"message\":\"`{\\\"permission\\\"=>\\\"pull\\\"}` is not a valid permission.\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#add-a-repository-collaborator\"}", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:43:42 GMT", + "Content-Type": "application/json; charset=utf-8", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4948", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "52", + "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": "CF05:6F76:B645E4:22C8480:624D990D" + } + }, + "uuid": "eeea5e22-2c68-417a-9303-11e9bfb7ecfa", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators_jgangemi-6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators_jgangemi-6.json new file mode 100644 index 0000000000..c88ef394ac --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repos_hub4j-test-org_github-api_collaborators_jgangemi-6.json @@ -0,0 +1,47 @@ +{ + "id": "b78ec5d5-f584-4e81-9080-81779618a93f", + "name": "repos_hub4j-test-org_github-api_collaborators_jgangemi", + "request": { + "url": "/repos/hub4j-test-org/github-api/collaborators/jgangemi", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"permission\":\"pull\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:45:49 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4946", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "54", + "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": "CF40:2961:245341:6DD416:624D998D" + } + }, + "uuid": "b78ec5d5-f584-4e81-9080-81779618a93f", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repositories_206888201_collaborators-8.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repositories_206888201_collaborators-8.json new file mode 100644 index 0000000000..562dda67ca --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/repositories_206888201_collaborators-8.json @@ -0,0 +1,48 @@ +{ + "id": "c8638ef3-63c7-4b98-809e-2c913a8a0024", + "name": "repositories_206888201_collaborators", + "request": { + "url": "/repositories/206888201/collaborators?page=2", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repositories_206888201_collaborators-8.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:45: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/\"b22e9856582486f7298b3d23070cba87c85eeafac7a9f278d691918b66657310\"", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4944", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "56", + "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": "CF42:0EAE:3AF067:6D2595:624D998D", + "Link": "; rel=\"prev\", ; rel=\"first\"" + } + }, + "uuid": "c8638ef3-63c7-4b98-809e-2c913a8a0024", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/user-1.json similarity index 57% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/user-1.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/user-1.json index 723fcfe08d..14c5d747d7 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/user-1.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/user-1.json @@ -1,5 +1,5 @@ { - "id": "86b5682b-e774-463f-af19-039ef0e802f7", + "id": "841c9e73-8c02-4018-9e1c-719ac32be0c8", "name": "user", "request": { "url": "/user", @@ -15,32 +15,34 @@ "bodyFileName": "user-1.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:22 GMT", + "Date": "Wed, 06 Apr 2022 13:42:18 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"879f35eed38dcc75ca2b3a8999425e0d51678f4c73ffade3c5bcc853b59245b6\"", - "Last-Modified": "Tue, 23 Mar 2021 17:35:45 GMT", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"65ac0e73527e3adc4df6bbbde94bb21480926587df8832f0bab8a5fc1bc746c9\"", + "Last-Modified": "Wed, 09 Mar 2022 12:59:44 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4999", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "1", + "X-RateLimit-Remaining": "4954", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "46", + "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": "D598:12325:427EEBB:4381A07:605C67A6" + "X-GitHub-Request-Id": "CEC4:4546:1199788:2196458:624D98BA" } }, - "uuid": "86b5682b-e774-463f-af19-039ef0e802f7", + "uuid": "841c9e73-8c02-4018-9e1c-719ac32be0c8", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/users_jgangemi-9.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/users_jgangemi-9.json new file mode 100644 index 0000000000..67731bf89d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/addCollaboratorsRepoPerm/mappings/users_jgangemi-9.json @@ -0,0 +1,48 @@ +{ + "id": "a38d6471-c0b3-43d9-994e-bd253670bea3", + "name": "users_jgangemi", + "request": { + "url": "/users/jgangemi", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "users_jgangemi-9.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 06 Apr 2022 13:45: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/\"65ac0e73527e3adc4df6bbbde94bb21480926587df8832f0bab8a5fc1bc746c9\"", + "Last-Modified": "Wed, 09 Mar 2022 12:59:44 GMT", + "X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-05-06 06:00:00 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4943", + "X-RateLimit-Reset": "1649254722", + "X-RateLimit-Used": "57", + "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": "CF43:6B70:374C2E:67A0E8:624D998E" + } + }, + "uuid": "a38d6471-c0b3-43d9-994e-bd253670bea3", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/__files/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/__files/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..f20dcc4024 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/__files/orgs_hub4j-test-org-2.json @@ -0,0 +1,41 @@ +{ + "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": 10, + "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": 147, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 0, + "filled_seats": 11, + "seats": 0 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/__files/repos_hub4j-test-org_github-api-3.json similarity index 93% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-3.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/__files/repos_hub4j-test-org_github-api-3.json index 86ec557e28..6cc98c90e2 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api-3.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/__files/repos_hub4j-test-org_github-api-3.json @@ -8,7 +8,7 @@ "login": "hub4j-test-org", "id": 7544739, "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", - "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "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", @@ -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": "2021-01-22T03:50:37Z", - "pushed_at": "2021-01-22T23:37:43Z", + "updated_at": "2019-12-20T00:07:51Z", + "pushed_at": "2020-01-10T23:15:59Z", "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": 19052, + "size": 11413, "stargazers_count": 0, "watchers_count": 0, "language": "Java", @@ -85,7 +85,7 @@ "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 5, + "open_issues_count": 0, "license": { "key": "mit", "name": "MIT License", @@ -94,7 +94,7 @@ "node_id": "MDc6TGljZW5zZTEz" }, "forks": 0, - "open_issues": 5, + "open_issues": 0, "watchers": 0, "default_branch": "main", "permissions": { @@ -111,7 +111,7 @@ "login": "hub4j-test-org", "id": 7544739, "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", - "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "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", @@ -137,7 +137,7 @@ "login": "hub4j", "id": 54909825, "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", - "avatar_url": "https://avatars.githubusercontent.com/u/54909825?v=4", + "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", @@ -194,27 +194,27 @@ "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", "created_at": "2010-04-19T04:13:03Z", - "updated_at": "2021-01-22T01:29:15Z", - "pushed_at": "2021-01-15T04:14:15Z", + "updated_at": "2020-01-10T19:14:02Z", + "pushed_at": "2020-01-10T19:14:21Z", "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": 26826, - "stargazers_count": 728, - "watchers_count": 728, + "homepage": "http://github-api.kohsuke.org/", + "size": 17575, + "stargazers_count": 602, + "watchers_count": 602, "language": "Java", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": true, - "forks_count": 520, + "forks_count": 444, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 77, + "open_issues_count": 55, "license": { "key": "mit", "name": "MIT License", @@ -222,9 +222,9 @@ "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, - "forks": 520, - "open_issues": 77, - "watchers": 728, + "forks": 444, + "open_issues": 55, + "watchers": 602, "default_branch": "main" }, "source": { @@ -237,7 +237,7 @@ "login": "hub4j", "id": 54909825, "node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1", - "avatar_url": "https://avatars.githubusercontent.com/u/54909825?v=4", + "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", @@ -294,27 +294,27 @@ "releases_url": "https://api.github.com/repos/hub4j/github-api/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j/github-api/deployments", "created_at": "2010-04-19T04:13:03Z", - "updated_at": "2021-01-22T01:29:15Z", - "pushed_at": "2021-01-15T04:14:15Z", + "updated_at": "2020-01-10T19:14:02Z", + "pushed_at": "2020-01-10T19:14:21Z", "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": 26826, - "stargazers_count": 728, - "watchers_count": 728, + "homepage": "http://github-api.kohsuke.org/", + "size": 17575, + "stargazers_count": 602, + "watchers_count": 602, "language": "Java", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": true, - "forks_count": 520, + "forks_count": 444, "mirror_url": null, "archived": false, "disabled": false, - "open_issues_count": 77, + "open_issues_count": 55, "license": { "key": "mit", "name": "MIT License", @@ -322,11 +322,11 @@ "url": "https://api.github.com/licenses/mit", "node_id": "MDc6TGljZW5zZTEz" }, - "forks": 520, - "open_issues": 77, - "watchers": 728, + "forks": 444, + "open_issues": 55, + "watchers": 602, "default_branch": "main" }, - "network_count": 520, + "network_count": 444, "subscribers_count": 0 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/__files/repos_hub4j-test-org_github-secrets-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/__files/repos_hub4j-test-org_github-secrets-4.json new file mode 100644 index 0000000000..0e0dcd235c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/__files/repos_hub4j-test-org_github-secrets-4.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/mappings/orgs_hub4j-test-org-2.json similarity index 61% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-1.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/mappings/orgs_hub4j-test-org-2.json index bbed4808ec..e7f3541c53 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/user-1.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/mappings/orgs_hub4j-test-org-2.json @@ -1,8 +1,8 @@ { - "id": "d9a254e0-d5e1-4fd9-b995-51e933b769f3", - "name": "user", + "id": "d542cf64-ac9f-4fe7-bc38-9286b63c7828", + "name": "orgs_hub4j-test-org", "request": { - "url": "/user", + "url": "/orgs/hub4j-test-org", "method": "GET", "headers": { "Accept": { @@ -12,24 +12,24 @@ }, "response": { "status": 200, - "bodyFileName": "user-1.json", + "bodyFileName": "orgs_hub4j-test-org-2.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:53 GMT", + "Date": "Fri, 10 Jan 2020 23:17:13 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "200 OK", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4893", - "X-RateLimit-Reset": "1582428788", + "X-RateLimit-Remaining": "4975", + "X-RateLimit-Reset": "1578701497", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" + "Accept-Encoding" ], - "ETag": "W/\"9ba78fe3aeaabbbc6865aada56195a20\"", - "Last-Modified": "Fri, 21 Feb 2020 20:59:33 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": "", + "ETag": "W/\"baa5a9df51598a7157caf0bf0f377482\"", + "Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT", + "X-OAuth-Scopes": "admin:org, delete_repo, gist, 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": "*", @@ -39,10 +39,10 @@ "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": "C701:8993:A68DC2:C0D644:5E51EE69" + "X-GitHub-Request-Id": "BB06:1AD3:68EF1F:799228:5E1905F6" } }, - "uuid": "d9a254e0-d5e1-4fd9-b995-51e933b769f3", + "uuid": "d542cf64-ac9f-4fe7-bc38-9286b63c7828", "persistent": true, - "insertionIndex": 1 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/mappings/repos_hub4j-test-org_github-api-3.json similarity index 61% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311-3.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/mappings/repos_hub4j-test-org_github-api-3.json index c46acf2e86..5d65cf45b5 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311-3.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/mappings/repos_hub4j-test-org_github-api-3.json @@ -1,8 +1,8 @@ { - "id": "1e8e21ad-edaf-4647-b812-4046b8f71a3a", - "name": "repos_hub4j_github-api_issues_311", + "id": "18a0b001-eca8-40df-bafa-9c767c9e209a", + "name": "repos_hub4j-test-org_github-api", "request": { - "url": "/repos/hub4j/github-api/issues/311", + "url": "/repos/hub4j-test-org/temp-createSecret", "method": "GET", "headers": { "Accept": { @@ -12,23 +12,23 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j_github-api_issues_311-3.json", + "bodyFileName": "repos_hub4j-test-org_github-api-3.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:54 GMT", + "Date": "Fri, 10 Jan 2020 23:17:13 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "200 OK", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4890", - "X-RateLimit-Reset": "1582428788", + "X-RateLimit-Remaining": "4974", + "X-RateLimit-Reset": "1578701497", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" + "Accept-Encoding" ], - "ETag": "W/\"62f7fd95abf580737a40918dc382d828\"", - "Last-Modified": "Mon, 17 Feb 2020 11:11:11 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"66f07f20b59c67d96b7aecf0ae184593\"", + "Last-Modified": "Fri, 20 Dec 2019 00:07:51 GMT", + "X-OAuth-Scopes": "admin:org, delete_repo, gist, 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", @@ -39,10 +39,10 @@ "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": "C701:8993:A68E02:C0D68F:5E51EE6A" + "X-GitHub-Request-Id": "BB06:1AD3:68EF27:799263:5E1905F9" } }, - "uuid": "1e8e21ad-edaf-4647-b812-4046b8f71a3a", + "uuid": "18a0b001-eca8-40df-bafa-9c767c9e209a", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/mappings/repos_hub4j-test-org_github-secrets-4.json similarity index 54% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-5.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/mappings/repos_hub4j-test-org_github-secrets-4.json index c212b8b1e9..3af25c6c66 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api_issues_311_reactions-5.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/createSecret/mappings/repos_hub4j-test-org_github-secrets-4.json @@ -1,17 +1,17 @@ { - "id": "dfcc4bc3-3276-408a-a945-e132d4fbf2e5", - "name": "repos_hub4j_github-api_issues_311_reactions", + "id": "f654b3ef-74dc-4775-8809-f07c2a44925e", + "name": "repos_hub4j-test-org_github-api_git_refs", "request": { - "url": "/repos/hub4j/github-api/issues/311/reactions", - "method": "POST", + "url": "/repos/hub4j-test-org/github-api/actions/secrets/secret", + "method": "PUT", "headers": { "Accept": { - "equalTo": "application/vnd.github.squirrel-girl-preview+json" + "equalTo": "application/vnd.github.v3+json" } }, "bodyPatterns": [ { - "equalToJson": "{\"content\":\"hooray\"}", + "equalToJson": "{\"key_id\":\"public\",\"encrypted_value\":\"encrypted\"}", "ignoreArrayOrder": true, "ignoreExtraElements": true } @@ -19,24 +19,24 @@ }, "response": { "status": 201, - "bodyFileName": "repos_hub4j_github-api_issues_311_reactions-5.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:55 GMT", + "Date": "Fri, 10 Jan 2020 23:17:15 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "201 Created", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4888", - "X-RateLimit-Reset": "1582428789", + "X-RateLimit-Remaining": "4972", + "X-RateLimit-Reset": "1578701497", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" + "Accept-Encoding" ], - "ETag": "\"cdc7e73cd4d47876aae737d967949ff5\"", - "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": "github.squirrel-girl-preview; format=json", + "ETag": "\"c369f800ca461fa9cff882ed5e49b2b2\"", + "X-OAuth-Scopes": "admin:org, delete_repo, gist, repo", + "X-Accepted-OAuth-Scopes": "repo", + "Location": "https://api.github.com/repos/hub4j-test-org/github-api/actions/secrets/secret", + "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", @@ -45,10 +45,10 @@ "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": "C701:8993:A68E18:C0D6AF:5E51EE6A" + "X-GitHub-Request-Id": "BB06:1AD3:68EF3B:79927A:5E1905FA" } }, - "uuid": "dfcc4bc3-3276-408a-a945-e132d4fbf2e5", + "uuid": "f654b3ef-74dc-4775-8809-f07c2a44925e", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/__files/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/__files/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..5e957496c3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/__files/orgs_hub4j-test-org-2.json @@ -0,0 +1,4 @@ +{ + "key_id": "93493987-1167-42ca-9ce1-668c3697700e", + "key": "test-key" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/__files/publickey_hub4j-test-org_github-api-1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/__files/publickey_hub4j-test-org_github-api-1.json new file mode 100644 index 0000000000..8eec1b1e90 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/__files/publickey_hub4j-test-org_github-api-1.json @@ -0,0 +1,4 @@ +{ + "key_id": "key-id", + "key": "test-key" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/__files/repos_hub4j-test-org_temp-getpublickey-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/__files/repos_hub4j-test-org_temp-getpublickey-2.json new file mode 100644 index 0000000000..7fbbd2b994 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/__files/repos_hub4j-test-org_temp-getpublickey-2.json @@ -0,0 +1,126 @@ +{ + "id": 233131910, + "node_id": "MDEwOlJlcG9zaXRvcnkyMzMxMzE5MTA=", + "name": "temp-getPublicKey", + "full_name": "hub4j-test-org/temp-getPublicKey", + "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-getPublicKey", + "description": "A test repository for testing the github-api project: temp-getPublicKey", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-getPublicKey/deployments", + "created_at": "2020-01-10T21:17:53Z", + "updated_at": "2020-01-10T21:17:57Z", + "pushed_at": "2020-01-10T21:17:55Z", + "git_url": "git://github.com/hub4j-test-org/temp-getPublicKey.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-getPublicKey.git", + "clone_url": "https://github.com/hub4j-test-org/temp-getPublicKey.git", + "svn_url": "https://github.com/hub4j-test-org/temp-getPublicKey", + "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/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/mappings/orgs_hub4j-test-org-2.json similarity index 69% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-2.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/mappings/orgs_hub4j-test-org-2.json index 2850996226..b6d257e699 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/orgs_hub4j-test-org-2.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/mappings/orgs_hub4j-test-org-2.json @@ -1,12 +1,12 @@ { - "id": "69f6f529-b255-4cca-8d7b-8d75751230fe", + "id": "93493987-1167-42ca-9ce1-668c3697700e", "name": "orgs_hub4j-test-org", "request": { "url": "/orgs/hub4j-test-org", "method": "GET", "headers": { "Accept": { - "equalTo": "application/vnd.github.v3+json" + "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } } }, @@ -14,35 +14,34 @@ "status": 200, "bodyFileName": "orgs_hub4j-test-org-2.json", "headers": { - "Date": "Fri, 22 Jan 2021 23:38:16 GMT", + "Date": "Thu, 11 Jun 2020 02:20:47 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4917", + "X-RateLimit-Reset": "1591843209", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With", "Accept-Encoding" ], - "ETag": "W/\"c062f331dfbc4af616476fa3cc4b0e5bbb2ed899c9511d5844ce4bd5274c4c5a\"", - "last-modified": "Thu, 04 Jun 2020 05:56:10 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"6bd323dd4ab2a01dae2464621246c3cd\"", + "Last-Modified": "Thu, 04 Jun 2020 05:56:10 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": "admin:org, read:org, repo, user, write:org", "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4815", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "185", "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": "D013:3B95:105815:1263AC:600B61E6" + "X-GitHub-Request-Id": "E5B0:5D6A:3A9A6:47E29:5EE194FE" } }, - "uuid": "69f6f529-b255-4cca-8d7b-8d75751230fe", + "uuid": "93493987-1167-42ca-9ce1-668c3697700e", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/mappings/publickey_hub4j-test-org_github-api-1.json similarity index 66% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-3.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/mappings/publickey_hub4j-test-org_github-api-1.json index 2f2cc8156a..639c74badb 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api-3.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/mappings/publickey_hub4j-test-org_github-api-1.json @@ -1,8 +1,8 @@ { - "id": "c0f82740-1776-447a-b085-33cf22aa5f86", + "id": "188ff38b-cbda-4bdb-82f0-3dcd5eb20d72", "name": "repos_hub4j-test-org_github-api", "request": { - "url": "/repos/hub4j-test-org/github-api", + "url": "/repos/hub4j-test-org/temp-getPublicKey/actions/secrets/public-key", "method": "GET", "headers": { "Accept": { @@ -12,37 +12,36 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api-3.json", + "bodyFileName": "publickey_hub4j-test-org_github-api-1.json", "headers": { - "Date": "Fri, 22 Jan 2021 23:38:16 GMT", + "Date": "Thu, 11 Jun 2020 02:20:47 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4916", + "X-RateLimit-Reset": "1591843209", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With", "Accept-Encoding" ], - "ETag": "W/\"46b5bda6fe80f4abc4a126a9ca0ca79ad37f2cbc04847e1903e100e6b07744ee\"", - "last-modified": "Fri, 22 Jan 2021 03:50:37 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion", + "ETag": "W/\"d50e09a217754b7ffeb7a6aa7219af30\"", + "Last-Modified": "Wed, 10 Jun 2020 23:27:59 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", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4814", - "X-RateLimit-Reset": "1611361294", - "x-ratelimit-used": "186", "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": "D013:3B95:105818:1263BC:600B61E8" + "X-GitHub-Request-Id": "E5B0:5D6A:3A9A9:47E30:5EE194FF" } }, - "uuid": "c0f82740-1776-447a-b085-33cf22aa5f86", + "uuid": "188ff38b-cbda-4bdb-82f0-3dcd5eb20d72", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/mappings/repos_hub4j-test-org_temp-getpublickey-2.json similarity index 69% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api-2.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/mappings/repos_hub4j-test-org_temp-getpublickey-2.json index 20da3831b5..90ac33e1d9 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/reactions/mappings/repos_hub4j_github-api-2.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/getPublicKey/mappings/repos_hub4j-test-org_temp-getpublickey-2.json @@ -1,8 +1,8 @@ { - "id": "66f6b3ba-129b-441c-9f2f-c9e18c941eea", - "name": "repos_hub4j_github-api", + "id": "7b70f17b-8996-4f3c-b51e-4e185e988ee0", + "name": "repos_hub4j-test-org_temp-getpublickey", "request": { - "url": "/repos/hub4j/github-api", + "url": "/repos/hub4j-test-org/temp-getPublicKey", "method": "GET", "headers": { "Accept": { @@ -12,22 +12,22 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j_github-api-2.json", + "bodyFileName": "repos_hub4j-test-org_temp-getpublickey-2.json", "headers": { - "Date": "Sun, 23 Feb 2020 03:15:54 GMT", + "Date": "Fri, 10 Jan 2020 21:17:59 GMT", "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", "Status": "200 OK", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4891", - "X-RateLimit-Reset": "1582428788", + "X-RateLimit-Remaining": "4968", + "X-RateLimit-Reset": "1578694499", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" + "Accept-Encoding" ], - "ETag": "W/\"269c8989f92f77931309a63cbad7a7c7\"", - "Last-Modified": "Sun, 23 Feb 2020 02:42:15 GMT", + "ETag": "W/\"263909fd1bc03a2acdd17bc99b04e26b\"", + "Last-Modified": "Fri, 10 Jan 2020 21:17:57 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", @@ -39,10 +39,10 @@ "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": "C701:8993:A68DF4:C0D653:5E51EE69" + "X-GitHub-Request-Id": "F626:2189:D66144:FFC95F:5E18EA01" } }, - "uuid": "66f6b3ba-129b-441c-9f2f-c9e18c941eea", + "uuid": "7b70f17b-8996-4f3c-b51e-4e185e988ee0", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-1.json new file mode 100644 index 0000000000..fa81a060d9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-1.json @@ -0,0 +1,134 @@ +{ + "id": 78481711, + "node_id": "MDEwOlJlcG9zaXRvcnk3ODQ4MTcxMQ==", + "name": "test-permission", + "full_name": "hub4j-test-org/test-permission", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/test-permission", + "description": "RepositoryTest#getPermission() test fixture", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/test-permission", + "forks_url": "https://api.github.com/repos/hub4j-test-org/test-permission/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/test-permission/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/test-permission/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/test-permission/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/test-permission/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/test-permission/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/test-permission/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/test-permission/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/test-permission/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/test-permission/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/test-permission/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/test-permission/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/test-permission/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/test-permission/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/test-permission/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/test-permission/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/test-permission/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/test-permission/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/test-permission/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/test-permission/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/test-permission/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/test-permission/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/test-permission/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/test-permission/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/test-permission/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/test-permission/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/test-permission/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/test-permission/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/test-permission/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/test-permission/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/test-permission/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/test-permission/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/test-permission/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/test-permission/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/test-permission/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/test-permission/deployments", + "created_at": "2017-01-10T00:22:47Z", + "updated_at": "2017-01-10T00:22:47Z", + "pushed_at": "2017-01-10T00:22:48Z", + "git_url": "git://github.com/hub4j-test-org/test-permission.git", + "ssh_url": "git@github.com:hub4j-test-org/test-permission.git", + "clone_url": "https://github.com/hub4j-test-org/test-permission.git", + "svn_url": "https://github.com/hub4j-test-org/test-permission", + "homepage": null, + "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, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "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, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private-15.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private-15.json new file mode 100644 index 0000000000..90cf50bce6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private-15.json @@ -0,0 +1,134 @@ +{ + "id": 482967898, + "node_id": "R_kgDOHMmBWg", + "name": "test-permission-private", + "full_name": "hub4j-test-org/test-permission-private", + "private": true, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/test-permission-private", + "description": "Private project for permission tests", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/test-permission-private", + "forks_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/test-permission-private/deployments", + "created_at": "2022-04-18T19:16:27Z", + "updated_at": "2022-04-18T19:16:27Z", + "pushed_at": "2022-04-18T19:16:28Z", + "git_url": "git://github.com/hub4j-test-org/test-permission-private.git", + "ssh_url": "git@github.com:hub4j-test-org/test-permission-private.git", + "clone_url": "https://github.com/hub4j-test-org/test-permission-private.git", + "svn_url": "https://github.com/hub4j-test-org/test-permission-private", + "homepage": null, + "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, + "allow_forking": false, + "is_template": false, + "topics": [], + "visibility": "private", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "AAJYOBKAHLMJYGJO3CR6QP3CLXBUI", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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": 17 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-16.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-16.json new file mode 100644 index 0000000000..1bb84ef471 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-16.json @@ -0,0 +1,32 @@ +{ + "permission": "none", + "user": { + "login": "dude", + "id": 60431, + "node_id": "MDQ6VXNlcjYwNDMx", + "avatar_url": "https://avatars.githubusercontent.com/u/60431?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/dude", + "html_url": "https://github.com/dude", + "followers_url": "https://api.github.com/users/dude/followers", + "following_url": "https://api.github.com/users/dude/following{/other_user}", + "gists_url": "https://api.github.com/users/dude/gists{/gist_id}", + "starred_url": "https://api.github.com/users/dude/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/dude/subscriptions", + "organizations_url": "https://api.github.com/users/dude/orgs", + "repos_url": "https://api.github.com/users/dude/repos", + "events_url": "https://api.github.com/users/dude/events{/privacy}", + "received_events_url": "https://api.github.com/users/dude/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": false, + "maintain": false, + "push": false, + "triage": false, + "pull": false + }, + "role_name": "" + }, + "role_name": "" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-17.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-17.json new file mode 100644 index 0000000000..1bb84ef471 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-17.json @@ -0,0 +1,32 @@ +{ + "permission": "none", + "user": { + "login": "dude", + "id": 60431, + "node_id": "MDQ6VXNlcjYwNDMx", + "avatar_url": "https://avatars.githubusercontent.com/u/60431?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/dude", + "html_url": "https://github.com/dude", + "followers_url": "https://api.github.com/users/dude/followers", + "following_url": "https://api.github.com/users/dude/following{/other_user}", + "gists_url": "https://api.github.com/users/dude/gists{/gist_id}", + "starred_url": "https://api.github.com/users/dude/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/dude/subscriptions", + "organizations_url": "https://api.github.com/users/dude/orgs", + "repos_url": "https://api.github.com/users/dude/repos", + "events_url": "https://api.github.com/users/dude/events{/privacy}", + "received_events_url": "https://api.github.com/users/dude/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": false, + "maintain": false, + "push": false, + "triage": false, + "pull": false + }, + "role_name": "" + }, + "role_name": "" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-18.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-18.json new file mode 100644 index 0000000000..1bb84ef471 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-18.json @@ -0,0 +1,32 @@ +{ + "permission": "none", + "user": { + "login": "dude", + "id": 60431, + "node_id": "MDQ6VXNlcjYwNDMx", + "avatar_url": "https://avatars.githubusercontent.com/u/60431?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/dude", + "html_url": "https://github.com/dude", + "followers_url": "https://api.github.com/users/dude/followers", + "following_url": "https://api.github.com/users/dude/following{/other_user}", + "gists_url": "https://api.github.com/users/dude/gists{/gist_id}", + "starred_url": "https://api.github.com/users/dude/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/dude/subscriptions", + "organizations_url": "https://api.github.com/users/dude/orgs", + "repos_url": "https://api.github.com/users/dude/repos", + "events_url": "https://api.github.com/users/dude/events{/privacy}", + "received_events_url": "https://api.github.com/users/dude/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": false, + "maintain": false, + "push": false, + "triage": false, + "pull": false + }, + "role_name": "" + }, + "role_name": "" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-19.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-19.json new file mode 100644 index 0000000000..1bb84ef471 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-19.json @@ -0,0 +1,32 @@ +{ + "permission": "none", + "user": { + "login": "dude", + "id": 60431, + "node_id": "MDQ6VXNlcjYwNDMx", + "avatar_url": "https://avatars.githubusercontent.com/u/60431?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/dude", + "html_url": "https://github.com/dude", + "followers_url": "https://api.github.com/users/dude/followers", + "following_url": "https://api.github.com/users/dude/following{/other_user}", + "gists_url": "https://api.github.com/users/dude/gists{/gist_id}", + "starred_url": "https://api.github.com/users/dude/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/dude/subscriptions", + "organizations_url": "https://api.github.com/users/dude/orgs", + "repos_url": "https://api.github.com/users/dude/repos", + "events_url": "https://api.github.com/users/dude/events{/privacy}", + "received_events_url": "https://api.github.com/users/dude/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": false, + "maintain": false, + "push": false, + "triage": false, + "pull": false + }, + "role_name": "" + }, + "role_name": "" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-6.json new file mode 100644 index 0000000000..b0f16df089 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-6.json @@ -0,0 +1,32 @@ +{ + "permission": "read", + "user": { + "login": "dude", + "id": 60431, + "node_id": "MDQ6VXNlcjYwNDMx", + "avatar_url": "https://avatars.githubusercontent.com/u/60431?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/dude", + "html_url": "https://github.com/dude", + "followers_url": "https://api.github.com/users/dude/followers", + "following_url": "https://api.github.com/users/dude/following{/other_user}", + "gists_url": "https://api.github.com/users/dude/gists{/gist_id}", + "starred_url": "https://api.github.com/users/dude/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/dude/subscriptions", + "organizations_url": "https://api.github.com/users/dude/orgs", + "repos_url": "https://api.github.com/users/dude/repos", + "events_url": "https://api.github.com/users/dude/events{/privacy}", + "received_events_url": "https://api.github.com/users/dude/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": false, + "maintain": false, + "push": false, + "triage": false, + "pull": true + }, + "role_name": "read" + }, + "role_name": "read" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-7.json new file mode 100644 index 0000000000..b0f16df089 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-7.json @@ -0,0 +1,32 @@ +{ + "permission": "read", + "user": { + "login": "dude", + "id": 60431, + "node_id": "MDQ6VXNlcjYwNDMx", + "avatar_url": "https://avatars.githubusercontent.com/u/60431?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/dude", + "html_url": "https://github.com/dude", + "followers_url": "https://api.github.com/users/dude/followers", + "following_url": "https://api.github.com/users/dude/following{/other_user}", + "gists_url": "https://api.github.com/users/dude/gists{/gist_id}", + "starred_url": "https://api.github.com/users/dude/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/dude/subscriptions", + "organizations_url": "https://api.github.com/users/dude/orgs", + "repos_url": "https://api.github.com/users/dude/repos", + "events_url": "https://api.github.com/users/dude/events{/privacy}", + "received_events_url": "https://api.github.com/users/dude/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": false, + "maintain": false, + "push": false, + "triage": false, + "pull": true + }, + "role_name": "read" + }, + "role_name": "read" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-8.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-8.json new file mode 100644 index 0000000000..b0f16df089 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-8.json @@ -0,0 +1,32 @@ +{ + "permission": "read", + "user": { + "login": "dude", + "id": 60431, + "node_id": "MDQ6VXNlcjYwNDMx", + "avatar_url": "https://avatars.githubusercontent.com/u/60431?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/dude", + "html_url": "https://github.com/dude", + "followers_url": "https://api.github.com/users/dude/followers", + "following_url": "https://api.github.com/users/dude/following{/other_user}", + "gists_url": "https://api.github.com/users/dude/gists{/gist_id}", + "starred_url": "https://api.github.com/users/dude/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/dude/subscriptions", + "organizations_url": "https://api.github.com/users/dude/orgs", + "repos_url": "https://api.github.com/users/dude/repos", + "events_url": "https://api.github.com/users/dude/events{/privacy}", + "received_events_url": "https://api.github.com/users/dude/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": false, + "maintain": false, + "push": false, + "triage": false, + "pull": true + }, + "role_name": "read" + }, + "role_name": "read" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-9.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-9.json new file mode 100644 index 0000000000..b0f16df089 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_dude_permission-9.json @@ -0,0 +1,32 @@ +{ + "permission": "read", + "user": { + "login": "dude", + "id": 60431, + "node_id": "MDQ6VXNlcjYwNDMx", + "avatar_url": "https://avatars.githubusercontent.com/u/60431?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/dude", + "html_url": "https://github.com/dude", + "followers_url": "https://api.github.com/users/dude/followers", + "following_url": "https://api.github.com/users/dude/following{/other_user}", + "gists_url": "https://api.github.com/users/dude/gists{/gist_id}", + "starred_url": "https://api.github.com/users/dude/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/dude/subscriptions", + "organizations_url": "https://api.github.com/users/dude/orgs", + "repos_url": "https://api.github.com/users/dude/repos", + "events_url": "https://api.github.com/users/dude/events{/privacy}", + "received_events_url": "https://api.github.com/users/dude/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": false, + "maintain": false, + "push": false, + "triage": false, + "pull": true + }, + "role_name": "read" + }, + "role_name": "read" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-11.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-11.json new file mode 100644 index 0000000000..b320edf070 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-11.json @@ -0,0 +1,32 @@ +{ + "permission": "admin", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + "role_name": "admin" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-12.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-12.json new file mode 100644 index 0000000000..b320edf070 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-12.json @@ -0,0 +1,32 @@ +{ + "permission": "admin", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + "role_name": "admin" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-13.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-13.json new file mode 100644 index 0000000000..b320edf070 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-13.json @@ -0,0 +1,32 @@ +{ + "permission": "admin", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + "role_name": "admin" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-14.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-14.json new file mode 100644 index 0000000000..b320edf070 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-14.json @@ -0,0 +1,32 @@ +{ + "permission": "admin", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + "role_name": "admin" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-2.json new file mode 100644 index 0000000000..b320edf070 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-2.json @@ -0,0 +1,32 @@ +{ + "permission": "admin", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + "role_name": "admin" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-3.json new file mode 100644 index 0000000000..b320edf070 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-3.json @@ -0,0 +1,32 @@ +{ + "permission": "admin", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + "role_name": "admin" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-4.json new file mode 100644 index 0000000000..b320edf070 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-4.json @@ -0,0 +1,32 @@ +{ + "permission": "admin", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + "role_name": "admin" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-5.json new file mode 100644 index 0000000000..b320edf070 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-5.json @@ -0,0 +1,32 @@ +{ + "permission": "admin", + "user": { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + "role_name": "admin" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/users_kohsuke-10.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/users_kohsuke-10.json new file mode 100644 index 0000000000..b0bb3da441 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/__files/users_kohsuke-10.json @@ -0,0 +1,34 @@ +{ + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "name": "Kohsuke Kawaguchi", + "company": "@launchableinc ", + "blog": "https://www.kohsuke.org/", + "location": "San Jose, California", + "email": "kk@kohsuke.org", + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 265, + "public_gists": 113, + "followers": 1999, + "following": 3, + "created_at": "2009-01-28T18:53:21Z", + "updated_at": "2022-04-10T22:58:15Z" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-1.json new file mode 100644 index 0000000000..b8277c0fc4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-1.json @@ -0,0 +1,47 @@ +{ + "id": "bcc6e97e-69aa-475d-b26e-7af66c2eb529", + "name": "repos_hub4j-test-org_test-permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission-1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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/\"138b745eb1b48b175ba2335fb60765e84cb1ac1b444a1169a2bc696001359aed\"", + "Last-Modified": "Tue, 10 Jan 2017 00:22:47 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-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4973", + "X-RateLimit-Reset": "1650312871", + "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": "C7A0:AFDA:EFE04A:F7D343:625DC214" + } + }, + "uuid": "bcc6e97e-69aa-475d-b26e-7af66c2eb529", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private-15.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private-15.json new file mode 100644 index 0000000000..af654d76a8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private-15.json @@ -0,0 +1,47 @@ +{ + "id": "e9af413f-1a5b-42d2-be7f-c01a053ee822", + "name": "repos_hub4j-test-org_test-permission-private", + "request": { + "url": "/repos/hub4j-test-org/test-permission-private", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission-private-15.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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": "W/\"04d12013a7456daabb798bac37bd6af1b4202fe6aeb99b6fffde7a3fe9aaaa41\"", + "Last-Modified": "Mon, 18 Apr 2022 19:16:27 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-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4959", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "41", + "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": "C7BC:373A:1A5E18F:1AF0EEA:625DC218" + } + }, + "uuid": "e9af413f-1a5b-42d2-be7f-c01a053ee822", + "persistent": true, + "insertionIndex": 15 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-16.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-16.json new file mode 100644 index 0000000000..b829d245e2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-16.json @@ -0,0 +1,49 @@ +{ + "id": "920509f5-fecc-4e90-8479-0099648250d1", + "name": "repos_hub4j-test-org_test-permission-private_collaborators_dude_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission-private/collaborators/dude/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-16.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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": "W/\"fb94f5854d73bb38b3f8bb4e858cf55f841a778627efd77b5defa9c528dd4114\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4958", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "42", + "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": "C7BE:DE7D:19C5854:1A57980:625DC218" + } + }, + "uuid": "920509f5-fecc-4e90-8479-0099648250d1", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-test-permission-private-collaborators-dude-permission", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-3-repos-hub4j-test-org-test-permission-private-collaborators-dude-permission-2", + "insertionIndex": 16 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-17.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-17.json new file mode 100644 index 0000000000..f8dccaf0e6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-17.json @@ -0,0 +1,49 @@ +{ + "id": "c27c7b2c-5674-471d-9972-b71f5059d1fe", + "name": "repos_hub4j-test-org_test-permission-private_collaborators_dude_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission-private/collaborators/dude/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-17.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55:05 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"fb94f5854d73bb38b3f8bb4e858cf55f841a778627efd77b5defa9c528dd4114\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4957", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "43", + "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": "C7C0:AFDB:18F7612:19897B6:625DC218" + } + }, + "uuid": "c27c7b2c-5674-471d-9972-b71f5059d1fe", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-test-permission-private-collaborators-dude-permission", + "requiredScenarioState": "scenario-3-repos-hub4j-test-org-test-permission-private-collaborators-dude-permission-2", + "newScenarioState": "scenario-3-repos-hub4j-test-org-test-permission-private-collaborators-dude-permission-3", + "insertionIndex": 17 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-18.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-18.json new file mode 100644 index 0000000000..ff1b3d8f22 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-18.json @@ -0,0 +1,49 @@ +{ + "id": "3f763e1f-cb20-4a71-9b7f-320b096aafbb", + "name": "repos_hub4j-test-org_test-permission-private_collaborators_dude_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission-private/collaborators/dude/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-18.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55:05 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"fb94f5854d73bb38b3f8bb4e858cf55f841a778627efd77b5defa9c528dd4114\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4956", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "44", + "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": "C7C2:AFDC:24C35D8:25674E3:625DC219" + } + }, + "uuid": "3f763e1f-cb20-4a71-9b7f-320b096aafbb", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-test-permission-private-collaborators-dude-permission", + "requiredScenarioState": "scenario-3-repos-hub4j-test-org-test-permission-private-collaborators-dude-permission-3", + "newScenarioState": "scenario-3-repos-hub4j-test-org-test-permission-private-collaborators-dude-permission-4", + "insertionIndex": 18 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-19.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-19.json new file mode 100644 index 0000000000..446a99a878 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-19.json @@ -0,0 +1,48 @@ +{ + "id": "aade53cc-f9c8-4575-8c84-a119aa72a772", + "name": "repos_hub4j-test-org_test-permission-private_collaborators_dude_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission-private/collaborators/dude/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission-private_collaborators_dude_permission-19.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55:05 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"fb94f5854d73bb38b3f8bb4e858cf55f841a778627efd77b5defa9c528dd4114\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4955", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "45", + "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": "C7C4:C448:2A6C47B:2B15245:625DC219" + } + }, + "uuid": "aade53cc-f9c8-4575-8c84-a119aa72a772", + "persistent": true, + "scenarioName": "scenario-3-repos-hub4j-test-org-test-permission-private-collaborators-dude-permission", + "requiredScenarioState": "scenario-3-repos-hub4j-test-org-test-permission-private-collaborators-dude-permission-4", + "insertionIndex": 19 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-6.json new file mode 100644 index 0000000000..cbb30d7b9d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-6.json @@ -0,0 +1,49 @@ +{ + "id": "01c45756-ee35-4b6d-a16c-6a548d587581", + "name": "repos_hub4j-test-org_test-permission_collaborators_dude_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/dude/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_dude_permission-6.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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/\"1cc3cc5489c97f91330041a79e27736832eaa8c8a53d3ef48479ea73bce528d8\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4968", + "X-RateLimit-Reset": "1650312871", + "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'", + "X-GitHub-Request-Id": "C7AA:53CF:256FACF:2614599:625DC216" + } + }, + "uuid": "01c45756-ee35-4b6d-a16c-6a548d587581", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-test-permission-collaborators-dude-permission", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-repos-hub4j-test-org-test-permission-collaborators-dude-permission-2", + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-7.json new file mode 100644 index 0000000000..49097857f4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-7.json @@ -0,0 +1,49 @@ +{ + "id": "1e2e0c5e-2e96-4a39-bb7e-517c7d30d55d", + "name": "repos_hub4j-test-org_test-permission_collaborators_dude_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/dude/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_dude_permission-7.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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/\"1cc3cc5489c97f91330041a79e27736832eaa8c8a53d3ef48479ea73bce528d8\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4967", + "X-RateLimit-Reset": "1650312871", + "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": "C7AC:13A5F:E053B5:E834BA:625DC216" + } + }, + "uuid": "1e2e0c5e-2e96-4a39-bb7e-517c7d30d55d", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-test-permission-collaborators-dude-permission", + "requiredScenarioState": "scenario-2-repos-hub4j-test-org-test-permission-collaborators-dude-permission-2", + "newScenarioState": "scenario-2-repos-hub4j-test-org-test-permission-collaborators-dude-permission-3", + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-8.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-8.json new file mode 100644 index 0000000000..3780ba4741 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-8.json @@ -0,0 +1,49 @@ +{ + "id": "076c65b3-da23-485b-9e89-bbf61501d76e", + "name": "repos_hub4j-test-org_test-permission_collaborators_dude_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/dude/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_dude_permission-8.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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/\"1cc3cc5489c97f91330041a79e27736832eaa8c8a53d3ef48479ea73bce528d8\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4966", + "X-RateLimit-Reset": "1650312871", + "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": "C7AE:B976:265343E:26FAA35:625DC216" + } + }, + "uuid": "076c65b3-da23-485b-9e89-bbf61501d76e", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-test-permission-collaborators-dude-permission", + "requiredScenarioState": "scenario-2-repos-hub4j-test-org-test-permission-collaborators-dude-permission-3", + "newScenarioState": "scenario-2-repos-hub4j-test-org-test-permission-collaborators-dude-permission-4", + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-9.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-9.json new file mode 100644 index 0000000000..ebf251d862 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_dude_permission-9.json @@ -0,0 +1,48 @@ +{ + "id": "933b7407-cc71-45b7-884a-443dae65c361", + "name": "repos_hub4j-test-org_test-permission_collaborators_dude_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/dude/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_dude_permission-9.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"1cc3cc5489c97f91330041a79e27736832eaa8c8a53d3ef48479ea73bce528d8\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4965", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "35", + "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": "C7B0:AFDC:24C31CE:25670D5:625DC216" + } + }, + "uuid": "933b7407-cc71-45b7-884a-443dae65c361", + "persistent": true, + "scenarioName": "scenario-2-repos-hub4j-test-org-test-permission-collaborators-dude-permission", + "requiredScenarioState": "scenario-2-repos-hub4j-test-org-test-permission-collaborators-dude-permission-4", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-11.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-11.json new file mode 100644 index 0000000000..a1ea71c6ca --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-11.json @@ -0,0 +1,49 @@ +{ + "id": "c388a81b-7d93-4f51-8318-5f2d046840b0", + "name": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/kohsuke/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-11.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"81b4768f35337875d66460bab6be08a8e6bbc7b986abd4427e99b4157fe965c0\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4963", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "37", + "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": "C7B4:C446:DB96E5:E3963B:625DC217" + } + }, + "uuid": "c388a81b-7d93-4f51-8318-5f2d046840b0", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-5", + "newScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-6", + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-12.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-12.json new file mode 100644 index 0000000000..55c40f27d6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-12.json @@ -0,0 +1,49 @@ +{ + "id": "3b415ba6-e21e-4bb4-b068-7ee9d82d80b0", + "name": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/kohsuke/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-12.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"81b4768f35337875d66460bab6be08a8e6bbc7b986abd4427e99b4157fe965c0\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4962", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "38", + "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": "C7B6:373B:2714A03:27BCE36:625DC217" + } + }, + "uuid": "3b415ba6-e21e-4bb4-b068-7ee9d82d80b0", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-6", + "newScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-7", + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-13.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-13.json new file mode 100644 index 0000000000..de4d7c6991 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-13.json @@ -0,0 +1,49 @@ +{ + "id": "d292349e-fe6a-46bf-a79d-56275436dc66", + "name": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/kohsuke/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-13.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"81b4768f35337875d66460bab6be08a8e6bbc7b986abd4427e99b4157fe965c0\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4961", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "39", + "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": "C7B8:373B:2714A8D:27BCEB1:625DC217" + } + }, + "uuid": "d292349e-fe6a-46bf-a79d-56275436dc66", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-7", + "newScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-8", + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-14.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-14.json new file mode 100644 index 0000000000..77a048021c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-14.json @@ -0,0 +1,48 @@ +{ + "id": "2a53d18f-7f36-4705-8f67-d81b8a52a7bd", + "name": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/kohsuke/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-14.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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": "W/\"81b4768f35337875d66460bab6be08a8e6bbc7b986abd4427e99b4157fe965c0\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4960", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "40", + "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": "C7BA:5714:5EFA0C:661EEE:625DC218" + } + }, + "uuid": "2a53d18f-7f36-4705-8f67-d81b8a52a7bd", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-8", + "insertionIndex": 14 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-2.json new file mode 100644 index 0000000000..49d0d22def --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-2.json @@ -0,0 +1,49 @@ +{ + "id": "7f39602b-88d5-481f-b22b-2236ca540259", + "name": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/kohsuke/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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/\"81b4768f35337875d66460bab6be08a8e6bbc7b986abd4427e99b4157fe965c0\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4972", + "X-RateLimit-Reset": "1650312871", + "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": "C7A2:265B:28D17A2:297BD40:625DC215" + } + }, + "uuid": "7f39602b-88d5-481f-b22b-2236ca540259", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-2", + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-3.json new file mode 100644 index 0000000000..3a59664b28 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-3.json @@ -0,0 +1,49 @@ +{ + "id": "af65185d-5f5c-40b8-97fc-84548a81d981", + "name": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/kohsuke/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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/\"81b4768f35337875d66460bab6be08a8e6bbc7b986abd4427e99b4157fe965c0\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4971", + "X-RateLimit-Reset": "1650312871", + "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": "C7A4:13A60:183892B:18C9D18:625DC215" + } + }, + "uuid": "af65185d-5f5c-40b8-97fc-84548a81d981", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-2", + "newScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-3", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-4.json new file mode 100644 index 0000000000..65b8051cc5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-4.json @@ -0,0 +1,49 @@ +{ + "id": "6e7c5b20-462c-4d99-a475-0fc0542b8b57", + "name": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/kohsuke/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-4.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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/\"81b4768f35337875d66460bab6be08a8e6bbc7b986abd4427e99b4157fe965c0\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4970", + "X-RateLimit-Reset": "1650312871", + "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": "C7A6:A10A:18E1046:1972AD5:625DC215" + } + }, + "uuid": "6e7c5b20-462c-4d99-a475-0fc0542b8b57", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-3", + "newScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-4", + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-5.json new file mode 100644 index 0000000000..3edd3c46eb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-5.json @@ -0,0 +1,49 @@ +{ + "id": "8d75c13d-dbc2-499b-a5ec-2a11153bbbec", + "name": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission", + "request": { + "url": "/repos/hub4j-test-org/test-permission/collaborators/kohsuke/permission", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_test-permission_collaborators_kohsuke_permission-5.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55: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/\"81b4768f35337875d66460bab6be08a8e6bbc7b986abd4427e99b4157fe965c0\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4969", + "X-RateLimit-Reset": "1650312871", + "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": "C7A8:8952:E218E8:EA0F76:625DC216" + } + }, + "uuid": "8d75c13d-dbc2-499b-a5ec-2a11153bbbec", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-4", + "newScenarioState": "scenario-1-repos-hub4j-test-org-test-permission-collaborators-kohsuke-permission-5", + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/users_kohsuke-10.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/users_kohsuke-10.json new file mode 100644 index 0000000000..1aaa7bc713 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/hasPermission/mappings/users_kohsuke-10.json @@ -0,0 +1,47 @@ +{ + "id": "8e9d982b-ca60-4410-a263-d2c49834c0df", + "name": "users_kohsuke", + "request": { + "url": "/users/kohsuke", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "users_kohsuke-10.json", + "headers": { + "Server": "GitHub.com", + "Date": "Mon, 18 Apr 2022 19:55:03 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"4ca7cbddf39c9811d84469a3e5d3d4e4e577b18bc9798e19eac336ba991a7300\"", + "Last-Modified": "Sun, 10 Apr 2022 22:58:15 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4964", + "X-RateLimit-Reset": "1650312871", + "X-RateLimit-Used": "36", + "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": "C7B2:C448:2A6BF2A:2B14CE1:625DC217" + } + }, + "uuid": "8e9d982b-ca60-4410-a263-d2c49834c0df", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabled/__files/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabled/__files/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..f176fc4ff5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabled/__files/orgs_hub4j-test-org-2.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/isDisabled/__files/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabled/__files/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..d34f6ef7a1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabled/__files/repos_hub4j-test-org_github-api-3.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": 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" + }, + "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/isDisabled/mappings/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabled/mappings/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..e3ce24572d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabled/mappings/orgs_hub4j-test-org-2.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.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_hub4j-test-org-2.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/isDisabled/mappings/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabled/mappings/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..e70151202f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabled/mappings/repos_hub4j-test-org_github-api-3.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.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api-3.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/isDisabledTrue/__files/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabledTrue/__files/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..f176fc4ff5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabledTrue/__files/orgs_hub4j-test-org-2.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/isDisabledTrue/__files/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabledTrue/__files/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..4438825c47 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabledTrue/__files/repos_hub4j-test-org_github-api-3.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": true, + "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": 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" + }, + "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/isDisabledTrue/mappings/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabledTrue/mappings/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..e3ce24572d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabledTrue/mappings/orgs_hub4j-test-org-2.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.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_hub4j-test-org-2.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/isDisabledTrue/mappings/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabledTrue/mappings/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..e70151202f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/isDisabledTrue/mappings/repos_hub4j-test-org_github-api-3.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.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api-3.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/userIsCollaborator/__files/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..628aa16924 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/orgs_hub4j-test-org-2.json @@ -0,0 +1,55 @@ +{ + "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://avatars.githubusercontent.com/u/7544739?v=4", + "description": "Hub4j Test Org Description (this could be null or blank too)", + "name": "Hub4j Test Org Name (this could be null or blank too)", + "company": null, + "blog": "https://hub4j.url.io/could/be/null", + "location": "Hub4j Test Org Location (this could be null or blank too)", + "email": "hub4jtestorgemail@could.be.null.com", + "twitter_username": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 50, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2020-06-04T05:56:10Z", + "type": "Organization", + "total_private_repos": 4, + "owned_private_repos": 4, + "private_gists": 0, + "disk_usage": 11980, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "members_allowed_repository_creation_type": "none", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true, + "members_can_fork_private_repositories": false, + "members_can_create_public_pages": true, + "members_can_create_private_pages": true, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 10000, + "filled_seats": 38, + "seats": 3 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..8716ab734a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/repos_hub4j-test-org_github-api-3.json @@ -0,0 +1,365 @@ +{ + "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://avatars.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": "2022-05-23T14:23:52Z", + "pushed_at": "2022-06-21T17:18:17Z", + "git_url": "git://github.com/hub4j-test-org/github-api.git", + "ssh_url": "git@github.com:hub4j-test-org/github-api.git", + "clone_url": "https://github.com/hub4j-test-org/github-api.git", + "svn_url": "https://github.com/hub4j-test-org/github-api", + "homepage": "http://github-api.kohsuke.org/", + "size": 19045, + "stargazers_count": 1, + "watchers_count": 1, + "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": 7, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 7, + "watchers": 1, + "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, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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://avatars.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": "2022-06-21T16:37:05Z", + "pushed_at": "2022-06-22T03:11:41Z", + "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": 40084, + "stargazers_count": 907, + "watchers_count": 907, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 618, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 106, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 618, + "open_issues": 106, + "watchers": 907, + "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://avatars.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": "2022-06-21T16:37:05Z", + "pushed_at": "2022-06-22T03:11:41Z", + "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": 40084, + "stargazers_count": 907, + "watchers_count": 907, + "language": "Java", + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": true, + "forks_count": 618, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 106, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZTEz" + }, + "allow_forking": true, + "is_template": false, + "topics": [ + "api", + "client-library", + "github", + "github-api", + "github-api-v3", + "java", + "java-api" + ], + "visibility": "public", + "forks": 618, + "open_issues": 106, + "watchers": 907, + "default_branch": "main" + }, + "network_count": 618, + "subscribers_count": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/repos_hub4j-test-org_github-api_collaborators-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/repos_hub4j-test-org_github-api_collaborators-4.json new file mode 100644 index 0000000000..5cfd5fb504 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/repos_hub4j-test-org_github-api_collaborators-4.json @@ -0,0 +1,842 @@ +[ + { + "login": "vbehar", + "id": 6251, + "node_id": "MDQ6VXNlcjYyNTE=", + "avatar_url": "https://avatars.githubusercontent.com/u/6251?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vbehar", + "html_url": "https://github.com/vbehar", + "followers_url": "https://api.github.com/users/vbehar/followers", + "following_url": "https://api.github.com/users/vbehar/following{/other_user}", + "gists_url": "https://api.github.com/users/vbehar/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vbehar/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vbehar/subscriptions", + "organizations_url": "https://api.github.com/users/vbehar/orgs", + "repos_url": "https://api.github.com/users/vbehar/repos", + "events_url": "https://api.github.com/users/vbehar/events{/privacy}", + "received_events_url": "https://api.github.com/users/vbehar/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": false, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "maintain" + }, + { + "login": "kohsuke", + "id": 50003, + "node_id": "MDQ6VXNlcjUwMDAz", + "avatar_url": "https://avatars.githubusercontent.com/u/50003?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke", + "html_url": "https://github.com/kohsuke", + "followers_url": "https://api.github.com/users/kohsuke/followers", + "following_url": "https://api.github.com/users/kohsuke/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke/orgs", + "repos_url": "https://api.github.com/users/kohsuke/repos", + "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "gastaldi", + "id": 54133, + "node_id": "MDQ6VXNlcjU0MTMz", + "avatar_url": "https://avatars.githubusercontent.com/u/54133?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gastaldi", + "html_url": "https://github.com/gastaldi", + "followers_url": "https://api.github.com/users/gastaldi/followers", + "following_url": "https://api.github.com/users/gastaldi/following{/other_user}", + "gists_url": "https://api.github.com/users/gastaldi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gastaldi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gastaldi/subscriptions", + "organizations_url": "https://api.github.com/users/gastaldi/orgs", + "repos_url": "https://api.github.com/users/gastaldi/repos", + "events_url": "https://api.github.com/users/gastaldi/events{/privacy}", + "received_events_url": "https://api.github.com/users/gastaldi/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "halkeye", + "id": 110087, + "node_id": "MDQ6VXNlcjExMDA4Nw==", + "avatar_url": "https://avatars.githubusercontent.com/u/110087?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/halkeye", + "html_url": "https://github.com/halkeye", + "followers_url": "https://api.github.com/users/halkeye/followers", + "following_url": "https://api.github.com/users/halkeye/following{/other_user}", + "gists_url": "https://api.github.com/users/halkeye/gists{/gist_id}", + "starred_url": "https://api.github.com/users/halkeye/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/halkeye/subscriptions", + "organizations_url": "https://api.github.com/users/halkeye/orgs", + "repos_url": "https://api.github.com/users/halkeye/repos", + "events_url": "https://api.github.com/users/halkeye/events{/privacy}", + "received_events_url": "https://api.github.com/users/halkeye/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "tedyoung", + "id": 382660, + "node_id": "MDQ6VXNlcjM4MjY2MA==", + "avatar_url": "https://avatars.githubusercontent.com/u/382660?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/tedyoung", + "html_url": "https://github.com/tedyoung", + "followers_url": "https://api.github.com/users/tedyoung/followers", + "following_url": "https://api.github.com/users/tedyoung/following{/other_user}", + "gists_url": "https://api.github.com/users/tedyoung/gists{/gist_id}", + "starred_url": "https://api.github.com/users/tedyoung/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/tedyoung/subscriptions", + "organizations_url": "https://api.github.com/users/tedyoung/orgs", + "repos_url": "https://api.github.com/users/tedyoung/repos", + "events_url": "https://api.github.com/users/tedyoung/events{/privacy}", + "received_events_url": "https://api.github.com/users/tedyoung/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "mrginglymus", + "id": 390569, + "node_id": "MDQ6VXNlcjM5MDU2OQ==", + "avatar_url": "https://avatars.githubusercontent.com/u/390569?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mrginglymus", + "html_url": "https://github.com/mrginglymus", + "followers_url": "https://api.github.com/users/mrginglymus/followers", + "following_url": "https://api.github.com/users/mrginglymus/following{/other_user}", + "gists_url": "https://api.github.com/users/mrginglymus/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mrginglymus/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mrginglymus/subscriptions", + "organizations_url": "https://api.github.com/users/mrginglymus/orgs", + "repos_url": "https://api.github.com/users/mrginglymus/repos", + "events_url": "https://api.github.com/users/mrginglymus/events{/privacy}", + "received_events_url": "https://api.github.com/users/mrginglymus/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "cmoulliard", + "id": 463790, + "node_id": "MDQ6VXNlcjQ2Mzc5MA==", + "avatar_url": "https://avatars.githubusercontent.com/u/463790?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/cmoulliard", + "html_url": "https://github.com/cmoulliard", + "followers_url": "https://api.github.com/users/cmoulliard/followers", + "following_url": "https://api.github.com/users/cmoulliard/following{/other_user}", + "gists_url": "https://api.github.com/users/cmoulliard/gists{/gist_id}", + "starred_url": "https://api.github.com/users/cmoulliard/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/cmoulliard/subscriptions", + "organizations_url": "https://api.github.com/users/cmoulliard/orgs", + "repos_url": "https://api.github.com/users/cmoulliard/repos", + "events_url": "https://api.github.com/users/cmoulliard/events{/privacy}", + "received_events_url": "https://api.github.com/users/cmoulliard/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "farmdawgnation", + "id": 620189, + "node_id": "MDQ6VXNlcjYyMDE4OQ==", + "avatar_url": "https://avatars.githubusercontent.com/u/620189?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/farmdawgnation", + "html_url": "https://github.com/farmdawgnation", + "followers_url": "https://api.github.com/users/farmdawgnation/followers", + "following_url": "https://api.github.com/users/farmdawgnation/following{/other_user}", + "gists_url": "https://api.github.com/users/farmdawgnation/gists{/gist_id}", + "starred_url": "https://api.github.com/users/farmdawgnation/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/farmdawgnation/subscriptions", + "organizations_url": "https://api.github.com/users/farmdawgnation/orgs", + "repos_url": "https://api.github.com/users/farmdawgnation/repos", + "events_url": "https://api.github.com/users/farmdawgnation/events{/privacy}", + "received_events_url": "https://api.github.com/users/farmdawgnation/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "alexanderrtaylor", + "id": 852179, + "node_id": "MDQ6VXNlcjg1MjE3OQ==", + "avatar_url": "https://avatars.githubusercontent.com/u/852179?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/alexanderrtaylor", + "html_url": "https://github.com/alexanderrtaylor", + "followers_url": "https://api.github.com/users/alexanderrtaylor/followers", + "following_url": "https://api.github.com/users/alexanderrtaylor/following{/other_user}", + "gists_url": "https://api.github.com/users/alexanderrtaylor/gists{/gist_id}", + "starred_url": "https://api.github.com/users/alexanderrtaylor/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/alexanderrtaylor/subscriptions", + "organizations_url": "https://api.github.com/users/alexanderrtaylor/orgs", + "repos_url": "https://api.github.com/users/alexanderrtaylor/repos", + "events_url": "https://api.github.com/users/alexanderrtaylor/events{/privacy}", + "received_events_url": "https://api.github.com/users/alexanderrtaylor/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "jlengrand", + "id": 921666, + "node_id": "MDQ6VXNlcjkyMTY2Ng==", + "avatar_url": "https://avatars.githubusercontent.com/u/921666?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jlengrand", + "html_url": "https://github.com/jlengrand", + "followers_url": "https://api.github.com/users/jlengrand/followers", + "following_url": "https://api.github.com/users/jlengrand/following{/other_user}", + "gists_url": "https://api.github.com/users/jlengrand/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jlengrand/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jlengrand/subscriptions", + "organizations_url": "https://api.github.com/users/jlengrand/orgs", + "repos_url": "https://api.github.com/users/jlengrand/repos", + "events_url": "https://api.github.com/users/jlengrand/events{/privacy}", + "received_events_url": "https://api.github.com/users/jlengrand/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "PauloMigAlmeida", + "id": 1011868, + "node_id": "MDQ6VXNlcjEwMTE4Njg=", + "avatar_url": "https://avatars.githubusercontent.com/u/1011868?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/PauloMigAlmeida", + "html_url": "https://github.com/PauloMigAlmeida", + "followers_url": "https://api.github.com/users/PauloMigAlmeida/followers", + "following_url": "https://api.github.com/users/PauloMigAlmeida/following{/other_user}", + "gists_url": "https://api.github.com/users/PauloMigAlmeida/gists{/gist_id}", + "starred_url": "https://api.github.com/users/PauloMigAlmeida/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/PauloMigAlmeida/subscriptions", + "organizations_url": "https://api.github.com/users/PauloMigAlmeida/orgs", + "repos_url": "https://api.github.com/users/PauloMigAlmeida/repos", + "events_url": "https://api.github.com/users/PauloMigAlmeida/events{/privacy}", + "received_events_url": "https://api.github.com/users/PauloMigAlmeida/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "JLLeitschuh", + "id": 1323708, + "node_id": "MDQ6VXNlcjEzMjM3MDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/1323708?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/JLLeitschuh", + "html_url": "https://github.com/JLLeitschuh", + "followers_url": "https://api.github.com/users/JLLeitschuh/followers", + "following_url": "https://api.github.com/users/JLLeitschuh/following{/other_user}", + "gists_url": "https://api.github.com/users/JLLeitschuh/gists{/gist_id}", + "starred_url": "https://api.github.com/users/JLLeitschuh/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/JLLeitschuh/subscriptions", + "organizations_url": "https://api.github.com/users/JLLeitschuh/orgs", + "repos_url": "https://api.github.com/users/JLLeitschuh/repos", + "events_url": "https://api.github.com/users/JLLeitschuh/events{/privacy}", + "received_events_url": "https://api.github.com/users/JLLeitschuh/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "kohsuke2", + "id": 1329242, + "node_id": "MDQ6VXNlcjEzMjkyNDI=", + "avatar_url": "https://avatars.githubusercontent.com/u/1329242?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/kohsuke2", + "html_url": "https://github.com/kohsuke2", + "followers_url": "https://api.github.com/users/kohsuke2/followers", + "following_url": "https://api.github.com/users/kohsuke2/following{/other_user}", + "gists_url": "https://api.github.com/users/kohsuke2/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kohsuke2/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kohsuke2/subscriptions", + "organizations_url": "https://api.github.com/users/kohsuke2/orgs", + "repos_url": "https://api.github.com/users/kohsuke2/repos", + "events_url": "https://api.github.com/users/kohsuke2/events{/privacy}", + "received_events_url": "https://api.github.com/users/kohsuke2/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "ecxia", + "id": 1586186, + "node_id": "MDQ6VXNlcjE1ODYxODY=", + "avatar_url": "https://avatars.githubusercontent.com/u/1586186?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ecxia", + "html_url": "https://github.com/ecxia", + "followers_url": "https://api.github.com/users/ecxia/followers", + "following_url": "https://api.github.com/users/ecxia/following{/other_user}", + "gists_url": "https://api.github.com/users/ecxia/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ecxia/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ecxia/subscriptions", + "organizations_url": "https://api.github.com/users/ecxia/orgs", + "repos_url": "https://api.github.com/users/ecxia/repos", + "events_url": "https://api.github.com/users/ecxia/events{/privacy}", + "received_events_url": "https://api.github.com/users/ecxia/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "jgangemi", + "id": 1831839, + "node_id": "MDQ6VXNlcjE4MzE4Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1831839?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jgangemi", + "html_url": "https://github.com/jgangemi", + "followers_url": "https://api.github.com/users/jgangemi/followers", + "following_url": "https://api.github.com/users/jgangemi/following{/other_user}", + "gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions", + "organizations_url": "https://api.github.com/users/jgangemi/orgs", + "repos_url": "https://api.github.com/users/jgangemi/repos", + "events_url": "https://api.github.com/users/jgangemi/events{/privacy}", + "received_events_url": "https://api.github.com/users/jgangemi/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars.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, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "antrix190", + "id": 3845033, + "node_id": "MDQ6VXNlcjM4NDUwMzM=", + "avatar_url": "https://avatars.githubusercontent.com/u/3845033?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/antrix190", + "html_url": "https://github.com/antrix190", + "followers_url": "https://api.github.com/users/antrix190/followers", + "following_url": "https://api.github.com/users/antrix190/following{/other_user}", + "gists_url": "https://api.github.com/users/antrix190/gists{/gist_id}", + "starred_url": "https://api.github.com/users/antrix190/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/antrix190/subscriptions", + "organizations_url": "https://api.github.com/users/antrix190/orgs", + "repos_url": "https://api.github.com/users/antrix190/repos", + "events_url": "https://api.github.com/users/antrix190/events{/privacy}", + "received_events_url": "https://api.github.com/users/antrix190/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "qc12su", + "id": 4357348, + "node_id": "MDQ6VXNlcjQzNTczNDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/4357348?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/qc12su", + "html_url": "https://github.com/qc12su", + "followers_url": "https://api.github.com/users/qc12su/followers", + "following_url": "https://api.github.com/users/qc12su/following{/other_user}", + "gists_url": "https://api.github.com/users/qc12su/gists{/gist_id}", + "starred_url": "https://api.github.com/users/qc12su/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/qc12su/subscriptions", + "organizations_url": "https://api.github.com/users/qc12su/orgs", + "repos_url": "https://api.github.com/users/qc12su/repos", + "events_url": "https://api.github.com/users/qc12su/events{/privacy}", + "received_events_url": "https://api.github.com/users/qc12su/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "asthinasthi", + "id": 4577101, + "node_id": "MDQ6VXNlcjQ1NzcxMDE=", + "avatar_url": "https://avatars.githubusercontent.com/u/4577101?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/asthinasthi", + "html_url": "https://github.com/asthinasthi", + "followers_url": "https://api.github.com/users/asthinasthi/followers", + "following_url": "https://api.github.com/users/asthinasthi/following{/other_user}", + "gists_url": "https://api.github.com/users/asthinasthi/gists{/gist_id}", + "starred_url": "https://api.github.com/users/asthinasthi/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/asthinasthi/subscriptions", + "organizations_url": "https://api.github.com/users/asthinasthi/orgs", + "repos_url": "https://api.github.com/users/asthinasthi/repos", + "events_url": "https://api.github.com/users/asthinasthi/events{/privacy}", + "received_events_url": "https://api.github.com/users/asthinasthi/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "ingwarsw", + "id": 5390156, + "node_id": "MDQ6VXNlcjUzOTAxNTY=", + "avatar_url": "https://avatars.githubusercontent.com/u/5390156?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/ingwarsw", + "html_url": "https://github.com/ingwarsw", + "followers_url": "https://api.github.com/users/ingwarsw/followers", + "following_url": "https://api.github.com/users/ingwarsw/following{/other_user}", + "gists_url": "https://api.github.com/users/ingwarsw/gists{/gist_id}", + "starred_url": "https://api.github.com/users/ingwarsw/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/ingwarsw/subscriptions", + "organizations_url": "https://api.github.com/users/ingwarsw/orgs", + "repos_url": "https://api.github.com/users/ingwarsw/repos", + "events_url": "https://api.github.com/users/ingwarsw/events{/privacy}", + "received_events_url": "https://api.github.com/users/ingwarsw/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "Sage-Pierce", + "id": 5396306, + "node_id": "MDQ6VXNlcjUzOTYzMDY=", + "avatar_url": "https://avatars.githubusercontent.com/u/5396306?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Sage-Pierce", + "html_url": "https://github.com/Sage-Pierce", + "followers_url": "https://api.github.com/users/Sage-Pierce/followers", + "following_url": "https://api.github.com/users/Sage-Pierce/following{/other_user}", + "gists_url": "https://api.github.com/users/Sage-Pierce/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Sage-Pierce/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Sage-Pierce/subscriptions", + "organizations_url": "https://api.github.com/users/Sage-Pierce/orgs", + "repos_url": "https://api.github.com/users/Sage-Pierce/repos", + "events_url": "https://api.github.com/users/Sage-Pierce/events{/privacy}", + "received_events_url": "https://api.github.com/users/Sage-Pierce/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "t0m4uk1991", + "id": 6698785, + "node_id": "MDQ6VXNlcjY2OTg3ODU=", + "avatar_url": "https://avatars.githubusercontent.com/u/6698785?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/t0m4uk1991", + "html_url": "https://github.com/t0m4uk1991", + "followers_url": "https://api.github.com/users/t0m4uk1991/followers", + "following_url": "https://api.github.com/users/t0m4uk1991/following{/other_user}", + "gists_url": "https://api.github.com/users/t0m4uk1991/gists{/gist_id}", + "starred_url": "https://api.github.com/users/t0m4uk1991/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/t0m4uk1991/subscriptions", + "organizations_url": "https://api.github.com/users/t0m4uk1991/orgs", + "repos_url": "https://api.github.com/users/t0m4uk1991/repos", + "events_url": "https://api.github.com/users/t0m4uk1991/events{/privacy}", + "received_events_url": "https://api.github.com/users/t0m4uk1991/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "Irialad", + "id": 6895648, + "node_id": "MDQ6VXNlcjY4OTU2NDg=", + "avatar_url": "https://avatars.githubusercontent.com/u/6895648?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Irialad", + "html_url": "https://github.com/Irialad", + "followers_url": "https://api.github.com/users/Irialad/followers", + "following_url": "https://api.github.com/users/Irialad/following{/other_user}", + "gists_url": "https://api.github.com/users/Irialad/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Irialad/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Irialad/subscriptions", + "organizations_url": "https://api.github.com/users/Irialad/orgs", + "repos_url": "https://api.github.com/users/Irialad/repos", + "events_url": "https://api.github.com/users/Irialad/events{/privacy}", + "received_events_url": "https://api.github.com/users/Irialad/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "avano", + "id": 7081216, + "node_id": "MDQ6VXNlcjcwODEyMTY=", + "avatar_url": "https://avatars.githubusercontent.com/u/7081216?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/avano", + "html_url": "https://github.com/avano", + "followers_url": "https://api.github.com/users/avano/followers", + "following_url": "https://api.github.com/users/avano/following{/other_user}", + "gists_url": "https://api.github.com/users/avano/gists{/gist_id}", + "starred_url": "https://api.github.com/users/avano/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/avano/subscriptions", + "organizations_url": "https://api.github.com/users/avano/orgs", + "repos_url": "https://api.github.com/users/avano/repos", + "events_url": "https://api.github.com/users/avano/events{/privacy}", + "received_events_url": "https://api.github.com/users/avano/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "vahrennd", + "id": 8679583, + "node_id": "MDQ6VXNlcjg2Nzk1ODM=", + "avatar_url": "https://avatars.githubusercontent.com/u/8679583?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/vahrennd", + "html_url": "https://github.com/vahrennd", + "followers_url": "https://api.github.com/users/vahrennd/followers", + "following_url": "https://api.github.com/users/vahrennd/following{/other_user}", + "gists_url": "https://api.github.com/users/vahrennd/gists{/gist_id}", + "starred_url": "https://api.github.com/users/vahrennd/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/vahrennd/subscriptions", + "organizations_url": "https://api.github.com/users/vahrennd/orgs", + "repos_url": "https://api.github.com/users/vahrennd/repos", + "events_url": "https://api.github.com/users/vahrennd/events{/privacy}", + "received_events_url": "https://api.github.com/users/vahrennd/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "bloslo", + "id": 11611189, + "node_id": "MDQ6VXNlcjExNjExMTg5", + "avatar_url": "https://avatars.githubusercontent.com/u/11611189?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bloslo", + "html_url": "https://github.com/bloslo", + "followers_url": "https://api.github.com/users/bloslo/followers", + "following_url": "https://api.github.com/users/bloslo/following{/other_user}", + "gists_url": "https://api.github.com/users/bloslo/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bloslo/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bloslo/subscriptions", + "organizations_url": "https://api.github.com/users/bloslo/orgs", + "repos_url": "https://api.github.com/users/bloslo/repos", + "events_url": "https://api.github.com/users/bloslo/events{/privacy}", + "received_events_url": "https://api.github.com/users/bloslo/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "km2018", + "id": 13594336, + "node_id": "MDQ6VXNlcjEzNTk0MzM2", + "avatar_url": "https://avatars.githubusercontent.com/u/13594336?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/km2018", + "html_url": "https://github.com/km2018", + "followers_url": "https://api.github.com/users/km2018/followers", + "following_url": "https://api.github.com/users/km2018/following{/other_user}", + "gists_url": "https://api.github.com/users/km2018/gists{/gist_id}", + "starred_url": "https://api.github.com/users/km2018/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/km2018/subscriptions", + "organizations_url": "https://api.github.com/users/km2018/orgs", + "repos_url": "https://api.github.com/users/km2018/repos", + "events_url": "https://api.github.com/users/km2018/events{/privacy}", + "received_events_url": "https://api.github.com/users/km2018/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "akashRindhe", + "id": 14114123, + "node_id": "MDQ6VXNlcjE0MTE0MTIz", + "avatar_url": "https://avatars.githubusercontent.com/u/14114123?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/akashRindhe", + "html_url": "https://github.com/akashRindhe", + "followers_url": "https://api.github.com/users/akashRindhe/followers", + "following_url": "https://api.github.com/users/akashRindhe/following{/other_user}", + "gists_url": "https://api.github.com/users/akashRindhe/gists{/gist_id}", + "starred_url": "https://api.github.com/users/akashRindhe/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/akashRindhe/subscriptions", + "organizations_url": "https://api.github.com/users/akashRindhe/orgs", + "repos_url": "https://api.github.com/users/akashRindhe/repos", + "events_url": "https://api.github.com/users/akashRindhe/events{/privacy}", + "received_events_url": "https://api.github.com/users/akashRindhe/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "jberglund-BSFT", + "id": 19560713, + "node_id": "MDQ6VXNlcjE5NTYwNzEz", + "avatar_url": "https://avatars.githubusercontent.com/u/19560713?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/jberglund-BSFT", + "html_url": "https://github.com/jberglund-BSFT", + "followers_url": "https://api.github.com/users/jberglund-BSFT/followers", + "following_url": "https://api.github.com/users/jberglund-BSFT/following{/other_user}", + "gists_url": "https://api.github.com/users/jberglund-BSFT/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jberglund-BSFT/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jberglund-BSFT/subscriptions", + "organizations_url": "https://api.github.com/users/jberglund-BSFT/orgs", + "repos_url": "https://api.github.com/users/jberglund-BSFT/repos", + "events_url": "https://api.github.com/users/jberglund-BSFT/events{/privacy}", + "received_events_url": "https://api.github.com/users/jberglund-BSFT/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/repositories_206888201_collaborators-5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/repositories_206888201_collaborators-5.json new file mode 100644 index 0000000000..c72cd76f1f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/repositories_206888201_collaborators-5.json @@ -0,0 +1,254 @@ +[ + { + "login": "timja", + "id": 21194782, + "node_id": "MDQ6VXNlcjIxMTk0Nzgy", + "avatar_url": "https://avatars.githubusercontent.com/u/21194782?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/timja", + "html_url": "https://github.com/timja", + "followers_url": "https://api.github.com/users/timja/followers", + "following_url": "https://api.github.com/users/timja/following{/other_user}", + "gists_url": "https://api.github.com/users/timja/gists{/gist_id}", + "starred_url": "https://api.github.com/users/timja/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/timja/subscriptions", + "organizations_url": "https://api.github.com/users/timja/orgs", + "repos_url": "https://api.github.com/users/timja/repos", + "events_url": "https://api.github.com/users/timja/events{/privacy}", + "received_events_url": "https://api.github.com/users/timja/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "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, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "martinvanzijl", + "id": 24422213, + "node_id": "MDQ6VXNlcjI0NDIyMjEz", + "avatar_url": "https://avatars.githubusercontent.com/u/24422213?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/martinvanzijl", + "html_url": "https://github.com/martinvanzijl", + "followers_url": "https://api.github.com/users/martinvanzijl/followers", + "following_url": "https://api.github.com/users/martinvanzijl/following{/other_user}", + "gists_url": "https://api.github.com/users/martinvanzijl/gists{/gist_id}", + "starred_url": "https://api.github.com/users/martinvanzijl/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/martinvanzijl/subscriptions", + "organizations_url": "https://api.github.com/users/martinvanzijl/orgs", + "repos_url": "https://api.github.com/users/martinvanzijl/repos", + "events_url": "https://api.github.com/users/martinvanzijl/events{/privacy}", + "received_events_url": "https://api.github.com/users/martinvanzijl/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "SCHJonathan", + "id": 26502832, + "node_id": "MDQ6VXNlcjI2NTAyODMy", + "avatar_url": "https://avatars.githubusercontent.com/u/26502832?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/SCHJonathan", + "html_url": "https://github.com/SCHJonathan", + "followers_url": "https://api.github.com/users/SCHJonathan/followers", + "following_url": "https://api.github.com/users/SCHJonathan/following{/other_user}", + "gists_url": "https://api.github.com/users/SCHJonathan/gists{/gist_id}", + "starred_url": "https://api.github.com/users/SCHJonathan/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/SCHJonathan/subscriptions", + "organizations_url": "https://api.github.com/users/SCHJonathan/orgs", + "repos_url": "https://api.github.com/users/SCHJonathan/repos", + "events_url": "https://api.github.com/users/SCHJonathan/events{/privacy}", + "received_events_url": "https://api.github.com/users/SCHJonathan/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "willtsai", + "id": 28876888, + "node_id": "MDQ6VXNlcjI4ODc2ODg4", + "avatar_url": "https://avatars.githubusercontent.com/u/28876888?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/willtsai", + "html_url": "https://github.com/willtsai", + "followers_url": "https://api.github.com/users/willtsai/followers", + "following_url": "https://api.github.com/users/willtsai/following{/other_user}", + "gists_url": "https://api.github.com/users/willtsai/gists{/gist_id}", + "starred_url": "https://api.github.com/users/willtsai/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/willtsai/subscriptions", + "organizations_url": "https://api.github.com/users/willtsai/orgs", + "repos_url": "https://api.github.com/users/willtsai/repos", + "events_url": "https://api.github.com/users/willtsai/events{/privacy}", + "received_events_url": "https://api.github.com/users/willtsai/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "Typraeurion", + "id": 36168707, + "node_id": "MDQ6VXNlcjM2MTY4NzA3", + "avatar_url": "https://avatars.githubusercontent.com/u/36168707?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Typraeurion", + "html_url": "https://github.com/Typraeurion", + "followers_url": "https://api.github.com/users/Typraeurion/followers", + "following_url": "https://api.github.com/users/Typraeurion/following{/other_user}", + "gists_url": "https://api.github.com/users/Typraeurion/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Typraeurion/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Typraeurion/subscriptions", + "organizations_url": "https://api.github.com/users/Typraeurion/orgs", + "repos_url": "https://api.github.com/users/Typraeurion/repos", + "events_url": "https://api.github.com/users/Typraeurion/events{/privacy}", + "received_events_url": "https://api.github.com/users/Typraeurion/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "mxandeco", + "id": 42962662, + "node_id": "MDQ6VXNlcjQyOTYyNjYy", + "avatar_url": "https://avatars.githubusercontent.com/u/42962662?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mxandeco", + "html_url": "https://github.com/mxandeco", + "followers_url": "https://api.github.com/users/mxandeco/followers", + "following_url": "https://api.github.com/users/mxandeco/following{/other_user}", + "gists_url": "https://api.github.com/users/mxandeco/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mxandeco/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mxandeco/subscriptions", + "organizations_url": "https://api.github.com/users/mxandeco/orgs", + "repos_url": "https://api.github.com/users/mxandeco/repos", + "events_url": "https://api.github.com/users/mxandeco/events{/privacy}", + "received_events_url": "https://api.github.com/users/mxandeco/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "tginiotis-at-work", + "id": 61763026, + "node_id": "MDQ6VXNlcjYxNzYzMDI2", + "avatar_url": "https://avatars.githubusercontent.com/u/61763026?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/tginiotis-at-work", + "html_url": "https://github.com/tginiotis-at-work", + "followers_url": "https://api.github.com/users/tginiotis-at-work/followers", + "following_url": "https://api.github.com/users/tginiotis-at-work/following{/other_user}", + "gists_url": "https://api.github.com/users/tginiotis-at-work/gists{/gist_id}", + "starred_url": "https://api.github.com/users/tginiotis-at-work/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/tginiotis-at-work/subscriptions", + "organizations_url": "https://api.github.com/users/tginiotis-at-work/orgs", + "repos_url": "https://api.github.com/users/tginiotis-at-work/repos", + "events_url": "https://api.github.com/users/tginiotis-at-work/events{/privacy}", + "received_events_url": "https://api.github.com/users/tginiotis-at-work/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + }, + { + "login": "0xacx", + "id": 99351112, + "node_id": "U_kgDOBev6SA", + "avatar_url": "https://avatars.githubusercontent.com/u/99351112?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0xacx", + "html_url": "https://github.com/0xacx", + "followers_url": "https://api.github.com/users/0xacx/followers", + "following_url": "https://api.github.com/users/0xacx/following{/other_user}", + "gists_url": "https://api.github.com/users/0xacx/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0xacx/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0xacx/subscriptions", + "organizations_url": "https://api.github.com/users/0xacx/orgs", + "repos_url": "https://api.github.com/users/0xacx/repos", + "events_url": "https://api.github.com/users/0xacx/events{/privacy}", + "received_events_url": "https://api.github.com/users/0xacx/received_events", + "type": "User", + "site_admin": false, + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "role_name": "admin" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/user-1.json new file mode 100644 index 0000000000..0903a33033 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/__files/user-1.json @@ -0,0 +1,46 @@ +{ + "login": "0xacx", + "id": 99351112, + "node_id": "U_kgDOBev6SA", + "avatar_url": "https://avatars.githubusercontent.com/u/99351112?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/0xacx", + "html_url": "https://github.com/0xacx", + "followers_url": "https://api.github.com/users/0xacx/followers", + "following_url": "https://api.github.com/users/0xacx/following{/other_user}", + "gists_url": "https://api.github.com/users/0xacx/gists{/gist_id}", + "starred_url": "https://api.github.com/users/0xacx/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/0xacx/subscriptions", + "organizations_url": "https://api.github.com/users/0xacx/orgs", + "repos_url": "https://api.github.com/users/0xacx/repos", + "events_url": "https://api.github.com/users/0xacx/events{/privacy}", + "received_events_url": "https://api.github.com/users/0xacx/received_events", + "type": "User", + "site_admin": false, + "name": null, + "company": null, + "blog": "", + "location": null, + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "public_repos": 13, + "public_gists": 0, + "followers": 0, + "following": 2, + "created_at": "2022-02-09T16:37:05Z", + "updated_at": "2022-06-15T07:58:04Z", + "private_gists": 0, + "total_private_repos": 0, + "owned_private_repos": 0, + "disk_usage": 725, + "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/GHRepositoryTest/wiremock/userIsCollaborator/mappings/orgs_hub4j-test-org-2.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/orgs_hub4j-test-org-2.json new file mode 100644 index 0000000000..bb3d284504 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/orgs_hub4j-test-org-2.json @@ -0,0 +1,48 @@ +{ + "id": "12d0904c-a249-4339-b8ab-e9c5f1484c38", + "name": "orgs_hub4j-test-org", + "request": { + "url": "/orgs/hub4j-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_hub4j-test-org-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 22 Jun 2022 13:18: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/\"80dbe7cd27a01d294925375cca9edb73bc5b5215126873fa5b58df298a20e7a1\"", + "Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", + "X-OAuth-Scopes": "admin:org, admin:repo_hook, gist, repo, user, workflow, write:discussion, write:packages", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2022-09-20 12:51:45 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4886", + "X-RateLimit-Reset": "1655906861", + "X-RateLimit-Used": "114", + "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": "CDCD:2B83:13B8A8F:1423E49:62B31697" + } + }, + "uuid": "12d0904c-a249-4339-b8ab-e9c5f1484c38", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repos_hub4j-test-org_github-api-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repos_hub4j-test-org_github-api-3.json new file mode 100644 index 0000000000..3ccf0df2be --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repos_hub4j-test-org_github-api-3.json @@ -0,0 +1,48 @@ +{ + "id": "cb685d03-9994-419a-bba7-a43525aec7c5", + "name": "repos_hub4j-test-org_github-api", + "request": { + "url": "/repos/hub4j-test-org/github-api", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 22 Jun 2022 13:18: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/\"cb99d6332ac5c8b2c09a1b93d8c078ce24f73cb0b79858a1516f6f939aae0a72\"", + "Last-Modified": "Mon, 23 May 2022 14:23:52 GMT", + "X-OAuth-Scopes": "admin:org, admin:repo_hook, gist, repo, user, workflow, write:discussion, write:packages", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2022-09-20 12:51:45 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4885", + "X-RateLimit-Reset": "1655906861", + "X-RateLimit-Used": "115", + "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": "CDCE:115D0:11EC0F1:1255378:62B31697" + } + }, + "uuid": "cb685d03-9994-419a-bba7-a43525aec7c5", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repos_hub4j-test-org_github-api_collaborators-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repos_hub4j-test-org_github-api_collaborators-4.json new file mode 100644 index 0000000000..9ff9256bb7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repos_hub4j-test-org_github-api_collaborators-4.json @@ -0,0 +1,48 @@ +{ + "id": "51d46529-a306-4d19-810c-92843fcd36b3", + "name": "repos_hub4j-test-org_github-api_collaborators", + "request": { + "url": "/repos/hub4j-test-org/github-api/collaborators", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_github-api_collaborators-4.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 22 Jun 2022 13:18:16 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"451021fe23138706be1e1e35f542497503828ad1ff3eaf82f8e8be7550eadcfe\"", + "X-OAuth-Scopes": "admin:org, admin:repo_hook, gist, repo, user, workflow, write:discussion, write:packages", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-09-20 12:51:45 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4884", + "X-RateLimit-Reset": "1655906861", + "X-RateLimit-Used": "116", + "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": "CDCF:11403:BF7787:C51875:62B31697", + "Link": "; rel=\"next\", ; rel=\"last\"" + } + }, + "uuid": "51d46529-a306-4d19-810c-92843fcd36b3", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repos_hub4j-test-org_github-api_collaborators_vbehar-6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repos_hub4j-test-org_github-api_collaborators_vbehar-6.json new file mode 100644 index 0000000000..a9f25af5dd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repos_hub4j-test-org_github-api_collaborators_vbehar-6.json @@ -0,0 +1,40 @@ +{ + "id": "2ec707ff-894b-4e30-bab5-8b8ffc82adeb", + "name": "repos_hub4j-test-org_github-api_collaborators_vbehar", + "request": { + "url": "/repos/hub4j-test-org/github-api/collaborators/vbehar", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 22 Jun 2022 13:18:16 GMT", + "X-OAuth-Scopes": "admin:org, admin:repo_hook, gist, repo, user, workflow, write:discussion, write:packages", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-09-20 12:51:45 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4882", + "X-RateLimit-Reset": "1655906861", + "X-RateLimit-Used": "118", + "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": "CDD1:21ED:1404C81:146F821:62B31698" + } + }, + "uuid": "2ec707ff-894b-4e30-bab5-8b8ffc82adeb", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repositories_206888201_collaborators-5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repositories_206888201_collaborators-5.json new file mode 100644 index 0000000000..3baf3d426e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/repositories_206888201_collaborators-5.json @@ -0,0 +1,48 @@ +{ + "id": "2624a0c2-3bee-4d14-ad13-b0c96381ad90", + "name": "repositories_206888201_collaborators", + "request": { + "url": "/repositories/206888201/collaborators?page=2", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repositories_206888201_collaborators-5.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 22 Jun 2022 13:18:16 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"d53581f41f93b974f1e2c3f8c7d3f42343561163b0593865121640518d932cad\"", + "X-OAuth-Scopes": "admin:org, admin:repo_hook, gist, repo, user, workflow, write:discussion, write:packages", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-09-20 12:51:45 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4883", + "X-RateLimit-Reset": "1655906861", + "X-RateLimit-Used": "117", + "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": "CDD0:11400:57FAC0:5CF124:62B31698", + "Link": "; rel=\"prev\", ; rel=\"first\"" + } + }, + "uuid": "2624a0c2-3bee-4d14-ad13-b0c96381ad90", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/user-1.json new file mode 100644 index 0000000000..d8248b7126 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/userIsCollaborator/mappings/user-1.json @@ -0,0 +1,48 @@ +{ + "id": "27a143ee-fd78-47f0-a017-1ffd68615756", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "user-1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 22 Jun 2022 13:18: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/\"73ba98e72cc4eee3ac22773bf0aca91ee52ada5d7ed1683fb83c677d46388dde\"", + "Last-Modified": "Wed, 15 Jun 2022 07:58:04 GMT", + "X-OAuth-Scopes": "admin:org, admin:repo_hook, gist, repo, user, workflow, write:discussion, write:packages", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2022-09-20 12:51:45 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4888", + "X-RateLimit-Reset": "1655906861", + "X-RateLimit-Used": "112", + "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": "CDCC:0F9F:287D3E:2D0A3B:62B31696" + } + }, + "uuid": "27a143ee-fd78-47f0-a017-1ffd68615756", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-10.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-10.json similarity index 87% rename from src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-10.json rename to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-10.json index d9fe94ad14..10e9756d26 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/__files/repos_hub4j-test-org_github-api_pulls_comments_562972753_reactions-10.json +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-10.json @@ -1,7 +1,5 @@ -{ - "id": 97972784, - "node_id": "MDg6UmVhY3Rpb245Nzk3Mjc4NA==", - "user": { +[ + { "login": "bitwiseman", "id": 1958953, "node_id": "MDQ6VXNlcjE5NTg5NTM=", @@ -20,7 +18,5 @@ "received_events_url": "https://api.github.com/users/bitwiseman/received_events", "type": "User", "site_admin": false - }, - "content": "confused", - "created_at": "2021-01-22T23:38:19Z" -} \ No newline at end of file + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-8.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-3.json similarity index 87% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-8.json rename to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-3.json index a6c0386d8c..10e9756d26 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testIssueWithComment/__files/repos_kohsuke_test_issues_comments_8547251_reactions-8.json +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-3.json @@ -1,7 +1,5 @@ -{ - "id": 127850403, - "node_id": "MDg6UmVhY3Rpb24xMjc4NTA0MDM=", - "user": { +[ + { "login": "bitwiseman", "id": 1958953, "node_id": "MDQ6VXNlcjE5NTg5NTM=", @@ -20,7 +18,5 @@ "received_events_url": "https://api.github.com/users/bitwiseman/received_events", "type": "User", "site_admin": false - }, - "content": "confused", - "created_at": "2021-09-11T07:03:05Z" -} \ No newline at end of file + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_52782621-7.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-6.json similarity index 50% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_52782621-7.json rename to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-6.json index d86fea8491..d66fd58078 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_comments_52782621-7.json +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-6.json @@ -1,9 +1,25 @@ -{ - "url": "https://api.github.com/repos/kohsuke/sandbox-ant/comments/52782621", - "html_url": "https://github.com/kohsuke/sandbox-ant/commit/8ae38db0ea5837313ab5f39d43a6f73de3bd9000#commitcomment-52782621", - "id": 52782621, - "node_id": "MDEzOkNvbW1pdENvbW1lbnQ1Mjc4MjYyMQ==", - "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 + }, + { "login": "bitwiseman", "id": 1958953, "node_id": "MDQ6VXNlcjE5NTg5NTM=", @@ -22,13 +38,5 @@ "received_events_url": "https://api.github.com/users/bitwiseman/received_events", "type": "User", "site_admin": false - }, - "position": null, - "line": null, - "path": null, - "commit_id": "8ae38db0ea5837313ab5f39d43a6f73de3bd9000", - "created_at": "2021-06-28T22:41:30Z", - "updated_at": "2021-06-28T22:41:30Z", - "author_association": "NONE", - "body": "updated text" -} \ No newline at end of file + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-5.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-7.json similarity index 50% rename from src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-5.json rename to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-7.json index 521f67d71d..d66fd58078 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/__files/repos_kohsuke_sandbox-ant_commits_8ae38db0ea5837313ab5f39d43a6f73de3bd9000_comments-5.json +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/organizations_7544739_team_3451996_members-7.json @@ -1,9 +1,25 @@ -{ - "url": "https://api.github.com/repos/kohsuke/sandbox-ant/comments/52782621", - "html_url": "https://github.com/kohsuke/sandbox-ant/commit/8ae38db0ea5837313ab5f39d43a6f73de3bd9000#commitcomment-52782621", - "id": 52782621, - "node_id": "MDEzOkNvbW1pdENvbW1lbnQ1Mjc4MjYyMQ==", - "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 + }, + { "login": "bitwiseman", "id": 1958953, "node_id": "MDQ6VXNlcjE5NTg5NTM=", @@ -22,13 +38,5 @@ "received_events_url": "https://api.github.com/users/bitwiseman/received_events", "type": "User", "site_admin": false - }, - "position": null, - "line": null, - "path": null, - "commit_id": "8ae38db0ea5837313ab5f39d43a6f73de3bd9000", - "created_at": "2021-06-28T22:41:30Z", - "updated_at": "2021-06-28T22:41:30Z", - "author_association": "NONE", - "body": "[testing](http://kohsuse.org/)" -} \ No newline at end of file + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/orgs_hub4j-test-org-1.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/orgs_hub4j-test-org-1.json new file mode 100644 index 0000000000..1fc92f22b1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/orgs_hub4j-test-org-1.json @@ -0,0 +1,55 @@ +{ + "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://avatars.githubusercontent.com/u/7544739?v=4", + "description": "Hub4j Test Org Description (this could be null or blank too)", + "name": "Hub4j Test Org Name (this could be null or blank too)", + "company": null, + "blog": "https://hub4j.url.io/could/be/null", + "location": "Hub4j Test Org Location (this could be null or blank too)", + "email": "hub4jtestorgemail@could.be.null.com", + "twitter_username": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 49, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2020-06-04T05:56:10Z", + "type": "Organization", + "total_private_repos": 4, + "owned_private_repos": 4, + "private_gists": 0, + "disk_usage": 11979, + "collaborators": 0, + "billing_email": "kk@kohsuke.org", + "default_repository_permission": "none", + "members_can_create_repositories": false, + "two_factor_requirement_enabled": false, + "members_allowed_repository_creation_type": "none", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true, + "members_can_fork_private_repositories": false, + "members_can_create_public_pages": true, + "members_can_create_private_pages": true, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 10000, + "filled_seats": 37, + "seats": 3 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/orgs_hub4j-test-org_teams_dummy-team-2.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/orgs_hub4j-test-org_teams_dummy-team-2.json new file mode 100644 index 0000000000..ce21071d54 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/orgs_hub4j-test-org_teams_dummy-team-2.json @@ -0,0 +1,49 @@ +{ + "name": "dummy-team", + "id": 3451996, + "node_id": "MDQ6VGVhbTM0NTE5OTY=", + "slug": "dummy-team", + "description": "Updated by API TestModified", + "privacy": "closed", + "url": "https://api.github.com/organizations/7544739/team/3451996", + "html_url": "https://github.com/orgs/hub4j-test-org/teams/dummy-team", + "members_url": "https://api.github.com/organizations/7544739/team/3451996/members{/member}", + "repositories_url": "https://api.github.com/organizations/7544739/team/3451996/repos", + "permission": "pull", + "created_at": "2019-10-03T21:46:12Z", + "updated_at": "2022-03-04T10:36:59Z", + "members_count": 1, + "repos_count": 1, + "organization": { + "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://avatars.githubusercontent.com/u/7544739?v=4", + "description": "Hub4j Test Org Description (this could be null or blank too)", + "name": "Hub4j Test Org Name (this could be null or blank too)", + "company": null, + "blog": "https://hub4j.url.io/could/be/null", + "location": "Hub4j Test Org Location (this could be null or blank too)", + "email": "hub4jtestorgemail@could.be.null.com", + "twitter_username": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 49, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/hub4j-test-org", + "created_at": "2014-05-10T19:39:11Z", + "updated_at": "2020-06-04T05:56:10Z", + "type": "Organization" + }, + "parent": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/users_gsmet-4.json similarity index 89% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/user-1.json rename to src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/users_gsmet-4.json index 79bade964e..f87cbe41ef 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/user-1.json +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/__files/users_gsmet-4.json @@ -19,22 +19,22 @@ "site_admin": false, "name": "Guillaume Smet", "company": "Red Hat", - "blog": "https://www.redhat.com/", + "blog": "https://lesincroyableslivres.fr/", "location": "Lyon, France", "email": "guillaume.smet@gmail.com", "hireable": null, "bio": "Happy camper at Red Hat, working on Quarkus and the Hibernate portfolio.", "twitter_username": "gsmet_", - "public_repos": 102, - "public_gists": 14, - "followers": 127, + "public_repos": 152, + "public_gists": 15, + "followers": 174, "following": 3, "created_at": "2011-12-22T11:03:22Z", - "updated_at": "2021-03-23T17:35:45Z", + "updated_at": "2022-04-14T20:01:34Z", "private_gists": 14, "total_private_repos": 4, "owned_private_repos": 1, - "disk_usage": 68258, + "disk_usage": 70883, "collaborators": 1, "two_factor_authentication": true, "plan": { diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-10.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-10.json new file mode 100644 index 0000000000..26db3e84a0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-10.json @@ -0,0 +1,48 @@ +{ + "id": "424c6f1d-3e8a-4153-803c-38fa04347733", + "name": "organizations_7544739_team_3451996_members", + "request": { + "url": "/organizations/7544739/team/3451996/members?role=all", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "organizations_7544739_team_3451996_members-10.json", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56: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/\"8bded93da98ec3ba7968a4518dc805d37d535c798a700a1616ec568c70b76aae\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4973", + "X-RateLimit-Reset": "1650541694", + "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": "C192:1227A:CA2E10:CE35A1:62613875" + } + }, + "uuid": "424c6f1d-3e8a-4153-803c-38fa04347733", + "persistent": true, + "scenarioName": "scenario-1-organizations-7544739-team-3451996-members", + "requiredScenarioState": "scenario-1-organizations-7544739-team-3451996-members-3", + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-3.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-3.json new file mode 100644 index 0000000000..20df19ea87 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-3.json @@ -0,0 +1,49 @@ +{ + "id": "c2ad8b47-3d58-484d-91db-32576d8ec1cb", + "name": "organizations_7544739_team_3451996_members", + "request": { + "url": "/organizations/7544739/team/3451996/members?role=all", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "organizations_7544739_team_3451996_members-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56: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/\"8bded93da98ec3ba7968a4518dc805d37d535c798a700a1616ec568c70b76aae\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4980", + "X-RateLimit-Reset": "1650541694", + "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": "C182:B3FE:126871A:12B1E66:62613872" + } + }, + "uuid": "c2ad8b47-3d58-484d-91db-32576d8ec1cb", + "persistent": true, + "scenarioName": "scenario-1-organizations-7544739-team-3451996-members", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-organizations-7544739-team-3451996-members-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-6.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-6.json new file mode 100644 index 0000000000..0eb3f92af8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-6.json @@ -0,0 +1,49 @@ +{ + "id": "e0b9766d-ff6d-4e8e-a3bb-d645297d18be", + "name": "organizations_7544739_team_3451996_members", + "request": { + "url": "/organizations/7544739/team/3451996/members?role=all", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "organizations_7544739_team_3451996_members-6.json", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56: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/\"da8fb970de728aff6154c2f2a9083e384ea024b402424bc8456f0c4117a6deaf\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4977", + "X-RateLimit-Reset": "1650541694", + "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": "C18A:4960:8D57BF:8FD6E5:62613873" + } + }, + "uuid": "e0b9766d-ff6d-4e8e-a3bb-d645297d18be", + "persistent": true, + "scenarioName": "scenario-1-organizations-7544739-team-3451996-members", + "requiredScenarioState": "scenario-1-organizations-7544739-team-3451996-members-2", + "newScenarioState": "scenario-1-organizations-7544739-team-3451996-members-3", + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-7.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-7.json new file mode 100644 index 0000000000..69c75821bc --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-7.json @@ -0,0 +1,46 @@ +{ + "id": "43361fed-9632-4319-a7a7-3abeecf3790f", + "name": "organizations_7544739_team_3451996_members", + "request": { + "url": "/organizations/7544739/team/3451996/members?role=maintainer", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "organizations_7544739_team_3451996_members-7.json", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56: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/\"da8fb970de728aff6154c2f2a9083e384ea024b402424bc8456f0c4117a6deaf\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4976", + "X-RateLimit-Reset": "1650541694", + "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": "C18C:7057:121D070:12649B9:62613873" + } + }, + "uuid": "43361fed-9632-4319-a7a7-3abeecf3790f", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-8.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-8.json new file mode 100644 index 0000000000..d3efb30f76 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_members-8.json @@ -0,0 +1,46 @@ +{ + "id": "8c628b1f-bb2f-4a3f-b714-c5a49fe0e9fb", + "name": "organizations_7544739_team_3451996_members", + "request": { + "url": "/organizations/7544739/team/3451996/members?role=member", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56: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": "\"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", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4975", + "X-RateLimit-Reset": "1650541694", + "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": "C18E:8011:C859B4:CC5ACE:62613874" + } + }, + "uuid": "8c628b1f-bb2f-4a3f-b714-c5a49fe0e9fb", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_memberships_gsmet-11.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_memberships_gsmet-11.json new file mode 100644 index 0000000000..0c423f5521 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_memberships_gsmet-11.json @@ -0,0 +1,41 @@ +{ + "id": "54b46c29-3b21-41ff-8dbe-bc90f4e2834f", + "name": "organizations_7544739_team_3451996_memberships_gsmet", + "request": { + "url": "/organizations/7544739/team/3451996/memberships/gsmet", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 404, + "body": "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user\"}", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56:53 GMT", + "Content-Type": "application/json; charset=utf-8", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, write:org", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4972", + "X-RateLimit-Reset": "1650541694", + "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'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "C194:B3FD:C25197:C63FCC:62613875" + } + }, + "uuid": "54b46c29-3b21-41ff-8dbe-bc90f4e2834f", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_memberships_gsmet-5.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_memberships_gsmet-5.json new file mode 100644 index 0000000000..fd01acdb99 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_memberships_gsmet-5.json @@ -0,0 +1,53 @@ +{ + "id": "5ae8bc2b-2b7d-4e1a-bce3-84b91d3a4e41", + "name": "organizations_7544739_team_3451996_memberships_gsmet", + "request": { + "url": "/organizations/7544739/team/3451996/memberships/gsmet", + "method": "PUT", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"role\":\"maintainer\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 200, + "body": "{\"state\":\"active\",\"role\":\"maintainer\",\"url\":\"https://api.github.com/organizations/7544739/team/3451996/memberships/gsmet\"}", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56: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/\"6e79bcc9d1fb97f3ea11c87805d3dafea4016657495845ba0b3c74b9492cb67d\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "admin:org, repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4978", + "X-RateLimit-Reset": "1650541694", + "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'", + "X-GitHub-Request-Id": "C188:495D:1E8F50:2038E7:62613873" + } + }, + "uuid": "5ae8bc2b-2b7d-4e1a-bce3-84b91d3a4e41", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_memberships_gsmet-9.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_memberships_gsmet-9.json new file mode 100644 index 0000000000..e2cda5d4d1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/organizations_7544739_team_3451996_memberships_gsmet-9.json @@ -0,0 +1,39 @@ +{ + "id": "1b440ab0-a70b-43a3-8295-b69f335f3e0b", + "name": "organizations_7544739_team_3451996_memberships_gsmet", + "request": { + "url": "/organizations/7544739/team/3451996/memberships/gsmet", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56:53 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-Accepted-OAuth-Scopes": "admin:org, repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4974", + "X-RateLimit-Reset": "1650541694", + "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": "C190:B3FE:1268AB0:12B21EB:62613874" + } + }, + "uuid": "1b440ab0-a70b-43a3-8295-b69f335f3e0b", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/orgs_hub4j-test-org-1.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/orgs_hub4j-test-org-1.json new file mode 100644 index 0000000000..a6e0aadc61 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/orgs_hub4j-test-org-1.json @@ -0,0 +1,47 @@ +{ + "id": "07e23af6-158e-4ae7-8733-c0cd44af55d9", + "name": "orgs_hub4j-test-org", + "request": { + "url": "/orgs/hub4j-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_hub4j-test-org-1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56: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/\"c02031d2ea85f3634e9f8fe9240f1d2790a675e0cc9c2884fad5cd632a52ce94\"", + "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-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4982", + "X-RateLimit-Reset": "1650541694", + "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": "C17E:4960:8D54D8:8FD3FA:62613871" + } + }, + "uuid": "07e23af6-158e-4ae7-8733-c0cd44af55d9", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/orgs_hub4j-test-org_teams_dummy-team-2.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/orgs_hub4j-test-org_teams_dummy-team-2.json new file mode 100644 index 0000000000..9e1f0ba386 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/orgs_hub4j-test-org_teams_dummy-team-2.json @@ -0,0 +1,47 @@ +{ + "id": "66add0d9-eb3e-4c1f-bea2-6e0f32941e92", + "name": "orgs_hub4j-test-org_teams_dummy-team", + "request": { + "url": "/orgs/hub4j-test-org/teams/dummy-team", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "orgs_hub4j-test-org_teams_dummy-team-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56: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/\"1fbce0cbfea113fefff1877b37929ef1d7cb9c8989a5b223df3e9ea092502191\"", + "Last-Modified": "Fri, 04 Mar 2022 10:36:59 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-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4981", + "X-RateLimit-Reset": "1650541694", + "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": "C180:E7CD:1147E92:118D151:62613872" + } + }, + "uuid": "66add0d9-eb3e-4c1f-bea2-6e0f32941e92", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/users_gsmet-4.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/users_gsmet-4.json new file mode 100644 index 0000000000..709ab6ec34 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/addRemoveMember/mappings/users_gsmet-4.json @@ -0,0 +1,47 @@ +{ + "id": "dc528185-62a6-431c-b570-3a1c768fe91c", + "name": "users_gsmet", + "request": { + "url": "/users/gsmet", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "users_gsmet-4.json", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 21 Apr 2022 10:56: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/\"93ed71936dd0a92c3d1561cfdfbe7ea961c27ab15c76ec2608bcccba0b3c3284\"", + "Last-Modified": "Thu, 14 Apr 2022 20:01:34 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-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4979", + "X-RateLimit-Reset": "1650541694", + "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": "C184:1227B:12AEABF:12F6177:62613872" + } + }, + "uuid": "dc528185-62a6-431c-b570-3a1c768fe91c", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/createAndCountPrivateRepos/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/createAndCountPrivateRepos/__files/user-1.json index 1c08033b3e..c446e8a327 100644 --- a/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/createAndCountPrivateRepos/__files/user-1.json +++ b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/createAndCountPrivateRepos/__files/user-1.json @@ -16,14 +16,15 @@ "events_url": "https://api.github.com/users/kohsuke/events{/privacy}", "received_events_url": "https://api.github.com/users/kohsuke/received_events", "type": "User", - "site_admin": false, + "site_admin": true, + "ldap_dn": "CN=kohsuke,OU=Users,DC=github,DC=com", "name": "Sage Pierce", "company": "@Vrbo @ExpediaGroup", "blog": "", "location": null, "email": "sapierce@vrbo.com", "hireable": true, - "bio": "Software engineer with a Masters of Science in Electrical and Computer Engineering out of The University of Texas at Austin.", + "bio": "test", "public_repos": 9, "public_gists": 0, "followers": 4, diff --git a/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifyLdapdn/__files/users_kartikpatodi-1.json b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifyLdapdn/__files/users_kartikpatodi-1.json new file mode 100644 index 0000000000..11ffa2db95 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifyLdapdn/__files/users_kartikpatodi-1.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/verifyLdapdn/mappings/users_kartikpatodi-1.json b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifyLdapdn/mappings/users_kartikpatodi-1.json new file mode 100644 index 0000000000..e1ae5b74cb --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHUserTest/wiremock/verifyLdapdn/mappings/users_kartikpatodi-1.json @@ -0,0 +1,41 @@ +{ + "name": "users_kartikpatodi", + "request": { + "url": "/users/kartikpatodi", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "users_kartikpatodi-1.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 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest-1.json new file mode 100644 index 0000000000..4464472190 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest-1.json @@ -0,0 +1,140 @@ +{ + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments", + "created_at": "2021-03-17T10:50:49Z", + "updated_at": "2021-04-05T12:08:00Z", + "pushed_at": "2022-08-17T10:55:33Z", + "git_url": "git://github.com/hub4j-test-org/GHWorkflowRunTest.git", + "ssh_url": "git@github.com:hub4j-test-org/GHWorkflowRunTest.git", + "clone_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest.git", + "svn_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "homepage": null, + "size": 7, + "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": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 8, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 1, + "open_issues": 8, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "use_squash_pr_title_as_default": false, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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": 1, + "subscribers_count": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json new file mode 100644 index 0000000000..d160774ab6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json @@ -0,0 +1,881 @@ +{ + "total_count": 4, + "workflow_runs": [ + { + "id": 2874767916, + "name": "Slow workflow", + "node_id": "WFR_kwLOFMhYrM6rWXos", + "head_branch": "main", + "head_sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "path": ".github/workflows/slow-workflow.yml", + "run_number": 21, + "event": "pull_request", + "status": "completed", + "conclusion": "action_required", + "workflow_id": 6820849, + "check_suite_id": 7851902990, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAB1AKIDg", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916", + "pull_requests": [], + "created_at": "2022-08-17T10:55:36Z", + "updated_at": "2022-08-17T10:55:36Z", + "actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2022-08-17T10:55:36Z", + "triggering_actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/7851902990", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767916/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820849", + "head_commit": { + "id": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "tree_id": "28a8c291eee6bc91cb8956dd6e40abf0dfd44919", + "message": "Create README.md", + "timestamp": "2022-08-17T10:55:13Z", + "author": { + "name": "Holly Cummins", + "email": "hcummins@redhat.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" + }, + "head_repository": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments" + } + }, + { + "id": 2874767914, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM6rWXoq", + "head_branch": "main", + "head_sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "path": ".github/workflows/artifacts-workflow.yml", + "run_number": 12, + "event": "pull_request", + "status": "completed", + "conclusion": "action_required", + "workflow_id": 7433027, + "check_suite_id": 7851902993, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAB1AKIEQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914", + "pull_requests": [], + "created_at": "2022-08-17T10:55:36Z", + "updated_at": "2022-08-17T10:55:36Z", + "actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2022-08-17T10:55:36Z", + "triggering_actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/7851902993", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767914/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", + "head_commit": { + "id": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "tree_id": "28a8c291eee6bc91cb8956dd6e40abf0dfd44919", + "message": "Create README.md", + "timestamp": "2022-08-17T10:55:13Z", + "author": { + "name": "Holly Cummins", + "email": "hcummins@redhat.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" + }, + "head_repository": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments" + } + }, + { + "id": 2874767918, + "name": "Fast workflow", + "node_id": "WFR_kwLOFMhYrM6rWXou", + "head_branch": "main", + "head_sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "path": ".github/workflows/fast-workflow.yml", + "run_number": 78, + "event": "pull_request", + "status": "completed", + "conclusion": "action_required", + "workflow_id": 6820790, + "check_suite_id": 7851902988, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAB1AKIDA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918", + "pull_requests": [], + "created_at": "2022-08-17T10:55:36Z", + "updated_at": "2022-08-17T10:55:36Z", + "actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2022-08-17T10:55:36Z", + "triggering_actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/7851902988", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "head_commit": { + "id": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "tree_id": "28a8c291eee6bc91cb8956dd6e40abf0dfd44919", + "message": "Create README.md", + "timestamp": "2022-08-17T10:55:13Z", + "author": { + "name": "Holly Cummins", + "email": "hcummins@redhat.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" + }, + "head_repository": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments" + } + }, + { + "id": 2874767920, + "name": "Failing workflow", + "node_id": "WFR_kwLOFMhYrM6rWXow", + "head_branch": "main", + "head_sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "path": ".github/workflows/failing-workflow.yml", + "run_number": 6, + "event": "pull_request", + "status": "completed", + "conclusion": "action_required", + "workflow_id": 6820886, + "check_suite_id": 7851902996, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAB1AKIFA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920", + "pull_requests": [], + "created_at": "2022-08-17T10:55:36Z", + "updated_at": "2022-08-17T10:55:36Z", + "actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "referenced_workflows": [], + "run_started_at": "2022-08-17T10:55:36Z", + "triggering_actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/7851902996", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767920/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820886", + "head_commit": { + "id": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "tree_id": "28a8c291eee6bc91cb8956dd6e40abf0dfd44919", + "message": "Create README.md", + "timestamp": "2022-08-17T10:55:13Z", + "author": { + "name": "Holly Cummins", + "email": "hcummins@redhat.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" + }, + "head_repository": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments" + } + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json new file mode 100644 index 0000000000..647b3b5b52 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json @@ -0,0 +1,219 @@ +{ + "id": 2874767918, + "name": "Fast workflow", + "node_id": "WFR_kwLOFMhYrM6rWXou", + "head_branch": "main", + "head_sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "path": ".github/workflows/fast-workflow.yml", + "run_number": 78, + "event": "pull_request", + "status": "completed", + "conclusion": "success", + "workflow_id": 6820790, + "check_suite_id": 7851902988, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAB1AKIDA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918", + "pull_requests": [], + "created_at": "2022-08-17T10:55:36Z", + "updated_at": "2022-08-17T11:47:52Z", + "actor": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 2, + "referenced_workflows": [], + "run_started_at": "2022-08-17T11:47:32Z", + "triggering_actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/7851902988", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/rerun", + "previous_attempt_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/attempts/1", + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "head_commit": { + "id": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "tree_id": "28a8c291eee6bc91cb8956dd6e40abf0dfd44919", + "message": "Create README.md", + "timestamp": "2022-08-17T10:55:13Z", + "author": { + "name": "Holly Cummins", + "email": "hcummins@redhat.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" + }, + "head_repository": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json new file mode 100644 index 0000000000..809c477fed --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/__files/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json @@ -0,0 +1,330 @@ +[ + { + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8", + "id": 1028677984, + "node_id": "PR_kwDOFMhYrM49UGFg", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/pull/8", + "diff_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/pull/8.diff", + "patch_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/pull/8.patch", + "issue_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/8", + "number": 8, + "state": "open", + "locked": false, + "title": "Create README.md ", + "user": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "body": "... as a test PR", + "created_at": "2022-08-17T10:55:33Z", + "updated_at": "2022-08-17T10:55:33Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "3c59c50930706a7cde5644f24d59100fab2d07d1", + "assignee": null, + "assignees": [], + "requested_reviewers": [], + "requested_teams": [], + "labels": [], + "milestone": null, + "draft": false, + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8/commits", + "review_comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8/comments", + "review_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/8/comments", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "head": { + "label": "holly-cummins:main", + "ref": "main", + "sha": "b49a973e2a387787b8b3ef1212b848a1ec4f7b9a", + "user": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 525745693, + "node_id": "R_kgDOH1Y-HQ", + "name": "GHWorkflowRunTest", + "full_name": "holly-cummins/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "holly-cummins", + "id": 11509290, + "node_id": "MDQ6VXNlcjExNTA5Mjkw", + "avatar_url": "https://avatars.githubusercontent.com/u/11509290?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/holly-cummins", + "html_url": "https://github.com/holly-cummins", + "followers_url": "https://api.github.com/users/holly-cummins/followers", + "following_url": "https://api.github.com/users/holly-cummins/following{/other_user}", + "gists_url": "https://api.github.com/users/holly-cummins/gists{/gist_id}", + "starred_url": "https://api.github.com/users/holly-cummins/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/holly-cummins/subscriptions", + "organizations_url": "https://api.github.com/users/holly-cummins/orgs", + "repos_url": "https://api.github.com/users/holly-cummins/repos", + "events_url": "https://api.github.com/users/holly-cummins/events{/privacy}", + "received_events_url": "https://api.github.com/users/holly-cummins/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": true, + "url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/holly-cummins/GHWorkflowRunTest/deployments", + "created_at": "2022-08-17T10:42:03Z", + "updated_at": "2021-04-05T12:08:00Z", + "pushed_at": "2022-08-17T10:55:13Z", + "git_url": "git://github.com/holly-cummins/GHWorkflowRunTest.git", + "ssh_url": "git@github.com:holly-cummins/GHWorkflowRunTest.git", + "clone_url": "https://github.com/holly-cummins/GHWorkflowRunTest.git", + "svn_url": "https://github.com/holly-cummins/GHWorkflowRunTest", + "homepage": null, + "size": 7, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "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, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + } + }, + "base": { + "label": "hub4j-test-org:main", + "ref": "main", + "sha": "c7bd3b8db871bbde8629275631ea645622ae89d7", + "user": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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 + }, + "repo": { + "id": 348674220, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", + "name": "GHWorkflowRunTest", + "full_name": "hub4j-test-org/GHWorkflowRunTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowRunTest", + "description": "Repository used by GHWorkflowRunTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments", + "created_at": "2021-03-17T10:50:49Z", + "updated_at": "2021-04-05T12:08:00Z", + "pushed_at": "2022-08-17T10:55:33Z", + "git_url": "git://github.com/hub4j-test-org/GHWorkflowRunTest.git", + "ssh_url": "git@github.com:hub4j-test-org/GHWorkflowRunTest.git", + "clone_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest.git", + "svn_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest", + "homepage": null, + "size": 7, + "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": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 8, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 1, + "open_issues": 8, + "watchers": 0, + "default_branch": "main" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8" + }, + "html": { + "href": "https://github.com/hub4j-test-org/GHWorkflowRunTest/pull/8" + }, + "issue": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/8" + }, + "comments": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/8/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls/8/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/b49a973e2a387787b8b3ef1212b848a1ec4f7b9a" + } + }, + "author_association": "FIRST_TIME_CONTRIBUTOR", + "auto_merge": null, + "active_lock_reason": null + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest-1.json new file mode 100644 index 0000000000..08c7fedfb1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest-1.json @@ -0,0 +1,47 @@ +{ + "id": "2fd575fb-448e-411c-90fd-b9d4d1d168df", + "name": "repos_hub4j-test-org_ghworkflowruntest", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_ghworkflowruntest-1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 17 Aug 2022 11:47:25 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"37b2062877beb4b2cc43337c2d02d1c44ce7a17ae794ebf7c0ae1f510ee0bb24\"", + "Last-Modified": "Mon, 05 Apr 2021 12:08:00 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-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4954", + "X-RateLimit-Reset": "1660739435", + "X-RateLimit-Used": "46", + "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": "8BBA:93DC:887943:8CDBCF:62FCD54C" + } + }, + "uuid": "2fd575fb-448e-411c-90fd-b9d4d1d168df", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json new file mode 100644 index 0000000000..3f1283ed99 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json @@ -0,0 +1,46 @@ +{ + "id": "f86d49aa-06b3-40c2-a2d4-0b4931507558", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs?branch=main&status=action_required&event=pull_request&per_page=20", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_ghworkflowruntest_actions_runs-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 17 Aug 2022 11:47: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/\"666022f8289ae5c2b7a98a0ecb77d141f908f2a97ca2c7d8d0131acd0d6ba0dd\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4950", + "X-RateLimit-Reset": "1660739435", + "X-RateLimit-Used": "50", + "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": "8BC2:ED57:E8651C:EDA047:62FCD553" + } + }, + "uuid": "f86d49aa-06b3-40c2-a2d4-0b4931507558", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json new file mode 100644 index 0000000000..3f6bc81895 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json @@ -0,0 +1,46 @@ +{ + "id": "201d9618-9cdb-47af-9df7-6fa083e8192b", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918-5.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 17 Aug 2022 11:47:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"b973d789d1f5b02b252da8833fc6edd31353efb4a817e72825d37d0a7fb78d98\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4942", + "X-RateLimit-Reset": "1660739435", + "X-RateLimit-Used": "58", + "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": "8BD4:BC66:15B72:4B0CD:62FCD56E" + } + }, + "uuid": "201d9618-9cdb-47af-9df7-6fa083e8192b", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918_approve-4.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918_approve-4.json new file mode 100644 index 0000000000..cb885e71e4 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918_approve-4.json @@ -0,0 +1,53 @@ +{ + "id": "579dc9e2-fa5c-468d-9b47-eff387065eae", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs_2874767918_approve", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/2874767918/approve", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "body": "{}", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 17 Aug 2022 11:47: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": "\"7dfd5806ff5c2f27d03077f8e5177ad2ffdd76141a8620be11222e0f7d2b3f18\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4949", + "X-RateLimit-Reset": "1660739435", + "X-RateLimit-Used": "51", + "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": "8BC4:68B5:906BFE:94D2A7:62FCD553" + } + }, + "uuid": "579dc9e2-fa5c-468d-9b47-eff387065eae", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json new file mode 100644 index 0000000000..b0478b4e10 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testApproval/mappings/repos_hub4j-test-org_ghworkflowruntest_pulls-2.json @@ -0,0 +1,46 @@ +{ + "id": "a276d02f-3ba0-4714-9f51-995f6919942c", + "name": "repos_hub4j-test-org_ghworkflowruntest_pulls", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/pulls?base=main&sort=created&direction=desc&state=open", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.shadow-cat-preview+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_ghworkflowruntest_pulls-2.json", + "headers": { + "Server": "GitHub.com", + "Date": "Wed, 17 Aug 2022 11:47:25 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"761d735213a1e481e1ed464edc3f1ad5cf5fd2e96723f34f7b54f04ca7684bc8\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; param=shadow-cat-preview; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4953", + "X-RateLimit-Reset": "1660739435", + "X-RateLimit-Used": "47", + "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": "8BBC:93DD:11E4A5A:1237FE1:62FCD54D" + } + }, + "uuid": "a276d02f-3ba0-4714-9f51-995f6919942c", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_jobs__2270858630-10.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_jobs__2270858630-10.json index 915a5db94b..6e131628ee 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_jobs__2270858630-10.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_jobs__2270858630-10.json @@ -37,5 +37,12 @@ "completed_at": "2021-04-05T17:42:59.000+02:00" } ], - "check_run_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-runs/2270858630" + "check_run_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-runs/2270858630", + "labels": [ + "ubuntu-latest" + ], + "runner_id": 1, + "runner_name": "my runner", + "runner_group_id": 2, + "runner_group_name": "my runner group" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_719643947_jobs-11.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_719643947_jobs-11.json index 9c46949c90..d0c286aa1c 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_719643947_jobs-11.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_719643947_jobs-11.json @@ -40,7 +40,14 @@ "completed_at": "2021-04-05T17:42:57.000+02:00" } ], - "check_run_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-runs/2270858576" + "check_run_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-runs/2270858576", + "labels": [ + "ubuntu-latest" + ], + "runner_id": 1, + "runner_name": "my runner", + "runner_group_id": 2, + "runner_group_name": "my runner group" }, { "id": 2270858630, @@ -81,7 +88,14 @@ "completed_at": "2021-04-05T17:42:59.000+02:00" } ], - "check_run_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-runs/2270858630" + "check_run_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-runs/2270858630", + "labels": [ + "ubuntu-latest" + ], + "runner_id": 1, + "runner_name": "my runner", + "runner_group_id": 2, + "runner_group_name": "my runner group" } ] } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_719643947_jobs-7.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_719643947_jobs-7.json index 9c46949c90..d0c286aa1c 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_719643947_jobs-7.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs/__files/repos_hub4j-test-org_ghworkflowruntest_actions_runs_719643947_jobs-7.json @@ -40,7 +40,14 @@ "completed_at": "2021-04-05T17:42:57.000+02:00" } ], - "check_run_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-runs/2270858576" + "check_run_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-runs/2270858576", + "labels": [ + "ubuntu-latest" + ], + "runner_id": 1, + "runner_name": "my runner", + "runner_group_id": 2, + "runner_group_name": "my runner group" }, { "id": 2270858630, @@ -81,7 +88,14 @@ "completed_at": "2021-04-05T17:42:59.000+02:00" } ], - "check_run_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-runs/2270858630" + "check_run_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-runs/2270858630", + "labels": [ + "ubuntu-latest" + ], + "runner_id": 1, + "runner_name": "my runner", + "runner_group_id": 2, + "runner_group_name": "my runner group" } ] } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest-1.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest-2.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest-1.json index c984c8be47..fce58ae6fa 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest-2.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest-1.json @@ -65,8 +65,8 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments", "created_at": "2021-03-17T09:32:03Z", - "updated_at": "2021-03-17T09:33:34Z", - "pushed_at": "2021-03-17T09:33:32Z", + "updated_at": "2022-05-12T12:41:19Z", + "pushed_at": "2022-05-12T12:41:16Z", "git_url": "git://github.com/hub4j-test-org/GHWorkflowTest.git", "ssh_url": "git@github.com:hub4j-test-org/GHWorkflowTest.git", "clone_url": "https://github.com/hub4j-test-org/GHWorkflowTest.git", @@ -87,20 +87,28 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 0, "open_issues": 0, "watchers": 0, "default_branch": "main", "permissions": { "admin": true, + "maintain": true, "push": true, + "triage": true, "pull": true }, "temp_clone_token": "", "allow_squash_merge": true, "allow_merge_commit": true, "allow_rebase_merge": true, + "allow_auto_merge": false, "delete_branch_on_merge": false, + "allow_update_branch": false, "organization": { "login": "hub4j-test-org", "id": 7544739, @@ -122,5 +130,5 @@ "site_admin": false }, "network_count": 0, - "subscribers_count": 10 + "subscribers_count": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-4.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-3.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-4.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-3.json index c40633b49f..61e1163e7c 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-4.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-3.json @@ -5,7 +5,7 @@ "path": ".github/workflows/test-workflow.yml", "state": "active", "created_at": "2021-03-17T10:33:32.000+01:00", - "updated_at": "2021-03-25T11:36:24.000+01:00", + "updated_at": "2022-05-12T14:43:11.000+02:00", "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/blob/main/.github/workflows/test-workflow.yml", "badge_url": "https://github.com/hub4j-test-org/GHWorkflowTest/workflows/test-workflow/badge.svg" diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json index c40633b49f..61e1163e7c 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json @@ -5,7 +5,7 @@ "path": ".github/workflows/test-workflow.yml", "state": "active", "created_at": "2021-03-17T10:33:32.000+01:00", - "updated_at": "2021-03-25T11:36:24.000+01:00", + "updated_at": "2022-05-12T14:43:11.000+02:00", "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/blob/main/.github/workflows/test-workflow.yml", "badge_url": "https://github.com/hub4j-test-org/GHWorkflowTest/workflows/test-workflow/badge.svg" diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest-1.json similarity index 55% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest-2.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest-1.json index 5d3e9e3fa0..3fef88cb3c 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest-2.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest-1.json @@ -1,5 +1,5 @@ { - "id": "1fbf864b-587b-4d30-8a65-43dfecc97028", + "id": "220d20d4-be30-4b64-931a-832cea0fea16", "name": "repos_hub4j-test-org_ghworkflowtest", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest", @@ -12,35 +12,36 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest-2.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest-1.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:28 GMT", + "Date": "Thu, 12 May 2022 12:43: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/\"082e0c2ae9f1d8387e22ebe7279d627738b78d114a3badc2d9e60dfb0b2a6abf\"", - "Last-Modified": "Wed, 17 Mar 2021 09:33:34 GMT", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"b29404b8f46b810b45089727292ea01bec52720af73a92806b6826296fd3785b\"", + "Last-Modified": "Thu, 12 May 2022 12:41:19 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-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4973", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "27", + "X-RateLimit-Remaining": "4928", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "72", + "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": "D5A4:4AE4:1010430:10B0B4D:605C67AC" + "X-GitHub-Request-Id": "C910:5519:542B692:555E102:627D00E2" } }, - "uuid": "1fbf864b-587b-4d30-8a65-43dfecc97028", + "uuid": "220d20d4-be30-4b64-931a-832cea0fea16", "persistent": true, - "insertionIndex": 2 + "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-4.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-3.json similarity index 61% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-4.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-3.json index 5001f8d5de..72f24f267c 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-4.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-3.json @@ -1,5 +1,5 @@ { - "id": "a37a5c44-61eb-4460-87e8-3207a15c7d2c", + "id": "16128b7f-ff64-4091-85ab-5f0f6fd70dfb", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", @@ -12,34 +12,35 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-4.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859-3.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:29 GMT", + "Date": "Thu, 12 May 2022 12:43: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/\"72a49555d2625ba9f490d619d324726f5192dc2a030dc22033b9cadf7a2ba076\"", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"37311efa336094063a53d1313b6f73af8a2d5f81a7f10c95f7173189235ace0a\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4971", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "29", + "X-RateLimit-Remaining": "4926", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "74", + "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": "D5A4:4AE4:1010476:10B0B89:605C67AC" + "X-GitHub-Request-Id": "C914:90C1:253005B:25D30D4:627D00E3" } }, - "uuid": "a37a5c44-61eb-4460-87e8-3207a15c7d2c", + "uuid": "16128b7f-ff64-4091-85ab-5f0f6fd70dfb", "persistent": true, - "insertionIndex": 4 + "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json similarity index 61% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json index d7f523a7b6..aea269b981 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json @@ -1,5 +1,5 @@ { - "id": "1ca8cc16-7af0-40c3-832f-197e68817ac1", + "id": "7618fd94-ee84-4b67-a401-45e1edfc38df", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/test-workflow.yml", @@ -12,34 +12,35 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:28 GMT", + "Date": "Thu, 12 May 2022 12:43: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/\"72a49555d2625ba9f490d619d324726f5192dc2a030dc22033b9cadf7a2ba076\"", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"37311efa336094063a53d1313b6f73af8a2d5f81a7f10c95f7173189235ace0a\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4972", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "28", + "X-RateLimit-Remaining": "4927", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "73", + "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": "D5A4:4AE4:101045A:10B0B77:605C67AC" + "X-GitHub-Request-Id": "C912:90C0:19079B9:19965E8:627D00E2" } }, - "uuid": "1ca8cc16-7af0-40c3-832f-197e68817ac1", + "uuid": "7618fd94-ee84-4b67-a401-45e1edfc38df", "persistent": true, - "insertionIndex": 3 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest-1.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest-2.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest-1.json index c984c8be47..fce58ae6fa 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest-2.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest-1.json @@ -65,8 +65,8 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments", "created_at": "2021-03-17T09:32:03Z", - "updated_at": "2021-03-17T09:33:34Z", - "pushed_at": "2021-03-17T09:33:32Z", + "updated_at": "2022-05-12T12:41:19Z", + "pushed_at": "2022-05-12T12:41:16Z", "git_url": "git://github.com/hub4j-test-org/GHWorkflowTest.git", "ssh_url": "git@github.com:hub4j-test-org/GHWorkflowTest.git", "clone_url": "https://github.com/hub4j-test-org/GHWorkflowTest.git", @@ -87,20 +87,28 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 0, "open_issues": 0, "watchers": 0, "default_branch": "main", "permissions": { "admin": true, + "maintain": true, "push": true, + "triage": true, "pull": true }, "temp_clone_token": "", "allow_squash_merge": true, "allow_merge_commit": true, "allow_rebase_merge": true, + "allow_auto_merge": false, "delete_branch_on_merge": false, + "allow_update_branch": false, "organization": { "login": "hub4j-test-org", "id": 7544739, @@ -122,5 +130,5 @@ "site_admin": false }, "network_count": 0, - "subscribers_count": 10 + "subscribers_count": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json index 4cd855f21b..570240c98b 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json @@ -5,7 +5,7 @@ "path": ".github/workflows/test-workflow.yml", "state": "active", "created_at": "2021-03-17T10:33:32.000+01:00", - "updated_at": "2021-03-22T14:55:53.000+01:00", + "updated_at": "2022-05-12T14:42:08.000+02:00", "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/blob/main/.github/workflows/test-workflow.yml", "badge_url": "https://github.com/hub4j-test-org/GHWorkflowTest/workflows/test-workflow/badge.svg" diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-5.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-4.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-5.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-4.json index 2552ee5637..df0414bbae 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-5.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-4.json @@ -5,7 +5,7 @@ "path": ".github/workflows/test-workflow.yml", "state": "disabled_manually", "created_at": "2021-03-17T10:33:32.000+01:00", - "updated_at": "2021-03-25T11:36:24.000+01:00", + "updated_at": "2022-05-12T14:43:10.000+02:00", "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/blob/main/.github/workflows/test-workflow.yml", "badge_url": "https://github.com/hub4j-test-org/GHWorkflowTest/workflows/test-workflow/badge.svg" diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-7.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-6.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-7.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-6.json index c40633b49f..61e1163e7c 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-7.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-6.json @@ -5,7 +5,7 @@ "path": ".github/workflows/test-workflow.yml", "state": "active", "created_at": "2021-03-17T10:33:32.000+01:00", - "updated_at": "2021-03-25T11:36:24.000+01:00", + "updated_at": "2022-05-12T14:43:11.000+02:00", "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/blob/main/.github/workflows/test-workflow.yml", "badge_url": "https://github.com/hub4j-test-org/GHWorkflowTest/workflows/test-workflow/badge.svg" diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest-1.json similarity index 55% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest-2.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest-1.json index a9aeb93779..ca663c1fd2 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest-2.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest-1.json @@ -1,5 +1,5 @@ { - "id": "66e98e06-916e-4c7f-8747-c821f1d58b18", + "id": "b22e1e06-ffcd-4da1-82f2-9b45c1b402d7", "name": "repos_hub4j-test-org_ghworkflowtest", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest", @@ -12,35 +12,36 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest-2.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest-1.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:26 GMT", + "Date": "Thu, 12 May 2022 12:43: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/\"082e0c2ae9f1d8387e22ebe7279d627738b78d114a3badc2d9e60dfb0b2a6abf\"", - "Last-Modified": "Wed, 17 Mar 2021 09:33:34 GMT", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"b29404b8f46b810b45089727292ea01bec52720af73a92806b6826296fd3785b\"", + "Last-Modified": "Thu, 12 May 2022 12:41:19 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-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4983", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "17", + "X-RateLimit-Remaining": "4946", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "54", + "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": "D59E:13DDE:48774DE:498A32F:605C67A9" + "X-GitHub-Request-Id": "C8FC:11834:25FAC35:26A05C7:627D00DE" } }, - "uuid": "66e98e06-916e-4c7f-8747-c821f1d58b18", + "uuid": "b22e1e06-ffcd-4da1-82f2-9b45c1b402d7", "persistent": true, - "insertionIndex": 2 + "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_disable-4.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_disable-3.json similarity index 63% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_disable-4.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_disable-3.json index c1aa1ec804..a9393981b9 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_disable-4.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_disable-3.json @@ -1,5 +1,5 @@ { - "id": "e35b84ba-cdfa-4a74-826a-1ee812336f59", + "id": "12f15e8b-8f08-4d7e-9cba-aa1080d9e6a7", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_disable", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859/disable", @@ -21,14 +21,15 @@ "status": 204, "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:24 GMT", - "X-OAuth-Scopes": "repo, user, workflow", + "Date": "Thu, 12 May 2022 12:43: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-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4993", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "7", + "X-RateLimit-Remaining": "4944", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "56", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", @@ -36,10 +37,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "D598:12325:427F24B:4381DA8:605C67A7" + "X-GitHub-Request-Id": "C900:8E2A:ED56DF:F523BC:627D00DE" } }, - "uuid": "e35b84ba-cdfa-4a74-826a-1ee812336f59", + "uuid": "12f15e8b-8f08-4d7e-9cba-aa1080d9e6a7", "persistent": true, - "insertionIndex": 4 + "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_enable-6.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_enable-5.json similarity index 63% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_enable-6.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_enable-5.json index 325f6a4245..8765f98945 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_enable-6.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_enable-5.json @@ -1,5 +1,5 @@ { - "id": "a647d017-2f5d-4924-8f27-1b1e4d956186", + "id": "406cc1f9-cf85-4b85-9985-4c9286f7ad03", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_enable", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859/enable", @@ -21,14 +21,15 @@ "status": 204, "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:24 GMT", - "X-OAuth-Scopes": "repo, user, workflow", + "Date": "Thu, 12 May 2022 12:43:11 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-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4991", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "9", + "X-RateLimit-Remaining": "4942", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "58", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", @@ -36,10 +37,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "D598:12325:427F322:4381E83:605C67A8" + "X-GitHub-Request-Id": "C904:37D3:C4D12:1286EB:627D00DF" } }, - "uuid": "a647d017-2f5d-4924-8f27-1b1e4d956186", + "uuid": "406cc1f9-cf85-4b85-9985-4c9286f7ad03", "persistent": true, - "insertionIndex": 6 + "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json similarity index 65% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json index d4af160e7b..5686eae1aa 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json @@ -1,5 +1,5 @@ { - "id": "613a4578-7ef6-4d2d-a366-de20547ed908", + "id": "53cf8606-1793-4895-a9b1-ca0e187e6dc3", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/test-workflow.yml", @@ -12,37 +12,38 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:23 GMT", + "Date": "Thu, 12 May 2022 12:43: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/\"602070ef7b718d94b563e2480e6861839e193e0f9a3b1738f458c302da1d3083\"", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"304884d68a15280cc659e278ee375aee6ceca05734442ffdacc717d264b55adf\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4994", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "6", + "X-RateLimit-Remaining": "4945", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "55", + "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": "D598:12325:427F1D5:4381D39:605C67A7" + "X-GitHub-Request-Id": "C8FE:8E25:3EFC5:A1CAE:627D00DE" } }, - "uuid": "613a4578-7ef6-4d2d-a366-de20547ed908", + "uuid": "53cf8606-1793-4895-a9b1-ca0e187e6dc3", "persistent": true, "scenarioName": "scenario-1-repos-hub4j-test-org-GHWorkflowTest-actions-workflows-test-workflow.yml", "requiredScenarioState": "Started", "newScenarioState": "scenario-1-repos-hub4j-test-org-GHWorkflowTest-actions-workflows-test-workflow.yml-2", - "insertionIndex": 3 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-5.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-4.json similarity index 66% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-5.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-4.json index bbc75f72af..0fdfdc897e 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-5.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-4.json @@ -1,5 +1,5 @@ { - "id": "c0cfd9a0-5f2e-458f-b5c5-a54b9a48fb42", + "id": "2fd0184f-f742-4f92-ac3f-c380327a0d38", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/test-workflow.yml", @@ -12,37 +12,38 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-5.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-4.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:24 GMT", + "Date": "Thu, 12 May 2022 12:43: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/\"3d726b68299d37d058c6065a1d2b90d43900b2a5c48e94d86bb0bd6a390515c6\"", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"b5a65bb26d8ce0947086056b322ab71b496d1beec4cabb1ff40d091a6e518706\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4992", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "8", + "X-RateLimit-Remaining": "4943", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "57", + "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": "D598:12325:427F2C8:4381E21:605C67A8" + "X-GitHub-Request-Id": "C902:B0CB:1A052B7:1A9678A:627D00DE" } }, - "uuid": "c0cfd9a0-5f2e-458f-b5c5-a54b9a48fb42", + "uuid": "2fd0184f-f742-4f92-ac3f-c380327a0d38", "persistent": true, "scenarioName": "scenario-1-repos-hub4j-test-org-GHWorkflowTest-actions-workflows-test-workflow.yml", "requiredScenarioState": "scenario-1-repos-hub4j-test-org-GHWorkflowTest-actions-workflows-test-workflow.yml-2", "newScenarioState": "scenario-1-repos-hub4j-test-org-GHWorkflowTest-actions-workflows-test-workflow.yml-3", - "insertionIndex": 5 + "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-7.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-6.json similarity index 65% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-7.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-6.json index 8d6ecdb4db..9560119211 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-7.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-6.json @@ -1,5 +1,5 @@ { - "id": "6b761bc6-036e-4189-80eb-d32a75faa417", + "id": "625e03b6-cc54-469d-ba42-fd30a4d45a71", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/test-workflow.yml", @@ -12,36 +12,37 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-7.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-6.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:24 GMT", + "Date": "Thu, 12 May 2022 12:43: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/\"72a49555d2625ba9f490d619d324726f5192dc2a030dc22033b9cadf7a2ba076\"", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"37311efa336094063a53d1313b6f73af8a2d5f81a7f10c95f7173189235ace0a\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4990", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "10", + "X-RateLimit-Remaining": "4941", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "59", + "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": "D598:12325:427F3B9:4381F16:605C67A8" + "X-GitHub-Request-Id": "C906:8E2C:2875D3B:2920986:627D00DF" } }, - "uuid": "6b761bc6-036e-4189-80eb-d32a75faa417", + "uuid": "625e03b6-cc54-469d-ba42-fd30a4d45a71", "persistent": true, "scenarioName": "scenario-1-repos-hub4j-test-org-GHWorkflowTest-actions-workflows-test-workflow.yml", "requiredScenarioState": "scenario-1-repos-hub4j-test-org-GHWorkflowTest-actions-workflows-test-workflow.yml-3", - "insertionIndex": 7 + "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest-1.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest-2.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest-1.json index c984c8be47..fce58ae6fa 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/__files/repos_hub4j-test-org_ghworkflowtest-2.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest-1.json @@ -65,8 +65,8 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments", "created_at": "2021-03-17T09:32:03Z", - "updated_at": "2021-03-17T09:33:34Z", - "pushed_at": "2021-03-17T09:33:32Z", + "updated_at": "2022-05-12T12:41:19Z", + "pushed_at": "2022-05-12T12:41:16Z", "git_url": "git://github.com/hub4j-test-org/GHWorkflowTest.git", "ssh_url": "git@github.com:hub4j-test-org/GHWorkflowTest.git", "clone_url": "https://github.com/hub4j-test-org/GHWorkflowTest.git", @@ -87,20 +87,28 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 0, "open_issues": 0, "watchers": 0, "default_branch": "main", "permissions": { "admin": true, + "maintain": true, "push": true, + "triage": true, "pull": true }, "temp_clone_token": "", "allow_squash_merge": true, "allow_merge_commit": true, "allow_rebase_merge": true, + "allow_auto_merge": false, "delete_branch_on_merge": false, + "allow_update_branch": false, "organization": { "login": "hub4j-test-org", "id": 7544739, @@ -122,5 +130,5 @@ "site_admin": false }, "network_count": 0, - "subscribers_count": 10 + "subscribers_count": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json new file mode 100644 index 0000000000..61e1163e7c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json @@ -0,0 +1,12 @@ +{ + "id": 6817859, + "node_id": "MDg6V29ya2Zsb3c2ODE3ODU5", + "name": "test-workflow", + "path": ".github/workflows/test-workflow.yml", + "state": "active", + "created_at": "2021-03-17T10:33:32.000+01:00", + "updated_at": "2022-05-12T14:43:11.000+02:00", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/blob/main/.github/workflows/test-workflow.yml", + "badge_url": "https://github.com/hub4j-test-org/GHWorkflowTest/workflows/test-workflow/badge.svg" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json deleted file mode 100644 index c40633b49f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "id": 6817859, - "node_id": "MDg6V29ya2Zsb3c2ODE3ODU5", - "name": "test-workflow", - "path": ".github/workflows/test-workflow.yml", - "state": "active", - "created_at": "2021-03-17T10:33:32.000+01:00", - "updated_at": "2021-03-25T11:36:24.000+01:00", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/blob/main/.github/workflows/test-workflow.yml", - "badge_url": "https://github.com/hub4j-test-org/GHWorkflowTest/workflows/test-workflow/badge.svg" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest-1.json similarity index 55% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest-2.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest-1.json index 08629c158f..e843d5cae5 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDisableEnable/mappings/repos_hub4j-test-org_ghworkflowtest-2.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest-1.json @@ -1,5 +1,5 @@ { - "id": "a950e66d-2a80-4b50-97e2-dce79a44902b", + "id": "421b65ce-43cd-4b41-8de0-7ad6f056a84b", "name": "repos_hub4j-test-org_ghworkflowtest", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest", @@ -12,35 +12,36 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest-2.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest-1.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:23 GMT", + "Date": "Thu, 12 May 2022 12:43: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/\"082e0c2ae9f1d8387e22ebe7279d627738b78d114a3badc2d9e60dfb0b2a6abf\"", - "Last-Modified": "Wed, 17 Mar 2021 09:33:34 GMT", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"b29404b8f46b810b45089727292ea01bec52720af73a92806b6826296fd3785b\"", + "Last-Modified": "Thu, 12 May 2022 12:41:19 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-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4995", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "5", + "X-RateLimit-Remaining": "4936", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "64", + "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": "D598:12325:427F132:4381C9A:605C67A7" + "X-GitHub-Request-Id": "C908:5519:542B215:555DC72:627D00E0" } }, - "uuid": "a950e66d-2a80-4b50-97e2-dce79a44902b", + "uuid": "421b65ce-43cd-4b41-8de0-7ad6f056a84b", "persistent": true, - "insertionIndex": 2 + "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches-5.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches-3.json similarity index 55% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches-5.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches-3.json index bd9012d95a..3751a528ab 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches-5.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches-3.json @@ -1,5 +1,5 @@ { - "id": "e45e5bcb-5c9b-47f1-adcb-141e6165c8f4", + "id": "bdb66b3d-7d11-432f-96c1-eba701ebad1e", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859/dispatches", @@ -11,26 +11,25 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"main\",\"inputs\":{\"parameter\":\"value\"}}", + "equalToJson": "{\"ref\":\"main\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } ] }, "response": { - "status": 422, - "body": "{\"message\":\"Unexpected inputs provided: [\\\"parameter\\\"]\",\"documentation_url\":\"https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event\"}", + "status": 204, "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:26 GMT", - "Content-Type": "application/json; charset=utf-8", - "X-OAuth-Scopes": "repo, user, workflow", + "Date": "Thu, 12 May 2022 12:43:13 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-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4980", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "20", + "X-RateLimit-Remaining": "4934", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "66", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", @@ -38,10 +37,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "D59E:13DDE:487764D:498A4A7:605C67AA" + "X-GitHub-Request-Id": "C90C:EB05:1A93FF9:1B23DE4:627D00E1" } }, - "uuid": "e45e5bcb-5c9b-47f1-adcb-141e6165c8f4", + "uuid": "bdb66b3d-7d11-432f-96c1-eba701ebad1e", "persistent": true, - "insertionIndex": 5 + "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches-4.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches-4.json index 15eb520838..498488a9ad 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches-4.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches-4.json @@ -1,5 +1,5 @@ { - "id": "a29bc36c-7907-4bbc-9542-a030ae5b8272", + "id": "11698859-4fbc-406c-8d4a-0029b3105a34", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_dispatches", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859/dispatches", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"main\"}", + "equalToJson": "{\"ref\":\"main\",\"inputs\":{\"parameter\":\"value\"}}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,14 +21,15 @@ "status": 204, "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:26 GMT", - "X-OAuth-Scopes": "repo, user, workflow", + "Date": "Thu, 12 May 2022 12:43:13 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-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4981", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "19", + "X-RateLimit-Remaining": "4933", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "67", + "X-RateLimit-Resource": "core", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", @@ -36,10 +37,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", - "X-GitHub-Request-Id": "D59E:13DDE:48775A3:498A3FC:605C67AA" + "X-GitHub-Request-Id": "C90E:2242:349E0E:3B2269:627D00E1" } }, - "uuid": "a29bc36c-7907-4bbc-9542-a030ae5b8272", + "uuid": "11698859-4fbc-406c-8d4a-0029b3105a34", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json similarity index 61% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json index 1def420712..d1d3cdc097 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json @@ -1,5 +1,5 @@ { - "id": "78e27ea7-027a-4f97-b770-5308041a2216", + "id": "329a21b9-84d8-4257-8d2c-8ba3a5edbf5d", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/test-workflow.yml", @@ -12,34 +12,35 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:26 GMT", + "Date": "Thu, 12 May 2022 12:43: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/\"72a49555d2625ba9f490d619d324726f5192dc2a030dc22033b9cadf7a2ba076\"", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"37311efa336094063a53d1313b6f73af8a2d5f81a7f10c95f7173189235ace0a\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4982", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "18", + "X-RateLimit-Remaining": "4935", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "65", + "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": "D59E:13DDE:4877553:498A3A7:605C67AA" + "X-GitHub-Request-Id": "C90A:4BC2:1F3C6F1:20255A7:627D00E0" } }, - "uuid": "78e27ea7-027a-4f97-b770-5308041a2216", + "uuid": "329a21b9-84d8-4257-8d2c-8ba3a5edbf5d", "persistent": true, - "insertionIndex": 3 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/user-1.json deleted file mode 100644 index a09465d755..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/user-1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "id": "44f1323e-bd63-4f16-b059-b83c47e18e5f", - "name": "user", - "request": { - "url": "/user", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "user-1.json", - "headers": { - "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:25 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"879f35eed38dcc75ca2b3a8999425e0d51678f4c73ffade3c5bcc853b59245b6\"", - "Last-Modified": "Tue, 23 Mar 2021 17:35:45 GMT", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4987", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "13", - "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": "D59E:13DDE:4877368:498A1B8:605C67A9" - } - }, - "uuid": "44f1323e-bd63-4f16-b059-b83c47e18e5f", - "persistent": true, - "insertionIndex": 1 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest-1.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest-2.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest-1.json index c984c8be47..fce58ae6fa 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testBasicInformation/__files/repos_hub4j-test-org_ghworkflowtest-2.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest-1.json @@ -65,8 +65,8 @@ "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments", "created_at": "2021-03-17T09:32:03Z", - "updated_at": "2021-03-17T09:33:34Z", - "pushed_at": "2021-03-17T09:33:32Z", + "updated_at": "2022-05-12T12:41:19Z", + "pushed_at": "2022-05-12T12:41:16Z", "git_url": "git://github.com/hub4j-test-org/GHWorkflowTest.git", "ssh_url": "git@github.com:hub4j-test-org/GHWorkflowTest.git", "clone_url": "https://github.com/hub4j-test-org/GHWorkflowTest.git", @@ -87,20 +87,28 @@ "disabled": false, "open_issues_count": 0, "license": null, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", "forks": 0, "open_issues": 0, "watchers": 0, "default_branch": "main", "permissions": { "admin": true, + "maintain": true, "push": true, + "triage": true, "pull": true }, "temp_clone_token": "", "allow_squash_merge": true, "allow_merge_commit": true, "allow_rebase_merge": true, + "allow_auto_merge": false, "delete_branch_on_merge": false, + "allow_update_branch": false, "organization": { "login": "hub4j-test-org", "id": 7544739, @@ -122,5 +130,5 @@ "site_admin": false }, "network_count": 0, - "subscribers_count": 10 + "subscribers_count": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflowruns-4.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflowruns-4.json deleted file mode 100644 index 61bd2c1216..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflowruns-4.json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "total_count": 2, - "workflow_runs": [ - { - "id": 712243851, - "name": "Test workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMjQzODUx", - "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 10, - "event": "workflow_dispatch", - "status": "completed", - "conclusion": "success", - "workflow_id": 6817859, - "check_suite_id": 2408679180, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA4Njc5MTgw", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712243851", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/712243851", - "pull_requests": [], - "created_at": "2021-04-02T16:54:16Z", - "updated_at": "2021-04-02T16:54:32Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712243851/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712243851/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2408679180", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712243851/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712243851/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712243851/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", - "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create test-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", - "author": { - "name": "Guillaume Smet", - "email": "guillaume.smet@gmail.com" - }, - "committer": { - "name": "GitHub", - "email": "noreply@github.com" - } - }, - "repository": { - "id": 348674220, - "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", - "name": "GHWorkflowRunTest", - "full_name": "hub4j-test-org/GHWorkflowRunTest", - "private": false, - "owner": { - "login": "hub4j-test-org", - "id": 7544739, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", - "avatar_url": "https://avatars.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/GHWorkflowRunTest", - "description": "Repository used by GHWorkflowRunTest", - "fork": false, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", - "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", - "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", - "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", - "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", - "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", - "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", - "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", - "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", - "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", - "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", - "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", - "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", - "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", - "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", - "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", - "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", - "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", - "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", - "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", - "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", - "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", - "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", - "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" - }, - "head_repository": { - "id": 348674220, - "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", - "name": "GHWorkflowRunTest", - "full_name": "hub4j-test-org/GHWorkflowRunTest", - "private": false, - "owner": { - "login": "hub4j-test-org", - "id": 7544739, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", - "avatar_url": "https://avatars.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/GHWorkflowRunTest", - "description": "Repository used by GHWorkflowRunTest", - "fork": false, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", - "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", - "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", - "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", - "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", - "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", - "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", - "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", - "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", - "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", - "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", - "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", - "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", - "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", - "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", - "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", - "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", - "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", - "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", - "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", - "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", - "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", - "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", - "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" - } - } - ] -} diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflowruns-5.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflowruns-5.json deleted file mode 100644 index 02fd235fcf..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflowruns-5.json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "total_count": 2, - "workflow_runs": [ - { - "id": 712241595, - "name": "Test workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMjQxNTk1", - "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 9, - "event": "workflow_dispatch", - "status": "completed", - "conclusion": "success", - "workflow_id": 6817859, - "check_suite_id": 2408673964, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA4NjczOTY0", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712241595", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/712241595", - "pull_requests": [], - "created_at": "2021-04-02T16:53:18Z", - "updated_at": "2021-04-02T16:53:33Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712241595/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712241595/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2408673964", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712241595/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712241595/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712241595/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", - "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create test-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", - "author": { - "name": "Guillaume Smet", - "email": "guillaume.smet@gmail.com" - }, - "committer": { - "name": "GitHub", - "email": "noreply@github.com" - } - }, - "repository": { - "id": 348674220, - "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", - "name": "GHWorkflowRunTest", - "full_name": "hub4j-test-org/GHWorkflowRunTest", - "private": false, - "owner": { - "login": "hub4j-test-org", - "id": 7544739, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", - "avatar_url": "https://avatars.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/GHWorkflowRunTest", - "description": "Repository used by GHWorkflowRunTest", - "fork": false, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", - "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", - "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", - "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", - "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", - "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", - "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", - "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", - "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", - "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", - "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", - "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", - "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", - "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", - "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", - "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", - "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", - "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", - "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", - "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", - "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", - "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", - "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", - "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" - }, - "head_repository": { - "id": 348674220, - "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NzQyMjA=", - "name": "GHWorkflowRunTest", - "full_name": "hub4j-test-org/GHWorkflowRunTest", - "private": false, - "owner": { - "login": "hub4j-test-org", - "id": 7544739, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", - "avatar_url": "https://avatars.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/GHWorkflowRunTest", - "description": "Repository used by GHWorkflowRunTest", - "fork": false, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest", - "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/forks", - "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/teams", - "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/hooks", - "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/events{/number}", - "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/events", - "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/assignees{/user}", - "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/branches{/branch}", - "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/tags", - "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/statuses/{sha}", - "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/languages", - "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/stargazers", - "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contributors", - "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscribers", - "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/subscription", - "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/contents/{+path}", - "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/merges", - "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/downloads", - "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/issues{/number}", - "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/pulls{/number}", - "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/milestones{/number}", - "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/labels{/name}", - "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/releases{/id}", - "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/deployments" - } - } - ] -} diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-3.json new file mode 100644 index 0000000000..820460f5e5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-3.json @@ -0,0 +1,2035 @@ +{ + "total_count": 10, + "workflow_runs": [ + { + "id": 2313468274, + "name": "test-workflow", + "node_id": "WFR_kwLOFMgAVs6J5Lly", + "head_branch": "main", + "head_sha": "ec736fab10590e64ff834d0f9acf9a402d069903", + "run_number": 10, + "event": "workflow_dispatch", + "status": "completed", + "conclusion": "success", + "workflow_id": 6817859, + "check_suite_id": 6479720119, + "check_suite_node_id": "CS_kwDOFMgAVs8AAAABgjiutw", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468274", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/actions/runs/2313468274", + "pull_requests": [], + "created_at": "2022-05-12T12:42:12Z", + "updated_at": "2022-05-12T12:42:29Z", + "actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "run_started_at": "2022-05-12T12:42:12Z", + "triggering_actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468274/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468274/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/check-suites/6479720119", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468274/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468274/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468274/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "head_commit": { + "id": "ec736fab10590e64ff834d0f9acf9a402d069903", + "tree_id": "a565bbc304c9653f0120bff1a66478413ec17f93", + "message": "Add parameter input to test-workflow.yml", + "timestamp": "2022-05-12T12:41:16Z", + "author": { + "name": "Guillaume Smet", + "email": "guillaume.smet@gmail.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + }, + "head_repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + } + }, + { + "id": 2313468244, + "name": "test-workflow", + "node_id": "WFR_kwLOFMgAVs6J5LlU", + "head_branch": "main", + "head_sha": "ec736fab10590e64ff834d0f9acf9a402d069903", + "run_number": 9, + "event": "workflow_dispatch", + "status": "completed", + "conclusion": "success", + "workflow_id": 6817859, + "check_suite_id": 6479720044, + "check_suite_node_id": "CS_kwDOFMgAVs8AAAABgjiubA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468244", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/actions/runs/2313468244", + "pull_requests": [], + "created_at": "2022-05-12T12:42:11Z", + "updated_at": "2022-05-12T12:42:28Z", + "actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "run_started_at": "2022-05-12T12:42:11Z", + "triggering_actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468244/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468244/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/check-suites/6479720044", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468244/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468244/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313468244/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "head_commit": { + "id": "ec736fab10590e64ff834d0f9acf9a402d069903", + "tree_id": "a565bbc304c9653f0120bff1a66478413ec17f93", + "message": "Add parameter input to test-workflow.yml", + "timestamp": "2022-05-12T12:41:16Z", + "author": { + "name": "Guillaume Smet", + "email": "guillaume.smet@gmail.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + }, + "head_repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + } + }, + { + "id": 2313463510, + "name": "test-workflow", + "node_id": "WFR_kwLOFMgAVs6J5KbW", + "head_branch": "main", + "head_sha": "ec736fab10590e64ff834d0f9acf9a402d069903", + "run_number": 8, + "event": "push", + "status": "completed", + "conclusion": "success", + "workflow_id": 6817859, + "check_suite_id": 6479706825, + "check_suite_node_id": "CS_kwDOFMgAVs8AAAABgjh6yQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313463510", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/actions/runs/2313463510", + "pull_requests": [], + "created_at": "2022-05-12T12:41:18Z", + "updated_at": "2022-05-12T12:41:34Z", + "actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "run_started_at": "2022-05-12T12:41:18Z", + "triggering_actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313463510/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313463510/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/check-suites/6479706825", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313463510/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313463510/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/2313463510/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "head_commit": { + "id": "ec736fab10590e64ff834d0f9acf9a402d069903", + "tree_id": "a565bbc304c9653f0120bff1a66478413ec17f93", + "message": "Add parameter input to test-workflow.yml", + "timestamp": "2022-05-12T12:41:16Z", + "author": { + "name": "Guillaume Smet", + "email": "guillaume.smet@gmail.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + }, + "head_repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + } + }, + { + "id": 686196495, + "name": "test-workflow", + "node_id": "MDExOldvcmtmbG93UnVuNjg2MTk2NDk1", + "head_branch": "main", + "head_sha": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "run_number": 7, + "event": "workflow_dispatch", + "status": "completed", + "conclusion": "success", + "workflow_id": 6817859, + "check_suite_id": 2341655439, + "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyMzQxNjU1NDM5", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/686196495", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/actions/runs/686196495", + "pull_requests": [], + "created_at": "2021-03-25T10:36:27Z", + "updated_at": "2021-03-25T10:36:44Z", + "actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "run_started_at": "2021-03-25T10:36:27Z", + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/686196495/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/686196495/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/check-suites/2341655439", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/686196495/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/686196495/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/686196495/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "head_commit": { + "id": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "tree_id": "7cc794d302f4f1b970c8f5aa45b26cad1ca8b024", + "message": "Create test-workflow.yml", + "timestamp": "2021-03-17T09:33:32Z", + "author": { + "name": "Guillaume Smet", + "email": "guillaume.smet@gmail.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + }, + "head_repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + } + }, + { + "id": 676256246, + "name": "test-workflow", + "node_id": "MDExOldvcmtmbG93UnVuNjc2MjU2MjQ2", + "head_branch": "main", + "head_sha": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "run_number": 6, + "event": "workflow_dispatch", + "status": "completed", + "conclusion": "success", + "workflow_id": 6817859, + "check_suite_id": 2315384390, + "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyMzE1Mzg0Mzkw", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/676256246", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/actions/runs/676256246", + "pull_requests": [], + "created_at": "2021-03-22T13:55:56Z", + "updated_at": "2021-03-22T13:56:13Z", + "actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "run_started_at": "2021-03-22T13:55:56Z", + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/676256246/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/676256246/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/check-suites/2315384390", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/676256246/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/676256246/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/676256246/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "head_commit": { + "id": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "tree_id": "7cc794d302f4f1b970c8f5aa45b26cad1ca8b024", + "message": "Create test-workflow.yml", + "timestamp": "2021-03-17T09:33:32Z", + "author": { + "name": "Guillaume Smet", + "email": "guillaume.smet@gmail.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + }, + "head_repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + } + }, + { + "id": 660723028, + "name": "test-workflow", + "node_id": "MDExOldvcmtmbG93UnVuNjYwNzIzMDI4", + "head_branch": "main", + "head_sha": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "run_number": 5, + "event": "workflow_dispatch", + "status": "completed", + "conclusion": "success", + "workflow_id": 6817859, + "check_suite_id": 2277934279, + "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyMjc3OTM0Mjc5", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660723028", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/actions/runs/660723028", + "pull_requests": [], + "created_at": "2021-03-17T10:29:49Z", + "updated_at": "2021-03-17T10:30:08Z", + "actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "run_started_at": "2021-03-17T10:29:49Z", + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660723028/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660723028/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/check-suites/2277934279", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660723028/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660723028/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660723028/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "head_commit": { + "id": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "tree_id": "7cc794d302f4f1b970c8f5aa45b26cad1ca8b024", + "message": "Create test-workflow.yml", + "timestamp": "2021-03-17T09:33:32Z", + "author": { + "name": "Guillaume Smet", + "email": "guillaume.smet@gmail.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + }, + "head_repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + } + }, + { + "id": 660722668, + "name": "test-workflow", + "node_id": "MDExOldvcmtmbG93UnVuNjYwNzIyNjY4", + "head_branch": "main", + "head_sha": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "run_number": 4, + "event": "workflow_dispatch", + "status": "completed", + "conclusion": "success", + "workflow_id": 6817859, + "check_suite_id": 2277933349, + "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyMjc3OTMzMzQ5", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660722668", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/actions/runs/660722668", + "pull_requests": [], + "created_at": "2021-03-17T10:29:42Z", + "updated_at": "2021-03-17T10:30:01Z", + "actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "run_started_at": "2021-03-17T10:29:42Z", + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660722668/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660722668/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/check-suites/2277933349", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660722668/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660722668/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660722668/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "head_commit": { + "id": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "tree_id": "7cc794d302f4f1b970c8f5aa45b26cad1ca8b024", + "message": "Create test-workflow.yml", + "timestamp": "2021-03-17T09:33:32Z", + "author": { + "name": "Guillaume Smet", + "email": "guillaume.smet@gmail.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + }, + "head_repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + } + }, + { + "id": 660716784, + "name": "test-workflow", + "node_id": "MDExOldvcmtmbG93UnVuNjYwNzE2Nzg0", + "head_branch": "main", + "head_sha": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "run_number": 3, + "event": "workflow_dispatch", + "status": "completed", + "conclusion": "success", + "workflow_id": 6817859, + "check_suite_id": 2277917805, + "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyMjc3OTE3ODA1", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716784", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/actions/runs/660716784", + "pull_requests": [], + "created_at": "2021-03-17T10:27:33Z", + "updated_at": "2021-03-17T10:28:23Z", + "actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "run_started_at": "2021-03-17T10:27:33Z", + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716784/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716784/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/check-suites/2277917805", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716784/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716784/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716784/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "head_commit": { + "id": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "tree_id": "7cc794d302f4f1b970c8f5aa45b26cad1ca8b024", + "message": "Create test-workflow.yml", + "timestamp": "2021-03-17T09:33:32Z", + "author": { + "name": "Guillaume Smet", + "email": "guillaume.smet@gmail.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + }, + "head_repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + } + }, + { + "id": 660716489, + "name": "test-workflow", + "node_id": "MDExOldvcmtmbG93UnVuNjYwNzE2NDg5", + "head_branch": "main", + "head_sha": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "run_number": 2, + "event": "workflow_dispatch", + "status": "completed", + "conclusion": "success", + "workflow_id": 6817859, + "check_suite_id": 2277917004, + "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyMjc3OTE3MDA0", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716489", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/actions/runs/660716489", + "pull_requests": [], + "created_at": "2021-03-17T10:27:26Z", + "updated_at": "2021-03-17T10:27:46Z", + "actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "run_started_at": "2021-03-17T10:27:26Z", + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716489/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716489/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/check-suites/2277917004", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716489/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716489/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660716489/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "head_commit": { + "id": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "tree_id": "7cc794d302f4f1b970c8f5aa45b26cad1ca8b024", + "message": "Create test-workflow.yml", + "timestamp": "2021-03-17T09:33:32Z", + "author": { + "name": "Guillaume Smet", + "email": "guillaume.smet@gmail.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + }, + "head_repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + } + }, + { + "id": 660573025, + "name": "test-workflow", + "node_id": "MDExOldvcmtmbG93UnVuNjYwNTczMDI1", + "head_branch": "main", + "head_sha": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "run_number": 1, + "event": "push", + "status": "completed", + "conclusion": "success", + "workflow_id": 6817859, + "check_suite_id": 2277526743, + "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyMjc3NTI2NzQz", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660573025", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/actions/runs/660573025", + "pull_requests": [], + "created_at": "2021-03-17T09:33:36Z", + "updated_at": "2021-03-17T09:33:57Z", + "actor": { + "login": "gsmet", + "id": 1279749, + "node_id": "MDQ6VXNlcjEyNzk3NDk=", + "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/gsmet", + "html_url": "https://github.com/gsmet", + "followers_url": "https://api.github.com/users/gsmet/followers", + "following_url": "https://api.github.com/users/gsmet/following{/other_user}", + "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", + "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", + "organizations_url": "https://api.github.com/users/gsmet/orgs", + "repos_url": "https://api.github.com/users/gsmet/repos", + "events_url": "https://api.github.com/users/gsmet/events{/privacy}", + "received_events_url": "https://api.github.com/users/gsmet/received_events", + "type": "User", + "site_admin": false + }, + "run_attempt": 1, + "run_started_at": "2021-03-17T09:33:36Z", + "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660573025/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660573025/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/check-suites/2277526743", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660573025/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660573025/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/runs/660573025/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "head_commit": { + "id": "841a8e0fefc50f50c958a42b433c5ee10e0b184b", + "tree_id": "7cc794d302f4f1b970c8f5aa45b26cad1ca8b024", + "message": "Create test-workflow.yml", + "timestamp": "2021-03-17T09:33:32Z", + "author": { + "name": "Guillaume Smet", + "email": "guillaume.smet@gmail.com" + }, + "committer": { + "name": "GitHub", + "email": "noreply@github.com" + } + }, + "repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + }, + "head_repository": { + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments" + } + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json new file mode 100644 index 0000000000..570240c98b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json @@ -0,0 +1,12 @@ +{ + "id": 6817859, + "node_id": "MDg6V29ya2Zsb3c2ODE3ODU5", + "name": "test-workflow", + "path": ".github/workflows/test-workflow.yml", + "state": "active", + "created_at": "2021-03-17T10:33:32.000+01:00", + "updated_at": "2022-05-12T14:42:08.000+02:00", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/blob/main/.github/workflows/test-workflow.yml", + "badge_url": "https://github.com/hub4j-test-org/GHWorkflowTest/workflows/test-workflow/badge.svg" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json deleted file mode 100644 index c40633b49f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "id": 6817859, - "node_id": "MDg6V29ya2Zsb3c2ODE3ODU5", - "name": "test-workflow", - "path": ".github/workflows/test-workflow.yml", - "state": "active", - "created_at": "2021-03-17T10:33:32.000+01:00", - "updated_at": "2021-03-25T11:36:24.000+01:00", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/blob/main/.github/workflows/test-workflow.yml", - "badge_url": "https://github.com/hub4j-test-org/GHWorkflowTest/workflows/test-workflow/badge.svg" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/user-1.json deleted file mode 100644 index 79bade964e..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/__files/user-1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false, - "name": "Guillaume Smet", - "company": "Red Hat", - "blog": "https://www.redhat.com/", - "location": "Lyon, France", - "email": "guillaume.smet@gmail.com", - "hireable": null, - "bio": "Happy camper at Red Hat, working on Quarkus and the Hibernate portfolio.", - "twitter_username": "gsmet_", - "public_repos": 102, - "public_gists": 14, - "followers": 127, - "following": 3, - "created_at": "2011-12-22T11:03:22Z", - "updated_at": "2021-03-23T17:35:45Z", - "private_gists": 14, - "total_private_repos": 4, - "owned_private_repos": 1, - "disk_usage": 68258, - "collaborators": 1, - "two_factor_authentication": true, - "plan": { - "name": "free", - "space": 976562499, - "collaborators": 0, - "private_repos": 10000 - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest-1.json similarity index 55% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest-2.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest-1.json index a9aeb93779..ae136cebc9 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest-2.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest-1.json @@ -1,5 +1,5 @@ { - "id": "66e98e06-916e-4c7f-8747-c821f1d58b18", + "id": "b1428b90-162b-46f6-83a6-53f250a85649", "name": "repos_hub4j-test-org_ghworkflowtest", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest", @@ -12,35 +12,36 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest-2.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest-1.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:26 GMT", + "Date": "Thu, 12 May 2022 12:43:08 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"082e0c2ae9f1d8387e22ebe7279d627738b78d114a3badc2d9e60dfb0b2a6abf\"", - "Last-Modified": "Wed, 17 Mar 2021 09:33:34 GMT", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"b29404b8f46b810b45089727292ea01bec52720af73a92806b6826296fd3785b\"", + "Last-Modified": "Thu, 12 May 2022 12:41:19 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-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4983", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "17", + "X-RateLimit-Remaining": "4953", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "47", + "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": "D59E:13DDE:48774DE:498A32F:605C67A9" + "X-GitHub-Request-Id": "C8F6:EB05:1A938CC:1B2369C:627D00DC" } }, - "uuid": "66e98e06-916e-4c7f-8747-c821f1d58b18", + "uuid": "b1428b90-162b-46f6-83a6-53f250a85649", "persistent": true, - "insertionIndex": 2 + "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-3.json new file mode 100644 index 0000000000..db62c3cdd1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-3.json @@ -0,0 +1,46 @@ +{ + "id": "16348662-e091-4b01-a236-fee757d509fc", + "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859/runs", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-3.json", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 12 May 2022 12:43: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/\"62cc9c8c27043971fa756a87ba72b5fdeadfa84c4f190c241589f7c6d12e8528\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4951", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "49", + "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": "C8FA:2245:1C90585:1D228B3:627D00DC" + } + }, + "uuid": "16348662-e091-4b01-a236-fee757d509fc", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-4.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-4.json deleted file mode 100644 index 385571309e..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-4.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "id": "a29bc36c-7907-4bbc-9542-a030ae5b8272", - "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859/runs", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflowruns-4.json", - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54:38 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"158233711de1a189843695211dd42ec9898b518437eb5e78447c62c2e993f33e\"", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4863", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "137", - "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": "8870:697D:FBE289:10027A5:60674C4E", - "Link": "; rel=\"next\", ; rel=\"last\"" - } - }, - "uuid": "781f4b9d-2477-4ec0-9e8d-32bf5a6fa088", - "persistent": true, - "insertionIndex": 4 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-5.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-5.json deleted file mode 100644 index 999ef12843..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs-5.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "id": "bb33f7df-9465-4b7d-a865-da34efc59540\n\n", - "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_6817859_runs", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859/runs?per_page=1&page=2", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflowruns-5.json", - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54:38 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"158233711de1a189843695211dd42ec9898b518437eb5e78447c62c2e993f33e\"", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4863", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "137", - "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": "8870:697D:FBE289:10027A5:60674C4E" - } - }, - "uuid": "2b710d23-e9bf-4271-ab8e-7b6b083accc5\n\n", - "persistent": true, - "insertionIndex": 5 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json similarity index 61% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json index 1def420712..aa44f73700 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testDispatch/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json @@ -1,5 +1,5 @@ { - "id": "78e27ea7-027a-4f97-b770-5308041a2216", + "id": "7c1ac757-c3a6-487a-ab79-d4801a9a2a60", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/test-workflow.yml", @@ -12,34 +12,35 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-3.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows_test-workflowyml-2.json", "headers": { "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:26 GMT", + "Date": "Thu, 12 May 2022 12:43:08 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"72a49555d2625ba9f490d619d324726f5192dc2a030dc22033b9cadf7a2ba076\"", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"304884d68a15280cc659e278ee375aee6ceca05734442ffdacc717d264b55adf\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4982", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "18", + "X-RateLimit-Remaining": "4952", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "48", + "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": "D59E:13DDE:4877553:498A3A7:605C67AA" + "X-GitHub-Request-Id": "C8F8:7E84:269E8EB:2743DFD:627D00DC" } }, - "uuid": "78e27ea7-027a-4f97-b770-5308041a2216", + "uuid": "7c1ac757-c3a6-487a-ab79-d4801a9a2a60", "persistent": true, - "insertionIndex": 3 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/user-1.json deleted file mode 100644 index a09465d755..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflowRuns/mappings/user-1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "id": "44f1323e-bd63-4f16-b059-b83c47e18e5f", - "name": "user", - "request": { - "url": "/user", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "user-1.json", - "headers": { - "Server": "GitHub.com", - "Date": "Thu, 25 Mar 2021 10:36:25 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"879f35eed38dcc75ca2b3a8999425e0d51678f4c73ffade3c5bcc853b59245b6\"", - "Last-Modified": "Tue, 23 Mar 2021 17:35:45 GMT", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4987", - "X-RateLimit-Reset": "1616672182", - "X-RateLimit-Used": "13", - "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": "D59E:13DDE:4877368:498A1B8:605C67A9" - } - }, - "uuid": "44f1323e-bd63-4f16-b059-b83c47e18e5f", - "persistent": true, - "insertionIndex": 1 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest-1.json new file mode 100644 index 0000000000..fce58ae6fa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest-1.json @@ -0,0 +1,134 @@ +{ + "id": 348651606, + "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", + "name": "GHWorkflowTest", + "full_name": "hub4j-test-org/GHWorkflowTest", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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/GHWorkflowTest", + "description": "Repository used for GHWorkflowTest", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", + "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments", + "created_at": "2021-03-17T09:32:03Z", + "updated_at": "2022-05-12T12:41:19Z", + "pushed_at": "2022-05-12T12:41:16Z", + "git_url": "git://github.com/hub4j-test-org/GHWorkflowTest.git", + "ssh_url": "git@github.com:hub4j-test-org/GHWorkflowTest.git", + "clone_url": "https://github.com/hub4j-test-org/GHWorkflowTest.git", + "svn_url": "https://github.com/hub4j-test-org/GHWorkflowTest", + "homepage": null, + "size": 1, + "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, + "allow_forking": true, + "is_template": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.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": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest-2.json deleted file mode 100644 index c984c8be47..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest-2.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "id": 348651606, - "node_id": "MDEwOlJlcG9zaXRvcnkzNDg2NTE2MDY=", - "name": "GHWorkflowTest", - "full_name": "hub4j-test-org/GHWorkflowTest", - "private": false, - "owner": { - "login": "hub4j-test-org", - "id": 7544739, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", - "avatar_url": "https://avatars.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/GHWorkflowTest", - "description": "Repository used for GHWorkflowTest", - "fork": false, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest", - "forks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/forks", - "keys_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/teams", - "hooks_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/hooks", - "issue_events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/events{/number}", - "events_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/events", - "assignees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/assignees{/user}", - "branches_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/branches{/branch}", - "tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/tags", - "blobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/statuses/{sha}", - "languages_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/languages", - "stargazers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/stargazers", - "contributors_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contributors", - "subscribers_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscribers", - "subscription_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/subscription", - "commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/contents/{+path}", - "compare_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/merges", - "archive_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/downloads", - "issues_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/issues{/number}", - "pulls_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/pulls{/number}", - "milestones_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/milestones{/number}", - "notifications_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/labels{/name}", - "releases_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/releases{/id}", - "deployments_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/deployments", - "created_at": "2021-03-17T09:32:03Z", - "updated_at": "2021-03-17T09:33:34Z", - "pushed_at": "2021-03-17T09:33:32Z", - "git_url": "git://github.com/hub4j-test-org/GHWorkflowTest.git", - "ssh_url": "git@github.com:hub4j-test-org/GHWorkflowTest.git", - "clone_url": "https://github.com/hub4j-test-org/GHWorkflowTest.git", - "svn_url": "https://github.com/hub4j-test-org/GHWorkflowTest", - "homepage": null, - "size": 1, - "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://avatars.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": 10 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows-2.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows-3.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows-2.json index 6111529a6b..9a0bfc84d3 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows-3.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/repos_hub4j-test-org_ghworkflowtest_actions_workflows-2.json @@ -8,7 +8,7 @@ "path": ".github/workflows/test-workflow.yml", "state": "active", "created_at": "2021-03-17T10:33:32.000+01:00", - "updated_at": "2021-03-25T11:36:24.000+01:00", + "updated_at": "2022-05-12T14:42:08.000+02:00", "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowTest/actions/workflows/6817859", "html_url": "https://github.com/hub4j-test-org/GHWorkflowTest/blob/main/.github/workflows/test-workflow.yml", "badge_url": "https://github.com/hub4j-test-org/GHWorkflowTest/workflows/test-workflow/badge.svg" diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/user-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/user-1.json deleted file mode 100644 index 6009ca36b4..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/__files/user-1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "login": "gsmet", - "id": 1279749, - "node_id": "MDQ6VXNlcjEyNzk3NDk=", - "avatar_url": "https://avatars.githubusercontent.com/u/1279749?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/gsmet", - "html_url": "https://github.com/gsmet", - "followers_url": "https://api.github.com/users/gsmet/followers", - "following_url": "https://api.github.com/users/gsmet/following{/other_user}", - "gists_url": "https://api.github.com/users/gsmet/gists{/gist_id}", - "starred_url": "https://api.github.com/users/gsmet/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/gsmet/subscriptions", - "organizations_url": "https://api.github.com/users/gsmet/orgs", - "repos_url": "https://api.github.com/users/gsmet/repos", - "events_url": "https://api.github.com/users/gsmet/events{/privacy}", - "received_events_url": "https://api.github.com/users/gsmet/received_events", - "type": "User", - "site_admin": false, - "name": "Guillaume Smet", - "company": "Red Hat", - "blog": "https://www.redhat.com/", - "location": "Lyon, France", - "email": "guillaume.smet@gmail.com", - "hireable": null, - "bio": "Happy camper at Red Hat, working on Quarkus and the Hibernate portfolio.", - "twitter_username": "gsmet_", - "public_repos": 102, - "public_gists": 14, - "followers": 126, - "following": 3, - "created_at": "2011-12-22T11:03:22Z", - "updated_at": "2021-03-25T13:53:32Z", - "private_gists": 14, - "total_private_repos": 4, - "owned_private_repos": 1, - "disk_usage": 68258, - "collaborators": 1, - "two_factor_authentication": true, - "plan": { - "name": "free", - "space": 976562499, - "collaborators": 0, - "private_repos": 10000 - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest-1.json new file mode 100644 index 0000000000..6c83faa4a8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest-1.json @@ -0,0 +1,47 @@ +{ + "id": "6d80881d-7a35-4aa7-aa9a-749f4141870c", + "name": "repos_hub4j-test-org_ghworkflowtest", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowTest", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest-1.json", + "headers": { + "Server": "GitHub.com", + "Date": "Thu, 12 May 2022 12:43:07 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"b29404b8f46b810b45089727292ea01bec52720af73a92806b6826296fd3785b\"", + "Last-Modified": "Thu, 12 May 2022 12:41:19 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-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "github.v3; format=json", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4959", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "41", + "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": "C8F2:11833:1797302:1824C37:627D00DA" + } + }, + "uuid": "6d80881d-7a35-4aa7-aa9a-749f4141870c", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest-2.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest-2.json deleted file mode 100644 index cb69dc74b1..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest-2.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "id": "df58f346-eeca-4472-aa08-1d09980919b3", - "name": "repos_hub4j-test-org_ghworkflowtest", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowTest", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest-2.json", - "headers": { - "Server": "GitHub.com", - "Date": "Mon, 29 Mar 2021 17:51: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/\"082e0c2ae9f1d8387e22ebe7279d627738b78d114a3badc2d9e60dfb0b2a6abf\"", - "Last-Modified": "Wed, 17 Mar 2021 09:33:34 GMT", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "repo", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4995", - "X-RateLimit-Reset": "1617043912", - "X-RateLimit-Used": "5", - "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": "C8C8:5652:A3CF5A:A72804:606213B9" - } - }, - "uuid": "df58f346-eeca-4472-aa08-1d09980919b3", - "persistent": true, - "insertionIndex": 2 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows-3.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows-2.json similarity index 61% rename from src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows-3.json rename to src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows-2.json index c9c73eca55..f7b3519785 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows-3.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/repos_hub4j-test-org_ghworkflowtest_actions_workflows-2.json @@ -1,5 +1,5 @@ { - "id": "dd811eda-cc06-40cd-9260-383e392b9313", + "id": "cc7606d1-2b02-4b42-b647-0178f4638d50", "name": "repos_hub4j-test-org_ghworkflowtest_actions_workflows", "request": { "url": "/repos/hub4j-test-org/GHWorkflowTest/actions/workflows", @@ -12,34 +12,35 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows-3.json", + "bodyFileName": "repos_hub4j-test-org_ghworkflowtest_actions_workflows-2.json", "headers": { "Server": "GitHub.com", - "Date": "Mon, 29 Mar 2021 17:51:53 GMT", + "Date": "Thu, 12 May 2022 12:43:07 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"76b4179d3e0eeaba9ea886a4fe4f776be351a51e1667ac4744affde359313a96\"", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"1a6223335508d90c14799f8e9af313903f3c95ba555ba958fab23e77328057a5\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", + "X-GitHub-Media-Type": "github.v3; format=json", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4994", - "X-RateLimit-Reset": "1617043912", - "X-RateLimit-Used": "6", + "X-RateLimit-Remaining": "4958", + "X-RateLimit-Reset": "1652362924", + "X-RateLimit-Used": "42", + "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": "C8C8:5652:A3CF91:A72838:606213B9" + "X-GitHub-Request-Id": "C8F4:E457:26C775A:276D18A:627D00DB" } }, - "uuid": "dd811eda-cc06-40cd-9260-383e392b9313", + "uuid": "cc7606d1-2b02-4b42-b647-0178f4638d50", "persistent": true, - "insertionIndex": 3 + "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/user-1.json b/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/user-1.json deleted file mode 100644 index 100d4dbc8a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowTest/wiremock/testListWorkflows/mappings/user-1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "id": "19315fcd-1c12-48ea-a908-1a01560c6be4", - "name": "user", - "request": { - "url": "/user", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "user-1.json", - "headers": { - "Server": "GitHub.com", - "Date": "Mon, 29 Mar 2021 17:51: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/\"a86162d7dda1332f6aff41cf72b1bbcdc96c13eea262334a896dcd7a09be5d27\"", - "Last-Modified": "Thu, 25 Mar 2021 13:53:32 GMT", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4999", - "X-RateLimit-Reset": "1617043912", - "X-RateLimit-Used": "1", - "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": "C8C8:5652:A3CE7E:A72720:606213B7" - } - }, - "uuid": "19315fcd-1c12-48ea-a908-1a01560c6be4", - "persistent": true, - "insertionIndex": 1 -} \ No newline at end of file