diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index b0bb7ab9ec..030b62af7d 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -1,6 +1,6 @@ name: CI -on: +on: push: branches: - main @@ -84,7 +84,7 @@ jobs: 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" - - name: Codecov Report + - name: Codecov Report if: matrix.os == 'ubuntu' && matrix.java == '17' uses: codecov/codecov-action@v4.1.0 @@ -92,7 +92,7 @@ jobs: name: test Java 8 (no-build) needs: build runs-on: ubuntu-latest - steps: + steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: @@ -103,6 +103,6 @@ jobs: with: java-version: 8 distribution: 'temurin' - cache: 'maven' + cache: 'maven' - name: Maven Test (no build) Java 8 run: mvn -B surefire:test -DfailIfNoTests -Dsurefire.excludesFile=src/test/resources/slow-or-flaky-tests.txt diff --git a/src/main/java/org/kohsuke/github/GitHubClient.java b/src/main/java/org/kohsuke/github/GitHubClient.java index 09160fc119..b7885a5622 100644 --- a/src/main/java/org/kohsuke/github/GitHubClient.java +++ b/src/main/java/org/kohsuke/github/GitHubClient.java @@ -452,7 +452,7 @@ public GitHubResponse sendRequest(GitHubRequest request, @CheckForNull Bo int retries = retryCount; sendRequestTraceId.set(Integer.toHexString(request.hashCode())); - GitHubConnectorRequest connectorRequest = prepareConnectorRequest(request); + GitHubConnectorRequest connectorRequest = prepareConnectorRequest(request, authorizationProvider); do { GitHubConnectorResponse connectorResponse = null; try { @@ -492,7 +492,7 @@ private void detectKnownErrors(GitHubConnectorResponse connectorResponse, detectOTPRequired(connectorResponse); detectInvalidCached404Response(connectorResponse, request); detectExpiredToken(connectorResponse, request); - detectRedirect(connectorResponse); + detectRedirect(connectorResponse, request); if (rateLimitHandler.isError(connectorResponse)) { rateLimitHandler.onError(connectorResponse); throw new RetryRequestException(); @@ -514,32 +514,106 @@ private void detectExpiredToken(GitHubConnectorResponse connectorResponse, GitHu if (Objects.isNull(originalAuthorization) || originalAuthorization.isEmpty()) { return; } - GitHubConnectorRequest updatedRequest = prepareConnectorRequest(request); + GitHubConnectorRequest updatedRequest = prepareConnectorRequest(request, authorizationProvider); String updatedAuthorization = updatedRequest.header("Authorization"); if (!originalAuthorization.equals(updatedAuthorization)) { throw new RetryRequestException(updatedRequest); } } - private void detectRedirect(GitHubConnectorResponse connectorResponse) throws IOException { - if (connectorResponse.statusCode() == HTTP_MOVED_PERM || connectorResponse.statusCode() == HTTP_MOVED_TEMP) { - // GitHubClient depends on GitHubConnector implementations to follow any redirects automatically - // If this is not done and a redirect is requested, throw in order to maintain security and consistency - throw new HttpException( - "GitHubConnnector did not automatically follow redirect.\n" - + "Change your http client configuration to automatically follow redirects as appropriate.", + private void detectRedirect(GitHubConnectorResponse connectorResponse, GitHubRequest request) throws IOException { + if (isRedirecting(connectorResponse.statusCode())) { + // For redirects, GitHub expects the Authorization header to be removed. + // GitHubConnector implementations can follow any redirects automatically as long as they remove the header + // as well. + // Okhttp does this. + // https://github.com/square/okhttp/blob/f9dfd4e8cc070ca2875a67d8f7ad939d95e7e296/okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt#L313-L318 + // GitHubClient always strips Authorization from detected redirects for security. + // This problem was discovered when upload-artifact@v4 was released as the new + // service we are redirected to for downloading the artifacts doesn't support + // having the Authorization header set. + // See also https://github.com/arduino/report-size-deltas/pull/83 for more context + + GitHubConnectorRequest updatedRequest = prepareRedirectRequest(connectorResponse, request); + throw new RetryRequestException(updatedRequest); + } + } + + private GitHubConnectorRequest prepareRedirectRequest(GitHubConnectorResponse connectorResponse, + GitHubRequest request) throws IOException { + URI requestUri = URI.create(request.url().toString()); + URI redirectedUri = getRedirectedUri(requestUri, connectorResponse); + // If we switch ports on the same host, we consider that as a different host + // This is slightly different from Redirect#NORMAL, but needed for local testing + boolean sameHost = redirectedUri.getHost().equalsIgnoreCase(request.url().getHost()) + && redirectedUri.getPort() == request.url().getPort(); + + // mimicking the behavior of Redirect#NORMAL which was the behavior we used before + // Always redirect, except from HTTPS URLs to HTTP URLs. + if (!requestUri.getScheme().equalsIgnoreCase(redirectedUri.getScheme()) + && !"https".equalsIgnoreCase(redirectedUri.getScheme())) { + throw new HttpException("Attemped to redirect to a different scheme and the target scheme as not https.", connectorResponse.statusCode(), "Redirect", connectorResponse.request().url().toString()); } + + String redirectedMethod = getRedirectedMethod(connectorResponse.statusCode(), request.method()); + + // let's build the new redirected request + GitHubRequest.Builder requestBuilder = request.toBuilder() + .setRawUrlPath(redirectedUri.toString()) + .method(redirectedMethod); + // if we redirect to a different host (even https), we remove the Authorization header + AuthorizationProvider provider = authorizationProvider; + if (!sameHost) { + requestBuilder.removeHeader("Authorization"); + provider = AuthorizationProvider.ANONYMOUS; + } + return prepareConnectorRequest(requestBuilder.build(), provider); } - private GitHubConnectorRequest prepareConnectorRequest(GitHubRequest request) throws IOException { + private static URI getRedirectedUri(URI requestUri, GitHubConnectorResponse connectorResponse) throws IOException { + URI redirectedURI; + redirectedURI = Optional.of(connectorResponse.header("Location")) + .map(URI::create) + .orElseThrow(() -> new IOException("Invalid redirection")); + + // redirect could be relative to original URL, but if not + // then redirect is used. + redirectedURI = requestUri.resolve(redirectedURI); + return redirectedURI; + } + + // This implements the exact same rules as the ones applied in jdk.internal.net.http.RedirectFilter + private static boolean isRedirecting(int statusCode) { + return statusCode == HTTP_MOVED_PERM || statusCode == HTTP_MOVED_TEMP || statusCode == 303 || statusCode == 307 + || statusCode == 308; + } + + // This implements the exact same rules as the ones applied in jdk.internal.net.http.RedirectFilter + private static String getRedirectedMethod(int statusCode, String originalMethod) { + switch (statusCode) { + case HTTP_MOVED_PERM : + case HTTP_MOVED_TEMP : + return originalMethod.equals("POST") ? "GET" : originalMethod; + case 303 : + return "GET"; + case 307 : + case 308 : + return originalMethod; + default : + return originalMethod; + } + } + + private static GitHubConnectorRequest prepareConnectorRequest(GitHubRequest request, + AuthorizationProvider authorizationProvider) throws IOException { GitHubRequest.Builder builder = request.toBuilder(); // if the authentication is needed but no credential is given, try it anyway (so that some calls // that do work with anonymous access in the reduced form should still work.) if (!request.allHeaders().containsKey("Authorization")) { - String authorization = getEncodedAuthorization(); + String authorization = authorizationProvider.getEncodedAuthorization(); if (authorization != null) { builder.setHeader("Authorization", authorization); } @@ -725,7 +799,8 @@ private void detectInvalidCached404Response(GitHubConnectorResponse connectorRes // "If-Modified-Since" or "If-None-Match" values. // This makes GitHub give us current data (not incorrectly cached data) throw new RetryRequestException( - prepareConnectorRequest(request.toBuilder().setHeader("Cache-Control", "no-cache").build())); + prepareConnectorRequest(request.toBuilder().setHeader("Cache-Control", "no-cache").build(), + authorizationProvider)); } } diff --git a/src/main/java/org/kohsuke/github/GitHubRequest.java b/src/main/java/org/kohsuke/github/GitHubRequest.java index 058f4d3b47..903501bb27 100644 --- a/src/main/java/org/kohsuke/github/GitHubRequest.java +++ b/src/main/java/org/kohsuke/github/GitHubRequest.java @@ -425,6 +425,18 @@ public B withApiUrl(String url) { return (B) this; } + /** + * Removes the named request HTTP header. + * + * @param name + * the name + * @return the request builder + */ + public B removeHeader(String name) { + headers.remove(name); + return (B) this; + } + /** * Sets the request HTTP header. *

