diff --git a/src/test/java/org/kohsuke/github/GHRepositoryForkBuilderTest.java b/src/test/java/org/kohsuke/github/GHRepositoryForkBuilderTest.java index 0fdeeb3aa9..481189b412 100644 --- a/src/test/java/org/kohsuke/github/GHRepositoryForkBuilderTest.java +++ b/src/test/java/org/kohsuke/github/GHRepositoryForkBuilderTest.java @@ -4,6 +4,7 @@ import org.junit.Test; import java.io.IOException; +import java.io.InterruptedIOException; import java.util.Map; import static org.hamcrest.Matchers.*; @@ -27,8 +28,7 @@ public GHRepositoryForkBuilderTest() { /** * Sets up. * - * @throws Exception - * the exception + * @throws Exception the exception */ @Before public void setUp() throws Exception { @@ -73,8 +73,7 @@ private void verifyBranches(GHRepository forked, boolean defaultBranchOnly) thro /** * Test fork. * - * @throws Exception - * the exception + * @throws Exception the exception */ @Test public void testFork() throws Exception { @@ -90,8 +89,7 @@ public void testFork() throws Exception { /** * Test fork to org. * - * @throws Exception - * the exception + * @throws Exception the exception */ @Test public void testForkToOrg() throws Exception { @@ -108,8 +106,7 @@ public void testForkToOrg() throws Exception { /** * Test fork default branch only. * - * @throws Exception - * the exception + * @throws Exception the exception */ @Test public void testForkDefaultBranchOnly() throws Exception { @@ -124,8 +121,7 @@ public void testForkDefaultBranchOnly() throws Exception { /** * Test fork changed name. * - * @throws Exception - * the exception + * @throws Exception the exception */ @Test public void testForkChangedName() throws Exception { @@ -140,10 +136,13 @@ public void testForkChangedName() throws Exception { } /** - * Test timeout. + * Test timeout message and sleep count. + * + * @throws Exception the exception */ @Test - public void testTimeout() { + public void testTimeoutMessage() throws Exception { + // repo.createFork().name("test-message").create(); class TrackingSleepBuilder extends GHRepositoryForkBuilder { int sleepCount = 0; int lastSleepMillis = 0; @@ -164,24 +163,65 @@ protected void sleep(int millis) throws IOException { } } - + String newRepoName = "test-message"; int originalInterval = GHRepositoryForkBuilder.FORK_RETRY_INTERVAL; try { GHRepositoryForkBuilder.FORK_RETRY_INTERVAL = 100; TrackingSleepBuilder builder = new TrackingSleepBuilder(repo); try { - builder.create(); + builder.name(newRepoName).create(); fail("Expected IOException for timeout"); } catch (IOException e) { - System.out.println("Exception message: " + e.getMessage()); assertThat(builder.sleepCount, equalTo(10)); assertThat(builder.lastSleepMillis, equalTo(100)); - assertThat(e.getMessage(), containsString("but can't find the new repository")); + assertThat(e.getMessage(), + allOf(containsString("was forked"), + containsString("with name " + newRepoName), + containsString("but can't find the new repository"))); } } finally { GHRepositoryForkBuilder.FORK_RETRY_INTERVAL = originalInterval; } } + /** + * Test timeout org message. + * + * @throws Exception the exception + */ + @Test + public void testTimeoutOrgMessage() throws Exception { + GHOrganization targetOrg = gitHub.getOrganization(TARGET_ORG); + // repo.createFork().organization(targetOrg).create(); + try { + repo.createFork().organization(targetOrg).create(); + fail("Expected IOException for timeout"); + } catch (IOException e) { + assertThat(e.getMessage(), + allOf(containsString("was forked"), + containsString("into " + TARGET_ORG), + containsString("but can't find the new repository"))); + } + } + + /** + * Test sleep. + * + * @throws Exception the exception + */ + @Test + public void testSleep() throws Exception { + GHRepositoryForkBuilder builder = new GHRepositoryForkBuilder(repo); + Thread.currentThread().interrupt(); + + try { + builder.sleep(100); + fail("Expected InterruptedIOException"); + } catch (InterruptedIOException e) { + assertThat(e, instanceOf(InterruptedIOException.class)); + assertThat(e.getCause(), instanceOf(InterruptedException.class)); + } + } + } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/1-user.json index ac70fd010c..a385d2bfd8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/1-user.json @@ -21,18 +21,18 @@ "name": "Danyang Zhao", "company": null, "blog": "", - "location": null, + "location": "Brisbane, AUS", "email": null, "hireable": null, "bio": null, "twitter_username": null, "notification_email": null, - "public_repos": 8, + "public_repos": 14, "public_gists": 0, - "followers": 3, - "following": 10, + "followers": 4, + "following": 11, "created_at": "2018-07-28T07:03:48Z", - "updated_at": "2024-12-11T02:27:22Z", + "updated_at": "2024-12-15T04:04:44Z", "private_gists": 0, "total_private_repos": 2, "owned_private_repos": 2, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/10-r_a_t_branches.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/10-r_a_t_branches.json index d3ff51c939..e9d401004d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/10-r_a_t_branches.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/10-r_a_t_branches.json @@ -2,8 +2,8 @@ { "name": "main", "commit": { - "sha": "ec1b25ba49597dfa05bca2f7f63b98fedc14712a", - "url": "https://api.github.com/repos/Alaurant/temp-testFork/commits/ec1b25ba49597dfa05bca2f7f63b98fedc14712a" + "sha": "cc56732e2af71c7c250e5e0e61ac977b52aecd1c", + "url": "https://api.github.com/repos/Alaurant/temp-testFork/commits/cc56732e2af71c7c250e5e0e61ac977b52aecd1c" }, "protected": false, "protection": { @@ -19,8 +19,8 @@ { "name": "test-branch1", "commit": { - "sha": "ec1b25ba49597dfa05bca2f7f63b98fedc14712a", - "url": "https://api.github.com/repos/Alaurant/temp-testFork/commits/ec1b25ba49597dfa05bca2f7f63b98fedc14712a" + "sha": "cc56732e2af71c7c250e5e0e61ac977b52aecd1c", + "url": "https://api.github.com/repos/Alaurant/temp-testFork/commits/cc56732e2af71c7c250e5e0e61ac977b52aecd1c" }, "protected": false, "protection": { @@ -36,8 +36,8 @@ { "name": "test-branch2", "commit": { - "sha": "ec1b25ba49597dfa05bca2f7f63b98fedc14712a", - "url": "https://api.github.com/repos/Alaurant/temp-testFork/commits/ec1b25ba49597dfa05bca2f7f63b98fedc14712a" + "sha": "cc56732e2af71c7c250e5e0e61ac977b52aecd1c", + "url": "https://api.github.com/repos/Alaurant/temp-testFork/commits/cc56732e2af71c7c250e5e0e61ac977b52aecd1c" }, "protected": false, "protection": { @@ -53,8 +53,8 @@ { "name": "test-branch3", "commit": { - "sha": "ec1b25ba49597dfa05bca2f7f63b98fedc14712a", - "url": "https://api.github.com/repos/Alaurant/temp-testFork/commits/ec1b25ba49597dfa05bca2f7f63b98fedc14712a" + "sha": "cc56732e2af71c7c250e5e0e61ac977b52aecd1c", + "url": "https://api.github.com/repos/Alaurant/temp-testFork/commits/cc56732e2af71c7c250e5e0e61ac977b52aecd1c" }, "protected": false, "protection": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/2-r_h_temp-testfork.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/2-r_h_temp-testfork.json index 90c6675698..87ad2a99ff 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/2-r_h_temp-testfork.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/2-r_h_temp-testfork.json @@ -1,6 +1,6 @@ { - "id": 903272099, - "node_id": "R_kgDONdbWow", + "id": 906237768, + "node_id": "R_kgDONgQXSA", "name": "temp-testFork", "full_name": "hub4j-test-org/temp-testFork", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/deployments", - "created_at": "2024-12-14T06:51:30Z", - "updated_at": "2024-12-14T06:51:30Z", - "pushed_at": "2024-12-14T06:51:30Z", + "created_at": "2024-12-20T13:03:02Z", + "updated_at": "2024-12-20T13:03:03Z", + "pushed_at": "2024-12-20T13:03:03Z", "git_url": "git://github.com/hub4j-test-org/temp-testFork.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testFork.git", "clone_url": "https://github.com/hub4j-test-org/temp-testFork.git", @@ -157,5 +157,5 @@ } }, "network_count": 0, - "subscribers_count": 21 + "subscribers_count": 18 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/3-r_h_t_git_refs_heads_main.json index 2d2e95a687..7f65480788 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/3-r_h_t_git_refs_heads_main.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/3-r_h_t_git_refs_heads_main.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/main", - "node_id": "REF_kwDONdbWo69yZWZzL2hlYWRzL21haW4", + "node_id": "REF_kwDONgQXSK9yZWZzL2hlYWRzL21haW4", "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/refs/heads/main", "object": { - "sha": "ec1b25ba49597dfa05bca2f7f63b98fedc14712a", + "sha": "cc56732e2af71c7c250e5e0e61ac977b52aecd1c", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/commits/ec1b25ba49597dfa05bca2f7f63b98fedc14712a" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/commits/cc56732e2af71c7c250e5e0e61ac977b52aecd1c" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/4-r_h_t_git_refs.json index 5e78632c40..b605d251ee 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/4-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/4-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch1", - "node_id": "REF_kwDONdbWo7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", + "node_id": "REF_kwDONgQXSLdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/refs/heads/test-branch1", "object": { - "sha": "ec1b25ba49597dfa05bca2f7f63b98fedc14712a", + "sha": "cc56732e2af71c7c250e5e0e61ac977b52aecd1c", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/commits/ec1b25ba49597dfa05bca2f7f63b98fedc14712a" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/commits/cc56732e2af71c7c250e5e0e61ac977b52aecd1c" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/5-r_h_t_git_refs.json index 673f949ea4..54088ec815 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/5-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/5-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch2", - "node_id": "REF_kwDONdbWo7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", + "node_id": "REF_kwDONgQXSLdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/refs/heads/test-branch2", "object": { - "sha": "ec1b25ba49597dfa05bca2f7f63b98fedc14712a", + "sha": "cc56732e2af71c7c250e5e0e61ac977b52aecd1c", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/commits/ec1b25ba49597dfa05bca2f7f63b98fedc14712a" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/commits/cc56732e2af71c7c250e5e0e61ac977b52aecd1c" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/6-r_h_t_git_refs.json index b3cfe646ea..d11fccec9a 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/6-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/6-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch3", - "node_id": "REF_kwDONdbWo7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", + "node_id": "REF_kwDONgQXSLdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/refs/heads/test-branch3", "object": { - "sha": "ec1b25ba49597dfa05bca2f7f63b98fedc14712a", + "sha": "cc56732e2af71c7c250e5e0e61ac977b52aecd1c", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/commits/ec1b25ba49597dfa05bca2f7f63b98fedc14712a" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/commits/cc56732e2af71c7c250e5e0e61ac977b52aecd1c" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/7-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/7-r_h_t_forks.json index d5898d0bda..71155731bc 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/7-r_h_t_forks.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/7-r_h_t_forks.json @@ -1,6 +1,6 @@ { - "id": 903272128, - "node_id": "R_kgDONdbWwA", + "id": 906237805, + "node_id": "R_kgDONgQXbQ", "name": "temp-testFork", "full_name": "Alaurant/temp-testFork", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/Alaurant/temp-testFork/labels{/name}", "releases_url": "https://api.github.com/repos/Alaurant/temp-testFork/releases{/id}", "deployments_url": "https://api.github.com/repos/Alaurant/temp-testFork/deployments", - "created_at": "2024-12-14T06:51:37Z", - "updated_at": "2024-12-14T06:51:37Z", - "pushed_at": "2024-12-14T06:51:36Z", + "created_at": "2024-12-20T13:03:09Z", + "updated_at": "2024-12-20T13:03:09Z", + "pushed_at": "2024-12-20T13:03:08Z", "git_url": "git://github.com/Alaurant/temp-testFork.git", "ssh_url": "git@github.com:Alaurant/temp-testFork.git", "clone_url": "https://github.com/Alaurant/temp-testFork.git", @@ -106,8 +106,8 @@ "pull": true }, "parent": { - "id": 903272099, - "node_id": "R_kgDONdbWow", + "id": 906237768, + "node_id": "R_kgDONgQXSA", "name": "temp-testFork", "full_name": "hub4j-test-org/temp-testFork", "private": false, @@ -172,9 +172,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/deployments", - "created_at": "2024-12-14T06:51:30Z", - "updated_at": "2024-12-14T06:51:34Z", - "pushed_at": "2024-12-14T06:51:36Z", + "created_at": "2024-12-20T13:03:02Z", + "updated_at": "2024-12-20T13:03:06Z", + "pushed_at": "2024-12-20T13:03:08Z", "git_url": "git://github.com/hub4j-test-org/temp-testFork.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testFork.git", "clone_url": "https://github.com/hub4j-test-org/temp-testFork.git", @@ -207,8 +207,8 @@ "default_branch": "main" }, "source": { - "id": 903272099, - "node_id": "R_kgDONdbWow", + "id": 906237768, + "node_id": "R_kgDONgQXSA", "name": "temp-testFork", "full_name": "hub4j-test-org/temp-testFork", "private": false, @@ -273,9 +273,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/deployments", - "created_at": "2024-12-14T06:51:30Z", - "updated_at": "2024-12-14T06:51:34Z", - "pushed_at": "2024-12-14T06:51:36Z", + "created_at": "2024-12-20T13:03:02Z", + "updated_at": "2024-12-20T13:03:06Z", + "pushed_at": "2024-12-20T13:03:08Z", "git_url": "git://github.com/hub4j-test-org/temp-testFork.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testFork.git", "clone_url": "https://github.com/hub4j-test-org/temp-testFork.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/8-r_a_temp-testfork.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/8-r_a_temp-testfork.json index 07bb84b943..70be788276 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/8-r_a_temp-testfork.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/8-r_a_temp-testfork.json @@ -1,6 +1,6 @@ { - "id": 903272128, - "node_id": "R_kgDONdbWwA", + "id": 906237805, + "node_id": "R_kgDONgQXbQ", "name": "temp-testFork", "full_name": "Alaurant/temp-testFork", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/Alaurant/temp-testFork/labels{/name}", "releases_url": "https://api.github.com/repos/Alaurant/temp-testFork/releases{/id}", "deployments_url": "https://api.github.com/repos/Alaurant/temp-testFork/deployments", - "created_at": "2024-12-14T06:51:37Z", - "updated_at": "2024-12-14T06:51:37Z", - "pushed_at": "2024-12-14T06:51:36Z", + "created_at": "2024-12-20T13:03:09Z", + "updated_at": "2024-12-20T13:03:09Z", + "pushed_at": "2024-12-20T13:03:08Z", "git_url": "git://github.com/Alaurant/temp-testFork.git", "ssh_url": "git@github.com:Alaurant/temp-testFork.git", "clone_url": "https://github.com/Alaurant/temp-testFork.git", @@ -118,8 +118,8 @@ "merge_commit_message": "PR_TITLE", "merge_commit_title": "MERGE_MESSAGE", "parent": { - "id": 903272099, - "node_id": "R_kgDONdbWow", + "id": 906237768, + "node_id": "R_kgDONgQXSA", "name": "temp-testFork", "full_name": "hub4j-test-org/temp-testFork", "private": false, @@ -184,9 +184,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/deployments", - "created_at": "2024-12-14T06:51:30Z", - "updated_at": "2024-12-14T06:51:34Z", - "pushed_at": "2024-12-14T06:51:36Z", + "created_at": "2024-12-20T13:03:02Z", + "updated_at": "2024-12-20T13:03:06Z", + "pushed_at": "2024-12-20T13:03:08Z", "git_url": "git://github.com/hub4j-test-org/temp-testFork.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testFork.git", "clone_url": "https://github.com/hub4j-test-org/temp-testFork.git", @@ -219,8 +219,8 @@ "default_branch": "main" }, "source": { - "id": 903272099, - "node_id": "R_kgDONdbWow", + "id": 906237768, + "node_id": "R_kgDONgQXSA", "name": "temp-testFork", "full_name": "hub4j-test-org/temp-testFork", "private": false, @@ -285,9 +285,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/deployments", - "created_at": "2024-12-14T06:51:30Z", - "updated_at": "2024-12-14T06:51:34Z", - "pushed_at": "2024-12-14T06:51:36Z", + "created_at": "2024-12-20T13:03:02Z", + "updated_at": "2024-12-20T13:03:06Z", + "pushed_at": "2024-12-20T13:03:08Z", "git_url": "git://github.com/hub4j-test-org/temp-testFork.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testFork.git", "clone_url": "https://github.com/hub4j-test-org/temp-testFork.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/9-r_a_temp-testfork.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/9-r_a_temp-testfork.json index 07bb84b943..70be788276 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/9-r_a_temp-testfork.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/__files/9-r_a_temp-testfork.json @@ -1,6 +1,6 @@ { - "id": 903272128, - "node_id": "R_kgDONdbWwA", + "id": 906237805, + "node_id": "R_kgDONgQXbQ", "name": "temp-testFork", "full_name": "Alaurant/temp-testFork", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/Alaurant/temp-testFork/labels{/name}", "releases_url": "https://api.github.com/repos/Alaurant/temp-testFork/releases{/id}", "deployments_url": "https://api.github.com/repos/Alaurant/temp-testFork/deployments", - "created_at": "2024-12-14T06:51:37Z", - "updated_at": "2024-12-14T06:51:37Z", - "pushed_at": "2024-12-14T06:51:36Z", + "created_at": "2024-12-20T13:03:09Z", + "updated_at": "2024-12-20T13:03:09Z", + "pushed_at": "2024-12-20T13:03:08Z", "git_url": "git://github.com/Alaurant/temp-testFork.git", "ssh_url": "git@github.com:Alaurant/temp-testFork.git", "clone_url": "https://github.com/Alaurant/temp-testFork.git", @@ -118,8 +118,8 @@ "merge_commit_message": "PR_TITLE", "merge_commit_title": "MERGE_MESSAGE", "parent": { - "id": 903272099, - "node_id": "R_kgDONdbWow", + "id": 906237768, + "node_id": "R_kgDONgQXSA", "name": "temp-testFork", "full_name": "hub4j-test-org/temp-testFork", "private": false, @@ -184,9 +184,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/deployments", - "created_at": "2024-12-14T06:51:30Z", - "updated_at": "2024-12-14T06:51:34Z", - "pushed_at": "2024-12-14T06:51:36Z", + "created_at": "2024-12-20T13:03:02Z", + "updated_at": "2024-12-20T13:03:06Z", + "pushed_at": "2024-12-20T13:03:08Z", "git_url": "git://github.com/hub4j-test-org/temp-testFork.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testFork.git", "clone_url": "https://github.com/hub4j-test-org/temp-testFork.git", @@ -219,8 +219,8 @@ "default_branch": "main" }, "source": { - "id": 903272099, - "node_id": "R_kgDONdbWow", + "id": 906237768, + "node_id": "R_kgDONgQXSA", "name": "temp-testFork", "full_name": "hub4j-test-org/temp-testFork", "private": false, @@ -285,9 +285,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testFork/deployments", - "created_at": "2024-12-14T06:51:30Z", - "updated_at": "2024-12-14T06:51:34Z", - "pushed_at": "2024-12-14T06:51:36Z", + "created_at": "2024-12-20T13:03:02Z", + "updated_at": "2024-12-20T13:03:06Z", + "pushed_at": "2024-12-20T13:03:08Z", "git_url": "git://github.com/hub4j-test-org/temp-testFork.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testFork.git", "clone_url": "https://github.com/hub4j-test-org/temp-testFork.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/1-user.json index 101c41ba51..8d6aa05cdb 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/1-user.json @@ -1,5 +1,5 @@ { - "id": "34e614ab-45ba-463e-9340-d22940a6212f", + "id": "08691616-b577-4249-a7dc-429bc18c4244", "name": "user", "request": { "url": "/user", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "1-user.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:29 GMT", + "Date": "Fri, 20 Dec 2024 13:03:01 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"bd1a1097fadb2631ad309c2d5f6d8b5a683e66fdf08990562a2fbc928e55073f\"", - "Last-Modified": "Wed, 11 Dec 2024 02:27:22 GMT", + "ETag": "W/\"385e08560117e426bff1cdeb255753d2813a21fd716dab4fb6fbce27aa60b10f\"", + "Last-Modified": "Sun, 15 Dec 2024 04:04:44 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4511", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "489", + "X-RateLimit-Remaining": "4536", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "464", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "198D:3DD05A:A166EE:BE40F0:675D2AF0" + "X-GitHub-Request-Id": "19C6:3BD1EB:26FDEE:2E9A5B:67656B05" } }, - "uuid": "34e614ab-45ba-463e-9340-d22940a6212f", + "uuid": "08691616-b577-4249-a7dc-429bc18c4244", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/10-r_a_t_branches.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/10-r_a_t_branches.json index 750542668f..a2ea670a82 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/10-r_a_t_branches.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/10-r_a_t_branches.json @@ -1,5 +1,5 @@ { - "id": "c9c3164e-57e2-4d00-b328-ef9876ddfa84", + "id": "52fe6c07-92fb-4636-a85d-158938859417", "name": "repos_alaurant_temp-testfork_branches", "request": { "url": "/repos/Alaurant/temp-testFork/branches", @@ -14,20 +14,20 @@ "status": 200, "bodyFileName": "10-r_a_t_branches.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:44 GMT", + "Date": "Fri, 20 Dec 2024 13:03: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/\"22972120024f89e4551d98028d61b94e9e304c1bcf0de976ed4974045290bac8\"", + "ETag": "W/\"e501e486d5a993dc60ead8b25ae136c13033c082948a20bee0edf5025df6d6cc\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4498", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "502", + "X-RateLimit-Remaining": "4523", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "477", "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": "*", @@ -38,10 +38,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19BD:5DF4C:AE1A5F:CB539A:675D2B00" + "X-GitHub-Request-Id": "19EE:2E6E0F:D8922:10993F:67656B12" } }, - "uuid": "c9c3164e-57e2-4d00-b328-ef9876ddfa84", + "uuid": "52fe6c07-92fb-4636-a85d-158938859417", "persistent": true, "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/11-r_a_temp-testfork.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/11-r_a_temp-testfork.json index 94da2fcae7..1b344a4842 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/11-r_a_temp-testfork.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/11-r_a_temp-testfork.json @@ -1,5 +1,5 @@ { - "id": "e2830fa3-73f3-4120-8248-8359eb05329d", + "id": "1cf8dedd-b4a6-4c34-abef-808e897c3f11", "name": "repos_alaurant_temp-testfork", "request": { "url": "/repos/Alaurant/temp-testFork", @@ -13,16 +13,16 @@ "response": { "status": 204, "headers": { - "Date": "Sat, 14 Dec 2024 06:51:45 GMT", + "Date": "Fri, 20 Dec 2024 13:03:15 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "delete_repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4497", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "503", + "X-RateLimit-Remaining": "4522", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "478", "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": "*", @@ -34,10 +34,10 @@ "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", "Server": "github.com", - "X-GitHub-Request-Id": "19BE:3DF01B:925ABE:AF3584:675D2B01" + "X-GitHub-Request-Id": "19F2:24DD67:1750C65:1B2EA4F:67656B12" } }, - "uuid": "e2830fa3-73f3-4120-8248-8359eb05329d", + "uuid": "1cf8dedd-b4a6-4c34-abef-808e897c3f11", "persistent": true, "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/2-r_h_temp-testfork.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/2-r_h_temp-testfork.json index add02c00f1..800ab3c90f 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/2-r_h_temp-testfork.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/2-r_h_temp-testfork.json @@ -1,5 +1,5 @@ { - "id": "efd47c6d-5ee1-4590-ae12-2eb1a600cfaa", + "id": "28287013-05d0-471d-aa1b-b8d3668f576c", "name": "repos_hub4j-test-org_temp-testfork", "request": { "url": "/repos/hub4j-test-org/temp-testFork", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "2-r_h_temp-testfork.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:34 GMT", + "Date": "Fri, 20 Dec 2024 13:03:06 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"a60321f19800def31ee7bdcf7249d7c12b25b281030069f881465f52bf2831f4\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:30 GMT", + "ETag": "W/\"db4699475f6ac92cf3719728738d0ca7464520c78c7becccec7defe1a1342237\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:03 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4506", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "494", + "X-RateLimit-Remaining": "4531", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "469", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "199D:3DD5DB:9C6390:B93E35:675D2AF6" + "X-GitHub-Request-Id": "19D3:2CFAFD:E77BCB:1119D2C:67656B0A" } }, - "uuid": "efd47c6d-5ee1-4590-ae12-2eb1a600cfaa", + "uuid": "28287013-05d0-471d-aa1b-b8d3668f576c", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/3-r_h_t_git_refs_heads_main.json index cd0353daa1..d45878c2e7 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/3-r_h_t_git_refs_heads_main.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/3-r_h_t_git_refs_heads_main.json @@ -1,5 +1,5 @@ { - "id": "1c72b2f4-7359-43a3-915f-fa11c9f48414", + "id": "33ab9192-d58f-4206-a0ee-f09f8c45837c", "name": "repos_hub4j-test-org_temp-testfork_git_refs_heads_main", "request": { "url": "/repos/hub4j-test-org/temp-testFork/git/refs/heads/main", @@ -14,12 +14,12 @@ "status": 200, "bodyFileName": "3-r_h_t_git_refs_heads_main.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:35 GMT", + "Date": "Fri, 20 Dec 2024 13:03:07 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"c1f8d88e88548a617ee11c1293e9c4f2a1ef7de1177717f4394b2f54d4772811\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:34 GMT", + "ETag": "W/\"2df495d7f45d159428761025db7ea0639e627301633cf712bd873d1a8f6b7b2d\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:06 GMT", "X-Poll-Interval": "300", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4505", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "495", + "X-RateLimit-Remaining": "4530", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "470", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,10 +40,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "199E:3D576D:A1D694:BEB1BD:675D2AF6" + "X-GitHub-Request-Id": "19D7:2C3D90:F87A0D:123537F:67656B0B" } }, - "uuid": "1c72b2f4-7359-43a3-915f-fa11c9f48414", + "uuid": "33ab9192-d58f-4206-a0ee-f09f8c45837c", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/4-r_h_t_git_refs.json index e664c134b6..ed4e2c65e5 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/4-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/4-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "e6796531-ea07-4263-9cf8-a04de8036197", + "id": "d6e16fae-d814-4f0f-93bb-24f1ab40551b", "name": "repos_hub4j-test-org_temp-testfork_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testFork/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"ec1b25ba49597dfa05bca2f7f63b98fedc14712a\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"cc56732e2af71c7c250e5e0e61ac977b52aecd1c\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "4-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:35 GMT", + "Date": "Fri, 20 Dec 2024 13:03:07 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"d19c5baf7fb26e76e7d601c83d9cf00b7d9a7bbcf979a92c9a072d597ccb76c9\"", + "ETag": "\"615d9eedba111b8d82e2255ab2862517ad1e0f78a0cfd9505624e95772fdc5be\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4504", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "496", + "X-RateLimit-Remaining": "4529", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "471", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "199F:5DF4C:AE16E3:CB4F88:675D2AF7", + "X-GitHub-Request-Id": "19D8:59D95:F0EB43:11BC877:67656B0B", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/refs/heads/test-branch1" } }, - "uuid": "e6796531-ea07-4263-9cf8-a04de8036197", + "uuid": "d6e16fae-d814-4f0f-93bb-24f1ab40551b", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/5-r_h_t_git_refs.json index b47df4f057..0579eb47f7 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/5-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/5-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "14bd1edb-77f9-45cc-8fcf-784f923db1ab", + "id": "eeb10874-b496-434b-9595-2ff50f09c6bf", "name": "repos_hub4j-test-org_temp-testfork_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testFork/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"ec1b25ba49597dfa05bca2f7f63b98fedc14712a\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"cc56732e2af71c7c250e5e0e61ac977b52aecd1c\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "5-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:36 GMT", + "Date": "Fri, 20 Dec 2024 13:03: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": "\"2c6aeb139fa8edaeb00085dc4415bbcf3d40a7e37e180107d670ccc3900ddcd9\"", + "ETag": "\"81d47fc79e2df88374ce81584b06880a30e173ff25f3adc8bed62bc8f6202bbe\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4503", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "497", + "X-RateLimit-Remaining": "4528", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "472", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19A3:209B7:5263C8:643B0B:675D2AF7", + "X-GitHub-Request-Id": "19D9:27FAA5:57763E:67F3E5:67656B0C", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/refs/heads/test-branch2" } }, - "uuid": "14bd1edb-77f9-45cc-8fcf-784f923db1ab", + "uuid": "eeb10874-b496-434b-9595-2ff50f09c6bf", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/6-r_h_t_git_refs.json index 9facb0b909..578ec1b36e 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/6-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/6-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "01ca7d12-b1bf-4551-bf61-d09552eeae95", + "id": "c28fc22e-6a6f-4375-b529-fbb9ce84c84b", "name": "repos_hub4j-test-org_temp-testfork_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testFork/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"ec1b25ba49597dfa05bca2f7f63b98fedc14712a\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"cc56732e2af71c7c250e5e0e61ac977b52aecd1c\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "6-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:36 GMT", + "Date": "Fri, 20 Dec 2024 13:03: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": "\"377f2633db70d5b26287431b96218db279876c7d658564b4f95ce8fb02f4d0b0\"", + "ETag": "\"6a6053b2ed6608c1095c05ef3ce5ab95ceabf7525209340dc68d4e971d6594e7\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4502", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "498", + "X-RateLimit-Remaining": "4527", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "473", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19A4:0A53:381B22:44D435:675D2AF8", + "X-GitHub-Request-Id": "19DD:4C45C:1799D0C:1B77ABE:67656B0C", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testFork/git/refs/heads/test-branch3" } }, - "uuid": "01ca7d12-b1bf-4551-bf61-d09552eeae95", + "uuid": "c28fc22e-6a6f-4375-b529-fbb9ce84c84b", "persistent": true, "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/7-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/7-r_h_t_forks.json index bbefbcdd39..3dfc496b7c 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/7-r_h_t_forks.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/7-r_h_t_forks.json @@ -1,5 +1,5 @@ { - "id": "88987604-86cf-470e-a808-f2eabb9eb58d", + "id": "4ef54cbd-66f3-4aa4-baf6-f02e941385a5", "name": "repos_hub4j-test-org_temp-testfork_forks", "request": { "url": "/repos/hub4j-test-org/temp-testFork/forks", @@ -21,7 +21,7 @@ "status": 202, "bodyFileName": "7-r_h_t_forks.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:37 GMT", + "Date": "Fri, 20 Dec 2024 13:03:09 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, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", @@ -29,9 +29,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4501", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "499", + "X-RateLimit-Remaining": "4526", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "474", "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": "*", @@ -43,10 +43,10 @@ "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", "Server": "github.com", - "X-GitHub-Request-Id": "19A8:D973:6E6870:84CC44:675D2AF8" + "X-GitHub-Request-Id": "19DE:139242:13ED5F9:1760883:67656B0D" } }, - "uuid": "88987604-86cf-470e-a808-f2eabb9eb58d", + "uuid": "4ef54cbd-66f3-4aa4-baf6-f02e941385a5", "persistent": true, "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/8-r_a_temp-testfork.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/8-r_a_temp-testfork.json index e6545a0686..9c4c1a8af0 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/8-r_a_temp-testfork.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/8-r_a_temp-testfork.json @@ -1,5 +1,5 @@ { - "id": "1ca41d65-6da0-4fd7-9bdb-5fdc1580c67e", + "id": "c515d8f7-ff23-4299-a35d-eb2608a1e3d7", "name": "repos_alaurant_temp-testfork", "request": { "url": "/repos/Alaurant/temp-testFork", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "8-r_a_temp-testfork.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:37 GMT", + "Date": "Fri, 20 Dec 2024 13:03: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/\"9b7f7c4df1187048fcfafc52ee7d6a78f61863e5b5c31f2b78274f78489b6423\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:37 GMT", + "ETag": "W/\"27da55e60c1909f17d020562b8fb04dfc4c058f58a317cbed8c1dc7446c98f13\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:09 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4500", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "500", + "X-RateLimit-Remaining": "4525", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "475", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19A9:3DCBFA:9CACEA:B9883C:675D2AF9" + "X-GitHub-Request-Id": "19E3:24DD67:1750AFC:1B2E8AB:67656B0E" } }, - "uuid": "1ca41d65-6da0-4fd7-9bdb-5fdc1580c67e", + "uuid": "c515d8f7-ff23-4299-a35d-eb2608a1e3d7", "persistent": true, "scenarioName": "scenario-1-repos-Alaurant-temp-testFork", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/9-r_a_temp-testfork.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/9-r_a_temp-testfork.json index 67767ee968..b71e47daac 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/9-r_a_temp-testfork.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testFork/mappings/9-r_a_temp-testfork.json @@ -1,5 +1,5 @@ { - "id": "eebd05b1-e0f1-4bd6-87b2-f6f05811c09a", + "id": "1b689152-841c-4f2c-8998-97ad5b977bb8", "name": "repos_alaurant_temp-testfork", "request": { "url": "/repos/Alaurant/temp-testFork", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "9-r_a_temp-testfork.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:44 GMT", + "Date": "Fri, 20 Dec 2024 13:03: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/\"9b7f7c4df1187048fcfafc52ee7d6a78f61863e5b5c31f2b78274f78489b6423\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:37 GMT", + "ETag": "W/\"27da55e60c1909f17d020562b8fb04dfc4c058f58a317cbed8c1dc7446c98f13\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:09 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4499", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "501", + "X-RateLimit-Remaining": "4524", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "476", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19BC:3D576D:A1D963:BEB509:675D2B00" + "X-GitHub-Request-Id": "19ED:139242:13ED7CA:1760A8D:67656B11" } }, - "uuid": "eebd05b1-e0f1-4bd6-87b2-f6f05811c09a", + "uuid": "1b689152-841c-4f2c-8998-97ad5b977bb8", "persistent": true, "scenarioName": "scenario-1-repos-Alaurant-temp-testFork", "requiredScenarioState": "scenario-1-repos-Alaurant-temp-testFork-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/1-user.json index ac70fd010c..a385d2bfd8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/1-user.json @@ -21,18 +21,18 @@ "name": "Danyang Zhao", "company": null, "blog": "", - "location": null, + "location": "Brisbane, AUS", "email": null, "hireable": null, "bio": null, "twitter_username": null, "notification_email": null, - "public_repos": 8, + "public_repos": 14, "public_gists": 0, - "followers": 3, - "following": 10, + "followers": 4, + "following": 11, "created_at": "2018-07-28T07:03:48Z", - "updated_at": "2024-12-11T02:27:22Z", + "updated_at": "2024-12-15T04:04:44Z", "private_gists": 0, "total_private_repos": 2, "owned_private_repos": 2, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/10-r_a_t_branches.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/10-r_a_t_branches.json index 8bf076e59f..cf9be01c88 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/10-r_a_t_branches.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/10-r_a_t_branches.json @@ -2,8 +2,8 @@ { "name": "main", "commit": { - "sha": "139dc502225e0e4225408692edd98d8ea537d258", - "url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/commits/139dc502225e0e4225408692edd98d8ea537d258" + "sha": "0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6", + "url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/commits/0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6" }, "protected": false, "protection": { @@ -19,8 +19,8 @@ { "name": "test-branch1", "commit": { - "sha": "139dc502225e0e4225408692edd98d8ea537d258", - "url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/commits/139dc502225e0e4225408692edd98d8ea537d258" + "sha": "0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6", + "url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/commits/0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6" }, "protected": false, "protection": { @@ -36,8 +36,8 @@ { "name": "test-branch2", "commit": { - "sha": "139dc502225e0e4225408692edd98d8ea537d258", - "url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/commits/139dc502225e0e4225408692edd98d8ea537d258" + "sha": "0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6", + "url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/commits/0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6" }, "protected": false, "protection": { @@ -53,8 +53,8 @@ { "name": "test-branch3", "commit": { - "sha": "139dc502225e0e4225408692edd98d8ea537d258", - "url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/commits/139dc502225e0e4225408692edd98d8ea537d258" + "sha": "0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6", + "url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/commits/0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6" }, "protected": false, "protection": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/2-r_h_temp-testforkchangedname.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/2-r_h_temp-testforkchangedname.json index c3fd66138d..4999eb525f 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/2-r_h_temp-testforkchangedname.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/2-r_h_temp-testforkchangedname.json @@ -1,6 +1,6 @@ { - "id": 903272168, - "node_id": "R_kgDONdbW6A", + "id": 906237934, + "node_id": "R_kgDONgQX7g", "name": "temp-testForkChangedName", "full_name": "hub4j-test-org/temp-testForkChangedName", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/deployments", - "created_at": "2024-12-14T06:51:48Z", - "updated_at": "2024-12-14T06:51:48Z", - "pushed_at": "2024-12-14T06:51:48Z", + "created_at": "2024-12-20T13:03:29Z", + "updated_at": "2024-12-20T13:03:33Z", + "pushed_at": "2024-12-20T13:03:30Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkChangedName.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkChangedName.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkChangedName.git", @@ -157,5 +157,5 @@ } }, "network_count": 0, - "subscribers_count": 21 + "subscribers_count": 18 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/3-r_h_t_git_refs_heads_main.json index 5af2e213f5..cc29da07e8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/3-r_h_t_git_refs_heads_main.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/3-r_h_t_git_refs_heads_main.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/main", - "node_id": "REF_kwDONdbW6K9yZWZzL2hlYWRzL21haW4", + "node_id": "REF_kwDONgQX7q9yZWZzL2hlYWRzL21haW4", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/refs/heads/main", "object": { - "sha": "139dc502225e0e4225408692edd98d8ea537d258", + "sha": "0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/commits/139dc502225e0e4225408692edd98d8ea537d258" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/commits/0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/4-r_h_t_git_refs.json index 9e9128959c..ab9a331b52 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/4-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/4-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch1", - "node_id": "REF_kwDONdbW6LdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", + "node_id": "REF_kwDONgQX7rdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/refs/heads/test-branch1", "object": { - "sha": "139dc502225e0e4225408692edd98d8ea537d258", + "sha": "0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/commits/139dc502225e0e4225408692edd98d8ea537d258" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/commits/0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/5-r_h_t_git_refs.json index 8d58194975..a737bc0a63 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/5-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/5-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch2", - "node_id": "REF_kwDONdbW6LdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", + "node_id": "REF_kwDONgQX7rdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/refs/heads/test-branch2", "object": { - "sha": "139dc502225e0e4225408692edd98d8ea537d258", + "sha": "0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/commits/139dc502225e0e4225408692edd98d8ea537d258" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/commits/0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/6-r_h_t_git_refs.json index caa205a6b5..af45310f3a 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/6-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/6-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch3", - "node_id": "REF_kwDONdbW6LdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", + "node_id": "REF_kwDONgQX7rdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/refs/heads/test-branch3", "object": { - "sha": "139dc502225e0e4225408692edd98d8ea537d258", + "sha": "0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/commits/139dc502225e0e4225408692edd98d8ea537d258" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/commits/0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/7-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/7-r_h_t_forks.json index bbfefd77ad..108ffed5c1 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/7-r_h_t_forks.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/7-r_h_t_forks.json @@ -1,6 +1,6 @@ { - "id": 903272198, - "node_id": "R_kgDONdbXBg", + "id": 906237963, + "node_id": "R_kgDONgQYCw", "name": "test-fork-with-new-name", "full_name": "Alaurant/test-fork-with-new-name", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/labels{/name}", "releases_url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/releases{/id}", "deployments_url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/deployments", - "created_at": "2024-12-14T06:51:54Z", - "updated_at": "2024-12-14T06:51:54Z", - "pushed_at": "2024-12-14T06:51:53Z", + "created_at": "2024-12-20T13:03:36Z", + "updated_at": "2024-12-20T13:03:36Z", + "pushed_at": "2024-12-20T13:03:35Z", "git_url": "git://github.com/Alaurant/test-fork-with-new-name.git", "ssh_url": "git@github.com:Alaurant/test-fork-with-new-name.git", "clone_url": "https://github.com/Alaurant/test-fork-with-new-name.git", @@ -106,8 +106,8 @@ "pull": true }, "parent": { - "id": 903272168, - "node_id": "R_kgDONdbW6A", + "id": 906237934, + "node_id": "R_kgDONgQX7g", "name": "temp-testForkChangedName", "full_name": "hub4j-test-org/temp-testForkChangedName", "private": false, @@ -172,9 +172,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/deployments", - "created_at": "2024-12-14T06:51:48Z", - "updated_at": "2024-12-14T06:51:52Z", - "pushed_at": "2024-12-14T06:51:53Z", + "created_at": "2024-12-20T13:03:29Z", + "updated_at": "2024-12-20T13:03:33Z", + "pushed_at": "2024-12-20T13:03:35Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkChangedName.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkChangedName.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkChangedName.git", @@ -207,8 +207,8 @@ "default_branch": "main" }, "source": { - "id": 903272168, - "node_id": "R_kgDONdbW6A", + "id": 906237934, + "node_id": "R_kgDONgQX7g", "name": "temp-testForkChangedName", "full_name": "hub4j-test-org/temp-testForkChangedName", "private": false, @@ -273,9 +273,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/deployments", - "created_at": "2024-12-14T06:51:48Z", - "updated_at": "2024-12-14T06:51:52Z", - "pushed_at": "2024-12-14T06:51:54Z", + "created_at": "2024-12-20T13:03:29Z", + "updated_at": "2024-12-20T13:03:33Z", + "pushed_at": "2024-12-20T13:03:35Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkChangedName.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkChangedName.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkChangedName.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/8-r_a_test-fork-with-new-name.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/8-r_a_test-fork-with-new-name.json index 0760838211..dba3b76a3a 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/8-r_a_test-fork-with-new-name.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/8-r_a_test-fork-with-new-name.json @@ -1,6 +1,6 @@ { - "id": 903272198, - "node_id": "R_kgDONdbXBg", + "id": 906237963, + "node_id": "R_kgDONgQYCw", "name": "test-fork-with-new-name", "full_name": "Alaurant/test-fork-with-new-name", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/labels{/name}", "releases_url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/releases{/id}", "deployments_url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/deployments", - "created_at": "2024-12-14T06:51:54Z", - "updated_at": "2024-12-14T06:51:54Z", - "pushed_at": "2024-12-14T06:51:53Z", + "created_at": "2024-12-20T13:03:36Z", + "updated_at": "2024-12-20T13:03:36Z", + "pushed_at": "2024-12-20T13:03:35Z", "git_url": "git://github.com/Alaurant/test-fork-with-new-name.git", "ssh_url": "git@github.com:Alaurant/test-fork-with-new-name.git", "clone_url": "https://github.com/Alaurant/test-fork-with-new-name.git", @@ -118,8 +118,8 @@ "merge_commit_message": "PR_TITLE", "merge_commit_title": "MERGE_MESSAGE", "parent": { - "id": 903272168, - "node_id": "R_kgDONdbW6A", + "id": 906237934, + "node_id": "R_kgDONgQX7g", "name": "temp-testForkChangedName", "full_name": "hub4j-test-org/temp-testForkChangedName", "private": false, @@ -184,9 +184,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/deployments", - "created_at": "2024-12-14T06:51:48Z", - "updated_at": "2024-12-14T06:51:52Z", - "pushed_at": "2024-12-14T06:51:54Z", + "created_at": "2024-12-20T13:03:29Z", + "updated_at": "2024-12-20T13:03:33Z", + "pushed_at": "2024-12-20T13:03:36Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkChangedName.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkChangedName.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkChangedName.git", @@ -219,8 +219,8 @@ "default_branch": "main" }, "source": { - "id": 903272168, - "node_id": "R_kgDONdbW6A", + "id": 906237934, + "node_id": "R_kgDONgQX7g", "name": "temp-testForkChangedName", "full_name": "hub4j-test-org/temp-testForkChangedName", "private": false, @@ -285,9 +285,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/deployments", - "created_at": "2024-12-14T06:51:48Z", - "updated_at": "2024-12-14T06:51:52Z", - "pushed_at": "2024-12-14T06:51:54Z", + "created_at": "2024-12-20T13:03:29Z", + "updated_at": "2024-12-20T13:03:33Z", + "pushed_at": "2024-12-20T13:03:36Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkChangedName.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkChangedName.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkChangedName.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/9-r_a_test-fork-with-new-name.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/9-r_a_test-fork-with-new-name.json index 0760838211..dba3b76a3a 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/9-r_a_test-fork-with-new-name.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/__files/9-r_a_test-fork-with-new-name.json @@ -1,6 +1,6 @@ { - "id": 903272198, - "node_id": "R_kgDONdbXBg", + "id": 906237963, + "node_id": "R_kgDONgQYCw", "name": "test-fork-with-new-name", "full_name": "Alaurant/test-fork-with-new-name", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/labels{/name}", "releases_url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/releases{/id}", "deployments_url": "https://api.github.com/repos/Alaurant/test-fork-with-new-name/deployments", - "created_at": "2024-12-14T06:51:54Z", - "updated_at": "2024-12-14T06:51:54Z", - "pushed_at": "2024-12-14T06:51:53Z", + "created_at": "2024-12-20T13:03:36Z", + "updated_at": "2024-12-20T13:03:36Z", + "pushed_at": "2024-12-20T13:03:35Z", "git_url": "git://github.com/Alaurant/test-fork-with-new-name.git", "ssh_url": "git@github.com:Alaurant/test-fork-with-new-name.git", "clone_url": "https://github.com/Alaurant/test-fork-with-new-name.git", @@ -118,8 +118,8 @@ "merge_commit_message": "PR_TITLE", "merge_commit_title": "MERGE_MESSAGE", "parent": { - "id": 903272168, - "node_id": "R_kgDONdbW6A", + "id": 906237934, + "node_id": "R_kgDONgQX7g", "name": "temp-testForkChangedName", "full_name": "hub4j-test-org/temp-testForkChangedName", "private": false, @@ -184,9 +184,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/deployments", - "created_at": "2024-12-14T06:51:48Z", - "updated_at": "2024-12-14T06:51:52Z", - "pushed_at": "2024-12-14T06:51:54Z", + "created_at": "2024-12-20T13:03:29Z", + "updated_at": "2024-12-20T13:03:33Z", + "pushed_at": "2024-12-20T13:03:36Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkChangedName.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkChangedName.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkChangedName.git", @@ -219,8 +219,8 @@ "default_branch": "main" }, "source": { - "id": 903272168, - "node_id": "R_kgDONdbW6A", + "id": 906237934, + "node_id": "R_kgDONgQX7g", "name": "temp-testForkChangedName", "full_name": "hub4j-test-org/temp-testForkChangedName", "private": false, @@ -285,9 +285,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/deployments", - "created_at": "2024-12-14T06:51:48Z", - "updated_at": "2024-12-14T06:51:52Z", - "pushed_at": "2024-12-14T06:51:54Z", + "created_at": "2024-12-20T13:03:29Z", + "updated_at": "2024-12-20T13:03:33Z", + "pushed_at": "2024-12-20T13:03:36Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkChangedName.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkChangedName.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkChangedName.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/1-user.json index f82c25b800..7b21147a22 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/1-user.json @@ -1,5 +1,5 @@ { - "id": "273de4e7-e97f-455f-b899-94cf15edae35", + "id": "296851aa-438a-4995-a736-4fe790939978", "name": "user", "request": { "url": "/user", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "1-user.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:46 GMT", + "Date": "Fri, 20 Dec 2024 13:03:27 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"bd1a1097fadb2631ad309c2d5f6d8b5a683e66fdf08990562a2fbc928e55073f\"", - "Last-Modified": "Wed, 11 Dec 2024 02:27:22 GMT", + "ETag": "W/\"385e08560117e426bff1cdeb255753d2813a21fd716dab4fb6fbce27aa60b10f\"", + "Last-Modified": "Sun, 15 Dec 2024 04:04:44 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4494", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "506", + "X-RateLimit-Remaining": "4504", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "496", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19CC:5DF4C:AE1B0E:CB5463:675D2B02" + "X-GitHub-Request-Id": "1828:139242:13EDC55:1760FEE:67656B1F" } }, - "uuid": "273de4e7-e97f-455f-b899-94cf15edae35", + "uuid": "296851aa-438a-4995-a736-4fe790939978", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/10-r_a_t_branches.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/10-r_a_t_branches.json index 472dcb7390..76cb0cd00e 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/10-r_a_t_branches.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/10-r_a_t_branches.json @@ -1,5 +1,5 @@ { - "id": "442fb6bd-868b-44ac-9416-4fcb5a696fad", + "id": "ebfac3e9-0535-464d-bf28-88193b68a22f", "name": "repos_alaurant_test-fork-with-new-name_branches", "request": { "url": "/repos/Alaurant/test-fork-with-new-name/branches", @@ -14,20 +14,20 @@ "status": 200, "bodyFileName": "10-r_a_t_branches.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:52:02 GMT", + "Date": "Fri, 20 Dec 2024 13:03:41 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"5b88d6eb5d8a76d36464fd9e597fb653fa39667813d1ba944674b94d62e85252\"", + "ETag": "W/\"c631fa0760eae27f877eaff9f736d0989178a369351ce7f37fec945ff2c6a285\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4481", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "519", + "X-RateLimit-Remaining": "4491", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "509", "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": "*", @@ -38,10 +38,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19F9:5DF4C:AE1FA6:CB59EE:675D2B12" + "X-GitHub-Request-Id": "1852:32E7C9:14E687F:187C166:67656B2D" } }, - "uuid": "442fb6bd-868b-44ac-9416-4fcb5a696fad", + "uuid": "ebfac3e9-0535-464d-bf28-88193b68a22f", "persistent": true, "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/11-r_a_test-fork-with-new-name.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/11-r_a_test-fork-with-new-name.json index 13535a8210..7e0bc2a0d8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/11-r_a_test-fork-with-new-name.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/11-r_a_test-fork-with-new-name.json @@ -1,5 +1,5 @@ { - "id": "ffcde9f4-0d25-4a0c-b426-0f0894f59af6", + "id": "dcdfdace-40b8-4b5e-9687-4b1ae2da61cb", "name": "repos_alaurant_test-fork-with-new-name", "request": { "url": "/repos/Alaurant/test-fork-with-new-name", @@ -13,16 +13,16 @@ "response": { "status": 204, "headers": { - "Date": "Sat, 14 Dec 2024 06:52:02 GMT", + "Date": "Fri, 20 Dec 2024 13:03:42 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "delete_repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4480", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "520", + "X-RateLimit-Remaining": "4490", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "510", "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": "*", @@ -34,10 +34,10 @@ "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", "Server": "github.com", - "X-GitHub-Request-Id": "19FA:3DF01B:925F10:AF3AD5:675D2B12" + "X-GitHub-Request-Id": "1853:273586:157205C:18F4950:67656B2D" } }, - "uuid": "ffcde9f4-0d25-4a0c-b426-0f0894f59af6", + "uuid": "dcdfdace-40b8-4b5e-9687-4b1ae2da61cb", "persistent": true, "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/2-r_h_temp-testforkchangedname.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/2-r_h_temp-testforkchangedname.json index a75ed68c06..eda249760a 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/2-r_h_temp-testforkchangedname.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/2-r_h_temp-testforkchangedname.json @@ -1,5 +1,5 @@ { - "id": "58deacb2-5ff8-4eea-90a7-546276c36dae", + "id": "11509f39-9edb-47dc-a69f-816cfd79fa16", "name": "repos_hub4j-test-org_temp-testforkchangedname", "request": { "url": "/repos/hub4j-test-org/temp-testForkChangedName", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "2-r_h_temp-testforkchangedname.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:52 GMT", + "Date": "Fri, 20 Dec 2024 13:03:34 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"aa9143319be0d309c1ad990461aa6ac7b2f54fef8276582b80245f11d6e119e3\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:48 GMT", + "ETag": "W/\"99764250f45d4b61c1d15ffad41b53a6e5ef296b162f522210b67cd0214b43c5\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:33 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4489", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "511", + "X-RateLimit-Remaining": "4499", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "501", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19D9:3DD5DB:9C684E:B94401:675D2B08" + "X-GitHub-Request-Id": "1838:2E6E0F:D8ED8:10A013:67656B25" } }, - "uuid": "58deacb2-5ff8-4eea-90a7-546276c36dae", + "uuid": "11509f39-9edb-47dc-a69f-816cfd79fa16", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/3-r_h_t_git_refs_heads_main.json index bdd98f844e..c842d7e849 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/3-r_h_t_git_refs_heads_main.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/3-r_h_t_git_refs_heads_main.json @@ -1,5 +1,5 @@ { - "id": "4ea80674-0132-4162-a62e-e5841b5a0f18", + "id": "c6c1beff-0694-4b9e-acb9-0d1aa05ac5ee", "name": "repos_hub4j-test-org_temp-testforkchangedname_git_refs_heads_main", "request": { "url": "/repos/hub4j-test-org/temp-testForkChangedName/git/refs/heads/main", @@ -14,12 +14,12 @@ "status": 200, "bodyFileName": "3-r_h_t_git_refs_heads_main.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:52 GMT", + "Date": "Fri, 20 Dec 2024 13:03:34 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"dc6186335041305d54a4e880ba00c56ac938a83da110bbfe51d3a3c59d1b998a\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:52 GMT", + "ETag": "W/\"2493739c0f7e65fd35429517d11640132926b1c782551f832d1308ea1ba79ef5\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:33 GMT", "X-Poll-Interval": "300", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4488", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "512", + "X-RateLimit-Remaining": "4498", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "502", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,10 +40,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19DA:3D576D:A1DBFF:BEB82A:675D2B08" + "X-GitHub-Request-Id": "1839:1F61D2:1661761:1A3F682:67656B26" } }, - "uuid": "4ea80674-0132-4162-a62e-e5841b5a0f18", + "uuid": "c6c1beff-0694-4b9e-acb9-0d1aa05ac5ee", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/4-r_h_t_git_refs.json index cc462dd08d..1730fd871d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/4-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/4-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "e4db1f27-0763-4bf7-8cbe-5b0d5632662f", + "id": "c7b6c861-2877-4c5a-a4b4-32bc2523dab1", "name": "repos_hub4j-test-org_temp-testforkchangedname_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testForkChangedName/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"139dc502225e0e4225408692edd98d8ea537d258\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "4-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:53 GMT", + "Date": "Fri, 20 Dec 2024 13:03:35 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"ad08b8023932e37f3cdadb8f89c752b628be160f1a702324c89b5e512866e165\"", + "ETag": "\"a0b891e8ba84a91a4b9ba07d7b15db97bb50d7bf39d03ac9332c412c82667bda\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4487", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "513", + "X-RateLimit-Remaining": "4497", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "503", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19DE:3DC041:A21EE2:BEFAC0:675D2B08", + "X-GitHub-Request-Id": "183D:3BD1EB:270770:2EA5D7:67656B26", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/refs/heads/test-branch1" } }, - "uuid": "e4db1f27-0763-4bf7-8cbe-5b0d5632662f", + "uuid": "c7b6c861-2877-4c5a-a4b4-32bc2523dab1", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/5-r_h_t_git_refs.json index b1212e3b73..91e4465264 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/5-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/5-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "484b1144-32af-4b58-b2b7-a009f1140e0c", + "id": "66a3a5d7-7308-4cfb-8c31-2947526bf942", "name": "repos_hub4j-test-org_temp-testforkchangedname_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testForkChangedName/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"139dc502225e0e4225408692edd98d8ea537d258\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "5-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:53 GMT", + "Date": "Fri, 20 Dec 2024 13:03:35 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"b87c7b4015b99ec0c58ddb75aec7b55c946726b3a7c4e90d8d1b0b0e64edc912\"", + "ETag": "\"1eb4634a7349b73fbd45ca3f563dfd62af2da8ec230e4814168b09c594b42190\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4486", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "514", + "X-RateLimit-Remaining": "4496", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "504", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19DF:209B7:52679A:643FF4:675D2B09", + "X-GitHub-Request-Id": "183E:18FFDF:F4AD68:11F9AA8:67656B27", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/refs/heads/test-branch2" } }, - "uuid": "484b1144-32af-4b58-b2b7-a009f1140e0c", + "uuid": "66a3a5d7-7308-4cfb-8c31-2947526bf942", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/6-r_h_t_git_refs.json index 70099bb065..89dc886c50 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/6-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/6-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "ea67f8fc-08e2-490e-9272-40dd40933705", + "id": "58ebec6c-7a88-457c-9545-b3ed08e992d5", "name": "repos_hub4j-test-org_temp-testforkchangedname_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testForkChangedName/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"139dc502225e0e4225408692edd98d8ea537d258\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"0bd7d09dfde84e453a2c1d0cdb62adfd7b1adfd6\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "6-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:54 GMT", + "Date": "Fri, 20 Dec 2024 13:03:36 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"6d6f72f088647e14e816fb3e5c94238b333e4393c175a594dadf54b2f26e8997\"", + "ETag": "\"fbd34308ff103da1441a73addb08df717a3a79ed2b13e8ec30ae35d9b64ed979\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4485", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "515", + "X-RateLimit-Remaining": "4495", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "505", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19E0:0A53:381FEF:44DA0C:675D2B09", + "X-GitHub-Request-Id": "192D:245A47:15F550B:19D3441:67656B27", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testForkChangedName/git/refs/heads/test-branch3" } }, - "uuid": "ea67f8fc-08e2-490e-9272-40dd40933705", + "uuid": "58ebec6c-7a88-457c-9545-b3ed08e992d5", "persistent": true, "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/7-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/7-r_h_t_forks.json index 923e3b5b53..9decf4de30 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/7-r_h_t_forks.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/7-r_h_t_forks.json @@ -1,5 +1,5 @@ { - "id": "f146cdd0-ee04-4b78-ad22-af7ac3129690", + "id": "fdf79883-6cca-4684-8679-38e6a2190127", "name": "repos_hub4j-test-org_temp-testforkchangedname_forks", "request": { "url": "/repos/hub4j-test-org/temp-testForkChangedName/forks", @@ -21,7 +21,7 @@ "status": 202, "bodyFileName": "7-r_h_t_forks.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:55 GMT", + "Date": "Fri, 20 Dec 2024 13:03:37 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, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", @@ -29,9 +29,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4484", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "516", + "X-RateLimit-Remaining": "4494", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "506", "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": "*", @@ -43,10 +43,10 @@ "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", "Server": "github.com", - "X-GitHub-Request-Id": "19E4:D973:6E6CF2:84D1C4:675D2B0A" + "X-GitHub-Request-Id": "1843:32E7C9:14E66EE:187BF77:67656B28" } }, - "uuid": "f146cdd0-ee04-4b78-ad22-af7ac3129690", + "uuid": "fdf79883-6cca-4684-8679-38e6a2190127", "persistent": true, "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/8-r_a_test-fork-with-new-name.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/8-r_a_test-fork-with-new-name.json index 126e5be011..e3b78e8a79 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/8-r_a_test-fork-with-new-name.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/8-r_a_test-fork-with-new-name.json @@ -1,5 +1,5 @@ { - "id": "a056b381-9c86-4279-9676-ce4dde3073b2", + "id": "ffa0ad50-719c-4519-89bf-23bb84b88fa7", "name": "repos_alaurant_test-fork-with-new-name", "request": { "url": "/repos/Alaurant/test-fork-with-new-name", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "8-r_a_test-fork-with-new-name.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:55 GMT", + "Date": "Fri, 20 Dec 2024 13:03:37 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"3399e5b137a4c661fa8df0c34ae85ce85af31a828b34f5dd1b1e97692758b4c9\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:54 GMT", + "ETag": "W/\"8abd35382f1e6544398de57cfb7e8fd04978f2c3ec7cdd360b7c8737aa845bd1\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:36 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4483", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "517", + "X-RateLimit-Remaining": "4493", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "507", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19E5:3DCBFA:9CB156:B98DAA:675D2B0B" + "X-GitHub-Request-Id": "1847:2E6E0F:D8FAA:10A117:67656B29" } }, - "uuid": "a056b381-9c86-4279-9676-ce4dde3073b2", + "uuid": "ffa0ad50-719c-4519-89bf-23bb84b88fa7", "persistent": true, "scenarioName": "scenario-1-repos-Alaurant-test-fork-with-new-name", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/9-r_a_test-fork-with-new-name.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/9-r_a_test-fork-with-new-name.json index edd84eaeae..1fa85fc0dc 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/9-r_a_test-fork-with-new-name.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkChangedName/mappings/9-r_a_test-fork-with-new-name.json @@ -1,5 +1,5 @@ { - "id": "cbf78431-4b6a-47b9-acde-e05a495f1273", + "id": "9282fcd8-08cc-4a3a-93d2-42ba0938abe7", "name": "repos_alaurant_test-fork-with-new-name", "request": { "url": "/repos/Alaurant/test-fork-with-new-name", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "9-r_a_test-fork-with-new-name.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:52:02 GMT", + "Date": "Fri, 20 Dec 2024 13:03:41 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"3399e5b137a4c661fa8df0c34ae85ce85af31a828b34f5dd1b1e97692758b4c9\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:54 GMT", + "ETag": "W/\"8abd35382f1e6544398de57cfb7e8fd04978f2c3ec7cdd360b7c8737aa845bd1\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:36 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4482", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "518", + "X-RateLimit-Remaining": "4492", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "508", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19F8:3D576D:A1DEED:BEBB99:675D2B11" + "X-GitHub-Request-Id": "1851:1E9DA:1632513:1A10497:67656B2C" } }, - "uuid": "cbf78431-4b6a-47b9-acde-e05a495f1273", + "uuid": "9282fcd8-08cc-4a3a-93d2-42ba0938abe7", "persistent": true, "scenarioName": "scenario-1-repos-Alaurant-test-fork-with-new-name", "requiredScenarioState": "scenario-1-repos-Alaurant-test-fork-with-new-name-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/1-user.json index ac70fd010c..a385d2bfd8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/1-user.json @@ -21,18 +21,18 @@ "name": "Danyang Zhao", "company": null, "blog": "", - "location": null, + "location": "Brisbane, AUS", "email": null, "hireable": null, "bio": null, "twitter_username": null, "notification_email": null, - "public_repos": 8, + "public_repos": 14, "public_gists": 0, - "followers": 3, - "following": 10, + "followers": 4, + "following": 11, "created_at": "2018-07-28T07:03:48Z", - "updated_at": "2024-12-11T02:27:22Z", + "updated_at": "2024-12-15T04:04:44Z", "private_gists": 0, "total_private_repos": 2, "owned_private_repos": 2, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/10-r_a_t_branches.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/10-r_a_t_branches.json index b377fbc038..3465145fea 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/10-r_a_t_branches.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/10-r_a_t_branches.json @@ -2,8 +2,8 @@ { "name": "main", "commit": { - "sha": "76bdc7517cec45d6925b7bcd8f41ae981cab72e2", - "url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/commits/76bdc7517cec45d6925b7bcd8f41ae981cab72e2" + "sha": "b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8", + "url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/commits/b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8" }, "protected": false, "protection": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/2-r_h_temp-testforkdefaultbranchonly.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/2-r_h_temp-testforkdefaultbranchonly.json index c3903b9c42..204cdaf251 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/2-r_h_temp-testforkdefaultbranchonly.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/2-r_h_temp-testforkdefaultbranchonly.json @@ -1,6 +1,6 @@ { - "id": 903271940, - "node_id": "R_kgDONdbWBA", + "id": 906237492, + "node_id": "R_kgDONgQWNA", "name": "temp-testForkDefaultBranchOnly", "full_name": "hub4j-test-org/temp-testForkDefaultBranchOnly", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/deployments", - "created_at": "2024-12-14T06:50:54Z", - "updated_at": "2024-12-14T06:50:58Z", - "pushed_at": "2024-12-14T06:50:54Z", + "created_at": "2024-12-20T13:02:20Z", + "updated_at": "2024-12-20T13:02:21Z", + "pushed_at": "2024-12-20T13:02:21Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkDefaultBranchOnly.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", @@ -157,5 +157,5 @@ } }, "network_count": 0, - "subscribers_count": 21 + "subscribers_count": 18 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/3-r_h_t_git_refs_heads_main.json index 5cf6e8d734..7cff66cf8b 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/3-r_h_t_git_refs_heads_main.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/3-r_h_t_git_refs_heads_main.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/main", - "node_id": "REF_kwDONdbWBK9yZWZzL2hlYWRzL21haW4", + "node_id": "REF_kwDONgQWNK9yZWZzL2hlYWRzL21haW4", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs/heads/main", "object": { - "sha": "76bdc7517cec45d6925b7bcd8f41ae981cab72e2", + "sha": "b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/commits/76bdc7517cec45d6925b7bcd8f41ae981cab72e2" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/commits/b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/4-r_h_t_git_refs.json index 15a04e0a74..1c0e4f13ce 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/4-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/4-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch1", - "node_id": "REF_kwDONdbWBLdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", + "node_id": "REF_kwDONgQWNLdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs/heads/test-branch1", "object": { - "sha": "76bdc7517cec45d6925b7bcd8f41ae981cab72e2", + "sha": "b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/commits/76bdc7517cec45d6925b7bcd8f41ae981cab72e2" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/commits/b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/5-r_h_t_git_refs.json index 5aed590707..209b1a7dc3 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/5-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/5-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch2", - "node_id": "REF_kwDONdbWBLdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", + "node_id": "REF_kwDONgQWNLdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs/heads/test-branch2", "object": { - "sha": "76bdc7517cec45d6925b7bcd8f41ae981cab72e2", + "sha": "b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/commits/76bdc7517cec45d6925b7bcd8f41ae981cab72e2" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/commits/b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/6-r_h_t_git_refs.json index 0c990c26cd..4a510dbffc 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/6-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/6-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch3", - "node_id": "REF_kwDONdbWBLdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", + "node_id": "REF_kwDONgQWNLdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs/heads/test-branch3", "object": { - "sha": "76bdc7517cec45d6925b7bcd8f41ae981cab72e2", + "sha": "b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/commits/76bdc7517cec45d6925b7bcd8f41ae981cab72e2" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/commits/b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/7-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/7-r_h_t_forks.json index 9737475c8d..1067cc9089 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/7-r_h_t_forks.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/7-r_h_t_forks.json @@ -1,6 +1,6 @@ { - "id": 903271965, - "node_id": "R_kgDONdbWHQ", + "id": 906237549, + "node_id": "R_kgDONgQWbQ", "name": "temp-testForkDefaultBranchOnly", "full_name": "Alaurant/temp-testForkDefaultBranchOnly", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/labels{/name}", "releases_url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/releases{/id}", "deployments_url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/deployments", - "created_at": "2024-12-14T06:51:00Z", - "updated_at": "2024-12-14T06:51:00Z", - "pushed_at": "2024-12-14T06:51:00Z", + "created_at": "2024-12-20T13:02:28Z", + "updated_at": "2024-12-20T13:02:28Z", + "pushed_at": "2024-12-20T13:02:27Z", "git_url": "git://github.com/Alaurant/temp-testForkDefaultBranchOnly.git", "ssh_url": "git@github.com:Alaurant/temp-testForkDefaultBranchOnly.git", "clone_url": "https://github.com/Alaurant/temp-testForkDefaultBranchOnly.git", @@ -106,8 +106,8 @@ "pull": true }, "parent": { - "id": 903271940, - "node_id": "R_kgDONdbWBA", + "id": 906237492, + "node_id": "R_kgDONgQWNA", "name": "temp-testForkDefaultBranchOnly", "full_name": "hub4j-test-org/temp-testForkDefaultBranchOnly", "private": false, @@ -172,9 +172,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/deployments", - "created_at": "2024-12-14T06:50:54Z", - "updated_at": "2024-12-14T06:50:58Z", - "pushed_at": "2024-12-14T06:51:00Z", + "created_at": "2024-12-20T13:02:20Z", + "updated_at": "2024-12-20T13:02:25Z", + "pushed_at": "2024-12-20T13:02:27Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkDefaultBranchOnly.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", @@ -207,8 +207,8 @@ "default_branch": "main" }, "source": { - "id": 903271940, - "node_id": "R_kgDONdbWBA", + "id": 906237492, + "node_id": "R_kgDONgQWNA", "name": "temp-testForkDefaultBranchOnly", "full_name": "hub4j-test-org/temp-testForkDefaultBranchOnly", "private": false, @@ -273,9 +273,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/deployments", - "created_at": "2024-12-14T06:50:54Z", - "updated_at": "2024-12-14T06:50:58Z", - "pushed_at": "2024-12-14T06:51:00Z", + "created_at": "2024-12-20T13:02:20Z", + "updated_at": "2024-12-20T13:02:25Z", + "pushed_at": "2024-12-20T13:02:27Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkDefaultBranchOnly.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/8-r_a_temp-testforkdefaultbranchonly.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/8-r_a_temp-testforkdefaultbranchonly.json index d93ff7e3a4..540be5c247 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/8-r_a_temp-testforkdefaultbranchonly.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/8-r_a_temp-testforkdefaultbranchonly.json @@ -1,6 +1,6 @@ { - "id": 903271965, - "node_id": "R_kgDONdbWHQ", + "id": 906237549, + "node_id": "R_kgDONgQWbQ", "name": "temp-testForkDefaultBranchOnly", "full_name": "Alaurant/temp-testForkDefaultBranchOnly", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/labels{/name}", "releases_url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/releases{/id}", "deployments_url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/deployments", - "created_at": "2024-12-14T06:51:00Z", - "updated_at": "2024-12-14T06:51:00Z", - "pushed_at": "2024-12-14T06:51:00Z", + "created_at": "2024-12-20T13:02:28Z", + "updated_at": "2024-12-20T13:02:28Z", + "pushed_at": "2024-12-20T13:02:27Z", "git_url": "git://github.com/Alaurant/temp-testForkDefaultBranchOnly.git", "ssh_url": "git@github.com:Alaurant/temp-testForkDefaultBranchOnly.git", "clone_url": "https://github.com/Alaurant/temp-testForkDefaultBranchOnly.git", @@ -118,8 +118,8 @@ "merge_commit_message": "PR_TITLE", "merge_commit_title": "MERGE_MESSAGE", "parent": { - "id": 903271940, - "node_id": "R_kgDONdbWBA", + "id": 906237492, + "node_id": "R_kgDONgQWNA", "name": "temp-testForkDefaultBranchOnly", "full_name": "hub4j-test-org/temp-testForkDefaultBranchOnly", "private": false, @@ -184,9 +184,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/deployments", - "created_at": "2024-12-14T06:50:54Z", - "updated_at": "2024-12-14T06:50:58Z", - "pushed_at": "2024-12-14T06:51:00Z", + "created_at": "2024-12-20T13:02:20Z", + "updated_at": "2024-12-20T13:02:25Z", + "pushed_at": "2024-12-20T13:02:27Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkDefaultBranchOnly.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", @@ -219,8 +219,8 @@ "default_branch": "main" }, "source": { - "id": 903271940, - "node_id": "R_kgDONdbWBA", + "id": 906237492, + "node_id": "R_kgDONgQWNA", "name": "temp-testForkDefaultBranchOnly", "full_name": "hub4j-test-org/temp-testForkDefaultBranchOnly", "private": false, @@ -285,9 +285,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/deployments", - "created_at": "2024-12-14T06:50:54Z", - "updated_at": "2024-12-14T06:50:58Z", - "pushed_at": "2024-12-14T06:51:00Z", + "created_at": "2024-12-20T13:02:20Z", + "updated_at": "2024-12-20T13:02:25Z", + "pushed_at": "2024-12-20T13:02:27Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkDefaultBranchOnly.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/9-r_a_temp-testforkdefaultbranchonly.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/9-r_a_temp-testforkdefaultbranchonly.json index d93ff7e3a4..540be5c247 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/9-r_a_temp-testforkdefaultbranchonly.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/__files/9-r_a_temp-testforkdefaultbranchonly.json @@ -1,6 +1,6 @@ { - "id": 903271965, - "node_id": "R_kgDONdbWHQ", + "id": 906237549, + "node_id": "R_kgDONgQWbQ", "name": "temp-testForkDefaultBranchOnly", "full_name": "Alaurant/temp-testForkDefaultBranchOnly", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/labels{/name}", "releases_url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/releases{/id}", "deployments_url": "https://api.github.com/repos/Alaurant/temp-testForkDefaultBranchOnly/deployments", - "created_at": "2024-12-14T06:51:00Z", - "updated_at": "2024-12-14T06:51:00Z", - "pushed_at": "2024-12-14T06:51:00Z", + "created_at": "2024-12-20T13:02:28Z", + "updated_at": "2024-12-20T13:02:28Z", + "pushed_at": "2024-12-20T13:02:27Z", "git_url": "git://github.com/Alaurant/temp-testForkDefaultBranchOnly.git", "ssh_url": "git@github.com:Alaurant/temp-testForkDefaultBranchOnly.git", "clone_url": "https://github.com/Alaurant/temp-testForkDefaultBranchOnly.git", @@ -118,8 +118,8 @@ "merge_commit_message": "PR_TITLE", "merge_commit_title": "MERGE_MESSAGE", "parent": { - "id": 903271940, - "node_id": "R_kgDONdbWBA", + "id": 906237492, + "node_id": "R_kgDONgQWNA", "name": "temp-testForkDefaultBranchOnly", "full_name": "hub4j-test-org/temp-testForkDefaultBranchOnly", "private": false, @@ -184,9 +184,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/deployments", - "created_at": "2024-12-14T06:50:54Z", - "updated_at": "2024-12-14T06:50:58Z", - "pushed_at": "2024-12-14T06:51:00Z", + "created_at": "2024-12-20T13:02:20Z", + "updated_at": "2024-12-20T13:02:25Z", + "pushed_at": "2024-12-20T13:02:27Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkDefaultBranchOnly.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", @@ -219,8 +219,8 @@ "default_branch": "main" }, "source": { - "id": 903271940, - "node_id": "R_kgDONdbWBA", + "id": 906237492, + "node_id": "R_kgDONgQWNA", "name": "temp-testForkDefaultBranchOnly", "full_name": "hub4j-test-org/temp-testForkDefaultBranchOnly", "private": false, @@ -285,9 +285,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/deployments", - "created_at": "2024-12-14T06:50:54Z", - "updated_at": "2024-12-14T06:50:58Z", - "pushed_at": "2024-12-14T06:51:00Z", + "created_at": "2024-12-20T13:02:20Z", + "updated_at": "2024-12-20T13:02:25Z", + "pushed_at": "2024-12-20T13:02:27Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkDefaultBranchOnly.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkDefaultBranchOnly.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/1-user.json index 9fc9dde948..fd54ba4f0d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/1-user.json @@ -1,5 +1,5 @@ { - "id": "d5a423e7-d2fc-4f7d-85e9-fe1daca229ac", + "id": "a1f43b65-4451-4893-b3ec-55bb3ed9acb1", "name": "user", "request": { "url": "/user", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "1-user.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:50:52 GMT", + "Date": "Fri, 20 Dec 2024 13:02:18 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"bd1a1097fadb2631ad309c2d5f6d8b5a683e66fdf08990562a2fbc928e55073f\"", - "Last-Modified": "Wed, 11 Dec 2024 02:27:22 GMT", + "ETag": "W/\"385e08560117e426bff1cdeb255753d2813a21fd716dab4fb6fbce27aa60b10f\"", + "Last-Modified": "Sun, 15 Dec 2024 04:04:44 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4546", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "454", + "X-RateLimit-Remaining": "4583", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "417", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "190C:3DC041:A20ACA:BEE31B:675D2ACC" + "X-GitHub-Request-Id": "192D:245A47:15F4196:19D1C40:67656ADA" } }, - "uuid": "d5a423e7-d2fc-4f7d-85e9-fe1daca229ac", + "uuid": "a1f43b65-4451-4893-b3ec-55bb3ed9acb1", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/10-r_a_t_branches.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/10-r_a_t_branches.json index 010f041b6a..f6ca3b4c1b 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/10-r_a_t_branches.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/10-r_a_t_branches.json @@ -1,5 +1,5 @@ { - "id": "84e14f35-9c42-4cdc-b5b9-bf8b45ee573d", + "id": "3a909acd-2013-4517-9a77-1463cf3264ef", "name": "repos_alaurant_temp-testforkdefaultbranchonly_branches", "request": { "url": "/repos/Alaurant/temp-testForkDefaultBranchOnly/branches", @@ -14,20 +14,20 @@ "status": 200, "bodyFileName": "10-r_a_t_branches.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:08 GMT", + "Date": "Fri, 20 Dec 2024 13:02:34 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"b439479fce9c30791a225cc6ba1fa636e3a80475ffc75b7f98b4c75d658213af\"", + "ETag": "W/\"76199ebd0c7fbbf1471460d4f8f4c0840dd2d806b2508d607c954916e56c287b\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4533", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "467", + "X-RateLimit-Remaining": "4570", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "430", "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": "*", @@ -38,10 +38,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "193F:D973:6E6109:84C325:675D2ADC" + "X-GitHub-Request-Id": "195B:2CFAFD:E77421:111939A:67656AE9" } }, - "uuid": "84e14f35-9c42-4cdc-b5b9-bf8b45ee573d", + "uuid": "3a909acd-2013-4517-9a77-1463cf3264ef", "persistent": true, "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/11-r_a_temp-testforkdefaultbranchonly.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/11-r_a_temp-testforkdefaultbranchonly.json index 70aa20d90c..44cd1b71bb 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/11-r_a_temp-testforkdefaultbranchonly.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/11-r_a_temp-testforkdefaultbranchonly.json @@ -1,5 +1,5 @@ { - "id": "d00a54f4-6caf-4689-8124-f71c6e205eaf", + "id": "f0e6c205-8829-417f-bb6a-9b42277bd227", "name": "repos_alaurant_temp-testforkdefaultbranchonly", "request": { "url": "/repos/Alaurant/temp-testForkDefaultBranchOnly", @@ -13,16 +13,16 @@ "response": { "status": 204, "headers": { - "Date": "Sat, 14 Dec 2024 06:51:09 GMT", + "Date": "Fri, 20 Dec 2024 13:02:34 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "delete_repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4532", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "468", + "X-RateLimit-Remaining": "4569", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "431", "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": "*", @@ -34,10 +34,10 @@ "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", "Server": "github.com", - "X-GitHub-Request-Id": "1940:3DCBFA:9CA596:B97F34:675D2ADC" + "X-GitHub-Request-Id": "195F:2C3D90:F87165:12348DC:67656AEA" } }, - "uuid": "d00a54f4-6caf-4689-8124-f71c6e205eaf", + "uuid": "f0e6c205-8829-417f-bb6a-9b42277bd227", "persistent": true, "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/2-r_h_temp-testforkdefaultbranchonly.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/2-r_h_temp-testforkdefaultbranchonly.json index 412722100e..7c2fa978cb 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/2-r_h_temp-testforkdefaultbranchonly.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/2-r_h_temp-testforkdefaultbranchonly.json @@ -1,5 +1,5 @@ { - "id": "07618e65-53be-40a1-8cfa-09b585fadc37", + "id": "3a839321-aaa9-4ce2-9d8b-1ea770f6325e", "name": "repos_hub4j-test-org_temp-testforkdefaultbranchonly", "request": { "url": "/repos/hub4j-test-org/temp-testForkDefaultBranchOnly", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "2-r_h_temp-testforkdefaultbranchonly.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:50:58 GMT", + "Date": "Fri, 20 Dec 2024 13:02:25 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"43ce4d0b668fbfb6e09865174323a9ffa7ee2f17c389447363b212945a9ebfa3\"", - "Last-Modified": "Sat, 14 Dec 2024 06:50:58 GMT", + "ETag": "W/\"9fb7691cba8fffab330566af72a89dceb7c917597c1de7eb620966055f03e9b9\"", + "Last-Modified": "Fri, 20 Dec 2024 13:02:21 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4541", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "459", + "X-RateLimit-Remaining": "4578", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "422", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "191D:0A53:381028:44C6F8:675D2AD2" + "X-GitHub-Request-Id": "193E:24DD67:1750018:1B2DB22:67656AE1" } }, - "uuid": "07618e65-53be-40a1-8cfa-09b585fadc37", + "uuid": "3a839321-aaa9-4ce2-9d8b-1ea770f6325e", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/3-r_h_t_git_refs_heads_main.json index fd1e61d6b0..58e6f201ac 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/3-r_h_t_git_refs_heads_main.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/3-r_h_t_git_refs_heads_main.json @@ -1,5 +1,5 @@ { - "id": "f456c358-db21-42e4-a6ba-d05162bf868a", + "id": "dfa564a1-6d61-4e0a-b1fa-48d42bbc6b24", "name": "repos_hub4j-test-org_temp-testforkdefaultbranchonly_git_refs_heads_main", "request": { "url": "/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs/heads/main", @@ -14,12 +14,12 @@ "status": 200, "bodyFileName": "3-r_h_t_git_refs_heads_main.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:50:58 GMT", + "Date": "Fri, 20 Dec 2024 13:02:25 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"b3dc1f38cdd7b7610bedb1b6a9939e4ee914fadc6c810ff32a933033b382ec6c\"", - "Last-Modified": "Sat, 14 Dec 2024 06:50:58 GMT", + "ETag": "W/\"53b788241e36ce9adfdf2aac99d9b0a2155ad95fd1a62bb186d67af1bfbfbfe7\"", + "Last-Modified": "Fri, 20 Dec 2024 13:02:25 GMT", "X-Poll-Interval": "300", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4540", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "460", + "X-RateLimit-Remaining": "4577", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "423", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,10 +40,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "191F:0A8D:844AA0:9D6A46:675D2AD2" + "X-GitHub-Request-Id": "1942:59D95:F0E07F:11BBB41:67656AE1" } }, - "uuid": "f456c358-db21-42e4-a6ba-d05162bf868a", + "uuid": "dfa564a1-6d61-4e0a-b1fa-48d42bbc6b24", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/4-r_h_t_git_refs.json index 9f385bb1b8..3bd0fe6549 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/4-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/4-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "a893f33f-8626-4e63-aac7-d247602e7c34", + "id": "8502a8a4-ea0c-47de-9641-248e90d4e491", "name": "repos_hub4j-test-org_temp-testforkdefaultbranchonly_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"76bdc7517cec45d6925b7bcd8f41ae981cab72e2\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "4-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:50:59 GMT", + "Date": "Fri, 20 Dec 2024 13:02:26 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"4cffbef784cbab727ddef773603d23ab6d145d57ee3d8b4fba0bd6c95de44110\"", + "ETag": "\"5cf50c4f85c1ad28af95e9a93d958bf5f0bbfbcde0162aba6c8afbebdf3ce01a\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4539", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "461", + "X-RateLimit-Remaining": "4576", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "424", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "1923:3DA8CF:996F92:B6480F:675D2AD2", + "X-GitHub-Request-Id": "1943:27FAA5:576C08:67E723:67656AE1", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs/heads/test-branch1" } }, - "uuid": "a893f33f-8626-4e63-aac7-d247602e7c34", + "uuid": "8502a8a4-ea0c-47de-9641-248e90d4e491", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/5-r_h_t_git_refs.json index 4878243bed..f9156e8413 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/5-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/5-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "516a5f1a-08de-4ecf-b883-cce1935cf883", + "id": "44aa25ba-a604-4feb-9349-22ecb1dfb052", "name": "repos_hub4j-test-org_temp-testforkdefaultbranchonly_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"76bdc7517cec45d6925b7bcd8f41ae981cab72e2\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "5-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:50:59 GMT", + "Date": "Fri, 20 Dec 2024 13:02:26 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"00212f27dc81dad210884c4abd20bf81d1be50d4620a2ecce10f63d4421a2450\"", + "ETag": "\"fec7f2615f3463b71713f08d854ec421b14a9a09a2e58fe87ac52e69b3acfcf4\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4538", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "462", + "X-RateLimit-Remaining": "4575", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "425", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "1924:3DD05A:A15ACA:BE3304:675D2AD3", + "X-GitHub-Request-Id": "1947:4C45C:1798FF5:1B76B19:67656AE2", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs/heads/test-branch2" } }, - "uuid": "516a5f1a-08de-4ecf-b883-cce1935cf883", + "uuid": "44aa25ba-a604-4feb-9349-22ecb1dfb052", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/6-r_h_t_git_refs.json index 857b860c1d..feb114f100 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/6-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/6-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "3ba653c0-e94d-48b8-9a03-bebb37245051", + "id": "c8d05095-d861-4f4b-8427-5926de20e482", "name": "repos_hub4j-test-org_temp-testforkdefaultbranchonly_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"76bdc7517cec45d6925b7bcd8f41ae981cab72e2\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"b565d5b9adbaf54f1b35d879f0d98c135ad3d7d8\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "6-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:00 GMT", + "Date": "Fri, 20 Dec 2024 13:02:27 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"a9a314e2411b03217e9dc88f53fa1d4712e89a57ae6145ff10d68390e32abb24\"", + "ETag": "\"749132330398f993b38037f886cfb9fc6c294094976dfd9ed2842e8410fe7343\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4537", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "463", + "X-RateLimit-Remaining": "4574", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "426", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "1925:3DD5DB:9C5949:B931D4:675D2AD3", + "X-GitHub-Request-Id": "1948:139242:13EC7B7:175F7B3:67656AE3", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/git/refs/heads/test-branch3" } }, - "uuid": "3ba653c0-e94d-48b8-9a03-bebb37245051", + "uuid": "c8d05095-d861-4f4b-8427-5926de20e482", "persistent": true, "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/7-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/7-r_h_t_forks.json index eb2568f912..9c439fc281 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/7-r_h_t_forks.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/7-r_h_t_forks.json @@ -1,5 +1,5 @@ { - "id": "27482b4d-0bd3-4835-a85e-738caed1dd76", + "id": "e8ef3012-976b-46e8-825d-64021780b138", "name": "repos_hub4j-test-org_temp-testforkdefaultbranchonly_forks", "request": { "url": "/repos/hub4j-test-org/temp-testForkDefaultBranchOnly/forks", @@ -21,7 +21,7 @@ "status": 202, "bodyFileName": "7-r_h_t_forks.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:01 GMT", + "Date": "Fri, 20 Dec 2024 13:02:29 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, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", @@ -29,9 +29,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4536", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "464", + "X-RateLimit-Remaining": "4573", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "427", "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": "*", @@ -43,10 +43,10 @@ "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", "Server": "github.com", - "X-GitHub-Request-Id": "1929:3DF86D:9B3773:B8101E:675D2AD4" + "X-GitHub-Request-Id": "194C:2CFAFD:E7729D:11191A7:67656AE3" } }, - "uuid": "27482b4d-0bd3-4835-a85e-738caed1dd76", + "uuid": "e8ef3012-976b-46e8-825d-64021780b138", "persistent": true, "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/8-r_a_temp-testforkdefaultbranchonly.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/8-r_a_temp-testforkdefaultbranchonly.json index a1debc4051..42e6029115 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/8-r_a_temp-testforkdefaultbranchonly.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/8-r_a_temp-testforkdefaultbranchonly.json @@ -1,5 +1,5 @@ { - "id": "bc94199d-2157-40b9-87e1-43ce1d1ecc8b", + "id": "68dc53e9-7109-430b-acbd-ee8f0dc8badc", "name": "repos_alaurant_temp-testforkdefaultbranchonly", "request": { "url": "/repos/Alaurant/temp-testForkDefaultBranchOnly", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "8-r_a_temp-testforkdefaultbranchonly.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:01 GMT", + "Date": "Fri, 20 Dec 2024 13:02:30 GMT", "Content-Type": "application/json; charset=utf-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/\"79f579a6443b050fe726834e93bbe5dfdb6ba7dcd6bb334a4949daf64528abc9\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:00 GMT", + "ETag": "W/\"258fe8a9c2265c3f43048484d077b712f4b8bfeed0fe8dca8dbf4bf6dd23cfed\"", + "Last-Modified": "Fri, 20 Dec 2024 13:02:28 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4535", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "465", + "X-RateLimit-Remaining": "4572", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "428", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "192D:A4D72:86FB9:A503E:675D2AD5" + "X-GitHub-Request-Id": "1950:2C3D90:F8706A:12347A8:67656AE5" } }, - "uuid": "bc94199d-2157-40b9-87e1-43ce1d1ecc8b", + "uuid": "68dc53e9-7109-430b-acbd-ee8f0dc8badc", "persistent": true, "scenarioName": "scenario-1-repos-Alaurant-temp-testForkDefaultBranchOnly", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/9-r_a_temp-testforkdefaultbranchonly.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/9-r_a_temp-testforkdefaultbranchonly.json index 31b1fa65ff..ee34e7e8bc 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/9-r_a_temp-testforkdefaultbranchonly.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkDefaultBranchOnly/mappings/9-r_a_temp-testforkdefaultbranchonly.json @@ -1,5 +1,5 @@ { - "id": "9a0e9bb8-34df-4479-aad5-be34780da73d", + "id": "80a03a5f-1425-4968-bc89-2b44d5ab566f", "name": "repos_alaurant_temp-testforkdefaultbranchonly", "request": { "url": "/repos/Alaurant/temp-testForkDefaultBranchOnly", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "9-r_a_temp-testforkdefaultbranchonly.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:08 GMT", + "Date": "Fri, 20 Dec 2024 13:02:33 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"79f579a6443b050fe726834e93bbe5dfdb6ba7dcd6bb334a4949daf64528abc9\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:00 GMT", + "ETag": "W/\"258fe8a9c2265c3f43048484d077b712f4b8bfeed0fe8dca8dbf4bf6dd23cfed\"", + "Last-Modified": "Fri, 20 Dec 2024 13:02:28 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4534", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "466", + "X-RateLimit-Remaining": "4571", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "429", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "193E:3E0BF5:A0D60E:BDAF1B:675D2ADB" + "X-GitHub-Request-Id": "195A:245A47:15F4535:19D20C9:67656AE9" } }, - "uuid": "9a0e9bb8-34df-4479-aad5-be34780da73d", + "uuid": "80a03a5f-1425-4968-bc89-2b44d5ab566f", "persistent": true, "scenarioName": "scenario-1-repos-Alaurant-temp-testForkDefaultBranchOnly", "requiredScenarioState": "scenario-1-repos-Alaurant-temp-testForkDefaultBranchOnly-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/1-user.json index ac70fd010c..a385d2bfd8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/1-user.json @@ -21,18 +21,18 @@ "name": "Danyang Zhao", "company": null, "blog": "", - "location": null, + "location": "Brisbane, AUS", "email": null, "hireable": null, "bio": null, "twitter_username": null, "notification_email": null, - "public_repos": 8, + "public_repos": 14, "public_gists": 0, - "followers": 3, - "following": 10, + "followers": 4, + "following": 11, "created_at": "2018-07-28T07:03:48Z", - "updated_at": "2024-12-11T02:27:22Z", + "updated_at": "2024-12-15T04:04:44Z", "private_gists": 0, "total_private_repos": 2, "owned_private_repos": 2, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/10-r_n_temp-testforktoorg.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/10-r_n_temp-testforktoorg.json index 1ac237d58f..d4a7fe7fc5 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/10-r_n_temp-testforktoorg.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/10-r_n_temp-testforktoorg.json @@ -1,6 +1,6 @@ { - "id": 903272050, - "node_id": "R_kgDONdbWcg", + "id": 906237664, + "node_id": "R_kgDONgQW4A", "name": "temp-testForkToOrg", "full_name": "nts-api-test-org/temp-testForkToOrg", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/labels{/name}", "releases_url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/releases{/id}", "deployments_url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/deployments", - "created_at": "2024-12-14T06:51:19Z", - "updated_at": "2024-12-14T06:51:19Z", - "pushed_at": "2024-12-14T06:51:18Z", + "created_at": "2024-12-20T13:02:45Z", + "updated_at": "2024-12-20T13:02:45Z", + "pushed_at": "2024-12-20T13:02:44Z", "git_url": "git://github.com/nts-api-test-org/temp-testForkToOrg.git", "ssh_url": "git@github.com:nts-api-test-org/temp-testForkToOrg.git", "clone_url": "https://github.com/nts-api-test-org/temp-testForkToOrg.git", @@ -140,8 +140,8 @@ "site_admin": false }, "parent": { - "id": 903272007, - "node_id": "R_kgDONdbWRw", + "id": 906237618, + "node_id": "R_kgDONgQWsg", "name": "temp-testForkToOrg", "full_name": "hub4j-test-org/temp-testForkToOrg", "private": false, @@ -206,9 +206,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/deployments", - "created_at": "2024-12-14T06:51:12Z", - "updated_at": "2024-12-14T06:51:16Z", - "pushed_at": "2024-12-14T06:51:18Z", + "created_at": "2024-12-20T13:02:37Z", + "updated_at": "2024-12-20T13:02:42Z", + "pushed_at": "2024-12-20T13:02:44Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkToOrg.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkToOrg.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkToOrg.git", @@ -241,8 +241,8 @@ "default_branch": "main" }, "source": { - "id": 903272007, - "node_id": "R_kgDONdbWRw", + "id": 906237618, + "node_id": "R_kgDONgQWsg", "name": "temp-testForkToOrg", "full_name": "hub4j-test-org/temp-testForkToOrg", "private": false, @@ -307,9 +307,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/deployments", - "created_at": "2024-12-14T06:51:12Z", - "updated_at": "2024-12-14T06:51:16Z", - "pushed_at": "2024-12-14T06:51:18Z", + "created_at": "2024-12-20T13:02:37Z", + "updated_at": "2024-12-20T13:02:42Z", + "pushed_at": "2024-12-20T13:02:44Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkToOrg.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkToOrg.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkToOrg.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/11-r_n_t_branches.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/11-r_n_t_branches.json index 6fc15aece6..2996fd47e3 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/11-r_n_t_branches.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/11-r_n_t_branches.json @@ -2,8 +2,8 @@ { "name": "main", "commit": { - "sha": "a1e66ba18346b7935a47948fc9bdcc8a7644bcd1", - "url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/commits/a1e66ba18346b7935a47948fc9bdcc8a7644bcd1" + "sha": "41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee", + "url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/commits/41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee" }, "protected": false, "protection": { @@ -19,8 +19,8 @@ { "name": "test-branch1", "commit": { - "sha": "a1e66ba18346b7935a47948fc9bdcc8a7644bcd1", - "url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/commits/a1e66ba18346b7935a47948fc9bdcc8a7644bcd1" + "sha": "41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee", + "url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/commits/41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee" }, "protected": false, "protection": { @@ -36,8 +36,8 @@ { "name": "test-branch2", "commit": { - "sha": "a1e66ba18346b7935a47948fc9bdcc8a7644bcd1", - "url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/commits/a1e66ba18346b7935a47948fc9bdcc8a7644bcd1" + "sha": "41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee", + "url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/commits/41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee" }, "protected": false, "protection": { @@ -53,8 +53,8 @@ { "name": "test-branch3", "commit": { - "sha": "a1e66ba18346b7935a47948fc9bdcc8a7644bcd1", - "url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/commits/a1e66ba18346b7935a47948fc9bdcc8a7644bcd1" + "sha": "41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee", + "url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/commits/41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee" }, "protected": false, "protection": { diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/2-r_h_temp-testforktoorg.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/2-r_h_temp-testforktoorg.json index c90234b014..bf1c956405 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/2-r_h_temp-testforktoorg.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/2-r_h_temp-testforktoorg.json @@ -1,6 +1,6 @@ { - "id": 903272007, - "node_id": "R_kgDONdbWRw", + "id": 906237618, + "node_id": "R_kgDONgQWsg", "name": "temp-testForkToOrg", "full_name": "hub4j-test-org/temp-testForkToOrg", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/deployments", - "created_at": "2024-12-14T06:51:12Z", - "updated_at": "2024-12-14T06:51:12Z", - "pushed_at": "2024-12-14T06:51:12Z", + "created_at": "2024-12-20T13:02:37Z", + "updated_at": "2024-12-20T13:02:38Z", + "pushed_at": "2024-12-20T13:02:38Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkToOrg.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkToOrg.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkToOrg.git", @@ -157,5 +157,5 @@ } }, "network_count": 0, - "subscribers_count": 21 + "subscribers_count": 18 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/3-r_h_t_git_refs_heads_main.json index 9fffe28516..e97189c224 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/3-r_h_t_git_refs_heads_main.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/3-r_h_t_git_refs_heads_main.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/main", - "node_id": "REF_kwDONdbWR69yZWZzL2hlYWRzL21haW4", + "node_id": "REF_kwDONgQWsq9yZWZzL2hlYWRzL21haW4", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/refs/heads/main", "object": { - "sha": "a1e66ba18346b7935a47948fc9bdcc8a7644bcd1", + "sha": "41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/commits/a1e66ba18346b7935a47948fc9bdcc8a7644bcd1" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/commits/41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/4-r_h_t_git_refs.json index dad01317b0..9898450e00 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/4-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/4-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch1", - "node_id": "REF_kwDONdbWR7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", + "node_id": "REF_kwDONgQWsrdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/refs/heads/test-branch1", "object": { - "sha": "a1e66ba18346b7935a47948fc9bdcc8a7644bcd1", + "sha": "41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/commits/a1e66ba18346b7935a47948fc9bdcc8a7644bcd1" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/commits/41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/5-r_h_t_git_refs.json index 0c6d3a7de9..bd3b93a738 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/5-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/5-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch2", - "node_id": "REF_kwDONdbWR7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", + "node_id": "REF_kwDONgQWsrdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/refs/heads/test-branch2", "object": { - "sha": "a1e66ba18346b7935a47948fc9bdcc8a7644bcd1", + "sha": "41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/commits/a1e66ba18346b7935a47948fc9bdcc8a7644bcd1" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/commits/41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/6-r_h_t_git_refs.json index 492adf11d1..274021a75c 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/6-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/6-r_h_t_git_refs.json @@ -1,10 +1,10 @@ { "ref": "refs/heads/test-branch3", - "node_id": "REF_kwDONdbWR7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", + "node_id": "REF_kwDONgQWsrdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/refs/heads/test-branch3", "object": { - "sha": "a1e66ba18346b7935a47948fc9bdcc8a7644bcd1", + "sha": "41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee", "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/commits/a1e66ba18346b7935a47948fc9bdcc8a7644bcd1" + "url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/commits/41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee" } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/7-orgs_nts-api-test-org.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/7-orgs_nts-api-test-org.json index cfd283cd9a..6ce9af2a9e 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/7-orgs_nts-api-test-org.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/7-orgs_nts-api-test-org.json @@ -14,7 +14,7 @@ "is_verified": false, "has_organization_projects": true, "has_repository_projects": true, - "public_repos": 3, + "public_repos": 5, "public_gists": 0, "followers": 0, "following": 0, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/8-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/8-r_h_t_forks.json index 15d3546d8f..09fdc636f2 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/8-r_h_t_forks.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/8-r_h_t_forks.json @@ -1,6 +1,6 @@ { - "id": 903272050, - "node_id": "R_kgDONdbWcg", + "id": 906237664, + "node_id": "R_kgDONgQW4A", "name": "temp-testForkToOrg", "full_name": "nts-api-test-org/temp-testForkToOrg", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/labels{/name}", "releases_url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/releases{/id}", "deployments_url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/deployments", - "created_at": "2024-12-14T06:51:19Z", - "updated_at": "2024-12-14T06:51:19Z", - "pushed_at": "2024-12-14T06:51:18Z", + "created_at": "2024-12-20T13:02:45Z", + "updated_at": "2024-12-20T13:02:45Z", + "pushed_at": "2024-12-20T13:02:44Z", "git_url": "git://github.com/nts-api-test-org/temp-testForkToOrg.git", "ssh_url": "git@github.com:nts-api-test-org/temp-testForkToOrg.git", "clone_url": "https://github.com/nts-api-test-org/temp-testForkToOrg.git", @@ -128,8 +128,8 @@ "site_admin": false }, "parent": { - "id": 903272007, - "node_id": "R_kgDONdbWRw", + "id": 906237618, + "node_id": "R_kgDONgQWsg", "name": "temp-testForkToOrg", "full_name": "hub4j-test-org/temp-testForkToOrg", "private": false, @@ -194,9 +194,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/deployments", - "created_at": "2024-12-14T06:51:12Z", - "updated_at": "2024-12-14T06:51:16Z", - "pushed_at": "2024-12-14T06:51:18Z", + "created_at": "2024-12-20T13:02:37Z", + "updated_at": "2024-12-20T13:02:42Z", + "pushed_at": "2024-12-20T13:02:44Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkToOrg.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkToOrg.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkToOrg.git", @@ -229,8 +229,8 @@ "default_branch": "main" }, "source": { - "id": 903272007, - "node_id": "R_kgDONdbWRw", + "id": 906237618, + "node_id": "R_kgDONgQWsg", "name": "temp-testForkToOrg", "full_name": "hub4j-test-org/temp-testForkToOrg", "private": false, @@ -295,9 +295,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/deployments", - "created_at": "2024-12-14T06:51:12Z", - "updated_at": "2024-12-14T06:51:16Z", - "pushed_at": "2024-12-14T06:51:18Z", + "created_at": "2024-12-20T13:02:37Z", + "updated_at": "2024-12-20T13:02:42Z", + "pushed_at": "2024-12-20T13:02:44Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkToOrg.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkToOrg.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkToOrg.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/9-r_n_temp-testforktoorg.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/9-r_n_temp-testforktoorg.json index 1ac237d58f..d4a7fe7fc5 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/9-r_n_temp-testforktoorg.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/__files/9-r_n_temp-testforktoorg.json @@ -1,6 +1,6 @@ { - "id": 903272050, - "node_id": "R_kgDONdbWcg", + "id": 906237664, + "node_id": "R_kgDONgQW4A", "name": "temp-testForkToOrg", "full_name": "nts-api-test-org/temp-testForkToOrg", "private": false, @@ -65,9 +65,9 @@ "labels_url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/labels{/name}", "releases_url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/releases{/id}", "deployments_url": "https://api.github.com/repos/nts-api-test-org/temp-testForkToOrg/deployments", - "created_at": "2024-12-14T06:51:19Z", - "updated_at": "2024-12-14T06:51:19Z", - "pushed_at": "2024-12-14T06:51:18Z", + "created_at": "2024-12-20T13:02:45Z", + "updated_at": "2024-12-20T13:02:45Z", + "pushed_at": "2024-12-20T13:02:44Z", "git_url": "git://github.com/nts-api-test-org/temp-testForkToOrg.git", "ssh_url": "git@github.com:nts-api-test-org/temp-testForkToOrg.git", "clone_url": "https://github.com/nts-api-test-org/temp-testForkToOrg.git", @@ -140,8 +140,8 @@ "site_admin": false }, "parent": { - "id": 903272007, - "node_id": "R_kgDONdbWRw", + "id": 906237618, + "node_id": "R_kgDONgQWsg", "name": "temp-testForkToOrg", "full_name": "hub4j-test-org/temp-testForkToOrg", "private": false, @@ -206,9 +206,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/deployments", - "created_at": "2024-12-14T06:51:12Z", - "updated_at": "2024-12-14T06:51:16Z", - "pushed_at": "2024-12-14T06:51:18Z", + "created_at": "2024-12-20T13:02:37Z", + "updated_at": "2024-12-20T13:02:42Z", + "pushed_at": "2024-12-20T13:02:44Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkToOrg.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkToOrg.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkToOrg.git", @@ -241,8 +241,8 @@ "default_branch": "main" }, "source": { - "id": 903272007, - "node_id": "R_kgDONdbWRw", + "id": 906237618, + "node_id": "R_kgDONgQWsg", "name": "temp-testForkToOrg", "full_name": "hub4j-test-org/temp-testForkToOrg", "private": false, @@ -307,9 +307,9 @@ "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/labels{/name}", "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/releases{/id}", "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/deployments", - "created_at": "2024-12-14T06:51:12Z", - "updated_at": "2024-12-14T06:51:16Z", - "pushed_at": "2024-12-14T06:51:18Z", + "created_at": "2024-12-20T13:02:37Z", + "updated_at": "2024-12-20T13:02:42Z", + "pushed_at": "2024-12-20T13:02:44Z", "git_url": "git://github.com/hub4j-test-org/temp-testForkToOrg.git", "ssh_url": "git@github.com:hub4j-test-org/temp-testForkToOrg.git", "clone_url": "https://github.com/hub4j-test-org/temp-testForkToOrg.git", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/1-user.json index 33b1ca972b..a84c8478b0 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/1-user.json @@ -1,5 +1,5 @@ { - "id": "6a18627c-808b-4803-a7fe-7b336c9db189", + "id": "c8a7f10c-4fc7-4d26-9788-08099d053a6b", "name": "user", "request": { "url": "/user", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "1-user.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:10 GMT", + "Date": "Fri, 20 Dec 2024 13:02:36 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"bd1a1097fadb2631ad309c2d5f6d8b5a683e66fdf08990562a2fbc928e55073f\"", - "Last-Modified": "Wed, 11 Dec 2024 02:27:22 GMT", + "ETag": "W/\"385e08560117e426bff1cdeb255753d2813a21fd716dab4fb6fbce27aa60b10f\"", + "Last-Modified": "Sun, 15 Dec 2024 04:04:44 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4529", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "471", + "X-RateLimit-Remaining": "4566", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "434", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "194E:D973:6E61B7:84C3FB:675D2ADE" + "X-GitHub-Request-Id": "196A:2CFAFD:E774A3:1119436:67656AEC" } }, - "uuid": "6a18627c-808b-4803-a7fe-7b336c9db189", + "uuid": "c8a7f10c-4fc7-4d26-9788-08099d053a6b", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/10-r_n_temp-testforktoorg.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/10-r_n_temp-testforktoorg.json index fa4c9f64cf..75577b75ff 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/10-r_n_temp-testforktoorg.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/10-r_n_temp-testforktoorg.json @@ -1,5 +1,5 @@ { - "id": "124a7359-19e1-4b77-b5fc-388e1c8ee313", + "id": "83ad8c59-db34-4642-a4bc-2c0ee4c69db1", "name": "repos_nts-api-test-org_temp-testforktoorg", "request": { "url": "/repos/nts-api-test-org/temp-testForkToOrg", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "10-r_n_temp-testforktoorg.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:26 GMT", + "Date": "Fri, 20 Dec 2024 13:02:49 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"4f94dcd245b4b846734c63c818d1ee8f715fe204dab0a4d6391634c421b8d00a\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:19 GMT", + "ETag": "W/\"18bcfe6236e0f7bd80bbdbd0501ee09516d7de82d0d1623493784d675b63c28a\"", + "Last-Modified": "Fri, 20 Dec 2024 13:02:45 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4516", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "484", + "X-RateLimit-Remaining": "4553", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "447", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "197D:3DA8CF:99781C:B65231:675D2AEE" + "X-GitHub-Request-Id": "1994:2E6E0F:D826D:109102:67656AF9" } }, - "uuid": "124a7359-19e1-4b77-b5fc-388e1c8ee313", + "uuid": "83ad8c59-db34-4642-a4bc-2c0ee4c69db1", "persistent": true, "scenarioName": "scenario-1-repos-nts-api-test-org-temp-testForkToOrg", "requiredScenarioState": "scenario-1-repos-nts-api-test-org-temp-testForkToOrg-2", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/11-r_n_t_branches.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/11-r_n_t_branches.json index e4b6227d02..db14d66db1 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/11-r_n_t_branches.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/11-r_n_t_branches.json @@ -1,5 +1,5 @@ { - "id": "522ae837-d40b-4f5a-b405-18c67f59541e", + "id": "d0c5f80d-b010-4399-a40d-8569cd9ec759", "name": "repos_nts-api-test-org_temp-testforktoorg_branches", "request": { "url": "/repos/nts-api-test-org/temp-testForkToOrg/branches", @@ -14,20 +14,20 @@ "status": 200, "bodyFileName": "11-r_n_t_branches.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:27 GMT", + "Date": "Fri, 20 Dec 2024 13:02:50 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"2fe41ec7363579b817806db9a14064e0eb80c95e3f61eb4df78bcaea359ae665\"", + "ETag": "W/\"581936b81a7edab9b8efb7d06da4a1c1634837d1c5bd2fd75bf1d9adcaea2fa6\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4515", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "485", + "X-RateLimit-Remaining": "4552", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "448", "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": "*", @@ -38,10 +38,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "1981:5DF4C:AE1426:CB4C51:675D2AEE" + "X-GitHub-Request-Id": "1995:1F61D2:1660BC6:1A3E840:67656AFA" } }, - "uuid": "522ae837-d40b-4f5a-b405-18c67f59541e", + "uuid": "d0c5f80d-b010-4399-a40d-8569cd9ec759", "persistent": true, "insertionIndex": 11 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/12-r_n_temp-testforktoorg.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/12-r_n_temp-testforktoorg.json index 781b3c8c27..f597accb92 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/12-r_n_temp-testforktoorg.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/12-r_n_temp-testforktoorg.json @@ -1,5 +1,5 @@ { - "id": "1b93da6b-c414-47bb-bb1c-911737a36a2f", + "id": "ddc73e30-2d80-4c2d-be70-4e5dadf73c39", "name": "repos_nts-api-test-org_temp-testforktoorg", "request": { "url": "/repos/nts-api-test-org/temp-testForkToOrg", @@ -13,16 +13,16 @@ "response": { "status": 204, "headers": { - "Date": "Sat, 14 Dec 2024 06:51:27 GMT", + "Date": "Fri, 20 Dec 2024 13:02:50 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "delete_repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4514", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "486", + "X-RateLimit-Remaining": "4551", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "449", "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": "*", @@ -34,10 +34,10 @@ "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", "Server": "github.com", - "X-GitHub-Request-Id": "1982:3DF01B:925620:AF2FC3:675D2AEF" + "X-GitHub-Request-Id": "1996:245A47:15F4938:19D25C0:67656AFA" } }, - "uuid": "1b93da6b-c414-47bb-bb1c-911737a36a2f", + "uuid": "ddc73e30-2d80-4c2d-be70-4e5dadf73c39", "persistent": true, "insertionIndex": 12 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/2-r_h_temp-testforktoorg.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/2-r_h_temp-testforktoorg.json index 78d5730a87..5493958a5c 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/2-r_h_temp-testforktoorg.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/2-r_h_temp-testforktoorg.json @@ -1,5 +1,5 @@ { - "id": "ec406ae8-23f9-4e7b-bc68-fce1e9558ad3", + "id": "cbdbb4cf-d38c-475b-b74d-278b13ca1012", "name": "repos_hub4j-test-org_temp-testforktoorg", "request": { "url": "/repos/hub4j-test-org/temp-testForkToOrg", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "2-r_h_temp-testforktoorg.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:16 GMT", + "Date": "Fri, 20 Dec 2024 13:02:42 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"9ad5db13cbe94cfc05ea4f0882bc004af320229bb6f5e345d8a17b7cf0eb25fa\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:12 GMT", + "ETag": "W/\"8b676e0dd05afad713c4b11dfb1c1de9298be89376ed730f84838397c4c8f5c7\"", + "Last-Modified": "Fri, 20 Dec 2024 13:02:38 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4524", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "476", + "X-RateLimit-Remaining": "4561", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "439", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "195D:D973:6E6327:84C5BD:675D2AE4" + "X-GitHub-Request-Id": "197A:24DD67:17503FB:1B2DFF8:67656AF1" } }, - "uuid": "ec406ae8-23f9-4e7b-bc68-fce1e9558ad3", + "uuid": "cbdbb4cf-d38c-475b-b74d-278b13ca1012", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/3-r_h_t_git_refs_heads_main.json index e96bd8e415..5f489cf589 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/3-r_h_t_git_refs_heads_main.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/3-r_h_t_git_refs_heads_main.json @@ -1,5 +1,5 @@ { - "id": "f358d2dc-5b93-43b0-87cf-43bb237be70b", + "id": "03a5031b-64e1-4946-bfb1-8a61f6b7b9c1", "name": "repos_hub4j-test-org_temp-testforktoorg_git_refs_heads_main", "request": { "url": "/repos/hub4j-test-org/temp-testForkToOrg/git/refs/heads/main", @@ -14,12 +14,12 @@ "status": 200, "bodyFileName": "3-r_h_t_git_refs_heads_main.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:16 GMT", + "Date": "Fri, 20 Dec 2024 13:02:42 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"a8a183042635d873de4588fe328fac70206e4b631b75123ff98a082163d48886\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:16 GMT", + "ETag": "W/\"aa6b46f7fbcdea37418ffe101df4c671388ad6d8959d85cbe1b1489d0d5b0a55\"", + "Last-Modified": "Fri, 20 Dec 2024 13:02:42 GMT", "X-Poll-Interval": "300", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4523", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "477", + "X-RateLimit-Remaining": "4560", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "440", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,10 +40,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "1961:3DD5DB:9C5E4E:B937ED:675D2AE4" + "X-GitHub-Request-Id": "197B:3BD1EB:26F8B5:2E940D:67656AF2" } }, - "uuid": "f358d2dc-5b93-43b0-87cf-43bb237be70b", + "uuid": "03a5031b-64e1-4946-bfb1-8a61f6b7b9c1", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/4-r_h_t_git_refs.json index 9ac68d0b4c..1b0ea3d77f 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/4-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/4-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "7993a042-aa9f-4005-805e-c1729a7472d7", + "id": "28469059-929d-4211-a392-56456c73b206", "name": "repos_hub4j-test-org_temp-testforktoorg_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testForkToOrg/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"a1e66ba18346b7935a47948fc9bdcc8a7644bcd1\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "4-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:17 GMT", + "Date": "Fri, 20 Dec 2024 13:02: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": "\"90f3aa27377535f9c68d9832feb01d10c6d1b00af5ae366ff8c346e56d1b2a23\"", + "ETag": "\"10d02a9b0415fba44c816cd3e303d4c6a202ff10bc6581d9c67f47d839f0828f\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4522", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "478", + "X-RateLimit-Remaining": "4559", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "441", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "1962:3D576D:A1D07D:BEAA88:675D2AE5", + "X-GitHub-Request-Id": "197C:18FFDF:F4A00C:11F8A3C:67656AF2", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/refs/heads/test-branch1" } }, - "uuid": "7993a042-aa9f-4005-805e-c1729a7472d7", + "uuid": "28469059-929d-4211-a392-56456c73b206", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/5-r_h_t_git_refs.json index 342ac0f618..b7b18c24b0 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/5-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/5-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "b6ec11a8-afac-46a7-8b3e-08155f1a0d17", + "id": "8420754a-21b3-46c4-bca1-f77f2f79be8b", "name": "repos_hub4j-test-org_temp-testforktoorg_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testForkToOrg/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"a1e66ba18346b7935a47948fc9bdcc8a7644bcd1\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "5-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:17 GMT", + "Date": "Fri, 20 Dec 2024 13:02: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": "\"44bc929e9b3a7ae138e9cb1ef4942062ccec6184a5930934f8875ca8c8082cdf\"", + "ETag": "\"7dd22bcc111ca229e26c1d02d7974ff54e9e78f295bc032c44642b2a776fdd69\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4521", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "479", + "X-RateLimit-Remaining": "4558", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "442", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "1963:5DF4C:AE113B:CB48D9:675D2AE5", + "X-GitHub-Request-Id": "1980:1E9DA:16312D9:1A0EEFC:67656AF3", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/refs/heads/test-branch2" } }, - "uuid": "b6ec11a8-afac-46a7-8b3e-08155f1a0d17", + "uuid": "8420754a-21b3-46c4-bca1-f77f2f79be8b", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/6-r_h_t_git_refs.json index 18cfdd45ae..2565e3a696 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/6-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/6-r_h_t_git_refs.json @@ -1,5 +1,5 @@ { - "id": "41913c8c-ecdd-453a-974d-64961013b6ac", + "id": "10e20365-c0f0-477c-9fac-d909f39d6471", "name": "repos_hub4j-test-org_temp-testforktoorg_git_refs", "request": { "url": "/repos/hub4j-test-org/temp-testForkToOrg/git/refs", @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"a1e66ba18346b7935a47948fc9bdcc8a7644bcd1\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"41bcbfbf3d7ea68ab3488346ee9b323ac9d2f5ee\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "6-r_h_t_git_refs.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:18 GMT", + "Date": "Fri, 20 Dec 2024 13:02:44 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"2e3b4cf99bd6159b6b355d5bb5c03d21e19071352e601477a240528c98697dde\"", + "ETag": "\"0e7d765a25fe6b7e5d08e8bdff9d4788cf1d1a103dd4db65ee05b57dd38aa9cb\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4520", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "480", + "X-RateLimit-Remaining": "4557", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "443", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "1967:209B7:525FB9:6435FE:675D2AE6", + "X-GitHub-Request-Id": "1981:32E7C9:14E5733:187ACB9:67656AF3", "Location": "https://api.github.com/repos/hub4j-test-org/temp-testForkToOrg/git/refs/heads/test-branch3" } }, - "uuid": "41913c8c-ecdd-453a-974d-64961013b6ac", + "uuid": "10e20365-c0f0-477c-9fac-d909f39d6471", "persistent": true, "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/7-orgs_nts-api-test-org.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/7-orgs_nts-api-test-org.json index 67c265979a..b0029bc6b8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/7-orgs_nts-api-test-org.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/7-orgs_nts-api-test-org.json @@ -1,5 +1,5 @@ { - "id": "94d68359-401b-43f4-b05f-22c2d7ab7a2d", + "id": "6eb047bb-0cb7-43d8-b19f-520b915b188b", "name": "orgs_nts-api-test-org", "request": { "url": "/orgs/nts-api-test-org", @@ -14,11 +14,11 @@ "status": 200, "bodyFileName": "7-orgs_nts-api-test-org.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:18 GMT", + "Date": "Fri, 20 Dec 2024 13:02:44 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"fa8d6f03460bec54d9a0f2c10f3563487ac054224a530488158107f7398e92dc\"", + "ETag": "W/\"a2d193e9546a2c5ce8c7be65939b8cae828c7028fafacea86617bebee3f18283\"", "Last-Modified": "Wed, 11 Dec 2024 07:04:56 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", @@ -26,9 +26,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4519", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "481", + "X-RateLimit-Remaining": "4556", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "444", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "1968:0A53:38166A:44CE70:675D2AE6" + "X-GitHub-Request-Id": "1985:2E6E0F:D8129:108F80:67656AF4" } }, - "uuid": "94d68359-401b-43f4-b05f-22c2d7ab7a2d", + "uuid": "6eb047bb-0cb7-43d8-b19f-520b915b188b", "persistent": true, "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/8-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/8-r_h_t_forks.json index 369ec569bb..b9722bf1aa 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/8-r_h_t_forks.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/8-r_h_t_forks.json @@ -1,5 +1,5 @@ { - "id": "135eb3e6-5107-4150-88dc-8ee8d09a827c", + "id": "cbbf3824-9f52-4861-bbba-ed4ba00a633c", "name": "repos_hub4j-test-org_temp-testforktoorg_forks", "request": { "url": "/repos/hub4j-test-org/temp-testForkToOrg/forks", @@ -21,7 +21,7 @@ "status": 202, "bodyFileName": "8-r_h_t_forks.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:19 GMT", + "Date": "Fri, 20 Dec 2024 13:02:45 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, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", @@ -29,9 +29,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4518", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "482", + "X-RateLimit-Remaining": "4555", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "445", "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": "*", @@ -43,10 +43,10 @@ "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", "Server": "github.com", - "X-GitHub-Request-Id": "1969:A4D72:87397:A5527:675D2AE6" + "X-GitHub-Request-Id": "1986:1F61D2:1660AC7:1A3E6F5:67656AF5" } }, - "uuid": "135eb3e6-5107-4150-88dc-8ee8d09a827c", + "uuid": "cbbf3824-9f52-4861-bbba-ed4ba00a633c", "persistent": true, "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/9-r_n_temp-testforktoorg.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/9-r_n_temp-testforktoorg.json index 7b4d189c03..d7a3c17927 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/9-r_n_temp-testforktoorg.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testForkToOrg/mappings/9-r_n_temp-testforktoorg.json @@ -1,5 +1,5 @@ { - "id": "0b3bcc9b-c898-4182-bb04-319fe99b0436", + "id": "7d2f81fc-56fb-458d-9ba8-8bb0a8c4e8dc", "name": "repos_nts-api-test-org_temp-testforktoorg", "request": { "url": "/repos/nts-api-test-org/temp-testForkToOrg", @@ -14,21 +14,21 @@ "status": 200, "bodyFileName": "9-r_n_temp-testforktoorg.json", "headers": { - "Date": "Sat, 14 Dec 2024 06:51:20 GMT", + "Date": "Fri, 20 Dec 2024 13:02:46 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"4f94dcd245b4b846734c63c818d1ee8f715fe204dab0a4d6391634c421b8d00a\"", - "Last-Modified": "Sat, 14 Dec 2024 06:51:19 GMT", + "ETag": "W/\"18bcfe6236e0f7bd80bbdbd0501ee09516d7de82d0d1623493784d675b63c28a\"", + "Last-Modified": "Fri, 20 Dec 2024 13:02:45 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4517", - "X-RateLimit-Reset": "1734160419", - "X-RateLimit-Used": "483", + "X-RateLimit-Remaining": "4554", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "446", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "196D:3DCBFA:9CA855:B98296:675D2AE7" + "X-GitHub-Request-Id": "198A:3BD1EB:26F993:2E9519:67656AF5" } }, - "uuid": "0b3bcc9b-c898-4182-bb04-319fe99b0436", + "uuid": "7d2f81fc-56fb-458d-9ba8-8bb0a8c4e8dc", "persistent": true, "scenarioName": "scenario-1-repos-nts-api-test-org-temp-testForkToOrg", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/1-user.json similarity index 97% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/1-user.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/1-user.json index c0f5cd6745..a385d2bfd8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/1-user.json @@ -27,9 +27,9 @@ "bio": null, "twitter_username": null, "notification_email": null, - "public_repos": 13, + "public_repos": 14, "public_gists": 0, - "followers": 5, + "followers": 4, "following": 11, "created_at": "2018-07-28T07:03:48Z", "updated_at": "2024-12-15T04:04:44Z", diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/2-r_h_temp-testsleep.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/2-r_h_temp-testsleep.json new file mode 100644 index 0000000000..62b0ea59db --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/2-r_h_temp-testsleep.json @@ -0,0 +1,161 @@ +{ + "id": 906237707, + "node_id": "R_kgDONgQXCw", + "name": "temp-testSleep", + "full_name": "hub4j-test-org/temp-testSleep", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/temp-testSleep", + "description": "A test repository for testing the github-api project: temp-testSleep", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/deployments", + "created_at": "2024-12-20T13:02:53Z", + "updated_at": "2024-12-20T13:02:57Z", + "pushed_at": "2024-12-20T13:02:53Z", + "git_url": "git://github.com/hub4j-test-org/temp-testSleep.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testSleep.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testSleep.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testSleep", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "use_squash_pr_title_as_default": false, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "custom_properties": {}, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + }, + "secret_scanning_non_provider_patterns": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 0, + "subscribers_count": 18 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/3-r_h_t_git_refs_heads_main.json new file mode 100644 index 0000000000..81065bd71a --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/3-r_h_t_git_refs_heads_main.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/main", + "node_id": "REF_kwDONgQXC69yZWZzL2hlYWRzL21haW4", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/refs/heads/main", + "object": { + "sha": "2262ad909aaf41a2610868daf35637e008f0a4ef", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/commits/2262ad909aaf41a2610868daf35637e008f0a4ef" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/4-r_h_t_git_refs.json new file mode 100644 index 0000000000..a71dcd2110 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/4-r_h_t_git_refs.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test-branch1", + "node_id": "REF_kwDONgQXC7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/refs/heads/test-branch1", + "object": { + "sha": "2262ad909aaf41a2610868daf35637e008f0a4ef", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/commits/2262ad909aaf41a2610868daf35637e008f0a4ef" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/5-r_h_t_git_refs.json new file mode 100644 index 0000000000..e94ed24537 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/5-r_h_t_git_refs.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test-branch2", + "node_id": "REF_kwDONgQXC7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/refs/heads/test-branch2", + "object": { + "sha": "2262ad909aaf41a2610868daf35637e008f0a4ef", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/commits/2262ad909aaf41a2610868daf35637e008f0a4ef" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/6-r_h_t_git_refs.json new file mode 100644 index 0000000000..24b729ad9f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/__files/6-r_h_t_git_refs.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test-branch3", + "node_id": "REF_kwDONgQXC7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/refs/heads/test-branch3", + "object": { + "sha": "2262ad909aaf41a2610868daf35637e008f0a4ef", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/commits/2262ad909aaf41a2610868daf35637e008f0a4ef" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/1-user.json similarity index 81% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/1-user.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/1-user.json index 5384e79180..8a5192537b 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/1-user.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/1-user.json @@ -1,5 +1,5 @@ { - "id": "d814445c-980c-4944-ae58-7eb71dc6ef3d", + "id": "920a33da-4635-4053-b3c8-668f75dbf5b1", "name": "user", "request": { "url": "/user", @@ -14,11 +14,11 @@ "status": 200, "bodyFileName": "1-user.json", "headers": { - "Date": "Thu, 19 Dec 2024 09:06:48 GMT", + "Date": "Fri, 20 Dec 2024 13:02:52 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"15ad3f096f4802ea1f7ed5a636464e1d8d932f8ea6839d3c2f990769ac966983\"", + "ETag": "W/\"385e08560117e426bff1cdeb255753d2813a21fd716dab4fb6fbce27aa60b10f\"", "Last-Modified": "Sun, 15 Dec 2024 04:04:44 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", @@ -26,9 +26,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4828", - "X-RateLimit-Reset": "1734601009", - "X-RateLimit-Used": "172", + "X-RateLimit-Remaining": "4548", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "452", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19C0:139242:BD1F5B:DD1E84:6763E228" + "X-GitHub-Request-Id": "19A4:1F61D2:1660C42:1A3E8D5:67656AFC" } }, - "uuid": "d814445c-980c-4944-ae58-7eb71dc6ef3d", + "uuid": "920a33da-4635-4053-b3c8-668f75dbf5b1", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/2-r_h_temp-testtimeout.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/2-r_h_temp-testsleep.json similarity index 73% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/2-r_h_temp-testtimeout.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/2-r_h_temp-testsleep.json index 87f92fb2ab..3c9ca6771f 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/2-r_h_temp-testtimeout.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/2-r_h_temp-testsleep.json @@ -1,8 +1,8 @@ { - "id": "cb307d88-008e-4ad2-a67f-c13f30c874f7", - "name": "repos_hub4j-test-org_temp-testtimeout", + "id": "eea96b7f-cbc6-45ef-9401-0588e5e7e57c", + "name": "repos_hub4j-test-org_temp-testsleep", "request": { - "url": "/repos/hub4j-test-org/temp-testTimeout", + "url": "/repos/hub4j-test-org/temp-testSleep", "method": "GET", "headers": { "Accept": { @@ -12,23 +12,23 @@ }, "response": { "status": 200, - "bodyFileName": "2-r_h_temp-testtimeout.json", + "bodyFileName": "2-r_h_temp-testsleep.json", "headers": { - "Date": "Thu, 19 Dec 2024 09:06:54 GMT", + "Date": "Fri, 20 Dec 2024 13:02:57 GMT", "Content-Type": "application/json; charset=utf-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/\"ee8a56da680c21d657c4a7086586631d853996f5814377df444b21f1629147a8\"", - "Last-Modified": "Thu, 19 Dec 2024 09:06:53 GMT", + "ETag": "W/\"86ebe2844fb2b26815d0bc5bd0b7f5068321ae8266fd34e43caa3663ae7500a9\"", + "Last-Modified": "Fri, 20 Dec 2024 13:02:57 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4823", - "X-RateLimit-Reset": "1734601009", - "X-RateLimit-Used": "177", + "X-RateLimit-Remaining": "4543", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "457", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19D0:1552FB:DF49B9:105F495:6763E22D" + "X-GitHub-Request-Id": "19B1:139242:13ED1AF:176036E:67656B01" } }, - "uuid": "cb307d88-008e-4ad2-a67f-c13f30c874f7", + "uuid": "eea96b7f-cbc6-45ef-9401-0588e5e7e57c", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/3-r_h_t_git_refs_heads_main.json similarity index 75% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/3-r_h_t_git_refs_heads_main.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/3-r_h_t_git_refs_heads_main.json index 68cbee27ca..6c817a9896 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/3-r_h_t_git_refs_heads_main.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/3-r_h_t_git_refs_heads_main.json @@ -1,8 +1,8 @@ { - "id": "60c86052-db0a-4676-8264-815a954e77c5", - "name": "repos_hub4j-test-org_temp-testtimeout_git_refs_heads_main", + "id": "42fc350e-db62-44d8-a088-de65e41b7a57", + "name": "repos_hub4j-test-org_temp-testsleep_git_refs_heads_main", "request": { - "url": "/repos/hub4j-test-org/temp-testTimeout/git/refs/heads/main", + "url": "/repos/hub4j-test-org/temp-testSleep/git/refs/heads/main", "method": "GET", "headers": { "Accept": { @@ -14,12 +14,12 @@ "status": 200, "bodyFileName": "3-r_h_t_git_refs_heads_main.json", "headers": { - "Date": "Thu, 19 Dec 2024 09:06:54 GMT", + "Date": "Fri, 20 Dec 2024 13:02:57 GMT", "Content-Type": "application/json; charset=utf-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/\"1dccca98541ff22196de9f0a941d3d6d2627b6bc5725ed9f317ac60060e0146f\"", - "Last-Modified": "Thu, 19 Dec 2024 09:06:53 GMT", + "ETag": "W/\"e79e434c3e1e1a41c9a87f85507eaf4729826087f4de9a135e038261f907efd0\"", + "Last-Modified": "Fri, 20 Dec 2024 13:02:57 GMT", "X-Poll-Interval": "300", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", @@ -27,9 +27,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4822", - "X-RateLimit-Reset": "1734601009", - "X-RateLimit-Used": "178", + "X-RateLimit-Remaining": "4542", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "458", "X-RateLimit-Resource": "core", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "Access-Control-Allow-Origin": "*", @@ -40,10 +40,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19D1:1F61D2:E5D320:10C7DED:6763E22E" + "X-GitHub-Request-Id": "19B2:2E6E0F:D8457:109372:67656B01" } }, - "uuid": "60c86052-db0a-4676-8264-815a954e77c5", + "uuid": "42fc350e-db62-44d8-a088-de65e41b7a57", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/4-r_h_t_git_refs.json similarity index 76% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/4-r_h_t_git_refs.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/4-r_h_t_git_refs.json index 4aa7f0c411..c063fe9d8f 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/4-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/4-r_h_t_git_refs.json @@ -1,8 +1,8 @@ { - "id": "1cd6c9ff-c087-4a4a-b18a-4cccc355bd21", - "name": "repos_hub4j-test-org_temp-testtimeout_git_refs", + "id": "7a021e60-a52c-4765-86b5-defbeea48d30", + "name": "repos_hub4j-test-org_temp-testsleep_git_refs", "request": { - "url": "/repos/hub4j-test-org/temp-testTimeout/git/refs", + "url": "/repos/hub4j-test-org/temp-testSleep/git/refs", "method": "POST", "headers": { "Accept": { @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"3740509d3ea543866e46c5cbe09022cd3ead89af\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"2262ad909aaf41a2610868daf35637e008f0a4ef\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "4-r_h_t_git_refs.json", "headers": { - "Date": "Thu, 19 Dec 2024 09:06:55 GMT", + "Date": "Fri, 20 Dec 2024 13:02:58 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"7c3896daa2f1b3eb34663a3fb34922a091581b62a17dd68bd2f539cbfb1a1f8d\"", + "ETag": "\"ce8b0d214c921dfd9a5106e503888149fd2e80b661026157f17f05d8baac367b\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4821", - "X-RateLimit-Reset": "1734601009", - "X-RateLimit-Used": "179", + "X-RateLimit-Remaining": "4541", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "459", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19D5:244E78:E9CEF1:1107A27:6763E22E", - "Location": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/refs/heads/test-branch1" + "X-GitHub-Request-Id": "19B4:245A47:15F4ADE:19D27EE:67656B02", + "Location": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/refs/heads/test-branch1" } }, - "uuid": "1cd6c9ff-c087-4a4a-b18a-4cccc355bd21", + "uuid": "7a021e60-a52c-4765-86b5-defbeea48d30", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/5-r_h_t_git_refs.json similarity index 76% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/5-r_h_t_git_refs.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/5-r_h_t_git_refs.json index 78fe6d573c..6051fd5c86 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/5-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/5-r_h_t_git_refs.json @@ -1,8 +1,8 @@ { - "id": "38ed0f17-d66a-49b6-810e-c84dd2a753fa", - "name": "repos_hub4j-test-org_temp-testtimeout_git_refs", + "id": "aa0b23e7-7323-4312-9a31-e8cca85a972c", + "name": "repos_hub4j-test-org_temp-testsleep_git_refs", "request": { - "url": "/repos/hub4j-test-org/temp-testTimeout/git/refs", + "url": "/repos/hub4j-test-org/temp-testSleep/git/refs", "method": "POST", "headers": { "Accept": { @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"3740509d3ea543866e46c5cbe09022cd3ead89af\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"2262ad909aaf41a2610868daf35637e008f0a4ef\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "5-r_h_t_git_refs.json", "headers": { - "Date": "Thu, 19 Dec 2024 09:06:55 GMT", + "Date": "Fri, 20 Dec 2024 13:02:58 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"5caefa864de78b1fced67aad88d568d0172e860146eed5c0bd5a4ed90e662f74\"", + "ETag": "\"5f0853d47aa50f3daa4dd212898b38e29d777c10cab4af29c7c300b8f8de877c\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4820", - "X-RateLimit-Reset": "1734601009", - "X-RateLimit-Used": "180", + "X-RateLimit-Remaining": "4540", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "460", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19D6:18FFDF:70CC7D:848563:6763E22F", - "Location": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/refs/heads/test-branch2" + "X-GitHub-Request-Id": "19B7:3BD1EB:26FD25:2E996F:67656B02", + "Location": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/refs/heads/test-branch2" } }, - "uuid": "38ed0f17-d66a-49b6-810e-c84dd2a753fa", + "uuid": "aa0b23e7-7323-4312-9a31-e8cca85a972c", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/6-r_h_t_git_refs.json similarity index 76% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/6-r_h_t_git_refs.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/6-r_h_t_git_refs.json index 6f5303dcb0..947c2096cc 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/6-r_h_t_git_refs.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testSleep/mappings/6-r_h_t_git_refs.json @@ -1,8 +1,8 @@ { - "id": "8a807593-dadd-4e95-98a0-d456eee1305e", - "name": "repos_hub4j-test-org_temp-testtimeout_git_refs", + "id": "2e482ff5-162a-4921-a6fe-ea9f2dc25b69", + "name": "repos_hub4j-test-org_temp-testsleep_git_refs", "request": { - "url": "/repos/hub4j-test-org/temp-testTimeout/git/refs", + "url": "/repos/hub4j-test-org/temp-testSleep/git/refs", "method": "POST", "headers": { "Accept": { @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"3740509d3ea543866e46c5cbe09022cd3ead89af\"}", + "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"2262ad909aaf41a2610868daf35637e008f0a4ef\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,20 +21,20 @@ "status": 201, "bodyFileName": "6-r_h_t_git_refs.json", "headers": { - "Date": "Thu, 19 Dec 2024 09:06:56 GMT", + "Date": "Fri, 20 Dec 2024 13:02:59 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "\"7e64912906f259a1d27d50b40cd48e3e2cdda634d50c45804813c9fc892b7d4e\"", + "ETag": "\"15c73aafecbba7e0366448eabbe876899915cbed3b45316feade0cb532b62947\"", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4819", - "X-RateLimit-Reset": "1734601009", - "X-RateLimit-Used": "181", + "X-RateLimit-Remaining": "4539", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "461", "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": "*", @@ -45,11 +45,11 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19DA:1E9DA:E2CF40:1097A31:6763E22F", - "Location": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/refs/heads/test-branch3" + "X-GitHub-Request-Id": "19B8:18FFDF:F4A373:11F8E9D:67656B03", + "Location": "https://api.github.com/repos/hub4j-test-org/temp-testSleep/git/refs/heads/test-branch3" } }, - "uuid": "8a807593-dadd-4e95-98a0-d456eee1305e", + "uuid": "2e482ff5-162a-4921-a6fe-ea9f2dc25b69", "persistent": true, "insertionIndex": 6 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/3-r_h_t_git_refs_heads_main.json deleted file mode 100644 index 838ea5c4e9..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/3-r_h_t_git_refs_heads_main.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ref": "refs/heads/main", - "node_id": "REF_kwDONfswoa9yZWZzL2hlYWRzL21haW4", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/refs/heads/main", - "object": { - "sha": "3740509d3ea543866e46c5cbe09022cd3ead89af", - "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/commits/3740509d3ea543866e46c5cbe09022cd3ead89af" - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/4-r_h_t_git_refs.json deleted file mode 100644 index 5760e3ca8a..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/4-r_h_t_git_refs.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ref": "refs/heads/test-branch1", - "node_id": "REF_kwDONfswobdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/refs/heads/test-branch1", - "object": { - "sha": "3740509d3ea543866e46c5cbe09022cd3ead89af", - "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/commits/3740509d3ea543866e46c5cbe09022cd3ead89af" - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/5-r_h_t_git_refs.json deleted file mode 100644 index 5c96ec1fc5..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/5-r_h_t_git_refs.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ref": "refs/heads/test-branch2", - "node_id": "REF_kwDONfswobdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/refs/heads/test-branch2", - "object": { - "sha": "3740509d3ea543866e46c5cbe09022cd3ead89af", - "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/commits/3740509d3ea543866e46c5cbe09022cd3ead89af" - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/6-r_h_t_git_refs.json deleted file mode 100644 index 0fba37bb0b..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/6-r_h_t_git_refs.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "ref": "refs/heads/test-branch3", - "node_id": "REF_kwDONfswobdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/refs/heads/test-branch3", - "object": { - "sha": "3740509d3ea543866e46c5cbe09022cd3ead89af", - "type": "commit", - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/commits/3740509d3ea543866e46c5cbe09022cd3ead89af" - } -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/8-r_a_temp-testtimeout.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/8-r_a_temp-testtimeout.json deleted file mode 100644 index bca0241a4b..0000000000 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/8-r_a_temp-testtimeout.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "id": 905651743, - "node_id": "R_kgDONfsmHw", - "name": "temp-testTimeout", - "full_name": "Alaurant/temp-testTimeout", - "private": false, - "owner": { - "login": "Alaurant", - "id": 41817560, - "node_id": "MDQ6VXNlcjQxODE3NTYw", - "avatar_url": "https://avatars.githubusercontent.com/u/41817560?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Alaurant", - "html_url": "https://github.com/Alaurant", - "followers_url": "https://api.github.com/users/Alaurant/followers", - "following_url": "https://api.github.com/users/Alaurant/following{/other_user}", - "gists_url": "https://api.github.com/users/Alaurant/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Alaurant/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Alaurant/subscriptions", - "organizations_url": "https://api.github.com/users/Alaurant/orgs", - "repos_url": "https://api.github.com/users/Alaurant/repos", - "events_url": "https://api.github.com/users/Alaurant/events{/privacy}", - "received_events_url": "https://api.github.com/users/Alaurant/received_events", - "type": "User", - "user_view_type": "public", - "site_admin": false - }, - "html_url": "https://github.com/Alaurant/temp-testTimeout", - "description": "A test repository for testing the github-api project: temp-testTimeout", - "fork": false, - "url": "https://api.github.com/repos/Alaurant/temp-testTimeout", - "forks_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/forks", - "keys_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/teams", - "hooks_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/hooks", - "issue_events_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/issues/events{/number}", - "events_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/events", - "assignees_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/assignees{/user}", - "branches_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/branches{/branch}", - "tags_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/tags", - "blobs_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/languages", - "stargazers_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/stargazers", - "contributors_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/contributors", - "subscribers_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/subscribers", - "subscription_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/subscription", - "commits_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/contents/{+path}", - "compare_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/merges", - "archive_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/downloads", - "issues_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/issues{/number}", - "pulls_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/labels{/name}", - "releases_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/releases{/id}", - "deployments_url": "https://api.github.com/repos/Alaurant/temp-testTimeout/deployments", - "created_at": "2024-12-19T09:00:34Z", - "updated_at": "2024-12-19T09:00:34Z", - "pushed_at": "2024-12-19T09:00:32Z", - "git_url": "git://github.com/Alaurant/temp-testTimeout.git", - "ssh_url": "git@github.com:Alaurant/temp-testTimeout.git", - "clone_url": "https://github.com/Alaurant/temp-testTimeout.git", - "svn_url": "https://github.com/Alaurant/temp-testTimeout", - "homepage": "http://github-api.kohsuke.org/", - "size": 0, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "has_discussions": false, - "forks_count": 0, - "mirror_url": null, - "archived": false, - "disabled": false, - "open_issues_count": 0, - "license": null, - "allow_forking": true, - "is_template": false, - "web_commit_signoff_required": false, - "topics": [], - "visibility": "public", - "forks": 0, - "open_issues": 0, - "watchers": 0, - "default_branch": "main", - "permissions": { - "admin": true, - "maintain": true, - "push": true, - "triage": true, - "pull": true - }, - "temp_clone_token": "", - "allow_squash_merge": true, - "allow_merge_commit": true, - "allow_rebase_merge": true, - "allow_auto_merge": false, - "delete_branch_on_merge": false, - "allow_update_branch": false, - "use_squash_pr_title_as_default": false, - "squash_merge_commit_message": "COMMIT_MESSAGES", - "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", - "merge_commit_message": "PR_TITLE", - "merge_commit_title": "MERGE_MESSAGE", - "security_and_analysis": { - "secret_scanning": { - "status": "enabled" - }, - "secret_scanning_push_protection": { - "status": "enabled" - }, - "dependabot_security_updates": { - "status": "disabled" - }, - "secret_scanning_non_provider_patterns": { - "status": "disabled" - }, - "secret_scanning_validity_checks": { - "status": "disabled" - } - }, - "network_count": 0, - "subscribers_count": 0 -} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/1-user.json new file mode 100644 index 0000000000..a385d2bfd8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/1-user.json @@ -0,0 +1,48 @@ +{ + "login": "Alaurant", + "id": 41817560, + "node_id": "MDQ6VXNlcjQxODE3NTYw", + "avatar_url": "https://avatars.githubusercontent.com/u/41817560?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Alaurant", + "html_url": "https://github.com/Alaurant", + "followers_url": "https://api.github.com/users/Alaurant/followers", + "following_url": "https://api.github.com/users/Alaurant/following{/other_user}", + "gists_url": "https://api.github.com/users/Alaurant/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Alaurant/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Alaurant/subscriptions", + "organizations_url": "https://api.github.com/users/Alaurant/orgs", + "repos_url": "https://api.github.com/users/Alaurant/repos", + "events_url": "https://api.github.com/users/Alaurant/events{/privacy}", + "received_events_url": "https://api.github.com/users/Alaurant/received_events", + "type": "User", + "user_view_type": "private", + "site_admin": false, + "name": "Danyang Zhao", + "company": null, + "blog": "", + "location": "Brisbane, AUS", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "notification_email": null, + "public_repos": 14, + "public_gists": 0, + "followers": 4, + "following": 11, + "created_at": "2018-07-28T07:03:48Z", + "updated_at": "2024-12-15T04:04:44Z", + "private_gists": 0, + "total_private_repos": 2, + "owned_private_repos": 2, + "disk_usage": 7314, + "collaborators": 0, + "two_factor_authentication": false, + "plan": { + "name": "pro", + "space": 976562499, + "collaborators": 0, + "private_repos": 9999 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/2-r_h_temp-testtimeout.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/2-r_h_temp-testtimeoutmessage.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/2-r_h_temp-testtimeout.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/2-r_h_temp-testtimeoutmessage.json index fe156fdf06..a19bd2b1e8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/2-r_h_temp-testtimeout.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/2-r_h_temp-testtimeoutmessage.json @@ -1,8 +1,8 @@ { - "id": 905654433, - "node_id": "R_kgDONfswoQ", - "name": "temp-testTimeout", - "full_name": "hub4j-test-org/temp-testTimeout", + "id": 906238015, + "node_id": "R_kgDONgQYPw", + "name": "temp-testTimeoutMessage", + "full_name": "hub4j-test-org/temp-testTimeoutMessage", "private": false, "owner": { "login": "hub4j-test-org", @@ -25,53 +25,53 @@ "user_view_type": "public", "site_admin": false }, - "html_url": "https://github.com/hub4j-test-org/temp-testTimeout", - "description": "A test repository for testing the github-api project: temp-testTimeout", + "html_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage", + "description": "A test repository for testing the github-api project: temp-testTimeoutMessage", "fork": false, - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout", - "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/forks", - "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/teams", - "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/hooks", - "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/issues/events{/number}", - "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/events", - "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/assignees{/user}", - "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/branches{/branch}", - "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/tags", - "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/statuses/{sha}", - "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/languages", - "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/stargazers", - "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/contributors", - "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/subscribers", - "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/subscription", - "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/contents/{+path}", - "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/merges", - "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/downloads", - "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/issues{/number}", - "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/pulls{/number}", - "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/milestones{/number}", - "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/labels{/name}", - "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/releases{/id}", - "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/deployments", - "created_at": "2024-12-19T09:06:49Z", - "updated_at": "2024-12-19T09:06:53Z", - "pushed_at": "2024-12-19T09:06:50Z", - "git_url": "git://github.com/hub4j-test-org/temp-testTimeout.git", - "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeout.git", - "clone_url": "https://github.com/hub4j-test-org/temp-testTimeout.git", - "svn_url": "https://github.com/hub4j-test-org/temp-testTimeout", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/deployments", + "created_at": "2024-12-20T13:03:45Z", + "updated_at": "2024-12-20T13:03:48Z", + "pushed_at": "2024-12-20T13:03:45Z", + "git_url": "git://github.com/hub4j-test-org/temp-testTimeoutMessage.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeoutMessage.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage", "homepage": "http://github-api.kohsuke.org/", "size": 0, "stargazers_count": 0, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/3-r_h_t_git_refs_heads_main.json new file mode 100644 index 0000000000..25531a13e5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/3-r_h_t_git_refs_heads_main.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/main", + "node_id": "REF_kwDONgQYP69yZWZzL2hlYWRzL21haW4", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs/heads/main", + "object": { + "sha": "1ea7a80cf8b399714e9988d6c1138fb7ce95e407", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/commits/1ea7a80cf8b399714e9988d6c1138fb7ce95e407" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/4-r_h_t_git_refs.json new file mode 100644 index 0000000000..ec2696a427 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/4-r_h_t_git_refs.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test-branch1", + "node_id": "REF_kwDONgQYP7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs/heads/test-branch1", + "object": { + "sha": "1ea7a80cf8b399714e9988d6c1138fb7ce95e407", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/commits/1ea7a80cf8b399714e9988d6c1138fb7ce95e407" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/5-r_h_t_git_refs.json new file mode 100644 index 0000000000..09f465403f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/5-r_h_t_git_refs.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test-branch2", + "node_id": "REF_kwDONgQYP7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs/heads/test-branch2", + "object": { + "sha": "1ea7a80cf8b399714e9988d6c1138fb7ce95e407", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/commits/1ea7a80cf8b399714e9988d6c1138fb7ce95e407" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/6-r_h_t_git_refs.json new file mode 100644 index 0000000000..1396eeeebd --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/6-r_h_t_git_refs.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test-branch3", + "node_id": "REF_kwDONgQYP7dyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs/heads/test-branch3", + "object": { + "sha": "1ea7a80cf8b399714e9988d6c1138fb7ce95e407", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/commits/1ea7a80cf8b399714e9988d6c1138fb7ce95e407" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/7-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/7-r_h_t_forks.json similarity index 59% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/7-r_h_t_forks.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/7-r_h_t_forks.json index 1f78243d40..d035851ade 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/__files/7-r_h_t_forks.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/7-r_h_t_forks.json @@ -1,8 +1,8 @@ { - "id": 905654486, - "node_id": "R_kgDONfsw1g", - "name": "temp-testTimeout-2", - "full_name": "Alaurant/temp-testTimeout-2", + "id": 906238046, + "node_id": "R_kgDONgQYXg", + "name": "test-message", + "full_name": "Alaurant/test-message", "private": false, "owner": { "login": "Alaurant", @@ -25,53 +25,53 @@ "user_view_type": "public", "site_admin": false }, - "html_url": "https://github.com/Alaurant/temp-testTimeout-2", - "description": "A test repository for testing the github-api project: temp-testTimeout", + "html_url": "https://github.com/Alaurant/test-message", + "description": "A test repository for testing the github-api project: temp-testTimeoutMessage", "fork": true, - "url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2", - "forks_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/forks", - "keys_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/teams", - "hooks_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/hooks", - "issue_events_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/issues/events{/number}", - "events_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/events", - "assignees_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/assignees{/user}", - "branches_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/branches{/branch}", - "tags_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/tags", - "blobs_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/languages", - "stargazers_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/stargazers", - "contributors_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/contributors", - "subscribers_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/subscribers", - "subscription_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/subscription", - "commits_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/contents/{+path}", - "compare_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/merges", - "archive_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/downloads", - "issues_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/issues{/number}", - "pulls_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/labels{/name}", - "releases_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/releases{/id}", - "deployments_url": "https://api.github.com/repos/Alaurant/temp-testTimeout-2/deployments", - "created_at": "2024-12-19T09:06:56Z", - "updated_at": "2024-12-19T09:06:56Z", - "pushed_at": "2024-12-19T09:06:56Z", - "git_url": "git://github.com/Alaurant/temp-testTimeout-2.git", - "ssh_url": "git@github.com:Alaurant/temp-testTimeout-2.git", - "clone_url": "https://github.com/Alaurant/temp-testTimeout-2.git", - "svn_url": "https://github.com/Alaurant/temp-testTimeout-2", + "url": "https://api.github.com/repos/Alaurant/test-message", + "forks_url": "https://api.github.com/repos/Alaurant/test-message/forks", + "keys_url": "https://api.github.com/repos/Alaurant/test-message/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Alaurant/test-message/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Alaurant/test-message/teams", + "hooks_url": "https://api.github.com/repos/Alaurant/test-message/hooks", + "issue_events_url": "https://api.github.com/repos/Alaurant/test-message/issues/events{/number}", + "events_url": "https://api.github.com/repos/Alaurant/test-message/events", + "assignees_url": "https://api.github.com/repos/Alaurant/test-message/assignees{/user}", + "branches_url": "https://api.github.com/repos/Alaurant/test-message/branches{/branch}", + "tags_url": "https://api.github.com/repos/Alaurant/test-message/tags", + "blobs_url": "https://api.github.com/repos/Alaurant/test-message/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Alaurant/test-message/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Alaurant/test-message/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Alaurant/test-message/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Alaurant/test-message/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Alaurant/test-message/languages", + "stargazers_url": "https://api.github.com/repos/Alaurant/test-message/stargazers", + "contributors_url": "https://api.github.com/repos/Alaurant/test-message/contributors", + "subscribers_url": "https://api.github.com/repos/Alaurant/test-message/subscribers", + "subscription_url": "https://api.github.com/repos/Alaurant/test-message/subscription", + "commits_url": "https://api.github.com/repos/Alaurant/test-message/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Alaurant/test-message/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Alaurant/test-message/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Alaurant/test-message/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Alaurant/test-message/contents/{+path}", + "compare_url": "https://api.github.com/repos/Alaurant/test-message/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Alaurant/test-message/merges", + "archive_url": "https://api.github.com/repos/Alaurant/test-message/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Alaurant/test-message/downloads", + "issues_url": "https://api.github.com/repos/Alaurant/test-message/issues{/number}", + "pulls_url": "https://api.github.com/repos/Alaurant/test-message/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Alaurant/test-message/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Alaurant/test-message/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Alaurant/test-message/labels{/name}", + "releases_url": "https://api.github.com/repos/Alaurant/test-message/releases{/id}", + "deployments_url": "https://api.github.com/repos/Alaurant/test-message/deployments", + "created_at": "2024-12-20T13:03:51Z", + "updated_at": "2024-12-20T13:03:52Z", + "pushed_at": "2024-12-20T13:03:50Z", + "git_url": "git://github.com/Alaurant/test-message.git", + "ssh_url": "git@github.com:Alaurant/test-message.git", + "clone_url": "https://github.com/Alaurant/test-message.git", + "svn_url": "https://github.com/Alaurant/test-message", "homepage": "http://github-api.kohsuke.org/", "size": 0, "stargazers_count": 0, @@ -106,10 +106,10 @@ "pull": true }, "parent": { - "id": 905654433, - "node_id": "R_kgDONfswoQ", - "name": "temp-testTimeout", - "full_name": "hub4j-test-org/temp-testTimeout", + "id": 906238015, + "node_id": "R_kgDONgQYPw", + "name": "temp-testTimeoutMessage", + "full_name": "hub4j-test-org/temp-testTimeoutMessage", "private": false, "owner": { "login": "hub4j-test-org", @@ -132,53 +132,53 @@ "user_view_type": "public", "site_admin": false }, - "html_url": "https://github.com/hub4j-test-org/temp-testTimeout", - "description": "A test repository for testing the github-api project: temp-testTimeout", + "html_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage", + "description": "A test repository for testing the github-api project: temp-testTimeoutMessage", "fork": false, - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout", - "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/forks", - "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/teams", - "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/hooks", - "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/issues/events{/number}", - "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/events", - "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/assignees{/user}", - "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/branches{/branch}", - "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/tags", - "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/statuses/{sha}", - "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/languages", - "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/stargazers", - "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/contributors", - "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/subscribers", - "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/subscription", - "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/contents/{+path}", - "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/merges", - "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/downloads", - "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/issues{/number}", - "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/pulls{/number}", - "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/milestones{/number}", - "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/labels{/name}", - "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/releases{/id}", - "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/deployments", - "created_at": "2024-12-19T09:06:49Z", - "updated_at": "2024-12-19T09:06:53Z", - "pushed_at": "2024-12-19T09:06:56Z", - "git_url": "git://github.com/hub4j-test-org/temp-testTimeout.git", - "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeout.git", - "clone_url": "https://github.com/hub4j-test-org/temp-testTimeout.git", - "svn_url": "https://github.com/hub4j-test-org/temp-testTimeout", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/deployments", + "created_at": "2024-12-20T13:03:45Z", + "updated_at": "2024-12-20T13:03:48Z", + "pushed_at": "2024-12-20T13:03:50Z", + "git_url": "git://github.com/hub4j-test-org/temp-testTimeoutMessage.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeoutMessage.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage", "homepage": "http://github-api.kohsuke.org/", "size": 0, "stargazers_count": 0, @@ -207,10 +207,10 @@ "default_branch": "main" }, "source": { - "id": 905654433, - "node_id": "R_kgDONfswoQ", - "name": "temp-testTimeout", - "full_name": "hub4j-test-org/temp-testTimeout", + "id": 906238015, + "node_id": "R_kgDONgQYPw", + "name": "temp-testTimeoutMessage", + "full_name": "hub4j-test-org/temp-testTimeoutMessage", "private": false, "owner": { "login": "hub4j-test-org", @@ -233,53 +233,53 @@ "user_view_type": "public", "site_admin": false }, - "html_url": "https://github.com/hub4j-test-org/temp-testTimeout", - "description": "A test repository for testing the github-api project: temp-testTimeout", + "html_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage", + "description": "A test repository for testing the github-api project: temp-testTimeoutMessage", "fork": false, - "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout", - "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/forks", - "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/teams", - "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/hooks", - "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/issues/events{/number}", - "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/events", - "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/assignees{/user}", - "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/branches{/branch}", - "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/tags", - "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/statuses/{sha}", - "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/languages", - "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/stargazers", - "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/contributors", - "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/subscribers", - "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/subscription", - "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/contents/{+path}", - "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/merges", - "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/downloads", - "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/issues{/number}", - "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/pulls{/number}", - "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/milestones{/number}", - "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/labels{/name}", - "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/releases{/id}", - "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeout/deployments", - "created_at": "2024-12-19T09:06:49Z", - "updated_at": "2024-12-19T09:06:53Z", - "pushed_at": "2024-12-19T09:06:56Z", - "git_url": "git://github.com/hub4j-test-org/temp-testTimeout.git", - "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeout.git", - "clone_url": "https://github.com/hub4j-test-org/temp-testTimeout.git", - "svn_url": "https://github.com/hub4j-test-org/temp-testTimeout", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/deployments", + "created_at": "2024-12-20T13:03:45Z", + "updated_at": "2024-12-20T13:03:48Z", + "pushed_at": "2024-12-20T13:03:51Z", + "git_url": "git://github.com/hub4j-test-org/temp-testTimeoutMessage.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeoutMessage.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage", "homepage": "http://github-api.kohsuke.org/", "size": 0, "stargazers_count": 0, diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/8-r_a_test-message.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/8-r_a_test-message.json new file mode 100644 index 0000000000..a33a7e2330 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/__files/8-r_a_test-message.json @@ -0,0 +1,341 @@ +{ + "id": 906238046, + "node_id": "R_kgDONgQYXg", + "name": "test-message", + "full_name": "Alaurant/test-message", + "private": false, + "owner": { + "login": "Alaurant", + "id": 41817560, + "node_id": "MDQ6VXNlcjQxODE3NTYw", + "avatar_url": "https://avatars.githubusercontent.com/u/41817560?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Alaurant", + "html_url": "https://github.com/Alaurant", + "followers_url": "https://api.github.com/users/Alaurant/followers", + "following_url": "https://api.github.com/users/Alaurant/following{/other_user}", + "gists_url": "https://api.github.com/users/Alaurant/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Alaurant/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Alaurant/subscriptions", + "organizations_url": "https://api.github.com/users/Alaurant/orgs", + "repos_url": "https://api.github.com/users/Alaurant/repos", + "events_url": "https://api.github.com/users/Alaurant/events{/privacy}", + "received_events_url": "https://api.github.com/users/Alaurant/received_events", + "type": "User", + "user_view_type": "public", + "site_admin": false + }, + "html_url": "https://github.com/Alaurant/test-message", + "description": "A test repository for testing the github-api project: temp-testTimeoutMessage", + "fork": true, + "url": "https://api.github.com/repos/Alaurant/test-message", + "forks_url": "https://api.github.com/repos/Alaurant/test-message/forks", + "keys_url": "https://api.github.com/repos/Alaurant/test-message/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/Alaurant/test-message/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/Alaurant/test-message/teams", + "hooks_url": "https://api.github.com/repos/Alaurant/test-message/hooks", + "issue_events_url": "https://api.github.com/repos/Alaurant/test-message/issues/events{/number}", + "events_url": "https://api.github.com/repos/Alaurant/test-message/events", + "assignees_url": "https://api.github.com/repos/Alaurant/test-message/assignees{/user}", + "branches_url": "https://api.github.com/repos/Alaurant/test-message/branches{/branch}", + "tags_url": "https://api.github.com/repos/Alaurant/test-message/tags", + "blobs_url": "https://api.github.com/repos/Alaurant/test-message/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/Alaurant/test-message/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/Alaurant/test-message/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/Alaurant/test-message/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/Alaurant/test-message/statuses/{sha}", + "languages_url": "https://api.github.com/repos/Alaurant/test-message/languages", + "stargazers_url": "https://api.github.com/repos/Alaurant/test-message/stargazers", + "contributors_url": "https://api.github.com/repos/Alaurant/test-message/contributors", + "subscribers_url": "https://api.github.com/repos/Alaurant/test-message/subscribers", + "subscription_url": "https://api.github.com/repos/Alaurant/test-message/subscription", + "commits_url": "https://api.github.com/repos/Alaurant/test-message/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/Alaurant/test-message/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/Alaurant/test-message/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/Alaurant/test-message/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/Alaurant/test-message/contents/{+path}", + "compare_url": "https://api.github.com/repos/Alaurant/test-message/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/Alaurant/test-message/merges", + "archive_url": "https://api.github.com/repos/Alaurant/test-message/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/Alaurant/test-message/downloads", + "issues_url": "https://api.github.com/repos/Alaurant/test-message/issues{/number}", + "pulls_url": "https://api.github.com/repos/Alaurant/test-message/pulls{/number}", + "milestones_url": "https://api.github.com/repos/Alaurant/test-message/milestones{/number}", + "notifications_url": "https://api.github.com/repos/Alaurant/test-message/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/Alaurant/test-message/labels{/name}", + "releases_url": "https://api.github.com/repos/Alaurant/test-message/releases{/id}", + "deployments_url": "https://api.github.com/repos/Alaurant/test-message/deployments", + "created_at": "2024-12-20T13:03:51Z", + "updated_at": "2024-12-20T13:03:52Z", + "pushed_at": "2024-12-20T13:03:50Z", + "git_url": "git://github.com/Alaurant/test-message.git", + "ssh_url": "git@github.com:Alaurant/test-message.git", + "clone_url": "https://github.com/Alaurant/test-message.git", + "svn_url": "https://github.com/Alaurant/test-message", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "use_squash_pr_title_as_default": false, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "parent": { + "id": 906238015, + "node_id": "R_kgDONgQYPw", + "name": "temp-testTimeoutMessage", + "full_name": "hub4j-test-org/temp-testTimeoutMessage", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage", + "description": "A test repository for testing the github-api project: temp-testTimeoutMessage", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/deployments", + "created_at": "2024-12-20T13:03:45Z", + "updated_at": "2024-12-20T13:03:48Z", + "pushed_at": "2024-12-20T13:03:51Z", + "git_url": "git://github.com/hub4j-test-org/temp-testTimeoutMessage.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeoutMessage.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 1, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "source": { + "id": 906238015, + "node_id": "R_kgDONgQYPw", + "name": "temp-testTimeoutMessage", + "full_name": "hub4j-test-org/temp-testTimeoutMessage", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage", + "description": "A test repository for testing the github-api project: temp-testTimeoutMessage", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/deployments", + "created_at": "2024-12-20T13:03:45Z", + "updated_at": "2024-12-20T13:03:48Z", + "pushed_at": "2024-12-20T13:03:51Z", + "git_url": "git://github.com/hub4j-test-org/temp-testTimeoutMessage.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeoutMessage.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testTimeoutMessage", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 1, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "security_and_analysis": { + "secret_scanning": { + "status": "enabled" + }, + "secret_scanning_push_protection": { + "status": "enabled" + }, + "dependabot_security_updates": { + "status": "disabled" + }, + "secret_scanning_non_provider_patterns": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 1, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/1-user.json new file mode 100644 index 0000000000..c4d20025e3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "ec8a0b27-5d8c-445c-9e00-0525603e6dff", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03: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/\"385e08560117e426bff1cdeb255753d2813a21fd716dab4fb6fbce27aa60b10f\"", + "Last-Modified": "Sun, 15 Dec 2024 04:04:44 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4487", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "513", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "1861:32E7C9:14E692D:187C22E:67656B2F" + } + }, + "uuid": "ec8a0b27-5d8c-445c-9e00-0525603e6dff", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/2-r_h_temp-testtimeoutmessage.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/2-r_h_temp-testtimeoutmessage.json new file mode 100644 index 0000000000..877814016f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/2-r_h_temp-testtimeoutmessage.json @@ -0,0 +1,48 @@ +{ + "id": "e8659a91-fe4e-4444-8b49-2bad02689ffe", + "name": "repos_hub4j-test-org_temp-testtimeoutmessage", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutMessage", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "2-r_h_temp-testtimeoutmessage.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:49 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "W/\"56ea75b5d16128b494b9d90ed5dcc3b6217ed8948ebc17b00604aba01ca2a55d\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:48 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4482", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "518", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "186E:27FAA5:578049:68006F:67656B35" + } + }, + "uuid": "e8659a91-fe4e-4444-8b49-2bad02689ffe", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/3-r_h_t_git_refs_heads_main.json new file mode 100644 index 0000000000..a5cd83d2b1 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/3-r_h_t_git_refs_heads_main.json @@ -0,0 +1,49 @@ +{ + "id": "66b4fc49-4d20-4da0-8c00-a29b96334ee5", + "name": "repos_hub4j-test-org_temp-testtimeoutmessage_git_refs_heads_main", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs/heads/main", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "3-r_h_t_git_refs_heads_main.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:49 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "W/\"2ac386136ee3d2c920bcf229098ebee8763f8a0898502d031fe3245239bc9cab\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:48 GMT", + "X-Poll-Interval": "300", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4481", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "519", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "1872:4C45C:179ADF2:1B78E18:67656B35" + } + }, + "uuid": "66b4fc49-4d20-4da0-8c00-a29b96334ee5", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/4-r_h_t_git_refs.json new file mode 100644 index 0000000000..886a1aefe2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/4-r_h_t_git_refs.json @@ -0,0 +1,55 @@ +{ + "id": "9df76035-002e-4133-92f9-6618f8af3f69", + "name": "repos_hub4j-test-org_temp-testtimeoutmessage_git_refs", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"1ea7a80cf8b399714e9988d6c1138fb7ce95e407\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "4-r_h_t_git_refs.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:50 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "\"859494816e5e5323c0be9ced8ea5b6be86d9fbbaa96e6d8494388f5f4440be4d\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4480", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "520", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "1873:139242:13EE3AF:17618A0:67656B36", + "Location": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs/heads/test-branch1" + } + }, + "uuid": "9df76035-002e-4133-92f9-6618f8af3f69", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/5-r_h_t_git_refs.json new file mode 100644 index 0000000000..50a0f1303f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/5-r_h_t_git_refs.json @@ -0,0 +1,55 @@ +{ + "id": "be2dfb31-c825-420e-9664-56d7c6a95738", + "name": "repos_hub4j-test-org_temp-testtimeoutmessage_git_refs", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"1ea7a80cf8b399714e9988d6c1138fb7ce95e407\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "5-r_h_t_git_refs.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:50 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "\"0721231c1661fa473b6ae3492040bdbf730825b8c83ac2b971edcbabc144f8d8\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4479", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "521", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "1876:245A47:15F592F:19D394D:67656B36", + "Location": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs/heads/test-branch2" + } + }, + "uuid": "be2dfb31-c825-420e-9664-56d7c6a95738", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/6-r_h_t_git_refs.json new file mode 100644 index 0000000000..2f78d348a5 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/6-r_h_t_git_refs.json @@ -0,0 +1,55 @@ +{ + "id": "035fcc26-a129-4db4-b679-c3fd43385cd5", + "name": "repos_hub4j-test-org_temp-testtimeoutmessage_git_refs", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"1ea7a80cf8b399714e9988d6c1138fb7ce95e407\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "6-r_h_t_git_refs.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:51 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "\"b73c59d804b008617ee6e6acf21a83a5faf2014a53350e47eabe26b320cc94dd\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4478", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "522", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "187A:18FFDF:F4B17A:11F9FA5:67656B37", + "Location": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutMessage/git/refs/heads/test-branch3" + } + }, + "uuid": "035fcc26-a129-4db4-b679-c3fd43385cd5", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/7-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/7-r_h_t_forks.json similarity index 77% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/7-r_h_t_forks.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/7-r_h_t_forks.json index 7bf2f8d644..bb27e7597f 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/7-r_h_t_forks.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/7-r_h_t_forks.json @@ -1,8 +1,8 @@ { - "id": "feca14ad-38ff-41d7-a010-8ca708a3951e", - "name": "repos_hub4j-test-org_temp-testtimeout_forks", + "id": "0a5273fe-ee5d-43c3-b6c9-be91be770726", + "name": "repos_hub4j-test-org_temp-testtimeoutmessage_forks", "request": { - "url": "/repos/hub4j-test-org/temp-testTimeout/forks", + "url": "/repos/hub4j-test-org/temp-testTimeoutMessage/forks", "method": "POST", "headers": { "Accept": { @@ -11,7 +11,7 @@ }, "bodyPatterns": [ { - "equalToJson": "{}", + "equalToJson": "{\"name\":\"test-message\"}", "ignoreArrayOrder": true, "ignoreExtraElements": false } @@ -21,7 +21,7 @@ "status": 202, "bodyFileName": "7-r_h_t_forks.json", "headers": { - "Date": "Thu, 19 Dec 2024 09:06:57 GMT", + "Date": "Fri, 20 Dec 2024 13:03:52 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, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "", @@ -29,9 +29,9 @@ "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4818", - "X-RateLimit-Reset": "1734601009", - "X-RateLimit-Used": "182", + "X-RateLimit-Remaining": "4477", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "523", "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": "*", @@ -43,10 +43,10 @@ "Content-Security-Policy": "default-src 'none'", "Vary": "Accept-Encoding, Accept, X-Requested-With", "Server": "github.com", - "X-GitHub-Request-Id": "19DB:32E7C9:CCEDB0:EF11EA:6763E230" + "X-GitHub-Request-Id": "187B:2C3D90:F887C7:12363DA:67656B37" } }, - "uuid": "feca14ad-38ff-41d7-a010-8ca708a3951e", + "uuid": "0a5273fe-ee5d-43c3-b6c9-be91be770726", "persistent": true, "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/8-r_a_temp-testtimeout.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/8-r_a_test-message.json similarity index 70% rename from src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/8-r_a_temp-testtimeout.json rename to src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/8-r_a_test-message.json index 252e3f0f83..fa201a1743 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeout/mappings/8-r_a_temp-testtimeout.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutMessage/mappings/8-r_a_test-message.json @@ -1,8 +1,8 @@ { - "id": "7781b874-b9c1-424a-94ee-8e7a4d00bddc", - "name": "repos_alaurant_temp-testtimeout", + "id": "dc4377aa-727f-42c9-b91e-6ef5c92826da", + "name": "repos_alaurant_test-message", "request": { - "url": "/repos/Alaurant/temp-testTimeout", + "url": "/repos/Alaurant/test-message", "method": "GET", "headers": { "Accept": { @@ -11,24 +11,24 @@ } }, "response": { - "status": 404, - "body": "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#get-a-repository\"}", - "headers": { - "Date": "Thu, 19 Dec 2024 09:06:57 GMT", + "status": 404, + "body": "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#get-a-repository\"}", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:53 GMT", "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", - "ETag": "W/\"88b39c49f4b2aa161cd65b6f651d28ecfdfff3eba4950bf1b4fc145533cac695\"", - "Last-Modified": "Thu, 19 Dec 2024 09:00:34 GMT", + "ETag": "W/\"897c68bbc417e21f9fd33fe6a2eee4d9abafcaaf6d920fbe747fa7d53410af47\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:52 GMT", "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", "X-Accepted-OAuth-Scopes": "repo", "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", "X-GitHub-Media-Type": "github.v3; format=json", "x-github-api-version-selected": "2022-11-28", "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4817", - "X-RateLimit-Reset": "1734601009", - "X-RateLimit-Used": "183", + "X-RateLimit-Remaining": "4476", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "524", "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": "*", @@ -39,10 +39,10 @@ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", "Server": "github.com", - "X-GitHub-Request-Id": "19DF:1552FB:DF4ABB:105F5DD:6763E231" + "X-GitHub-Request-Id": "187F:32E7C9:14E6BD1:187C555:67656B38" } }, - "uuid": "7781b874-b9c1-424a-94ee-8e7a4d00bddc", + "uuid": "dc4377aa-727f-42c9-b91e-6ef5c92826da", "persistent": true, "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/1-user.json new file mode 100644 index 0000000000..a385d2bfd8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/1-user.json @@ -0,0 +1,48 @@ +{ + "login": "Alaurant", + "id": 41817560, + "node_id": "MDQ6VXNlcjQxODE3NTYw", + "avatar_url": "https://avatars.githubusercontent.com/u/41817560?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Alaurant", + "html_url": "https://github.com/Alaurant", + "followers_url": "https://api.github.com/users/Alaurant/followers", + "following_url": "https://api.github.com/users/Alaurant/following{/other_user}", + "gists_url": "https://api.github.com/users/Alaurant/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Alaurant/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Alaurant/subscriptions", + "organizations_url": "https://api.github.com/users/Alaurant/orgs", + "repos_url": "https://api.github.com/users/Alaurant/repos", + "events_url": "https://api.github.com/users/Alaurant/events{/privacy}", + "received_events_url": "https://api.github.com/users/Alaurant/received_events", + "type": "User", + "user_view_type": "private", + "site_admin": false, + "name": "Danyang Zhao", + "company": null, + "blog": "", + "location": "Brisbane, AUS", + "email": null, + "hireable": null, + "bio": null, + "twitter_username": null, + "notification_email": null, + "public_repos": 14, + "public_gists": 0, + "followers": 4, + "following": 11, + "created_at": "2018-07-28T07:03:48Z", + "updated_at": "2024-12-15T04:04:44Z", + "private_gists": 0, + "total_private_repos": 2, + "owned_private_repos": 2, + "disk_usage": 7314, + "collaborators": 0, + "two_factor_authentication": false, + "plan": { + "name": "pro", + "space": 976562499, + "collaborators": 0, + "private_repos": 9999 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/2-r_h_temp-testtimeoutorgmessage.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/2-r_h_temp-testtimeoutorgmessage.json new file mode 100644 index 0000000000..c6bff04068 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/2-r_h_temp-testtimeoutorgmessage.json @@ -0,0 +1,161 @@ +{ + "id": 906237854, + "node_id": "R_kgDONgQXng", + "name": "temp-testTimeoutOrgMessage", + "full_name": "hub4j-test-org/temp-testTimeoutOrgMessage", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/temp-testTimeoutOrgMessage", + "description": "A test repository for testing the github-api project: temp-testTimeoutOrgMessage", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/deployments", + "created_at": "2024-12-20T13:03:18Z", + "updated_at": "2024-12-20T13:03:18Z", + "pushed_at": "2024-12-20T13:03:18Z", + "git_url": "git://github.com/hub4j-test-org/temp-testTimeoutOrgMessage.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeoutOrgMessage.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testTimeoutOrgMessage.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testTimeoutOrgMessage", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "use_squash_pr_title_as_default": false, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "custom_properties": {}, + "organization": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + }, + "secret_scanning_non_provider_patterns": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 0, + "subscribers_count": 18 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/3-r_h_t_git_refs_heads_main.json new file mode 100644 index 0000000000..ef1e6823ea --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/3-r_h_t_git_refs_heads_main.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/main", + "node_id": "REF_kwDONgQXnq9yZWZzL2hlYWRzL21haW4", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs/heads/main", + "object": { + "sha": "0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/commits/0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/4-r_h_t_git_refs.json new file mode 100644 index 0000000000..985244fc9b --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/4-r_h_t_git_refs.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test-branch1", + "node_id": "REF_kwDONgQXnrdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMQ", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs/heads/test-branch1", + "object": { + "sha": "0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/commits/0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/5-r_h_t_git_refs.json new file mode 100644 index 0000000000..4fab8147c6 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/5-r_h_t_git_refs.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test-branch2", + "node_id": "REF_kwDONgQXnrdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMg", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs/heads/test-branch2", + "object": { + "sha": "0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/commits/0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/6-r_h_t_git_refs.json new file mode 100644 index 0000000000..1b2d1d5138 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/6-r_h_t_git_refs.json @@ -0,0 +1,10 @@ +{ + "ref": "refs/heads/test-branch3", + "node_id": "REF_kwDONgQXnrdyZWZzL2hlYWRzL3Rlc3QtYnJhbmNoMw", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs/heads/test-branch3", + "object": { + "sha": "0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f", + "type": "commit", + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/commits/0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f" + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/7-orgs_nts-api-test-org.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/7-orgs_nts-api-test-org.json new file mode 100644 index 0000000000..6ce9af2a9e --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/7-orgs_nts-api-test-org.json @@ -0,0 +1,61 @@ +{ + "login": "nts-api-test-org", + "id": 191328158, + "node_id": "O_kgDOC2dvng", + "url": "https://api.github.com/orgs/nts-api-test-org", + "repos_url": "https://api.github.com/orgs/nts-api-test-org/repos", + "events_url": "https://api.github.com/orgs/nts-api-test-org/events", + "hooks_url": "https://api.github.com/orgs/nts-api-test-org/hooks", + "issues_url": "https://api.github.com/orgs/nts-api-test-org/issues", + "members_url": "https://api.github.com/orgs/nts-api-test-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/nts-api-test-org/public_members{/member}", + "avatar_url": "https://avatars.githubusercontent.com/u/191328158?v=4", + "description": null, + "is_verified": false, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 5, + "public_gists": 0, + "followers": 0, + "following": 0, + "html_url": "https://github.com/nts-api-test-org", + "created_at": "2024-12-11T07:04:56Z", + "updated_at": "2024-12-11T07:04:56Z", + "archived_at": null, + "type": "Organization", + "total_private_repos": 0, + "owned_private_repos": 0, + "private_gists": 0, + "disk_usage": 0, + "collaborators": 0, + "billing_email": "zhaody085@163.com", + "default_repository_permission": "read", + "members_can_create_repositories": true, + "two_factor_requirement_enabled": false, + "members_allowed_repository_creation_type": "all", + "members_can_create_public_repositories": true, + "members_can_create_private_repositories": true, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true, + "members_can_fork_private_repositories": false, + "web_commit_signoff_required": false, + "deploy_keys_enabled_for_repositories": false, + "members_can_create_public_pages": true, + "members_can_create_private_pages": true, + "plan": { + "name": "free", + "space": 976562499, + "private_repos": 10000, + "filled_seats": 1, + "seats": 0 + }, + "advanced_security_enabled_for_new_repositories": false, + "dependabot_alerts_enabled_for_new_repositories": false, + "dependabot_security_updates_enabled_for_new_repositories": false, + "dependency_graph_enabled_for_new_repositories": false, + "secret_scanning_enabled_for_new_repositories": false, + "secret_scanning_push_protection_enabled_for_new_repositories": false, + "secret_scanning_push_protection_custom_link_enabled": false, + "secret_scanning_push_protection_custom_link": null, + "secret_scanning_validity_checks_enabled": false +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/8-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/8-r_h_t_forks.json new file mode 100644 index 0000000000..74f4626f79 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/8-r_h_t_forks.json @@ -0,0 +1,334 @@ +{ + "id": 906237909, + "node_id": "R_kgDONgQX1Q", + "name": "temp-testTimeoutOrgMessage-2", + "full_name": "nts-api-test-org/temp-testTimeoutOrgMessage-2", + "private": false, + "owner": { + "login": "nts-api-test-org", + "id": 191328158, + "node_id": "O_kgDOC2dvng", + "avatar_url": "https://avatars.githubusercontent.com/u/191328158?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/nts-api-test-org", + "html_url": "https://github.com/nts-api-test-org", + "followers_url": "https://api.github.com/users/nts-api-test-org/followers", + "following_url": "https://api.github.com/users/nts-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/nts-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/nts-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/nts-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/nts-api-test-org/orgs", + "repos_url": "https://api.github.com/users/nts-api-test-org/repos", + "events_url": "https://api.github.com/users/nts-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/nts-api-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "html_url": "https://github.com/nts-api-test-org/temp-testTimeoutOrgMessage-2", + "description": "A test repository for testing the github-api project: temp-testTimeoutOrgMessage", + "fork": true, + "url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2", + "forks_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/forks", + "keys_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/teams", + "hooks_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/hooks", + "issue_events_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/issues/events{/number}", + "events_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/events", + "assignees_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/assignees{/user}", + "branches_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/branches{/branch}", + "tags_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/tags", + "blobs_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/statuses/{sha}", + "languages_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/languages", + "stargazers_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/stargazers", + "contributors_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/contributors", + "subscribers_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/subscribers", + "subscription_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/subscription", + "commits_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/contents/{+path}", + "compare_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/merges", + "archive_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/downloads", + "issues_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/issues{/number}", + "pulls_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/pulls{/number}", + "milestones_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/milestones{/number}", + "notifications_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/labels{/name}", + "releases_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/releases{/id}", + "deployments_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage-2/deployments", + "created_at": "2024-12-20T13:03:25Z", + "updated_at": "2024-12-20T13:03:25Z", + "pushed_at": "2024-12-20T13:03:24Z", + "git_url": "git://github.com/nts-api-test-org/temp-testTimeoutOrgMessage-2.git", + "ssh_url": "git@github.com:nts-api-test-org/temp-testTimeoutOrgMessage-2.git", + "clone_url": "https://github.com/nts-api-test-org/temp-testTimeoutOrgMessage-2.git", + "svn_url": "https://github.com/nts-api-test-org/temp-testTimeoutOrgMessage-2", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "custom_properties": {}, + "organization": { + "login": "nts-api-test-org", + "id": 191328158, + "node_id": "O_kgDOC2dvng", + "avatar_url": "https://avatars.githubusercontent.com/u/191328158?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/nts-api-test-org", + "html_url": "https://github.com/nts-api-test-org", + "followers_url": "https://api.github.com/users/nts-api-test-org/followers", + "following_url": "https://api.github.com/users/nts-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/nts-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/nts-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/nts-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/nts-api-test-org/orgs", + "repos_url": "https://api.github.com/users/nts-api-test-org/repos", + "events_url": "https://api.github.com/users/nts-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/nts-api-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "parent": { + "id": 906237854, + "node_id": "R_kgDONgQXng", + "name": "temp-testTimeoutOrgMessage", + "full_name": "hub4j-test-org/temp-testTimeoutOrgMessage", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/temp-testTimeoutOrgMessage", + "description": "A test repository for testing the github-api project: temp-testTimeoutOrgMessage", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/deployments", + "created_at": "2024-12-20T13:03:18Z", + "updated_at": "2024-12-20T13:03:22Z", + "pushed_at": "2024-12-20T13:03:24Z", + "git_url": "git://github.com/hub4j-test-org/temp-testTimeoutOrgMessage.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeoutOrgMessage.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testTimeoutOrgMessage.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testTimeoutOrgMessage", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 1, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 1, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "source": { + "id": 906237854, + "node_id": "R_kgDONgQXng", + "name": "temp-testTimeoutOrgMessage", + "full_name": "hub4j-test-org/temp-testTimeoutOrgMessage", + "private": false, + "owner": { + "login": "hub4j-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/hub4j-test-org", + "html_url": "https://github.com/hub4j-test-org", + "followers_url": "https://api.github.com/users/hub4j-test-org/followers", + "following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/hub4j-test-org/orgs", + "repos_url": "https://api.github.com/users/hub4j-test-org/repos", + "events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/hub4j-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "html_url": "https://github.com/hub4j-test-org/temp-testTimeoutOrgMessage", + "description": "A test repository for testing the github-api project: temp-testTimeoutOrgMessage", + "fork": false, + "url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage", + "forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/forks", + "keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/teams", + "hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/hooks", + "issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/issues/events{/number}", + "events_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/events", + "assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/assignees{/user}", + "branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/branches{/branch}", + "tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/tags", + "blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/statuses/{sha}", + "languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/languages", + "stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/stargazers", + "contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/contributors", + "subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/subscribers", + "subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/subscription", + "commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/contents/{+path}", + "compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/merges", + "archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/downloads", + "issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/issues{/number}", + "pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/pulls{/number}", + "milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/milestones{/number}", + "notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/labels{/name}", + "releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/releases{/id}", + "deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/deployments", + "created_at": "2024-12-20T13:03:18Z", + "updated_at": "2024-12-20T13:03:22Z", + "pushed_at": "2024-12-20T13:03:24Z", + "git_url": "git://github.com/hub4j-test-org/temp-testTimeoutOrgMessage.git", + "ssh_url": "git@github.com:hub4j-test-org/temp-testTimeoutOrgMessage.git", + "clone_url": "https://github.com/hub4j-test-org/temp-testTimeoutOrgMessage.git", + "svn_url": "https://github.com/hub4j-test-org/temp-testTimeoutOrgMessage", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main" + }, + "network_count": 0, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/9-r_n_temp-testtimeoutorgmessage.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/9-r_n_temp-testtimeoutorgmessage.json new file mode 100644 index 0000000000..f7ae382e60 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/__files/9-r_n_temp-testtimeoutorgmessage.json @@ -0,0 +1,161 @@ +{ + "id": 906230271, + "node_id": "R_kgDONgP5_w", + "name": "temp-testTimeoutOrgMessage", + "full_name": "nts-api-test-org/temp-testTimeoutOrgMessage", + "private": false, + "owner": { + "login": "nts-api-test-org", + "id": 191328158, + "node_id": "O_kgDOC2dvng", + "avatar_url": "https://avatars.githubusercontent.com/u/191328158?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/nts-api-test-org", + "html_url": "https://github.com/nts-api-test-org", + "followers_url": "https://api.github.com/users/nts-api-test-org/followers", + "following_url": "https://api.github.com/users/nts-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/nts-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/nts-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/nts-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/nts-api-test-org/orgs", + "repos_url": "https://api.github.com/users/nts-api-test-org/repos", + "events_url": "https://api.github.com/users/nts-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/nts-api-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "html_url": "https://github.com/nts-api-test-org/temp-testTimeoutOrgMessage", + "description": "A test repository for testing the github-api project: temp-testTimeoutOrgMessage", + "fork": false, + "url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage", + "forks_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/forks", + "keys_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/teams", + "hooks_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/hooks", + "issue_events_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/issues/events{/number}", + "events_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/events", + "assignees_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/assignees{/user}", + "branches_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/branches{/branch}", + "tags_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/tags", + "blobs_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/statuses/{sha}", + "languages_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/languages", + "stargazers_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/stargazers", + "contributors_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/contributors", + "subscribers_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/subscribers", + "subscription_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/subscription", + "commits_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/contents/{+path}", + "compare_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/merges", + "archive_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/downloads", + "issues_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/issues{/number}", + "pulls_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/pulls{/number}", + "milestones_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/milestones{/number}", + "notifications_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/labels{/name}", + "releases_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/releases{/id}", + "deployments_url": "https://api.github.com/repos/nts-api-test-org/temp-testTimeoutOrgMessage/deployments", + "created_at": "2024-12-20T12:43:24Z", + "updated_at": "2024-12-20T12:43:24Z", + "pushed_at": "2024-12-20T12:43:23Z", + "git_url": "git://github.com/nts-api-test-org/temp-testTimeoutOrgMessage.git", + "ssh_url": "git@github.com:nts-api-test-org/temp-testTimeoutOrgMessage.git", + "clone_url": "https://github.com/nts-api-test-org/temp-testTimeoutOrgMessage.git", + "svn_url": "https://github.com/nts-api-test-org/temp-testTimeoutOrgMessage", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": false, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "has_discussions": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "allow_forking": true, + "is_template": false, + "web_commit_signoff_required": false, + "topics": [], + "visibility": "public", + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "main", + "permissions": { + "admin": true, + "maintain": true, + "push": true, + "triage": true, + "pull": true + }, + "temp_clone_token": "", + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "allow_auto_merge": false, + "delete_branch_on_merge": false, + "allow_update_branch": false, + "use_squash_pr_title_as_default": false, + "squash_merge_commit_message": "COMMIT_MESSAGES", + "squash_merge_commit_title": "COMMIT_OR_PR_TITLE", + "merge_commit_message": "PR_TITLE", + "merge_commit_title": "MERGE_MESSAGE", + "custom_properties": {}, + "organization": { + "login": "nts-api-test-org", + "id": 191328158, + "node_id": "O_kgDOC2dvng", + "avatar_url": "https://avatars.githubusercontent.com/u/191328158?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/nts-api-test-org", + "html_url": "https://github.com/nts-api-test-org", + "followers_url": "https://api.github.com/users/nts-api-test-org/followers", + "following_url": "https://api.github.com/users/nts-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/nts-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/nts-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/nts-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/nts-api-test-org/orgs", + "repos_url": "https://api.github.com/users/nts-api-test-org/repos", + "events_url": "https://api.github.com/users/nts-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/nts-api-test-org/received_events", + "type": "Organization", + "user_view_type": "public", + "site_admin": false + }, + "security_and_analysis": { + "secret_scanning": { + "status": "disabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "dependabot_security_updates": { + "status": "disabled" + }, + "secret_scanning_non_provider_patterns": { + "status": "disabled" + }, + "secret_scanning_validity_checks": { + "status": "disabled" + } + }, + "network_count": 0, + "subscribers_count": 0 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/1-user.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/1-user.json new file mode 100644 index 0000000000..6bd90c04ee --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/1-user.json @@ -0,0 +1,48 @@ +{ + "id": "ebd5332a-d8a9-4cfc-acec-aac3c3df337d", + "name": "user", + "request": { + "url": "/user", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "1-user.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03: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/\"385e08560117e426bff1cdeb255753d2813a21fd716dab4fb6fbce27aa60b10f\"", + "Last-Modified": "Sun, 15 Dec 2024 04:04:44 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4519", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "481", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "17FD:24DD67:1750CD9:1B2EAF3:67656B14" + } + }, + "uuid": "ebd5332a-d8a9-4cfc-acec-aac3c3df337d", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/2-r_h_temp-testtimeoutorgmessage.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/2-r_h_temp-testtimeoutorgmessage.json new file mode 100644 index 0000000000..f65cf8646c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/2-r_h_temp-testtimeoutorgmessage.json @@ -0,0 +1,48 @@ +{ + "id": "6fb39171-0d03-4034-b599-d997a13e1c23", + "name": "repos_hub4j-test-org_temp-testtimeoutorgmessage", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutOrgMessage", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "2-r_h_temp-testtimeoutorgmessage.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:22 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "W/\"7378a59c2455bdcbe4d4476a907a49e1404a321cf5c489fbe7f920f48e57a719\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:18 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4514", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "486", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "180D:245A47:15F5177:19D2FEB:67656B1A" + } + }, + "uuid": "6fb39171-0d03-4034-b599-d997a13e1c23", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/3-r_h_t_git_refs_heads_main.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/3-r_h_t_git_refs_heads_main.json new file mode 100644 index 0000000000..11230a5e9f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/3-r_h_t_git_refs_heads_main.json @@ -0,0 +1,49 @@ +{ + "id": "60c8a03a-4d6f-4acb-ade0-297199cf5e55", + "name": "repos_hub4j-test-org_temp-testtimeoutorgmessage_git_refs_heads_main", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs/heads/main", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "3-r_h_t_git_refs_heads_main.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:22 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "W/\"f1f1455746367f9c339338c72da71b2e7251d21489a9139157dd95154cf18439\"", + "Last-Modified": "Fri, 20 Dec 2024 13:03:22 GMT", + "X-Poll-Interval": "300", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4513", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "487", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "180E:2CFAFD:E78053:111A29D:67656B1A" + } + }, + "uuid": "60c8a03a-4d6f-4acb-ade0-297199cf5e55", + "persistent": true, + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/4-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/4-r_h_t_git_refs.json new file mode 100644 index 0000000000..c45f16f5e8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/4-r_h_t_git_refs.json @@ -0,0 +1,55 @@ +{ + "id": "11882bf5-f519-45a7-8555-d94fbca28f50", + "name": "repos_hub4j-test-org_temp-testtimeoutorgmessage_git_refs", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/test-branch1\",\"sha\":\"0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "4-r_h_t_git_refs.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:23 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "\"36f5dda7e5811794d0d5159bcba03aa48e8f4acc449985c88aced1f667e99d99\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4512", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "488", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "1812:2C3D90:F87F21:1235975:67656B1B", + "Location": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs/heads/test-branch1" + } + }, + "uuid": "11882bf5-f519-45a7-8555-d94fbca28f50", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/5-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/5-r_h_t_git_refs.json new file mode 100644 index 0000000000..4d48690e7f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/5-r_h_t_git_refs.json @@ -0,0 +1,55 @@ +{ + "id": "983a8e38-83c3-4c27-9f1b-6dc7acef572a", + "name": "repos_hub4j-test-org_temp-testtimeoutorgmessage_git_refs", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/test-branch2\",\"sha\":\"0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "5-r_h_t_git_refs.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:23 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "\"46df309e29ca3977ff749d1cace223b377490a2b001115b243296bbfb4f24157\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4511", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "489", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "1813:59D95:F0EF62:11BCD9C:67656B1B", + "Location": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs/heads/test-branch2" + } + }, + "uuid": "983a8e38-83c3-4c27-9f1b-6dc7acef572a", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/6-r_h_t_git_refs.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/6-r_h_t_git_refs.json new file mode 100644 index 0000000000..8d70dded59 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/6-r_h_t_git_refs.json @@ -0,0 +1,55 @@ +{ + "id": "cac96d72-6718-485d-b90b-4d0efcf74cd1", + "name": "repos_hub4j-test-org_temp-testtimeoutorgmessage_git_refs", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"ref\":\"refs/heads/test-branch3\",\"sha\":\"0bd0cfb86fe67eb30ce4ada71f4cd68c81ce1c1f\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "6-r_h_t_git_refs.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:24 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "\"6c7bb38951c502a9f19c3a1d9376acd50433c9115dceadac540b3e31e82d789d\"", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4510", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "490", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "1814:27FAA5:5779EB:67F886:67656B1C", + "Location": "https://api.github.com/repos/hub4j-test-org/temp-testTimeoutOrgMessage/git/refs/heads/test-branch3" + } + }, + "uuid": "cac96d72-6718-485d-b90b-4d0efcf74cd1", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/7-orgs_nts-api-test-org.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/7-orgs_nts-api-test-org.json new file mode 100644 index 0000000000..787ad120aa --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/7-orgs_nts-api-test-org.json @@ -0,0 +1,48 @@ +{ + "id": "d6996ef4-8737-41a7-a8ea-154b34e6dccb", + "name": "orgs_nts-api-test-org", + "request": { + "url": "/orgs/nts-api-test-org", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 200, + "bodyFileName": "7-orgs_nts-api-test-org.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:25 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "W/\"a2d193e9546a2c5ce8c7be65939b8cae828c7028fafacea86617bebee3f18283\"", + "Last-Modified": "Wed, 11 Dec 2024 07:04:56 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4509", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "491", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "1818:4C45C:179A3D7:1B78284:67656B1C" + } + }, + "uuid": "d6996ef4-8737-41a7-a8ea-154b34e6dccb", + "persistent": true, + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/8-r_h_t_forks.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/8-r_h_t_forks.json new file mode 100644 index 0000000000..38d55d277c --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/8-r_h_t_forks.json @@ -0,0 +1,52 @@ +{ + "id": "7d927adc-c6ad-473d-b682-9d3ec2b9022a", + "name": "repos_hub4j-test-org_temp-testtimeoutorgmessage_forks", + "request": { + "url": "/repos/hub4j-test-org/temp-testTimeoutOrgMessage/forks", + "method": "POST", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + }, + "bodyPatterns": [ + { + "equalToJson": "{\"organization\":\"nts-api-test-org\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ] + }, + "response": { + "status": 202, + "bodyFileName": "8-r_h_t_forks.json", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:25 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, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4508", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "492", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "Server": "github.com", + "X-GitHub-Request-Id": "1819:139242:13EDB7B:1760EE9:67656B1D" + } + }, + "uuid": "7d927adc-c6ad-473d-b682-9d3ec2b9022a", + "persistent": true, + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/9-r_n_temp-testtimeoutorgmessage.json b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/9-r_n_temp-testtimeoutorgmessage.json new file mode 100644 index 0000000000..7e0b630b37 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/GHRepositoryForkBuilderTest/wiremock/testTimeoutOrgMessage/mappings/9-r_n_temp-testtimeoutorgmessage.json @@ -0,0 +1,48 @@ +{ + "id": "e56316fc-1257-4501-ac91-b1e08369f523", + "name": "repos_nts-api-test-org_temp-testtimeoutorgmessage", + "request": { + "url": "/repos/nts-api-test-org/temp-testTimeoutOrgMessage", + "method": "GET", + "headers": { + "Accept": { + "equalTo": "application/vnd.github+json" + } + } + }, + "response": { + "status": 404, + "body": "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#get-a-repository\"}", + "headers": { + "Date": "Fri, 20 Dec 2024 13:03:26 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With", + "ETag": "W/\"da073a61f98b326c509ca90e3f9423a2c3c6fcc816e0146fdb19804a400adaae\"", + "Last-Modified": "Fri, 20 Dec 2024 12:43:24 GMT", + "X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, delete:packages, delete_repo, gist, project, read:packages, repo, user, workflow, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "github-authentication-token-expiration": "2025-02-25 04:28:56 UTC", + "X-GitHub-Media-Type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4507", + "X-RateLimit-Reset": "1734700582", + "X-RateLimit-Used": "493", + "X-RateLimit-Resource": "core", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "0", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Server": "github.com", + "X-GitHub-Request-Id": "181D:2CFAFD:E7811E:111A3A5:67656B1E" + } + }, + "uuid": "e56316fc-1257-4501-ac91-b1e08369f523", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file