diff --git a/src/main/java11/org/kohsuke/github/extras/HttpClientGitHubConnector.java b/src/main/java11/org/kohsuke/github/extras/HttpClientGitHubConnector.java index e8eec47bfe..dd8556b9b8 100644 --- a/src/main/java11/org/kohsuke/github/extras/HttpClientGitHubConnector.java +++ b/src/main/java11/org/kohsuke/github/extras/HttpClientGitHubConnector.java @@ -31,7 +31,17 @@ public class HttpClientGitHubConnector implements GitHubConnector { * Instantiates a new HttpClientGitHubConnector with a default HttpClient. */ public HttpClientGitHubConnector() { - this(HttpClient.newBuilder().followRedirects(HttpClient.Redirect.NORMAL).build()); + // GitHubClient handles redirects manually as Java HttpClient copies all the headers when redirecting + // even when redirecting to a different host which is problematic as we don't want + // to push the Authorization header when redirected to a different host. + // This problem was discovered when upload-artifact@v4 was released as the new + // service we are redirected to for downloading the artifacts doesn't support + // having the Authorization header set. + // The new implementation does not push the Authorization header when redirected + // to a different host, which is similar to what Okhttp is doing: + // https://github.com/square/okhttp/blob/f9dfd4e8cc070ca2875a67d8f7ad939d95e7e296/okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt#L313-L318 + // See also https://github.com/arduino/report-size-deltas/pull/83 for more context + this(HttpClient.newBuilder().followRedirects(HttpClient.Redirect.NEVER).build()); } /** diff --git a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java index 2c2fc1fde1..cda06a9ebf 100644 --- a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java +++ b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java @@ -355,6 +355,10 @@ public void testLogs() throws IOException { @SuppressWarnings("resource") @Test public void testArtifacts() throws IOException { + // Recorded with Authorization, then manually updated + snapshotNotAllowed(); + + mockGitHub.customizeRecordSpec(recordSpecBuilder -> recordSpecBuilder.captureHeader("Authorization")); GHWorkflow workflow = repo.getWorkflow(ARTIFACTS_WORKFLOW_PATH); long latestPreexistingWorkflowRunId = getLatestPreexistingWorkflowRunId(); @@ -382,7 +386,7 @@ public void testArtifacts() throws IOException { checkArtifactProperties(artifacts.get(0), "artifact1"); checkArtifactProperties(artifacts.get(1), "artifact2"); - // Test download + // Test download from upload-artifact@v3 infrastructure String artifactContent = artifacts.get(0).download((is) -> { try (ZipInputStream zis = new ZipInputStream(is)) { StringBuilder sb = new StringBuilder(); @@ -400,7 +404,25 @@ public void testArtifacts() throws IOException { } }); - assertThat(artifactContent, is("artifact1")); + // Test download from upload-artifact@v4 infrastructure + artifactContent = artifacts.get(1).download((is) -> { + try (ZipInputStream zis = new ZipInputStream(is)) { + StringBuilder sb = new StringBuilder(); + + ZipEntry ze = zis.getNextEntry(); + assertThat(ze.getName(), is("artifact2.txt")); + + // the scanner has to be kept open to avoid closing zis + Scanner scanner = new Scanner(zis); + while (scanner.hasNextLine()) { + sb.append(scanner.nextLine()); + } + + return sb.toString(); + } + }); + + assertThat(artifactContent, is("artifact2")); // Test GHRepository#getArtifact(long) as we are sure we have artifacts around GHArtifact artifactById = repo.getArtifact(artifacts.get(0).getId()); diff --git a/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java b/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java index 93eeb39ff4..980a997e69 100644 --- a/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java +++ b/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java @@ -1,26 +1,30 @@ package org.kohsuke.github.junit; import com.github.tomakehurst.wiremock.WireMockServer; +import com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder; import com.github.tomakehurst.wiremock.common.FileSource; import com.github.tomakehurst.wiremock.core.WireMockConfiguration; import com.github.tomakehurst.wiremock.extension.Parameters; +import com.github.tomakehurst.wiremock.extension.ResponseDefinitionTransformer; import com.github.tomakehurst.wiremock.extension.ResponseTransformer; import com.github.tomakehurst.wiremock.http.*; import com.github.tomakehurst.wiremock.matching.RequestPatternBuilder; import com.github.tomakehurst.wiremock.recording.RecordSpecBuilder; import com.google.gson.*; import edu.umd.cs.findbugs.annotations.NonNull; +import org.apache.commons.io.FilenameUtils; import java.io.File; import java.io.IOException; import java.lang.reflect.Type; import java.nio.file.Files; import java.nio.file.Path; -import java.nio.file.Paths; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.function.Consumer; +import java.util.regex.Matcher; +import java.util.regex.Pattern; import javax.annotation.Nonnull; @@ -45,6 +49,12 @@ public class GitHubWireMockRule extends WireMockMultiServerRule { private final static boolean useProxy = takeSnapshot || System.getProperty("test.github.useProxy", "false") != "false"; + private final static Pattern ACTIONS_USER_CONTENT_PATTERN = Pattern + .compile("https://pipelines[a-z0-9]*\\.actions\\.githubusercontent\\.com", Pattern.CASE_INSENSITIVE); + private final static Pattern BLOB_CORE_WINDOWS_PATTERN = Pattern + .compile("https://([a-z0-9]*\\.blob\\.core\\.windows\\.net)", Pattern.CASE_INSENSITIVE); + private final static String ORIGINAL_HOST = "originalHost"; + /** * Customize record spec. * @@ -131,6 +141,15 @@ public WireMockServer actionsUserContentServer() { return servers.get("actions-user-content"); } + /** + * Actions user content server. + * + * @return the wire mock server + */ + public WireMockServer blobCoreWindowsNetServer() { + return servers.get("blob-core-windows-net"); + } + /** * Checks if is use proxy. * @@ -182,6 +201,11 @@ protected void initializeServers() { || isUseProxy()) { initializeServer("actions-user-content"); } + + if (new File(apiServer().getOptions().filesRoot().getPath() + "_blob-core-windows-net").exists() + || isUseProxy()) { + initializeServer("blob-core-windows-net", new ProxyToOriginalHostTransformer(this)); + } } /** @@ -213,6 +237,11 @@ protected void before() { .stubFor(proxyAllTo("https://pipelines.actions.githubusercontent.com").atPriority(100)); } + if (this.blobCoreWindowsNetServer() != null) { + this.blobCoreWindowsNetServer() + .stubFor(any(anyUrl()).willReturn(aResponse().withTransformers(ProxyToOriginalHostTransformer.NAME)) + .atPriority(100)); + } } /** @@ -235,6 +264,8 @@ protected void after() { recordSnapshot(this.codeloadServer(), "https://codeload.github.com", true); recordSnapshot(this.actionsUserContentServer(), "https://pipelines.actions.githubusercontent.com", true); + + recordSnapshot(this.blobCoreWindowsNetServer(), "https://productionresults.blob.core.windows.net", true); } private void recordSnapshot(WireMockServer server, String target, boolean isRawServer) { @@ -285,6 +316,77 @@ public static int getRequestCount(WireMockServer server) { return server.countRequestsMatching(RequestPatternBuilder.allRequests().build()).getCount(); } + private static class MappingFileDetails { + final Path filePath; + final Path bodyPath; // body file from the mapping file contents + final Path renamedFilePath; + final Path renamedBodyPath; + + MappingFileDetails(Path filePath, Map parsedObject) { + this.filePath = filePath; + String insertionIndex = Long + .toString(((Double) parsedObject.getOrDefault("insertionIndex", 0.0)).longValue()); + + String name = (String) parsedObject.get("name"); + if (name == null) { + // if name is not present, use url and id to generate a name + Map request = (Map) parsedObject.get("request"); + // ignore + name = ((String) request.get("url")).split("[?]")[0].replaceAll("_", "-").replaceAll("[\\\\/]", "_"); + if (name.startsWith("_")) { + name = name.substring(1); + } + name += "_" + (String) parsedObject.get("id"); + } + + this.renamedFilePath = getPathWithShortenedFileName(this.filePath, name, insertionIndex); + + Map responseObject = (Map) parsedObject.get("response"); + String bodyFileName = responseObject == null ? null : (String) responseObject.get("bodyFileName"); + if (bodyFileName != null) { + this.bodyPath = filePath.getParent().resolveSibling("__files").resolve(bodyFileName); + this.renamedBodyPath = getPathWithShortenedFileName(this.bodyPath, name, insertionIndex); + } else { + this.bodyPath = null; + this.renamedBodyPath = null; + } + } + + void renameFiles() throws IOException { + if (!filePath.equals(renamedFilePath)) { + Files.move(filePath, renamedFilePath); + } + if (bodyPath != null && !bodyPath.equals(renamedBodyPath)) { + Files.move(bodyPath, renamedBodyPath); + } + } + + private static Path getPathWithShortenedFileName(Path filePath, String name, String insertionIndex) { + String extension = FilenameUtils.getExtension(filePath.getFileName().toString()); + // Add an underscore to the start and end for easier pattern matching. + String fileName = "_" + name + "_"; + + // Shorten early segments of the file name + // which tend to be repetative - "repos_hub4j-test-org_{repository}". + // also shorten multiple underscores in these segments + fileName = fileName.replaceAll("^_([a-zA-Z0-9])[^_]+_+([a-zA-Z0-9])[^_]+_+([a-zA-Z0-9])[^_]+_+([^_])", + "_$1_$2_$3_$4"); + fileName = fileName.replaceAll("^_([a-zA-Z0-9])[^_]+_+([a-zA-Z0-9])[^_]+_+([^_])", "_$1_$2_$3"); + + // Any remaining segment that longer the 32 characters, truncate to 8 + fileName = fileName.replaceAll("_([^_]{8})[^_]{23}[^_]+_", "_$1_"); + + // If the file name is still longer than 60 characters, truncate it + fileName = fileName.replaceAll("^_(.{60}).+_$", "_$1_"); + + // Remove outer underscores + fileName = fileName.substring(1, fileName.length() - 1); + Path targetPath = filePath.resolveSibling(insertionIndex + "-" + fileName + "." + extension); + + return targetPath; + } + } + private void formatTestResources(Path path, boolean isRawServer) { // The more consistent we can make the json output the more meaningful it will be. Gson g = new Gson().newBuilder() @@ -304,121 +406,103 @@ public JsonElement serialize(Double src, Type typeOfSrc, JsonSerializationContex .create(); try { - Map idToIndex = new HashMap<>(); + + Map mappingFiles = new HashMap<>(); // Match all the ids to request indexes Files.walk(path).forEach(filePath -> { try { - if (filePath.toString().endsWith(".json") && filePath.toString().contains("/mappings/")) { + if ("mappings".equalsIgnoreCase(filePath.getParent().getFileName().toString())) { + if (!filePath.getFileName().toString().endsWith(".json")) { + throw new RuntimeException("Mapping files must be .json files."); + } + String fileText = new String(Files.readAllBytes(filePath)); - Object parsedObject = g.fromJson(fileText, Object.class); - addMappingId((Map) parsedObject, idToIndex); + Map parsedObject = (Map) g.fromJson(fileText, Object.class); + MappingFileDetails mapping = new MappingFileDetails(filePath, parsedObject); + if (mappingFiles.containsKey(filePath.toString())) { + throw new RuntimeException("Duplicate mapping."); + } + mappingFiles.put(filePath.toString(), mapping); + + if (!filePath.equals(mapping.renamedFilePath)) { + if (mappingFiles.containsKey(mapping.renamedFilePath.toString())) { + throw new RuntimeException( + "Duplicate rename target: " + mapping.renamedFilePath.toString()); + } + mappingFiles.put(mapping.renamedFilePath.toString(), mapping); + } } } catch (Exception e) { throw new RuntimeException("Files could not be read: " + filePath.toString(), e); } }); - // Update all Files.walk(path).forEach(filePath -> { try { - // For raw server, only fix up mapping files - if (isRawServer && !filePath.toString().contains("mappings")) { + // Get the record + MappingFileDetails mapping = mappingFiles.get(filePath.toString()); + if (mapping == null) { return; } - if (filePath.toString().endsWith(".json")) { - Path renamedFilePath = renameFile(filePath, idToIndex); - Path targetFilePath = renamedFilePath == null ? filePath : renamedFilePath; + // rename the mapping file and body file if needed + mapping.renameFiles(); - String fileText = new String(Files.readAllBytes(targetFilePath)); - // while recording responses we replaced all github calls localhost - // now we reverse that for storage. - fileText = fileText.replace(this.apiServer().baseUrl(), "https://api.github.com"); - - if (this.rawServer() != null) { - fileText = fileText.replace(this.rawServer().baseUrl(), - "https://raw.githubusercontent.com"); - } - - if (this.uploadsServer() != null) { - fileText = fileText.replace(this.uploadsServer().baseUrl(), "https://uploads.github.com"); - } - - if (this.codeloadServer() != null) { - fileText = fileText.replace(this.codeloadServer().baseUrl(), "https://codeload.github.com"); - } - - if (this.actionsUserContentServer() != null) { - fileText = fileText.replace(this.actionsUserContentServer().baseUrl(), - "https://pipelines.actions.githubusercontent.com"); - } - - // point bodyFile in the mapping to the renamed body file - if (renamedFilePath != null && filePath.toString().contains("mappings")) { - fileText = fileText.replace(filePath.getFileName().toString(), - renamedFilePath.getFileName().toString()); - } - - // Can be Array or Map - Object parsedObject = g.fromJson(fileText, Object.class); - String outputFileText = g.toJson(parsedObject); - Files.write(targetFilePath, outputFileText.getBytes()); + // rewrite the mapping file (including bodyfileName fixup) + fixJsonContents(g, mapping.renamedFilePath, mapping.bodyPath, mapping.renamedBodyPath); + // if not a raw server and body file is json, rewrite body file + if (!isRawServer && mapping.renamedBodyPath != null + && mapping.renamedBodyPath.toString().endsWith(".json")) { + fixJsonContents(g, mapping.renamedBodyPath, null, null); } } catch (Exception e) { throw new RuntimeException("Files could not be written: " + filePath.toString(), e); } }); + } catch (IOException e) { throw new RuntimeException("Files could not be written"); } } - private void addMappingId(Map parsedObject, Map idToIndex) { - String id = (String) parsedObject.getOrDefault("id", null); - long insertionIndex = ((Double) parsedObject.getOrDefault("insertionIndex", 0.0)).longValue(); - if (id != null && insertionIndex > 0) { - idToIndex.put(id, Long.toString(insertionIndex)); - } - } + private void fixJsonContents(Gson g, Path filePath, Path bodyPath, Path renamedBodyPath) throws IOException { + String fileText = new String(Files.readAllBytes(filePath)); + // while recording responses we replaced all github calls localhost + // now we reverse that for storage. + fileText = fileText.replace(this.apiServer().baseUrl(), "https://api.github.com"); - private Map.Entry getId(String fileName, Map idToIndex) throws IOException { - for (Map.Entry item : idToIndex.entrySet()) { - if (fileName.contains(item.getKey())) { - return item; - } + if (this.rawServer() != null) { + fileText = fileText.replace(this.rawServer().baseUrl(), "https://raw.githubusercontent.com"); } - return null; - } - - private Path renameFile(Path filePath, Map idToIndex) throws IOException { - Path targetPath = null; - String fileName = filePath.getFileName().toString(); - // Short early segments of the file name - // which tend to be "repos_hub4j-test-org_{repository}". - fileName = fileName.replaceAll("^([a-zA-Z])[^_]+_([a-zA-Z])[^_]+_([a-zA-Z])[^_]+_", "$1_$2_$3_"); - fileName = fileName.replaceAll("^([a-zA-Z])[^_]+_([a-zA-Z])[^_]+_", "$1_$2_"); + if (this.uploadsServer() != null) { + fileText = fileText.replace(this.uploadsServer().baseUrl(), "https://uploads.github.com"); + } - Map.Entry idToIndexEntry = getId(fileName, idToIndex); - if (idToIndexEntry != null) { - fileName = fileName.replace("-" + idToIndexEntry.getKey(), ""); - // put index number on the front for clarity - fileName = idToIndexEntry.getValue() + "-" + fileName; + if (this.codeloadServer() != null) { + fileText = fileText.replace(this.codeloadServer().baseUrl(), "https://codeload.github.com"); } - // Replace GUID strings in file paths with abbreviated GUID to limit file path length for windows - fileName = fileName.replaceAll("(_[a-f0-9]{8})[a-f0-9]{32}([_.])", "$1$2"); + if (this.actionsUserContentServer() != null) { + fileText = fileText.replace(this.actionsUserContentServer().baseUrl(), + "https://pipelines.actions.githubusercontent.com"); + } - // If the file name is still longer than 60 characters, truncate it - fileName = fileName.replaceAll("^([^.]{60})[^.]+\\.", "$1."); + if (this.blobCoreWindowsNetServer() != null) { + fileText = fileText.replace(this.blobCoreWindowsNetServer().baseUrl(), + "https://productionresults.blob.core.windows.net"); + } - String renamedFilePathString = Paths.get(filePath.getParent().toString(), fileName).toString(); - if (renamedFilePathString != filePath.toString()) { - targetPath = new File(renamedFilePathString).toPath(); - Files.move(filePath, targetPath); + // point body file path to the renamed body file + if (bodyPath != null) { + fileText = fileText.replace(bodyPath.getFileName().toString(), renamedBodyPath.getFileName().toString()); } - return targetPath; + + // Can be Array or Map + Object parsedObject = g.fromJson(fileText, Object.class); + String outputFileText = g.toJson(parsedObject); + Files.write(filePath, outputFileText.getBytes()); } /** @@ -440,8 +524,14 @@ public String mapToMockGitHub(String body) { body = replaceTargetServerUrl(body, this.actionsUserContentServer(), - "https://pipelines.actions.githubusercontent.com", + ACTIONS_USER_CONTENT_PATTERN, "/actions-user-content"); + + body = replaceTargetServerUrl(body, + this.blobCoreWindowsNetServer(), + BLOB_CORE_WINDOWS_PATTERN, + "/blob-core-windows-net"); + return body; } @@ -458,6 +548,19 @@ private String replaceTargetServerUrl(String body, return body; } + @NonNull + private String replaceTargetServerUrl(String body, + WireMockServer wireMockServer, + Pattern regexp, + String inactiveTarget) { + if (wireMockServer != null) { + body = regexp.matcher(body).replaceAll(wireMockServer.baseUrl()); + } else { + body = regexp.matcher(body).replaceAll(this.apiServer().baseUrl() + inactiveTarget); + } + return body; + } + /** * A number of modifications are needed as runtime to make responses target the WireMock server and not accidentally * switch to using the live github servers. @@ -513,10 +616,24 @@ private void fixListTraversalHeader(Response response, Collection he private void fixLocationHeader(Response response, Collection headers) { // For redirects, the Location header points to the new target. - HttpHeader linkHeader = response.getHeaders().getHeader("Location"); - if (linkHeader.isPresent()) { + HttpHeader locationHeader = response.getHeaders().getHeader("Location"); + if (locationHeader.isPresent()) { + String originalLocationHeaderValue = locationHeader.firstValue(); + String rewrittenLocationHeaderValue = rule.mapToMockGitHub(originalLocationHeaderValue); + headers.removeIf(item -> item.keyEquals("Location")); - headers.add(HttpHeader.httpHeader("Location", rule.mapToMockGitHub(linkHeader.firstValue()))); + + // in the case of the blob.core.windows.net server, we need to keep the original host around + // as the host name is dynamic + // this is a hack as we pass the original host as an additional parameter which will + // end up in the request we push to the GitHub server but that is the best we can do + // given Wiremock's infrastructure + Matcher matcher = BLOB_CORE_WINDOWS_PATTERN.matcher(originalLocationHeaderValue); + if (matcher.find() && rule.isUseProxy()) { + rewrittenLocationHeaderValue += "&" + ORIGINAL_HOST + "=" + matcher.group(1); + } + + headers.add(HttpHeader.httpHeader("Location", rewrittenLocationHeaderValue)); } } @@ -525,4 +642,34 @@ public String getName() { return "github-api-url-rewrite"; } } + + private static class ProxyToOriginalHostTransformer extends ResponseDefinitionTransformer { + + private static final String NAME = "proxy-to-original-host"; + + private final GitHubWireMockRule rule; + + private ProxyToOriginalHostTransformer(GitHubWireMockRule rule) { + this.rule = rule; + } + + @Override + public String getName() { + return NAME; + } + + @Override + public ResponseDefinition transform(Request request, + ResponseDefinition responseDefinition, + FileSource files, + Parameters parameters) { + if (!rule.isUseProxy() || !request.queryParameter(ORIGINAL_HOST).isPresent()) { + return responseDefinition; + } + + String originalHost = request.queryParameter(ORIGINAL_HOST).firstValue(); + + return ResponseDefinitionBuilder.like(responseDefinition).proxiedFrom("https://" + originalHost).build(); + } + } } diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/__files/6-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/__files/6-r_6_c_b83812aa.json similarity index 100% rename from src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/__files/6-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json rename to src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/__files/6-r_6_c_b83812aa.json diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/__files/7-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/__files/7-r_6_c_b83812aa.json similarity index 100% rename from src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/__files/7-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json rename to src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/__files/7-r_6_c_b83812aa.json diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/6-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/6-r_6_c_b83812aa.json similarity index 96% rename from src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/6-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json rename to src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/6-r_6_c_b83812aa.json index e0b3656882..542757d098 100644 --- a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/6-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/6-r_6_c_b83812aa.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "6-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json", + "bodyFileName": "6-r_6_c_b83812aa.json", "headers": { "Server": "GitHub.com", "Date": "Fri, 23 Jun 2023 13:45:38 GMT", diff --git a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/7-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/7-r_6_c_b83812aa.json similarity index 96% rename from src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/7-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json rename to src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/7-r_6_c_b83812aa.json index 72598e53b3..73e8e54f2e 100644 --- a/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/7-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json +++ b/src/test/resources/org/kohsuke/github/CommitTest/wiremock/listFilesWhereCommitHasLargeChange/mappings/7-r_6_c_b83812aa.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "7-repositories_657543062_commits_b83812aa76bb7c3c43da96fbf8a.json", + "bodyFileName": "7-r_6_c_b83812aa.json", "headers": { "Server": "GitHub.com", "Date": "Fri, 23 Jun 2023 13:45:38 GMT", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/0-m_p_7_accounts_2998ad4b.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/0-m_p_7_accounts_2998ad4b.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-C43G2.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/0-m_p_c35c1485.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/body-marketplace_listing-stubbed-plans-C43G2.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/__files/0-m_p_c35c1485.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/mapping-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/0-m_p_7_accounts_2998ad4b.json similarity index 94% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/mapping-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/0-m_p_7_accounts_2998ad4b.json index 22135099e6..e473744dbc 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/mapping-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/0-m_p_7_accounts_2998ad4b.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-7-accounts-QgHUA.json", + "bodyFileName": "0-m_p_7_accounts_2998ad4b.json", "headers": { "Date": "Sun, 08 Dec 2019 22:26:01 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/mapping-marketplace_listing-stubbed-plans-C43G2.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/0-m_p_c35c1485.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/mapping-marketplace_listing-stubbed-plans-C43G2.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/0-m_p_c35c1485.json index f4bb51cd74..0e6cd588b0 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/mapping-marketplace_listing-stubbed-plans-C43G2.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccounts/mappings/0-m_p_c35c1485.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-C43G2.json", + "bodyFileName": "0-m_p_c35c1485.json", "headers": { "Date": "Sun, 08 Dec 2019 22:26:00 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-uewkE.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/0-m_p_0a169daf.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-uewkE.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/0-m_p_0a169daf.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/0-m_p_7_accounts_abb1bc8c.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/0-m_p_7_accounts_abb1bc8c.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/0-m_p_8_accounts_2269b7d0.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/0-m_p_8_accounts_2269b7d0.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/0-m_p_9_accounts_d88c8d05.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/__files/0-m_p_9_accounts_d88c8d05.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-uewkE.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_0a169daf.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-uewkE.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_0a169daf.json index 55cc12cddb..60f78853c8 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-uewkE.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_0a169daf.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-uewkE.json", + "bodyFileName": "0-m_p_0a169daf.json", "headers": { "Date": "Mon, 09 Dec 2019 06:49:54 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_7_accounts_abb1bc8c.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_7_accounts_abb1bc8c.json index 6b5923ff8e..9974fcb468 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_7_accounts_abb1bc8c.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-7-accounts-aoRnP.json", + "bodyFileName": "0-m_p_7_accounts_abb1bc8c.json", "headers": { "Date": "Mon, 09 Dec 2019 06:49:55 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_8_accounts_2269b7d0.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_8_accounts_2269b7d0.json index 041b909bf4..9953ea72fa 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_8_accounts_2269b7d0.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-8-accounts-NZw9v.json", + "bodyFileName": "0-m_p_8_accounts_2269b7d0.json", "headers": { "Date": "Mon, 09 Dec 2019 06:49:55 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_9_accounts_d88c8d05.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_9_accounts_d88c8d05.json index cf0272997b..c5f65e6964 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/mapping-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithDirection/mappings/0-m_p_9_accounts_d88c8d05.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-9-accounts-b1MbT.json", + "bodyFileName": "0-m_p_9_accounts_d88c8d05.json", "headers": { "Date": "Mon, 09 Dec 2019 06:49:55 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-cz27N.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/0-m_p_7_accounts_4bad09bb.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-7-accounts-cz27N.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/0-m_p_7_accounts_4bad09bb.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/0-m_p_8_accounts_531bdda5.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/0-m_p_8_accounts_531bdda5.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-VT77w.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/0-m_p_9_accounts_96ec4464.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-9-accounts-VT77w.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/0-m_p_9_accounts_96ec4464.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-xk1MF.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/0-m_p_e1c72a1d.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/body-marketplace_listing-stubbed-plans-xk1MF.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/__files/0-m_p_e1c72a1d.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-7-accounts-cz27N.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_7_accounts_4bad09bb.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-7-accounts-cz27N.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_7_accounts_4bad09bb.json index f6f59ab552..e568df6baf 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-7-accounts-cz27N.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_7_accounts_4bad09bb.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-7-accounts-cz27N.json", + "bodyFileName": "0-m_p_7_accounts_4bad09bb.json", "headers": { "Date": "Mon, 09 Dec 2019 06:58:10 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_8_accounts_531bdda5.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_8_accounts_531bdda5.json index b06857c281..94374995be 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_8_accounts_531bdda5.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-8-accounts-8T1Pb.json", + "bodyFileName": "0-m_p_8_accounts_531bdda5.json", "headers": { "Date": "Mon, 09 Dec 2019 06:58:10 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-9-accounts-VT77w.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_9_accounts_96ec4464.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-9-accounts-VT77w.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_9_accounts_96ec4464.json index 5ffc3d524c..63ec49e630 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-9-accounts-VT77w.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_9_accounts_96ec4464.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-9-accounts-VT77w.json", + "bodyFileName": "0-m_p_9_accounts_96ec4464.json", "headers": { "Date": "Mon, 09 Dec 2019 06:58:11 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-xk1MF.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_e1c72a1d.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-xk1MF.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_e1c72a1d.json index f3e9134b90..413490dc43 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/mapping-marketplace_listing-stubbed-plans-xk1MF.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listAccountsWithSortAndDirection/mappings/0-m_p_e1c72a1d.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-xk1MF.json", + "bodyFileName": "0-m_p_e1c72a1d.json", "headers": { "Date": "Mon, 09 Dec 2019 06:58:09 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/__files/body-marketplace_listing-stubbed-plans-ZDjdu.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/__files/0-m_p_6634cef2.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/__files/body-marketplace_listing-stubbed-plans-ZDjdu.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/__files/0-m_p_6634cef2.json diff --git a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/mappings/mapping-marketplace_listing-stubbed-plans-ZDjdu.json b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/mappings/0-m_p_6634cef2.json similarity index 95% rename from src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/mappings/mapping-marketplace_listing-stubbed-plans-ZDjdu.json rename to src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/mappings/0-m_p_6634cef2.json index 473c464248..4ead44fc33 100644 --- a/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/mappings/mapping-marketplace_listing-stubbed-plans-ZDjdu.json +++ b/src/test/resources/org/kohsuke/github/GHMarketplacePlanTest/wiremock/listMarketplacePlans/mappings/0-m_p_6634cef2.json @@ -11,7 +11,7 @@ }, "response": { "status": 200, - "bodyFileName": "body-marketplace_listing-stubbed-plans-ZDjdu.json", + "bodyFileName": "0-m_p_6634cef2.json", "headers": { "Date": "Sun, 08 Dec 2019 06:34:20 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/4-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/4-r_h_g_compare_e46a9f3f.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/4-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/4-r_h_g_compare_e46a9f3f.json diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/5-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/5-r_h_g_compare_e46a9f3f.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/5-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/5-r_h_g_compare_e46a9f3f.json diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/6-repositories_206888201_compare_e46a9f3f2ac55db96de3c5c4706.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/6-r_2_c_e46a9f3f.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/6-repositories_206888201_compare_e46a9f3f2ac55db96de3c5c4706.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/__files/6-r_2_c_e46a9f3f.json diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/4-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/4-r_h_g_compare_e46a9f3f.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/4-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/4-r_h_g_compare_e46a9f3f.json index de6e829f25..1772eb71ed 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/4-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/4-r_h_g_compare_e46a9f3f.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "4-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json", + "bodyFileName": "4-r_h_g_compare_e46a9f3f.json", "headers": { "Server": "GitHub.com", "Date": "Mon, 06 Sep 2021 19:22:35 GMT", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/5-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/5-r_h_g_compare_e46a9f3f.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/5-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/5-r_h_g_compare_e46a9f3f.json index 6a3f227992..b104048e63 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/5-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/5-r_h_g_compare_e46a9f3f.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "5-r_h_g_compare_e46a9f3f2ac55db96de3c5c4706f2813b3a964658051.json", + "bodyFileName": "5-r_h_g_compare_e46a9f3f.json", "headers": { "Server": "GitHub.com", "Date": "Mon, 06 Sep 2021 19:22:35 GMT", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/6-repositories_206888201_compare_e46a9f3f2ac55db96de3c5c4706.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/6-r_2_c_e46a9f3f.json similarity index 96% rename from src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/6-repositories_206888201_compare_e46a9f3f2ac55db96de3c5c4706.json rename to src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/6-r_2_c_e46a9f3f.json index b74cfe8619..43ddde820e 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/6-repositories_206888201_compare_e46a9f3f2ac55db96de3c5c4706.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/listCommitsBetweenPaginated/mappings/6-r_2_c_e46a9f3f.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "6-repositories_206888201_compare_e46a9f3f2ac55db96de3c5c4706.json", + "bodyFileName": "6-r_2_c_e46a9f3f.json", "headers": { "Server": "GitHub.com", "Date": "Mon, 06 Sep 2021 19:22:35 GMT", diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/2-r_h_ghworkflowruntest.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/1-r_h_ghworkflowruntest.json similarity index 87% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/2-r_h_ghworkflowruntest.json rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/1-r_h_ghworkflowruntest.json index 8a0881d344..de34772b0a 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/2-r_h_ghworkflowruntest.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/1-r_h_ghworkflowruntest.json @@ -65,14 +65,14 @@ "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-02T15:48:53Z", - "pushed_at": "2021-04-02T15:48:51Z", + "updated_at": "2023-11-08T21:14:03Z", + "pushed_at": "2024-02-12T16:24:37Z", "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": 6, + "size": 14, "stargazers_count": 0, "watchers_count": 0, "language": null, @@ -81,26 +81,42 @@ "has_downloads": true, "has_wiki": true, "has_pages": false, - "forks_count": 0, + "has_discussions": false, + "forks_count": 1, "mirror_url": null, "archived": false, "disabled": false, "open_issues_count": 7, "license": null, - "forks": 0, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 1, "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, + "use_squash_pr_title_as_default": false, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "custom_properties": {}, "organization": { "login": "hub4j-test-org", "id": 7544739, @@ -121,6 +137,20 @@ "type": "Organization", "site_admin": false }, - "network_count": 0, - "subscribers_count": 9 + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 1, + "subscribers_count": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/1-user.json deleted file mode 100644 index f645e8dd1c..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/1-user.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": 103, - "public_gists": 14, - "followers": 126, - "following": 3, - "created_at": "2011-12-22T11:03:22Z", - "updated_at": "2021-04-01T17:18:59Z", - "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/GHWorkflowRunTest/wiremock/testArtifacts/__files/10-r_h_g_actions_artifacts_1242831517.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/10-r_h_g_actions_artifacts_1242831517.json new file mode 100644 index 0000000000..470166dd72 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/10-r_h_g_actions_artifacts_1242831517.json @@ -0,0 +1,19 @@ +{ + "id": 1242831517, + "node_id": "MDg6QXJ0aWZhY3QxMjQyODMxNTE3", + "name": "artifact2", + "size_in_bytes": 152, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831517", + "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831517/zip", + "expired": false, + "created_at": "2024-02-13T20:55:59Z", + "updated_at": "2024-02-13T20:55:59Z", + "expires_at": "2024-05-13T20:55:47Z", + "workflow_run": { + "id": 7892624040, + "repository_id": 348674220, + "head_repository_id": 348674220, + "head_branch": "main", + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/10-r_h_g_actions_artifacts_51301321.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/10-r_h_g_actions_artifacts_51301321.json deleted file mode 100644 index abd6a7b8c9..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/10-r_h_g_actions_artifacts_51301321.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "id": 51301321, - "node_id": "MDg6QXJ0aWZhY3Q1MTMwMTMyMQ==", - "name": "artifact2", - "size_in_bytes": 10, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301321", - "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301321/zip", - "expired": false, - "created_at": "2021-04-02T16:54:32Z", - "updated_at": "2021-04-02T16:54:32Z", - "expires_at": "2021-07-01T16:54:29Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/11-r_h_g_actions_artifacts.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/11-r_h_g_actions_artifacts.json index 5f28121cd3..f1d90573ed 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/11-r_h_g_actions_artifacts.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/11-r_h_g_actions_artifacts.json @@ -1,29 +1,43 @@ { - "total_count": 18, + "total_count": 69, "artifacts": [ { - "id": 51301321, - "node_id": "MDg6QXJ0aWZhY3Q1MTMwMTMyMQ==", - "name": "artifact2", + "id": 1242831742, + "node_id": "MDg6QXJ0aWZhY3QxMjQyODMxNzQy", + "name": "artifact1", "size_in_bytes": 10, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301321", - "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301321/zip", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831742", + "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831742/zip", "expired": false, - "created_at": "2021-04-02T16:54:32Z", - "updated_at": "2021-04-02T16:54:32Z", - "expires_at": "2021-07-01T16:54:29Z" + "created_at": "2024-02-13T20:56:04Z", + "updated_at": "2024-02-13T20:56:05Z", + "expires_at": "2024-05-13T20:55:58Z", + "workflow_run": { + "id": 7892624040, + "repository_id": 348674220, + "head_repository_id": 348674220, + "head_branch": "main", + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4" + } }, { - "id": 51301319, - "node_id": "MDg6QXJ0aWZhY3Q1MTMwMTMxOQ==", - "name": "artifact1", - "size_in_bytes": 10, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301319", - "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301319/zip", + "id": 1242831517, + "node_id": "MDg6QXJ0aWZhY3QxMjQyODMxNTE3", + "name": "artifact2", + "size_in_bytes": 152, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831517", + "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831517/zip", "expired": false, - "created_at": "2021-04-02T16:54:32Z", - "updated_at": "2021-04-02T16:54:32Z", - "expires_at": "2021-07-01T16:54:27Z" + "created_at": "2024-02-13T20:55:59Z", + "updated_at": "2024-02-13T20:55:59Z", + "expires_at": "2024-05-13T20:55:47Z", + "workflow_run": { + "id": 7892624040, + "repository_id": 348674220, + "head_repository_id": 348674220, + "head_branch": "main", + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4" + } } ] } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/3-r_h_g_actions_workflows_artifacts-workflowyml.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/2-r_h_g_actions_workflows_artifacts-workflowyml.json similarity index 100% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/3-r_h_g_actions_workflows_artifacts-workflowyml.json rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/2-r_h_g_actions_workflows_artifacts-workflowyml.json diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/4-r_h_g_actions_runs.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/3-r_h_g_actions_runs.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/4-r_h_g_actions_runs.json rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/3-r_h_g_actions_runs.json index b7ce26e337..52580300ee 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/4-r_h_g_actions_runs.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/3-r_h_g_actions_runs.json @@ -1,36 +1,82 @@ { - "total_count": 95, + "total_count": 77, "workflow_runs": [ { - "id": 712241595, + "id": 7890467516, "name": "Artifacts workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMjQxNTk1", + "node_id": "WFR_kwLOFMhYrM8AAAAB1k76vA", "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 9, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 47, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", "workflow_id": 7433027, - "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", + "check_suite_id": 20720200513, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0wUrQQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516", "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", + "created_at": "2024-02-13T17:32:20Z", + "updated_at": "2024-02-13T17:32:32Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T17:32:20Z", + "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/7890467516/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20720200513", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516/rerun", + "previous_attempt_url": null, "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create artifacts-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/6-r_h_g_actions_runs.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/5-r_h_g_actions_runs.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/6-r_h_g_actions_runs.json rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/5-r_h_g_actions_runs.json index e8318ebfa9..e390a6de8e 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/6-r_h_g_actions_runs.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/5-r_h_g_actions_runs.json @@ -1,36 +1,82 @@ { - "total_count": 78, + "total_count": 39, "workflow_runs": [ { - "id": 712243851, + "id": 7892624040, "name": "Artifacts workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMjQzODUx", + "node_id": "WFR_kwLOFMhYrM8AAAAB1m_iqA", "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 10, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 48, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", "workflow_id": 7433027, - "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", + "check_suite_id": 20725947293, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE01zbnQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7892624040", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7892624040", "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", + "created_at": "2024-02-13T20:55:46Z", + "updated_at": "2024-02-13T20:56:04Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T20:55:46Z", + "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/7892624040/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7892624040/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20725947293", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7892624040/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7892624040/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7892624040/rerun", + "previous_attempt_url": null, "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create artifacts-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -176,35 +222,81 @@ } }, { - "id": 712241595, + "id": 7890467516, "name": "Artifacts workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMjQxNTk1", + "node_id": "WFR_kwLOFMhYrM8AAAAB1k76vA", "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 9, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 47, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", "workflow_id": 7433027, - "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", + "check_suite_id": 20720200513, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0wUrQQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516", "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", + "created_at": "2024-02-13T17:32:20Z", + "updated_at": "2024-02-13T17:32:32Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T17:32:20Z", + "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/7890467516/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20720200513", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890467516/rerun", + "previous_attempt_url": null, "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create artifacts-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -350,35 +442,81 @@ } }, { - "id": 712238973, + "id": 7890382765, "name": "Artifacts workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMjM4OTcz", + "node_id": "WFR_kwLOFMhYrM8AAAAB1k2vrQ", "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 8, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 46, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", "workflow_id": 7433027, - "check_suite_id": 2408667740, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA4NjY3NzQw", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712238973", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/712238973", + "check_suite_id": 20719982137, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0wHWOQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890382765", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890382765", "pull_requests": [], - "created_at": "2021-04-02T16:52:07Z", - "updated_at": "2021-04-02T16:52:21Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712238973/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712238973/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2408667740", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712238973/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712238973/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712238973/rerun", + "created_at": "2024-02-13T17:25:33Z", + "updated_at": "2024-02-13T17:25:43Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T17:25:33Z", + "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/7890382765/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890382765/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20719982137", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890382765/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890382765/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890382765/rerun", + "previous_attempt_url": null, "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create artifacts-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -524,35 +662,81 @@ } }, { - "id": 712227052, + "id": 7890368697, "name": "Artifacts workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMjI3MDUy", + "node_id": "WFR_kwLOFMhYrM8AAAAB1k14uQ", "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 7, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 45, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", "workflow_id": 7433027, - "check_suite_id": 2408639128, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA4NjM5MTI4", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712227052", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/712227052", + "check_suite_id": 20719944408, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0wFC2A", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890368697", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890368697", "pull_requests": [], - "created_at": "2021-04-02T16:46:44Z", - "updated_at": "2021-04-02T16:47:01Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712227052/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712227052/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2408639128", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712227052/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712227052/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712227052/rerun", + "created_at": "2024-02-13T17:24:24Z", + "updated_at": "2024-02-13T17:24:39Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T17:24:24Z", + "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/7890368697/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890368697/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20719944408", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890368697/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890368697/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890368697/rerun", + "previous_attempt_url": null, "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create artifacts-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -698,35 +882,81 @@ } }, { - "id": 712224934, + "id": 7890256229, "name": "Artifacts workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMjI0OTM0", + "node_id": "WFR_kwLOFMhYrM8AAAAB1kvBZQ", "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 6, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 44, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", "workflow_id": 7433027, - "check_suite_id": 2408634151, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA4NjM0MTUx", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712224934", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/712224934", + "check_suite_id": 20719645507, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0vyzQw", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890256229", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890256229", "pull_requests": [], - "created_at": "2021-04-02T16:45:49Z", - "updated_at": "2021-04-02T16:46:07Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712224934/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712224934/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2408634151", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712224934/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712224934/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712224934/rerun", + "created_at": "2024-02-13T17:15:56Z", + "updated_at": "2024-02-13T17:16:12Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T17:15:56Z", + "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/7890256229/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890256229/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20719645507", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890256229/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890256229/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890256229/rerun", + "previous_attempt_url": null, "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create artifacts-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -872,35 +1102,81 @@ } }, { - "id": 712211869, + "id": 7890235627, "name": "Artifacts workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMjExODY5", + "node_id": "WFR_kwLOFMhYrM8AAAAB1ktw6w", "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 5, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 43, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", "workflow_id": 7433027, - "check_suite_id": 2408603538, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA4NjAzNTM4", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712211869", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/712211869", + "check_suite_id": 20719588548, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0vvUxA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890235627", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890235627", "pull_requests": [], - "created_at": "2021-04-02T16:40:02Z", - "updated_at": "2021-04-02T16:40:16Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712211869/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712211869/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2408603538", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712211869/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712211869/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712211869/rerun", + "created_at": "2024-02-13T17:14:14Z", + "updated_at": "2024-02-13T17:14:26Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T17:14:14Z", + "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/7890235627/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890235627/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20719588548", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890235627/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890235627/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890235627/rerun", + "previous_attempt_url": null, "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create artifacts-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -1046,35 +1322,81 @@ } }, { - "id": 712206253, + "id": 7890203715, "name": "Artifacts workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMjA2MjUz", + "node_id": "WFR_kwLOFMhYrM8AAAAB1kr0Qw", "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 4, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 42, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", "workflow_id": 7433027, - "check_suite_id": 2408590466, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA4NTkwNDY2", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712206253", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/712206253", + "check_suite_id": 20719500693, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0vp9lQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890203715", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890203715", "pull_requests": [], - "created_at": "2021-04-02T16:37:36Z", - "updated_at": "2021-04-02T16:37:51Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712206253/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712206253/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2408590466", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712206253/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712206253/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712206253/rerun", + "created_at": "2024-02-13T17:11:45Z", + "updated_at": "2024-02-13T17:12: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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T17:11:45Z", + "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/7890203715/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890203715/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20719500693", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890203715/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890203715/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890203715/rerun", + "previous_attempt_url": null, "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create artifacts-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -1220,35 +1542,81 @@ } }, { - "id": 712169335, + "id": 7890169444, "name": "Artifacts workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMTY5MzM1", + "node_id": "WFR_kwLOFMhYrM8AAAAB1kpuZA", "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 3, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 41, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", "workflow_id": 7433027, - "check_suite_id": 2408502222, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA4NTAyMjIy", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712169335", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/712169335", + "check_suite_id": 20719408154, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0vkUGg", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890169444", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890169444", "pull_requests": [], - "created_at": "2021-04-02T16:21:07Z", - "updated_at": "2021-04-02T16:21:22Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712169335/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712169335/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2408502222", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712169335/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712169335/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712169335/rerun", + "created_at": "2024-02-13T17:09:05Z", + "updated_at": "2024-02-13T17:09:20Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T17:09:05Z", + "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/7890169444/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890169444/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20719408154", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890169444/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890169444/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890169444/rerun", + "previous_attempt_url": null, "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create artifacts-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -1394,35 +1762,81 @@ } }, { - "id": 712167094, + "id": 7890133765, "name": "Artifacts workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzEyMTY3MDk0", + "node_id": "WFR_kwLOFMhYrM8AAAAB1knjBQ", "head_branch": "main", - "head_sha": "40fdaab83052625585482a86769a73e317f6e7c3", - "run_number": 2, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 40, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", "workflow_id": 7433027, - "check_suite_id": 2408497142, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA4NDk3MTQy", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712167094", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/712167094", + "check_suite_id": 20719315179, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0veo6w", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890133765", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890133765", "pull_requests": [], - "created_at": "2021-04-02T16:20:12Z", - "updated_at": "2021-04-02T16:20:29Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712167094/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712167094/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2408497142", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712167094/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712167094/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712167094/rerun", + "created_at": "2024-02-13T17:06:29Z", + "updated_at": "2024-02-13T17:06: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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T17:06:29Z", + "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/7890133765/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890133765/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20719315179", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890133765/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890133765/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890133765/rerun", + "previous_attempt_url": null, "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "40fdaab83052625585482a86769a73e317f6e7c3", - "tree_id": "1c9feb95826bf56ea972f7cb5a045c8b0a2e19c7", - "message": "Create artifacts-workflow.yml", - "timestamp": "2021-04-02T15:48:51Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -1568,35 +1982,81 @@ } }, { - "id": 711446981, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzExNDQ2OTgx", + "id": 7890074051, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1kj5ww", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 73, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 39, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2406769353, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA2NzY5MzUz", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711446981", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/711446981", + "workflow_id": 7433027, + "check_suite_id": 20719157521, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0vVBEQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890074051", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890074051", "pull_requests": [], - "created_at": "2021-04-02T10:48:28Z", - "updated_at": "2021-04-02T10:48:51Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711446981/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711446981/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2406769353", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711446981/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711446981/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711446981/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-13T17:02:16Z", + "updated_at": "2024-02-13T17:02:30Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T17:02:16Z", + "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/7890074051/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890074051/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20719157521", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890074051/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890074051/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7890074051/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -1742,35 +2202,81 @@ } }, { - "id": 711445214, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzExNDQ1MjE0", + "id": 7884784105, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1fhB6Q", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 72, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 38, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2406765759, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA2NzY1NzU5", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711445214", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/711445214", + "workflow_id": 7433027, + "check_suite_id": 20704776644, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0hnRxA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884784105", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884784105", "pull_requests": [], - "created_at": "2021-04-02T10:47:41Z", - "updated_at": "2021-04-02T10:47:58Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711445214/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711445214/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2406765759", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711445214/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711445214/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711445214/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-13T10:04:08Z", + "updated_at": "2024-02-13T10:04:20Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T10:04:08Z", + "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/7884784105/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884784105/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20704776644", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884784105/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884784105/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884784105/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -1916,35 +2422,81 @@ } }, { - "id": 711436991, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzExNDM2OTkx", + "id": 7884757191, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1ffYxw", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 71, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 37, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2406747798, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA2NzQ3Nzk4", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711436991", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/711436991", + "workflow_id": 7433027, + "check_suite_id": 20704710581, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0hjPtQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884757191", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884757191", "pull_requests": [], - "created_at": "2021-04-02T10:43:44Z", - "updated_at": "2021-04-02T10:44:02Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711436991/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711436991/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2406747798", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711436991/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711436991/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711436991/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-13T10:02:17Z", + "updated_at": "2024-02-13T10:02:30Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T10:02:17Z", + "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/7884757191/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884757191/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20704710581", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884757191/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884757191/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884757191/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -2090,35 +2642,81 @@ } }, { - "id": 711429185, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzExNDI5MTg1", + "id": 7884709518, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1fcejg", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 70, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 36, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2406730266, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA2NzMwMjY2", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711429185", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/711429185", + "workflow_id": 7433027, + "check_suite_id": 20704582516, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0hbbdA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884709518", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884709518", "pull_requests": [], - "created_at": "2021-04-02T10:39:57Z", - "updated_at": "2021-04-02T10:40:12Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711429185/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711429185/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2406730266", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711429185/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711429185/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711429185/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-13T09:58:32Z", + "updated_at": "2024-02-13T09:58:43Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T09:58: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/7884709518/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884709518/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20704582516", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884709518/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884709518/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884709518/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -2264,35 +2862,81 @@ } }, { - "id": 711420498, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzExNDIwNDk4", + "id": 7884643946, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1fYeag", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 69, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 35, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2406711121, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA2NzExMTIx", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711420498", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/711420498", + "workflow_id": 7433027, + "check_suite_id": 20704393845, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0hP6dQ", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884643946", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884643946", "pull_requests": [], - "created_at": "2021-04-02T10:35:47Z", - "updated_at": "2021-04-02T10:36:02Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711420498/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711420498/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2406711121", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711420498/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711420498/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711420498/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-13T09:52:29Z", + "updated_at": "2024-02-13T09:52:47Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-13T09:52:29Z", + "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/7884643946/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884643946/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20704393845", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884643946/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884643946/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7884643946/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -2438,35 +3082,81 @@ } }, { - "id": 711418083, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzExNDE4MDgz", + "id": 7876688084, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1Xy41A", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 68, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 34, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2406705799, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA2NzA1Nzk5", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711418083", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/711418083", + "workflow_id": 7433027, + "check_suite_id": 20684890158, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0OpgLg", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876688084", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876688084", "pull_requests": [], - "created_at": "2021-04-02T10:34:38Z", - "updated_at": "2021-04-02T10:34:53Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711418083/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711418083/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2406705799", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711418083/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711418083/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711418083/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-12T19:08:20Z", + "updated_at": "2024-02-12T19:08:32Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-12T19:08:20Z", + "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/7876688084/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876688084/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20684890158", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876688084/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876688084/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876688084/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -2612,35 +3302,81 @@ } }, { - "id": 711410294, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzExNDEwMjk0", + "id": 7876654344, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1Xw1CA", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 67, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 33, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2406688456, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA2Njg4NDU2", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711410294", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/711410294", + "workflow_id": 7433027, + "check_suite_id": 20684802350, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0OkJLg", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876654344", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876654344", "pull_requests": [], - "created_at": "2021-04-02T10:31:00Z", - "updated_at": "2021-04-02T10:31:16Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711410294/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711410294/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2406688456", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711410294/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711410294/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711410294/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-12T19:05:14Z", + "updated_at": "2024-02-12T19:05:32Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-12T19:05:14Z", + "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/7876654344/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876654344/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20684802350", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876654344/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876654344/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876654344/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -2786,35 +3522,81 @@ } }, { - "id": 711386978, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzExMzg2OTc4", + "id": 7876478594, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1XmGgg", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 66, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 32, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2406637293, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA2NjM3Mjkz", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711386978", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/711386978", + "workflow_id": 7433027, + "check_suite_id": 20684314484, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0OGXdA", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876478594", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876478594", "pull_requests": [], - "created_at": "2021-04-02T10:20:06Z", - "updated_at": "2021-04-02T10:20:22Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711386978/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711386978/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2406637293", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711386978/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711386978/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711386978/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-12T18:48:20Z", + "updated_at": "2024-02-12T18:48:35Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-12T18:48:20Z", + "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/7876478594/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876478594/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20684314484", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876478594/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876478594/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876478594/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -2960,35 +3742,81 @@ } }, { - "id": 711380027, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzExMzgwMDI3", + "id": 7876462510, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1XlHrg", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 65, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 31, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2406621242, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA2NjIxMjQy", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711380027", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/711380027", + "workflow_id": 7433027, + "check_suite_id": 20684269931, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0ODpaw", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876462510", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876462510", "pull_requests": [], - "created_at": "2021-04-02T10:16:42Z", - "updated_at": "2021-04-02T10:16:58Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711380027/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711380027/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2406621242", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711380027/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711380027/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711380027/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-12T18:46:47Z", + "updated_at": "2024-02-12T18:47: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, + "referenced_workflows": [], + "run_started_at": "2024-02-12T18:46:47Z", + "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/7876462510/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876462510/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20684269931", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876462510/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876462510/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876462510/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -3134,35 +3962,81 @@ } }, { - "id": 711375810, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzExMzc1ODEw", + "id": 7876358939, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1XezGw", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 64, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 30, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2406611567, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDA2NjExNTY3", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711375810", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/711375810", + "workflow_id": 7433027, + "check_suite_id": 20683977239, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0NxyFw", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876358939", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876358939", "pull_requests": [], - "created_at": "2021-04-02T10:14:44Z", - "updated_at": "2021-04-02T10:14:59Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711375810/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711375810/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2406611567", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711375810/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711375810/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/711375810/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-12T18:36:11Z", + "updated_at": "2024-02-12T18:36:24Z", + "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, + "referenced_workflows": [], + "run_started_at": "2024-02-12T18:36: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/GHWorkflowRunTest/actions/runs/7876358939/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876358939/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20683977239", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876358939/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876358939/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876358939/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" @@ -3308,35 +4182,81 @@ } }, { - "id": 709446010, - "name": "Fast workflow", - "node_id": "MDExOldvcmtmbG93UnVuNzA5NDQ2MDEw", + "id": 7876289110, + "name": "Artifacts workflow", + "node_id": "WFR_kwLOFMhYrM8AAAAB1XaiVg", "head_branch": "main", - "head_sha": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "run_number": 63, + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "path": ".github/workflows/artifacts-workflow.yml", + "display_title": "Artifacts workflow", + "run_number": 29, "event": "workflow_dispatch", "status": "completed", "conclusion": "success", - "workflow_id": 6820790, - "check_suite_id": 2402166241, - "check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyNDAyMTY2MjQx", - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/709446010", - "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/709446010", + "workflow_id": 7433027, + "check_suite_id": 20683795462, + "check_suite_node_id": "CS_kwDOFMhYrM8AAAAE0NmsBg", + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876289110", + "html_url": "https://github.com/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876289110", "pull_requests": [], - "created_at": "2021-04-01T18:22:57Z", - "updated_at": "2021-04-01T18:23:25Z", - "jobs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/709446010/jobs", - "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/709446010/logs", - "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/2402166241", - "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/709446010/artifacts", - "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/709446010/cancel", - "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/709446010/rerun", - "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/6820790", + "created_at": "2024-02-12T18:30:13Z", + "updated_at": "2024-02-12T18:30: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, + "referenced_workflows": [], + "run_started_at": "2024-02-12T18:30:13Z", + "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/7876289110/jobs", + "logs_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876289110/logs", + "check_suite_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/check-suites/20683795462", + "artifacts_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876289110/artifacts", + "cancel_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876289110/cancel", + "rerun_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7876289110/rerun", + "previous_attempt_url": null, + "workflow_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027", "head_commit": { - "id": "f6a5c19a67797d64426203b8a7a05a0fd74e5037", - "tree_id": "666bb9f951306171acb21632eca28a386cb35f73", - "message": "Create failing-workflow.yml", - "timestamp": "2021-03-17T10:56:14Z", + "id": "22e72d028675d6b32e2fcc72299163dbbabd80b4", + "tree_id": "d2616cb5a39972155772c8a97796199aff5aae8d", + "message": "Use upload-artifact@v3 and upload-artifact@v4 to test both\n\nSee https://github.com/hub4j/github-api/issues/1790", + "timestamp": "2024-02-12T16:24:37Z", "author": { "name": "Guillaume Smet", "email": "guillaume.smet@gmail.com" diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/6-r_h_g_actions_runs_7892624040_artifacts.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/6-r_h_g_actions_runs_7892624040_artifacts.json new file mode 100644 index 0000000000..cdd1a736c3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/6-r_h_g_actions_runs_7892624040_artifacts.json @@ -0,0 +1,43 @@ +{ + "total_count": 2, + "artifacts": [ + { + "id": 1242831517, + "node_id": "MDg6QXJ0aWZhY3QxMjQyODMxNTE3", + "name": "artifact2", + "size_in_bytes": 152, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831517", + "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831517/zip", + "expired": false, + "created_at": "2024-02-13T20:55:59Z", + "updated_at": "2024-02-13T20:55:59Z", + "expires_at": "2024-05-13T20:55:47Z", + "workflow_run": { + "id": 7892624040, + "repository_id": 348674220, + "head_repository_id": 348674220, + "head_branch": "main", + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4" + } + }, + { + "id": 1242831742, + "node_id": "MDg6QXJ0aWZhY3QxMjQyODMxNzQy", + "name": "artifact1", + "size_in_bytes": 10, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831742", + "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831742/zip", + "expired": false, + "created_at": "2024-02-13T20:56:04Z", + "updated_at": "2024-02-13T20:56:05Z", + "expires_at": "2024-05-13T20:55:58Z", + "workflow_run": { + "id": 7892624040, + "repository_id": 348674220, + "head_repository_id": 348674220, + "head_branch": "main", + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4" + } + } + ] +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/7-r_h_g_actions_runs_712243851_artifacts.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/7-r_h_g_actions_runs_712243851_artifacts.json deleted file mode 100644 index bc411d8b0e..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/7-r_h_g_actions_runs_712243851_artifacts.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "total_count": 2, - "artifacts": [ - { - "id": 51301319, - "node_id": "MDg6QXJ0aWZhY3Q1MTMwMTMxOQ==", - "name": "artifact1", - "size_in_bytes": 10, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301319", - "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301319/zip", - "expired": false, - "created_at": "2021-04-02T16:54:32Z", - "updated_at": "2021-04-02T16:54:32Z", - "expires_at": "2021-07-01T16:54:27Z" - }, - { - "id": 51301321, - "node_id": "MDg6QXJ0aWZhY3Q1MTMwMTMyMQ==", - "name": "artifact2", - "size_in_bytes": 10, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301321", - "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301321/zip", - "expired": false, - "created_at": "2021-04-02T16:54:32Z", - "updated_at": "2021-04-02T16:54:32Z", - "expires_at": "2021-07-01T16:54:29Z" - } - ] -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/9-r_h_g_actions_artifacts_1242831742.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/9-r_h_g_actions_artifacts_1242831742.json new file mode 100644 index 0000000000..59b11711ad --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/9-r_h_g_actions_artifacts_1242831742.json @@ -0,0 +1,19 @@ +{ + "id": 1242831742, + "node_id": "MDg6QXJ0aWZhY3QxMjQyODMxNzQy", + "name": "artifact1", + "size_in_bytes": 10, + "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831742", + "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831742/zip", + "expired": false, + "created_at": "2024-02-13T20:56:04Z", + "updated_at": "2024-02-13T20:56:05Z", + "expires_at": "2024-05-13T20:55:58Z", + "workflow_run": { + "id": 7892624040, + "repository_id": 348674220, + "head_repository_id": 348674220, + "head_branch": "main", + "head_sha": "22e72d028675d6b32e2fcc72299163dbbabd80b4" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/9-r_h_g_actions_artifacts_51301319.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/9-r_h_g_actions_artifacts_51301319.json deleted file mode 100644 index 7f5941544a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/__files/9-r_h_g_actions_artifacts_51301319.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "id": 51301319, - "node_id": "MDg6QXJ0aWZhY3Q1MTMwMTMxOQ==", - "name": "artifact1", - "size_in_bytes": 10, - "url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301319", - "archive_download_url": "https://api.github.com/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301319/zip", - "expired": false, - "created_at": "2021-04-02T16:54:32Z", - "updated_at": "2021-04-02T16:54:32Z", - "expires_at": "2021-07-01T16:54:27Z" -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/1-r_h_ghworkflowruntest.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/1-r_h_ghworkflowruntest.json new file mode 100644 index 0000000000..fd6cab7485 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/1-r_h_ghworkflowruntest.json @@ -0,0 +1,53 @@ +{ + "id": "f8dc1f92-234c-49fc-9ec3-02a886a738c6", + "name": "repos_hub4j-test-org_ghworkflowruntest", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-r_h_ghworkflowruntest.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:55:43 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"fbd81c7cf9e3f749163b9cab452c0ac22d25c62c5e4b7c0e9120d3d7da193ebb\"", + "Last-Modified": "Wed, 08 Nov 2023 21:14:03 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-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4999", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "1", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C3C4:15FEF7:12B0823:12DCADF:65CBD74F" + } + }, + "uuid": "f8dc1f92-234c-49fc-9ec3-02a886a738c6", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/1-user.json deleted file mode 100644 index f50e44b278..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/1-user.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "id": "bc054b84-aa33-4560-bb2c-87f45d44fa7c", - "name": "user", - "request": { - "url": "/user", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "1-user.json", - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54: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/\"3ae5b3507a411c059ce94da9899ddc8560519d870de99209d959ff79f01fa16a\"", - "Last-Modified": "Thu, 01 Apr 2021 17:18:59 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": "4874", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "126", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-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:FBBA34:FFFE78:60674C36" - } - }, - "uuid": "bc054b84-aa33-4560-bb2c-87f45d44fa7c", - "persistent": true, - "insertionIndex": 1 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/10-r_h_g_actions_artifacts_1242831517.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/10-r_h_g_actions_artifacts_1242831517.json new file mode 100644 index 0000000000..7df626abf2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/10-r_h_g_actions_artifacts_1242831517.json @@ -0,0 +1,52 @@ +{ + "id": "92846ac7-3a6a-46a1-a263-8515e7a379ee", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_1242831517", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831517", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "10-r_h_g_actions_artifacts_1242831517.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:56: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/\"e970ff2bbc1043096ce76fee64d9509ca5e6c8a951d9f8f9ffddcaff5637dc7c\"", + "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-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4985", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "15", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "A13E:CA2C4:15A7724:15D4C78:65CBD76B" + } + }, + "uuid": "92846ac7-3a6a-46a1-a263-8515e7a379ee", + "persistent": true, + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/10-r_h_g_actions_artifacts_51301321.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/10-r_h_g_actions_artifacts_51301321.json deleted file mode 100644 index cb07a4222e..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/10-r_h_g_actions_artifacts_51301321.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "id": "e4ad7893-156b-4c31-a791-121059fb0fe1", - "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_51301321", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301321", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "10-r_h_g_actions_artifacts_51301321.json", - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54: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/\"b0c351ddf05fad0242189ad8e746079330817e9b3b867e4367919ec808b7a704\"", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4859", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "141", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-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:FBE591:1002AC1:60674C50" - } - }, - "uuid": "e4ad7893-156b-4c31-a791-121059fb0fe1", - "persistent": true, - "insertionIndex": 10 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/11-r_h_g_actions_artifacts.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/11-r_h_g_actions_artifacts.json index 777122392f..c7f99594a8 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/11-r_h_g_actions_artifacts.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/11-r_h_g_actions_artifacts.json @@ -1,5 +1,5 @@ { - "id": "509ef863-9a06-4fd6-ab2b-6566ae273e2f", + "id": "7a8a1233-c399-475e-ae4a-e4f7c328f762", "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts", "request": { "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts?per_page=2", @@ -7,6 +7,9 @@ "headers": { "Accept": { "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" } } }, @@ -15,32 +18,36 @@ "bodyFileName": "11-r_h_g_actions_artifacts.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54:40 GMT", + "Date": "Tue, 13 Feb 2024 20:56: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/\"149b71b087f51d94c7e136b28a33c3d5848975866e010f4ad7dc7c02e112f474\"", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"ac901ba38c8700b2ddfa49107bbadfc17a93e7e1b59fe8e9c721f2f0631b04fc\"", + "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-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4858", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "142", + "X-RateLimit-Remaining": "4984", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "16", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "8870:697D:FBE60E:1002B39:60674C50", - "Link": "; rel=\"next\", ; rel=\"last\"" + "X-GitHub-Request-Id": "A14E:3FD50:1598F65:15C7932:65CBD76B", + "Link": "; rel=\"next\", ; rel=\"last\"" } }, - "uuid": "509ef863-9a06-4fd6-ab2b-6566ae273e2f", + "uuid": "7a8a1233-c399-475e-ae4a-e4f7c328f762", "persistent": true, "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/12-r_h_g_actions_artifacts_1242831742.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/12-r_h_g_actions_artifacts_1242831742.json new file mode 100644 index 0000000000..403e039740 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/12-r_h_g_actions_artifacts_1242831742.json @@ -0,0 +1,45 @@ +{ + "id": "cf5424dc-fc3f-4c6f-bb31-2fae5ad09816", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_1242831742", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831742", + "method": "DELETE", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + } + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:56: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": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4983", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "17", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "A152:20090:1375EB6:13A2B61:65CBD76B" + } + }, + "uuid": "cf5424dc-fc3f-4c6f-bb31-2fae5ad09816", + "persistent": true, + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/12-r_h_g_actions_artifacts_51301319.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/12-r_h_g_actions_artifacts_51301319.json deleted file mode 100644 index 117aaa2c36..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/12-r_h_g_actions_artifacts_51301319.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "id": "cba3fb22-4e4a-4eb5-9340-f76bb4acbb53", - "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_51301319", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301319", - "method": "DELETE", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 204, - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54:40 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": "4857", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "143", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-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": "8870:697D:FBE67D:1002BC4:60674C50" - } - }, - "uuid": "cba3fb22-4e4a-4eb5-9340-f76bb4acbb53", - "persistent": true, - "insertionIndex": 12 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/13-r_h_g_actions_artifacts_1242831742.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/13-r_h_g_actions_artifacts_1242831742.json new file mode 100644 index 0000000000..30614fd6f3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/13-r_h_g_actions_artifacts_1242831742.json @@ -0,0 +1,49 @@ +{ + "id": "ef58f085-1ee4-4f3c-91b6-97246ceddee3", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_1242831742", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831742", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + } + }, + "response": { + "status": 404, + "body": "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/actions/artifacts#get-an-artifact\"}", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:56:12 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": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4982", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "18", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "A158:3FD50:1599268:15C7C47:65CBD76B" + } + }, + "uuid": "ef58f085-1ee4-4f3c-91b6-97246ceddee3", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-GHWorkflowRunTest-actions-artifacts-1242831742", + "requiredScenarioState": "scenario-1-repos-hub4j-test-org-GHWorkflowRunTest-actions-artifacts-1242831742-2", + "insertionIndex": 13 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/13-r_h_g_actions_artifacts_51301319.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/13-r_h_g_actions_artifacts_51301319.json deleted file mode 100644 index 2fe2d078c7..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/13-r_h_g_actions_artifacts_51301319.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "id": "2864d3f4-92fe-480e-8359-5d5739309efe", - "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_51301319", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301319", - "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/actions#get-an-artifact\"}", - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54:41 GMT", - "Content-Type": "application/json; charset=utf-8", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4856", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "144", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-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": "8870:697D:FBE74B:1002C86:60674C50" - } - }, - "uuid": "2864d3f4-92fe-480e-8359-5d5739309efe", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-GHWorkflowRunTest-actions-artifacts-51301319", - "requiredScenarioState": "scenario-1-repos-hub4j-test-org-GHWorkflowRunTest-actions-artifacts-51301319-2", - "insertionIndex": 13 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/2-r_h_g_actions_workflows_artifacts-workflowyml.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/2-r_h_g_actions_workflows_artifacts-workflowyml.json new file mode 100644 index 0000000000..517fe48e94 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/2-r_h_g_actions_workflows_artifacts-workflowyml.json @@ -0,0 +1,52 @@ +{ + "id": "06d01242-32d3-4f5c-8b34-a2ca31f501ed", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_workflows_artifacts-workflowyml", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/artifacts-workflow.yml", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "2-r_h_g_actions_workflows_artifacts-workflowyml.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:55:43 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"c3e3c5146e51cf2d10c15417ea72f6ca0bb36d9bb55a10882efc5a76d324d7e2\"", + "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-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4998", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "2", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C3D0:24E2B6:68C61C:69D478:65CBD74F" + } + }, + "uuid": "06d01242-32d3-4f5c-8b34-a2ca31f501ed", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/2-r_h_ghworkflowruntest.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/2-r_h_ghworkflowruntest.json deleted file mode 100644 index 50df7c3341..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/2-r_h_ghworkflowruntest.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "id": "8cbe643c-5fe7-450a-9d2d-6cc973c9616d", - "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": "2-r_h_ghworkflowruntest.json", - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54: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/\"2375b97c738c66483605718403ac62b2baf890da91c30e92679e4f3b8fbfa6e3\"", - "Last-Modified": "Fri, 02 Apr 2021 15:48:53 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": "4872", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "128", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-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:FBBB42:FFFFB1:60674C37" - } - }, - "uuid": "8cbe643c-5fe7-450a-9d2d-6cc973c9616d", - "persistent": true, - "insertionIndex": 2 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/3-r_h_g_actions_runs.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/3-r_h_g_actions_runs.json new file mode 100644 index 0000000000..1aa9c78922 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/3-r_h_g_actions_runs.json @@ -0,0 +1,53 @@ +{ + "id": "d4b91e11-a53f-442b-886a-da8e5e530d95", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs?per_page=1", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "3-r_h_g_actions_runs.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:55:43 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding, Accept, X-Requested-With" + ], + "ETag": "W/\"913e2a3fa43bb5b969a7ea786efe9646b282b262af723ace8c742d3c90cd2595\"", + "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-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4997", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "3", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C3E0:26CE7C:151DEA9:154C382:65CBD74F", + "Link": "; rel=\"next\", ; rel=\"last\"" + } + }, + "uuid": "d4b91e11-a53f-442b-886a-da8e5e530d95", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/3-r_h_g_actions_workflows_artifacts-workflowyml.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/3-r_h_g_actions_workflows_artifacts-workflowyml.json deleted file mode 100644 index b11771f383..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/3-r_h_g_actions_workflows_artifacts-workflowyml.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "id": "a9374bfd-5990-4eed-bc74-625105fa945b", - "name": "repos_hub4j-test-org_ghworkflowruntest_actions_workflows_artifacts-workflowyml", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/artifacts-workflow.yml", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "3-r_h_g_actions_workflows_artifacts-workflowyml.json", - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54: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/\"74e899804cd20f105ebf1ba9bdcf4490182115349c7f2c08b533ac01f8b12d64\"", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4871", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "129", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-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:FBBBB2:1000028:60674C37" - } - }, - "uuid": "a9374bfd-5990-4eed-bc74-625105fa945b", - "persistent": true, - "insertionIndex": 3 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/4-r_h_g_actions_runs.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/4-r_h_g_actions_runs.json deleted file mode 100644 index 4a8a128539..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/4-r_h_g_actions_runs.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "id": "678805ca-467e-4918-9d9e-ff44c91bbe79", - "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs?per_page=1", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "4-r_h_g_actions_runs.json", - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54: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/\"f9909e44988c7b6a1ecc40fbc98266069a3b50b027ed9b71001e598e83bdee55\"", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4870", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "130", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-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:FBBC31:10000B6:60674C37", - "Link": "; rel=\"next\", ; rel=\"last\"" - } - }, - "uuid": "678805ca-467e-4918-9d9e-ff44c91bbe79", - "persistent": true, - "insertionIndex": 4 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/4-r_h_g_actions_workflows_7433027_dispatches.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/4-r_h_g_actions_workflows_7433027_dispatches.json new file mode 100644 index 0000000000..0593838619 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/4-r_h_g_actions_workflows_7433027_dispatches.json @@ -0,0 +1,52 @@ +{ + "id": "f786fa86-f393-44f7-9ebb-6b284c9d6744", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_workflows_7433027_dispatches", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027/dispatches", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"main\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 204, + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:55:44 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4996", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "4", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "C3E2:14263:15D53BB:1603C46:65CBD750" + } + }, + "uuid": "f786fa86-f393-44f7-9ebb-6b284c9d6744", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/6-r_h_g_actions_runs.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/5-r_h_g_actions_runs.json similarity index 50% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/6-r_h_g_actions_runs.json rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/5-r_h_g_actions_runs.json index bf4381f963..bd0ba810f1 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/6-r_h_g_actions_runs.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/5-r_h_g_actions_runs.json @@ -1,5 +1,5 @@ { - "id": "781f4b9d-2477-4ec0-9e8d-32bf5a6fa088", + "id": "1201f1e6-af33-4d36-ae95-951f1ad45367", "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs", "request": { "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs?branch=main&status=completed&event=workflow_dispatch&per_page=20", @@ -7,40 +7,47 @@ "headers": { "Accept": { "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" } } }, "response": { "status": 200, - "bodyFileName": "6-r_h_g_actions_runs.json", + "bodyFileName": "5-r_h_g_actions_runs.json", "headers": { "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54:38 GMT", + "Date": "Tue, 13 Feb 2024 20:56: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/\"158233711de1a189843695211dd42ec9898b518437eb5e78447c62c2e993f33e\"", - "X-OAuth-Scopes": "repo, user, workflow", + "ETag": "W/\"ce91ee11eae1ed67566b4000f283949030b57122ff49f73c1454a88e08558092\"", + "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-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4863", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "137", + "X-RateLimit-Remaining": "4990", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "10", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "8870:697D:FBE289:10027A5:60674C4E", - "Link": "; rel=\"next\", ; rel=\"last\"" + "X-GitHub-Request-Id": "821E:3FD50:1597D6F:15C6708:65CBD767", + "Link": "; rel=\"next\", ; rel=\"last\"" } }, - "uuid": "781f4b9d-2477-4ec0-9e8d-32bf5a6fa088", + "uuid": "1201f1e6-af33-4d36-ae95-951f1ad45367", "persistent": true, - "insertionIndex": 6 + "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/5-r_h_g_actions_workflows_7433027_dispatches.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/5-r_h_g_actions_workflows_7433027_dispatches.json deleted file mode 100644 index f9dfadac8f..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/5-r_h_g_actions_workflows_7433027_dispatches.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "id": "9bc7501a-904f-4133-b403-abb371f51e61", - "name": "repos_hub4j-test-org_ghworkflowruntest_actions_workflows_7433027_dispatches", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/workflows/7433027/dispatches", - "method": "POST", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - }, - "bodyPatterns": [ - { - "equalToJson": "{\"ref\":\"main\"}", - "ignoreArrayOrder": true, - "ignoreExtraElements": false - } - ] - }, - "response": { - "status": 204, - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54:16 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": "4869", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "131", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-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": "8870:697D:FBBCC4:100014D:60674C38" - } - }, - "uuid": "9bc7501a-904f-4133-b403-abb371f51e61", - "persistent": true, - "insertionIndex": 5 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/6-r_h_g_actions_runs_7892624040_artifacts.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/6-r_h_g_actions_runs_7892624040_artifacts.json new file mode 100644 index 0000000000..563e2f89a2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/6-r_h_g_actions_runs_7892624040_artifacts.json @@ -0,0 +1,52 @@ +{ + "id": "6e3ea229-8059-467d-a6b7-32e7aa9626a2", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs_7892624040_artifacts", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/7892624040/artifacts", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "6-r_h_g_actions_runs_7892624040_artifacts.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:56: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/\"74c198283df61b9d2ec595bfc259dfddbb1f6fe24347daf790c9e2ae4e43eaec\"", + "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-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4989", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "11", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "8222:22C8E2:14B5F4E:14E33DC:65CBD768" + } + }, + "uuid": "6e3ea229-8059-467d-a6b7-32e7aa9626a2", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/7-r_h_g_actions_artifacts_1242831742_zip.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/7-r_h_g_actions_artifacts_1242831742_zip.json new file mode 100644 index 0000000000..58db99bc15 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/7-r_h_g_actions_artifacts_1242831742_zip.json @@ -0,0 +1,44 @@ +{ + "id": "da8e77a6-987d-40af-86d5-fc170c504715", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_1242831742_zip", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831742/zip", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + } + }, + "response": { + "status": 302, + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:56:08 GMT", + "Content-Type": "text/html;charset=utf-8", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4988", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "12", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "8230:3A6BFF:147FAC7:14ACFDC:65CBD768", + "Location": "https://pipelines.actions.githubusercontent.com/u72ug1Ib1ZBCtek798HyrDYOU28rBK6ssrOKf37ZxrpgUbk95I/_apis/pipelines/1/runs/75/signedartifactscontent?artifactName=artifact1&urlExpires=2024-02-13T20%3A57%3A08.8035464Z&urlSigningMethod=HMACV2&urlSignature=V5LQZfOCN4yxeW3luEsxnxohpUdIpNTXhLFbFsPF3hw%3D" + } + }, + "uuid": "da8e77a6-987d-40af-86d5-fc170c504715", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/7-r_h_g_actions_runs_712243851_artifacts.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/7-r_h_g_actions_runs_712243851_artifacts.json deleted file mode 100644 index 41b3738b23..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/7-r_h_g_actions_runs_712243851_artifacts.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "id": "73071880-8d5e-4727-9ded-7aeac9c47e67", - "name": "repos_hub4j-test-org_ghworkflowruntest_actions_runs_712243851_artifacts", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/runs/712243851/artifacts", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "7-r_h_g_actions_runs_712243851_artifacts.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/\"19b71e88d7a6215f7134a8e96ecb8d7368cb8ac845c5703bdf14f161388bdfdc\"", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4862", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "138", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-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:FBE34F:100287B:60674C4E" - } - }, - "uuid": "73071880-8d5e-4727-9ded-7aeac9c47e67", - "persistent": true, - "insertionIndex": 7 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/8-r_h_g_actions_artifacts_1242831517_zip.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/8-r_h_g_actions_artifacts_1242831517_zip.json new file mode 100644 index 0000000000..dcfdf9c08c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/8-r_h_g_actions_artifacts_1242831517_zip.json @@ -0,0 +1,44 @@ +{ + "id": "ee1b66e1-3d5c-4eb3-bd47-e9b35914acb5", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_1242831517_zip", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831517/zip", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + } + }, + "response": { + "status": 302, + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:56:10 GMT", + "Content-Type": "text/html;charset=utf-8", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4987", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "13", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "8232:23CC0B:144955A:1476AB3:65CBD769", + "Location": "https://productionresults.blob.core.windows.net/actions-results/92a9e79d-ed85-4732-a5ad-1f062c2d74fe/workflow-job-run-ca395085-040a-526b-2ce8-bdc85f692774/artifacts/41e13e5872dd3fedca6f5f5f561c6596ac66faa24903c2c39be6d405b37f3d25.zip?rscd=attachment%3B+filename%3D%22artifact2.zip%22&se=2024-02-13T21%3A06%3A10Z&sig=hHop7npL6%2Bpy3iIOyxNzxQy2uxv5%2Fi6RsbKqfG5SSgs%3D&sp=r&spr=https&sr=b&st=2024-02-13T20%3A56%3A10Z&sv=2021-12-02&originalHost=productionresultssa17.blob.core.windows.net" + } + }, + "uuid": "ee1b66e1-3d5c-4eb3-bd47-e9b35914acb5", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/8-r_h_g_actions_artifacts_51301319_zip.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/8-r_h_g_actions_artifacts_51301319_zip.json deleted file mode 100644 index 2807d929e0..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/8-r_h_g_actions_artifacts_51301319_zip.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "id": "b87f3821-c650-400e-9dd4-b2e5f4715de7", - "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_51301319_zip", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301319/zip", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 302, - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54:39 GMT", - "Content-Type": "text/html;charset=utf-8", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4861", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "139", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-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": "8870:697D:FBE3EA:1002910:60674C4F", - "Location": "https://pipelines.actions.githubusercontent.com/u72ug1Ib1ZBCtek798HyrDYOU28rBK6ssrOKf37ZxrpgUbk95I/_apis/pipelines/1/runs/120/signedartifactscontent?artifactName=artifact1&urlExpires=2021-04-02T16%3A55%3A39.1977156Z&urlSigningMethod=HMACV1&urlSignature=VvF5G83lRj8fd2Win63OksXWXlzV9hwcRINMytp2LMI%3D" - } - }, - "uuid": "b87f3821-c650-400e-9dd4-b2e5f4715de7", - "persistent": true, - "insertionIndex": 8 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/9-r_h_g_actions_artifacts_1242831742.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/9-r_h_g_actions_artifacts_1242831742.json new file mode 100644 index 0000000000..1f46886e3d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/9-r_h_g_actions_artifacts_1242831742.json @@ -0,0 +1,55 @@ +{ + "id": "db423064-b1d4-479d-8b67-0f1f24886ef9", + "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_1242831742", + "request": { + "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/1242831742", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "equalTo": "Basic cGxhY2Vob2xkZXItdXNlcjpwbGFjZWhvbGRlci1wYXNzd29yZA==" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "9-r_h_g_actions_artifacts_1242831742.json", + "headers": { + "Server": "GitHub.com", + "Date": "Tue, 13 Feb 2024 20:56: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/\"dc478338b1252c0be1fb55a7bdd131c210837bf2f5961a75d2be46f2ab0a337b\"", + "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-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4986", + "X-RateLimit-Reset": "1707861343", + "X-RateLimit-Used": "14", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "8238:3BCCC0:142CC25:145A4EF:65CBD76A" + } + }, + "uuid": "db423064-b1d4-479d-8b67-0f1f24886ef9", + "persistent": true, + "scenarioName": "scenario-1-repos-hub4j-test-org-GHWorkflowRunTest-actions-artifacts-1242831742", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-hub4j-test-org-GHWorkflowRunTest-actions-artifacts-1242831742-2", + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/9-r_h_g_actions_artifacts_51301319.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/9-r_h_g_actions_artifacts_51301319.json deleted file mode 100644 index fe5a655161..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts/mappings/9-r_h_g_actions_artifacts_51301319.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "id": "f1ecc18f-221e-4fd9-92bc-88d3c871c661", - "name": "repos_hub4j-test-org_ghworkflowruntest_actions_artifacts_51301319", - "request": { - "url": "/repos/hub4j-test-org/GHWorkflowRunTest/actions/artifacts/51301319", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "9-r_h_g_actions_artifacts_51301319.json", - "headers": { - "Server": "GitHub.com", - "Date": "Fri, 02 Apr 2021 16:54:39 GMT", - "Content-Type": "application/json; charset=utf-8", - "Cache-Control": "private, max-age=60, s-maxage=60", - "Vary": [ - "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With" - ], - "ETag": "W/\"c6e1cb5163135c56b1e05851b5182cdd6fb23ee97773a90eed2b8f4d59bef82f\"", - "X-OAuth-Scopes": "repo, user, workflow", - "X-Accepted-OAuth-Scopes": "", - "X-GitHub-Media-Type": "unknown, github.v3", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4860", - "X-RateLimit-Reset": "1617384010", - "X-RateLimit-Used": "140", - "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options": "deny", - "X-Content-Type-Options": "nosniff", - "X-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:FBE520:1002A4E:60674C4F" - } - }, - "uuid": "f1ecc18f-221e-4fd9-92bc-88d3c871c661", - "persistent": true, - "scenarioName": "scenario-1-repos-hub4j-test-org-GHWorkflowRunTest-actions-artifacts-51301319", - "requiredScenarioState": "Started", - "newScenarioState": "scenario-1-repos-hub4j-test-org-GHWorkflowRunTest-actions-artifacts-51301319-2", - "insertionIndex": 9 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/__files/1-u_a_p_1_runs_75_signedartifactscontent.txt b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/__files/1-u_a_p_1_runs_75_signedartifactscontent.txt new file mode 100644 index 0000000000..262207c328 Binary files /dev/null and b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/__files/1-u_a_p_1_runs_75_signedartifactscontent.txt differ diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/__files/u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_120_signedartifactscontent-1.txt b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/__files/u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_120_signedartifactscontent-1.txt deleted file mode 100644 index 580dcf6bac..0000000000 Binary files a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/__files/u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_120_signedartifactscontent-1.txt and /dev/null differ diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/mappings/1-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/mappings/1-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json deleted file mode 100644 index 025bde870c..0000000000 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/mappings/1-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "id": "1dc7d887-335f-4cdb-bb0f-147ed9e5dbbb", - "name": "u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_120_signedartifactscontent", - "request": { - "url": "/u72ug1Ib1ZBCtek798HyrDYOU28rBK6ssrOKf37ZxrpgUbk95I/_apis/pipelines/1/runs/120/signedartifactscontent?artifactName=artifact1&urlExpires=2021-04-02T16%3A55%3A39.1977156Z&urlSigningMethod=HMACV1&urlSignature=VvF5G83lRj8fd2Win63OksXWXlzV9hwcRINMytp2LMI%3D", - "method": "GET", - "headers": { - "Accept": { - "equalTo": "application/vnd.github.v3+json" - } - } - }, - "response": { - "status": 200, - "bodyFileName": "u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_120_signedartifactscontent-1.txt", - "headers": { - "Cache-Control": "no-store,no-cache", - "Pragma": "no-cache", - "Content-Type": "application/zip", - "Strict-Transport-Security": "max-age=2592000", - "X-TFS-ProcessId": "2ca47dbe-cb79-45d6-a378-ee17f63fb32b", - "ActivityId": "4b17ca78-9393-4768-b4f1-5998e4f4b183", - "X-TFS-Session": "4b17ca78-9393-4768-b4f1-5998e4f4b183", - "X-VSS-E2EID": "4b17ca78-9393-4768-b4f1-5998e4f4b183", - "X-VSS-SenderDeploymentId": "2c974d96-2c30-cef5-eff2-3e0511a903a5", - "Content-Disposition": "attachment; filename=artifact1.zip; filename*=UTF-8''artifact1.zip", - "X-MSEdge-Ref": "Ref A: 2F55E10F81BC47DF8F479AEA94E19526 Ref B: MRS20EDGE0113 Ref C: 2021-04-02T16:54:39Z", - "Date": "Fri, 02 Apr 2021 16:54:39 GMT" - } - }, - "uuid": "1dc7d887-335f-4cdb-bb0f-147ed9e5dbbb", - "persistent": true, - "insertionIndex": 1 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/mappings/1-u_a_p_1_runs_75_signedartifactscontent.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/mappings/1-u_a_p_1_runs_75_signedartifactscontent.json new file mode 100644 index 0000000000..32c651c9a9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_actions-user-content/mappings/1-u_a_p_1_runs_75_signedartifactscontent.json @@ -0,0 +1,38 @@ +{ + "id": "446b2495-1bf6-4d5e-acde-daff02e51161", + "name": "u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_75_signedartifactscontent", + "request": { + "url": "/u72ug1Ib1ZBCtek798HyrDYOU28rBK6ssrOKf37ZxrpgUbk95I/_apis/pipelines/1/runs/75/signedartifactscontent?artifactName=artifact1&urlExpires=2024-02-13T20%3A57%3A08.8035464Z&urlSigningMethod=HMACV2&urlSignature=V5LQZfOCN4yxeW3luEsxnxohpUdIpNTXhLFbFsPF3hw%3D", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "absent" : true + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-u_a_p_1_runs_75_signedartifactscontent.txt", + "headers": { + "Cache-Control": "no-store,no-cache", + "Pragma": "no-cache", + "Content-Type": "application/zip", + "Strict-Transport-Security": "max-age=2592000", + "X-TFS-ProcessId": "20ef2e2c-6817-41ac-aff2-a1600023d71c", + "ActivityId": "49132210-46e9-44c2-9f7b-576f5fb9dbab", + "X-TFS-Session": "49132210-46e9-44c2-9f7b-576f5fb9dbab", + "X-VSS-E2EID": "49132210-46e9-44c2-9f7b-576f5fb9dbab", + "X-VSS-SenderDeploymentId": "2c974d96-2c30-cef5-eff2-3e0511a903a5", + "Content-Disposition": "attachment; filename=artifact1.zip; filename*=UTF-8''artifact1.zip", + "X-Cache": "CONFIG_NOCACHE", + "X-MSEdge-Ref": "Ref A: 1C23B2F57142446EBF59CE09E2214724 Ref B: MRS20EDGE0115 Ref C: 2024-02-13T20:56:08Z", + "Date": "Tue, 13 Feb 2024 20:56:09 GMT" + } + }, + "uuid": "446b2495-1bf6-4d5e-acde-daff02e51161", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_blob-core-windows-net/__files/1-a_9_w_artifacts_41e13e58.zip b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_blob-core-windows-net/__files/1-a_9_w_artifacts_41e13e58.zip new file mode 100644 index 0000000000..77c8c753fa Binary files /dev/null and b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_blob-core-windows-net/__files/1-a_9_w_artifacts_41e13e58.zip differ diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_blob-core-windows-net/mappings/1-a_9_w_artifacts_41e13e58.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_blob-core-windows-net/mappings/1-a_9_w_artifacts_41e13e58.json new file mode 100644 index 0000000000..502020d54d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testArtifacts_blob-core-windows-net/mappings/1-a_9_w_artifacts_41e13e58.json @@ -0,0 +1,41 @@ +{ + "id": "ed03a800-4e0b-4724-87d3-0615e86a8085", + "name": "actions-results_92a9e79d-ed85-4732-a5ad-1f062c2d74fe_workflow-job-run-ca395085-040a-526b-2ce8-bdc85f692774_artifacts_41e13e5872dd3fedca6f5f5f561c6596ac66faa24903c2c39be6d405b37f3d25zip", + "request": { + "url": "/actions-results/92a9e79d-ed85-4732-a5ad-1f062c2d74fe/workflow-job-run-ca395085-040a-526b-2ce8-bdc85f692774/artifacts/41e13e5872dd3fedca6f5f5f561c6596ac66faa24903c2c39be6d405b37f3d25.zip?rscd=attachment%3B+filename%3D%22artifact2.zip%22&se=2024-02-13T21%3A06%3A10Z&sig=hHop7npL6%2Bpy3iIOyxNzxQy2uxv5%2Fi6RsbKqfG5SSgs%3D&sp=r&spr=https&sr=b&st=2024-02-13T20%3A56%3A10Z&sv=2021-12-02&originalHost=productionresultssa17.blob.core.windows.net", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github.v3+json" + }, + "Authorization": { + "absent" : true + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-a_9_w_artifacts_41e13e58.zip", + "headers": { + "Content-Type": "zip", + "Last-Modified": "Tue, 13 Feb 2024 20:55:59 GMT", + "Accept-Ranges": "bytes", + "ETag": "\"0x8DC2CD62EB03620\"", + "Server": "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-request-id": "1d3f7030-c01e-0070-65bf-5e78ee000000", + "x-ms-version": "2021-12-02", + "x-ms-creation-time": "Tue, 13 Feb 2024 20:55:59 GMT", + "x-ms-lease-status": "unlocked", + "x-ms-lease-state": "available", + "x-ms-blob-type": "BlockBlob", + "Content-Disposition": "attachment; filename=\"artifact2.zip\"", + "x-ms-server-encrypted": "true", + "Access-Control-Expose-Headers": "x-ms-request-id,Server,x-ms-version,Content-Type,Last-Modified,ETag,x-ms-creation-time,x-ms-lease-status,x-ms-lease-state,x-ms-blob-type,Content-Disposition,x-ms-server-encrypted,Accept-Ranges,Content-Length,Date,Transfer-Encoding", + "Access-Control-Allow-Origin": "*", + "Date": "Tue, 13 Feb 2024 20:56:10 GMT" + } + }, + "uuid": "ed03a800-4e0b-4724-87d3-0615e86a8085", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/__files/u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_139_signedlogcontent_5-1.txt b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/__files/1-u_a_p_1_runs_139_signedlogcontent_5.txt similarity index 100% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/__files/u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_139_signedlogcontent_5-1.txt rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/__files/1-u_a_p_1_runs_139_signedlogcontent_5.txt diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/__files/u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_139_signedlogcontent_4-2.txt b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/__files/2-u_a_p_1_runs_139_signedlogcontent_4.txt similarity index 100% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/__files/u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_139_signedlogcontent_4-2.txt rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/__files/2-u_a_p_1_runs_139_signedlogcontent_4.txt diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/1-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/1-u_a_p_1_runs_139_signedlogcontent_5.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/1-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/1-u_a_p_1_runs_139_signedlogcontent_5.json index db45151349..91b16180b7 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/1-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/1-u_a_p_1_runs_139_signedlogcontent_5.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_139_signedlogcontent_5-1.txt", + "bodyFileName": "1-u_a_p_1_runs_139_signedlogcontent_5.txt", "headers": { "Cache-Control": "no-store,no-cache", "Pragma": "no-cache", diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/2-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/2-u_a_p_1_runs_139_signedlogcontent_4.json similarity index 91% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/2-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/2-u_a_p_1_runs_139_signedlogcontent_4.json index 06966e85d5..9228504b75 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/2-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testJobs_actions-user-content/mappings/2-u_a_p_1_runs_139_signedlogcontent_4.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_139_signedlogcontent_4-2.txt", + "bodyFileName": "2-u_a_p_1_runs_139_signedlogcontent_4.txt", "headers": { "Cache-Control": "no-store,no-cache", "Pragma": "no-cache", diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testLogs_actions-user-content/__files/u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_101_signedlogcontent-1.txt b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testLogs_actions-user-content/__files/1-u_a_p_1_runs_101_signedlogcontent.txt similarity index 100% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testLogs_actions-user-content/__files/u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_101_signedlogcontent-1.txt rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testLogs_actions-user-content/__files/1-u_a_p_1_runs_101_signedlogcontent.txt diff --git a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testLogs_actions-user-content/mappings/1-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testLogs_actions-user-content/mappings/1-u_a_p_1_runs_101_signedlogcontent.json similarity index 92% rename from src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testLogs_actions-user-content/mappings/1-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json rename to src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testLogs_actions-user-content/mappings/1-u_a_p_1_runs_101_signedlogcontent.json index 48c943dc23..870978be53 100644 --- a/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testLogs_actions-user-content/mappings/1-u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_p.json +++ b/src/test/resources/org/kohsuke/github/GHWorkflowRunTest/wiremock/testLogs_actions-user-content/mappings/1-u_a_p_1_runs_101_signedlogcontent.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "u72ug1ib1zbctek798hyrdyou28rbk6ssrokf37zxrpgubk95i__apis_pipelines_1_runs_101_signedlogcontent-1.txt", + "bodyFileName": "1-u_a_p_1_runs_101_signedlogcontent.txt", "headers": { "Cache-Control": "no-store,no-cache", "Pragma": "no-cache", diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/user-9a879079-539d-4629-b873-8d92967da94c.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/2-user.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/user-9a879079-539d-4629-b873-8d92967da94c.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/2-user.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/orgs_hub4j-test-org-4c3594ea-179b-418f-b590-72e9a9a48494.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/3-orgs_hub4j-test-org.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/orgs_hub4j-test-org-4c3594ea-179b-418f-b590-72e9a9a48494.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/3-orgs_hub4j-test-org.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/repos_hub4j-test-org_github-api-12f5b993-ee6d-470b-bd7a-016bbdbe42e8.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/4-r_h_github-api.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/repos_hub4j-test-org_github-api-12f5b993-ee6d-470b-bd7a-016bbdbe42e8.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/4-r_h_github-api.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/repos_hub4j-test-org_github-api-1b4d33fb-f043-4d57-ac9a-0e2aa6d72c49.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/6-r_h_github-api.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/repos_hub4j-test-org_github-api-1b4d33fb-f043-4d57-ac9a-0e2aa6d72c49.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/6-r_h_github-api.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/repos_hub4j-test-org_github-api-7c83f0f2-98d8-4cea-b681-56f37210c2dc.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/8-r_h_github-api.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/repos_hub4j-test-org_github-api-7c83f0f2-98d8-4cea-b681-56f37210c2dc.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/__files/8-r_h_github-api.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/rate_limit-1-1d5336.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/1-rate_limit.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/rate_limit-1-1d5336.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/1-rate_limit.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/user-2-9a8790.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/2-user.json similarity index 96% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/user-2-9a8790.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/2-user.json index 5179b81466..37033f2f83 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/user-2-9a8790.json +++ b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/2-user.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "user-9a879079-539d-4629-b873-8d92967da94c.json", + "bodyFileName": "2-user.json", "headers": { "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", "Content-Type": "application/json; charset=utf-8", @@ -45,4 +45,4 @@ "uuid": "9a879079-539d-4629-b873-8d92967da94c", "persistent": true, "insertionIndex": 2 -}, \ No newline at end of file +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/orgs_hub4j-test-org-3-4c3594.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/3-orgs_hub4j-test-org.json similarity index 96% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/orgs_hub4j-test-org-3-4c3594.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/3-orgs_hub4j-test-org.json index d2b7840187..46ebf7b0e2 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/orgs_hub4j-test-org-3-4c3594.json +++ b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/3-orgs_hub4j-test-org.json @@ -15,7 +15,7 @@ }, "response": { "status": 200, - "bodyFileName": "orgs_hub4j-test-org-4c3594ea-179b-418f-b590-72e9a9a48494.json", + "bodyFileName": "3-orgs_hub4j-test-org.json", "headers": { "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/repos_hub4j-test-org_github-api-4-1b4d33.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/4-r_h_github-api.json similarity index 95% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/repos_hub4j-test-org_github-api-4-1b4d33.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/4-r_h_github-api.json index 058ab5769c..7c0b127f4a 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/repos_hub4j-test-org_github-api-4-1b4d33.json +++ b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/4-r_h_github-api.json @@ -15,7 +15,7 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api-1b4d33fb-f043-4d57-ac9a-0e2aa6d72c49.json", + "bodyFileName": "4-r_h_github-api.json", "headers": { "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/rate_limit-5-9ad306.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/5-rate_limit.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/rate_limit-5-9ad306.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/5-rate_limit.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/repos_hub4j-test-org_github-api-6-7c83f0.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/6-r_h_github-api.json similarity index 96% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/repos_hub4j-test-org_github-api-6-7c83f0.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/6-r_h_github-api.json index 5839a2a052..e2863802b0 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/repos_hub4j-test-org_github-api-6-7c83f0.json +++ b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/6-r_h_github-api.json @@ -15,7 +15,7 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api-7c83f0f2-98d8-4cea-b681-56f37210c2dc.json", + "bodyFileName": "6-r_h_github-api.json", "headers": { "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/rate_limit-7-594da3.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/7-rate_limit.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/rate_limit-7-594da3.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/7-rate_limit.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/repos_hub4j-test-org_github-api-9-12f5b9.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/8-r_h_github-api.json similarity index 95% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/repos_hub4j-test-org_github-api-9-12f5b9.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/8-r_h_github-api.json index a70a3b8d58..5af5f491b9 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/repos_hub4j-test-org_github-api-9-12f5b9.json +++ b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/8-r_h_github-api.json @@ -15,7 +15,7 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_github-api-12f5b993-ee6d-470b-bd7a-016bbdbe42e8.json", + "bodyFileName": "8-r_h_github-api.json", "headers": { "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/rate_limit-8-e5ec63.json b/src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/9-rate_limit.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/rate_limit-8-e5ec63.json rename to src/test/resources/org/kohsuke/github/RateLimitCheckerTest/wiremock/testGitHubRateLimit/mappings/9-rate_limit.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/__files/user-1.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/__files/1-user.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/__files/user-1.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/__files/1-user.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/__files/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/__files/3-r_h_t_fail.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/__files/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/__files/3-r_h_t_fail.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/user-1.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/1-user.json similarity index 98% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/user-1.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/1-user.json index d50d82abeb..2fa6bc1eee 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/user-1.json +++ b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/1-user.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "user-1.json", + "bodyFileName": "1-user.json", "headers": { "Date": "Thu, 06 Feb 2020 18:33:32 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-2.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/2-r_h_t_fail.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-2.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/2-r_h_t_fail.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/3-r_h_t_fail.json similarity index 96% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/3-r_h_t_fail.json index 2327b7f0c4..2dfd456a7d 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json +++ b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/3-r_h_t_fail.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_temp-testratelimithandler_fail-3.json", + "bodyFileName": "3-r_h_t_fail.json", "headers": { "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/__files/user-1.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/__files/1-user.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/__files/user-1.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/__files/1-user.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/__files/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/__files/3-r_h_t_fail.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/__files/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/__files/3-r_h_t_fail.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/user-1.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/1-user.json similarity index 98% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/user-1.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/1-user.json index d50d82abeb..2fa6bc1eee 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/user-1.json +++ b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/1-user.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "user-1.json", + "bodyFileName": "1-user.json", "headers": { "Date": "Thu, 06 Feb 2020 18:33:32 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-2.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/2-r_h_t_fail.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-2.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/2-r_h_t_fail.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/3-r_h_t_fail.json similarity index 96% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/3-r_h_t_fail.json index 2327b7f0c4..2dfd456a7d 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Fail/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json +++ b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_HttpStatus_Fail/mappings/3-r_h_t_fail.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_temp-testratelimithandler_fail-3.json", + "bodyFileName": "3-r_h_t_fail.json", "headers": { "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/__files/user-1.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/__files/1-user.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/__files/user-1.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/__files/1-user.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/__files/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/__files/3-r_h_t_Wait.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/__files/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/__files/3-r_h_t_Wait.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/user-1.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/1-user.json similarity index 98% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/user-1.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/1-user.json index d50d82abeb..2fa6bc1eee 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/user-1.json +++ b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/1-user.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "user-1.json", + "bodyFileName": "1-user.json", "headers": { "Date": "Thu, 06 Feb 2020 18:33:32 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-2.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/2-r_h_t_Wait.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-2.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/2-r_h_t_Wait.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/3-r_h_t_Wait.json similarity index 96% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/3-r_h_t_Wait.json index b9c46cde46..a487c3e80f 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-3.json +++ b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_Wait/mappings/3-r_h_t_Wait.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "repos_hub4j-test-org_temp-testratelimithandler_fail-3.json", + "bodyFileName": "3-r_h_t_Wait.json", "headers": { "Date": "{{now timezone='GMT' format='EEE, dd MMM yyyy HH:mm:ss z'}}", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/__files/user-1.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/__files/1-user.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/__files/user-1.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/__files/1-user.json diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/mappings/user-1.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/mappings/1-user.json similarity index 98% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/mappings/user-1.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/mappings/1-user.json index d50d82abeb..2fa6bc1eee 100644 --- a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/mappings/user-1.json +++ b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/mappings/1-user.json @@ -12,7 +12,7 @@ }, "response": { "status": 200, - "bodyFileName": "user-1.json", + "bodyFileName": "1-user.json", "headers": { "Date": "Thu, 06 Feb 2020 18:33:32 GMT", "Content-Type": "application/json; charset=utf-8", diff --git a/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-2.json b/src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/mappings/2-r_h_t_WaitStuck.json similarity index 100% rename from src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/mappings/repos_hub4j-test-org_temp-testratelimithandler_fail-2.json rename to src/test/resources/org/kohsuke/github/RateLimitHandlerTest/wiremock/testHandler_WaitStuck/mappings/2-r_h_t_WaitStuck.json