mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
- bulk update of repository options
This commit is contained in:
@@ -37,12 +37,16 @@ Whenever you run tests with `-Dtest.github.useProxy`, they will try to get data
|
||||
### Writing a new test
|
||||
|
||||
Once you have credentials setup, you add new test classes and test methods as you would normally.
|
||||
Keep `useProxy` enabled and iterate on your tests as needed. Remember, while proxying your tests are interacting with GitHub - you will need to clean up your state between runs.
|
||||
|
||||
When you are ready to create a snapshot of your test data,
|
||||
run your test with `test.github.takeSnapshot` ("-Dtest.github.takeSnapshot" as a Java VM option). For example:
|
||||
Keep `useProxy` enabled and iterate on your tests as needed. Remember, while proxying your tests are interacting with GitHub - you will need
|
||||
to clean up your state between runs. The following additional system property to enable testing using your personal github account.
|
||||
|
||||
`mvn install -Dtest.github.takeSnapshot -Dtest=YourTestClassName`
|
||||
`mvn install -Dtest.github.org=false -Dtest=YourTestClassName`
|
||||
|
||||
When you are ready to create a snapshot of your test data, run your test with `test.github.takeSnapshot` ("-Dtest.github.takeSnapshot" as
|
||||
a Java VM option). For example:
|
||||
|
||||
`mvn install -Dtest.github.takeSnapshot -Dtest.github.org=false -Dtest=YourTestClassName`
|
||||
|
||||
The above command would create snapshot WireMock data files under the path `src/test/resources/org/kohsuhke/github/YourTestClassName/wiremock`.
|
||||
Each method would get a separate director that would hold the data files for that test method.
|
||||
|
||||
@@ -51,6 +51,9 @@ abstract class AbstractBuilder<R, S> {
|
||||
@Nonnull
|
||||
protected final Requester requester;
|
||||
|
||||
@Nonnull
|
||||
protected final GitHub root;
|
||||
|
||||
// TODO: Not sure how update-in-place behavior should be controlled
|
||||
// However, it certainly can be controlled dynamically down to the instance level or inherited for all children of
|
||||
// some
|
||||
@@ -75,6 +78,7 @@ abstract class AbstractBuilder<R, S> {
|
||||
@Nonnull Class<S> intermediateReturnType,
|
||||
@Nonnull GitHub root,
|
||||
@CheckForNull R baseInstance) {
|
||||
this.root = root;
|
||||
this.requester = root.createRequest();
|
||||
this.returnType = finalReturnType;
|
||||
this.commitChangesImmediately = returnType.equals(intermediateReturnType);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
import static org.kohsuke.github.Previews.BAPTISE;
|
||||
|
||||
@@ -10,159 +9,17 @@ import static org.kohsuke.github.Previews.BAPTISE;
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class GHCreateRepositoryBuilder {
|
||||
private final GitHub root;
|
||||
protected final Requester builder;
|
||||
private String apiUrlTail;
|
||||
public class GHCreateRepositoryBuilder extends GHRepositoryBuilder<GHCreateRepositoryBuilder> {
|
||||
|
||||
GHCreateRepositoryBuilder(GitHub root, String apiUrlTail, String name) {
|
||||
this.root = root;
|
||||
this.apiUrlTail = apiUrlTail;
|
||||
this.builder = root.createRequest();
|
||||
this.builder.with("name", name);
|
||||
}
|
||||
public GHCreateRepositoryBuilder(String name, GitHub root, String apiTail) {
|
||||
super(GHCreateRepositoryBuilder.class, root, null);
|
||||
requester.method("POST").withUrlPath(apiTail);
|
||||
|
||||
/**
|
||||
* Description for repository
|
||||
*
|
||||
* @param description
|
||||
* description of repository
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder description(String description) {
|
||||
this.builder.with("description", description);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Homepage for repository
|
||||
*
|
||||
* @param homepage
|
||||
* homepage of repository
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder homepage(URL homepage) {
|
||||
return homepage(homepage.toExternalForm());
|
||||
}
|
||||
|
||||
/**
|
||||
* Homepage for repository
|
||||
*
|
||||
* @param homepage
|
||||
* homepage of repository
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder homepage(String homepage) {
|
||||
this.builder.with("homepage", homepage);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a private repository
|
||||
*
|
||||
* @param enabled
|
||||
* private if true
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder private_(boolean enabled) {
|
||||
this.builder.with("private", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables issue tracker
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder issues(boolean enabled) {
|
||||
this.builder.with("has_issues", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables projects
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder projects(boolean enabled) {
|
||||
this.builder.with("has_projects", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables wiki
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder wiki(boolean enabled) {
|
||||
this.builder.with("has_wiki", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables downloads
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder downloads(boolean enabled) {
|
||||
this.builder.with("has_downloads", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* If true, create an initial commit with empty README.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder autoInit(boolean enabled) {
|
||||
this.builder.with("auto_init", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow or disallow squash-merging pull requests.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder allowSquashMerge(boolean enabled) {
|
||||
this.builder.with("allow_squash_merge", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow or disallow merging pull requests with a merge commit.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder allowMergeCommit(boolean enabled) {
|
||||
this.builder.with("allow_merge_commit", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow or disallow rebase-merging pull requests.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder allowRebaseMerge(boolean enabled) {
|
||||
this.builder.with("allow_rebase_merge", enabled);
|
||||
return this;
|
||||
try {
|
||||
name(name);
|
||||
} catch (IOException e) {
|
||||
// not going to happen here
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -171,9 +28,11 @@ public class GHCreateRepositoryBuilder {
|
||||
* @param language
|
||||
* template to base the ignore file on
|
||||
* @return a builder to continue with building See https://developer.github.com/v3/repos/#create
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public GHCreateRepositoryBuilder gitignoreTemplate(String language) {
|
||||
this.builder.with("gitignore_template", language);
|
||||
public GHCreateRepositoryBuilder gitignoreTemplate(String language) throws IOException {
|
||||
with("gitignore_template", language);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -183,9 +42,25 @@ public class GHCreateRepositoryBuilder {
|
||||
* @param license
|
||||
* template to base the license file on
|
||||
* @return a builder to continue with building See https://developer.github.com/v3/repos/#create
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public GHCreateRepositoryBuilder licenseTemplate(String license) {
|
||||
this.builder.with("license_template", license);
|
||||
public GHCreateRepositoryBuilder licenseTemplate(String license) throws IOException {
|
||||
with("license_template", license);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* If true, create an initial commit with empty README.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public GHCreateRepositoryBuilder autoInit(boolean enabled) throws IOException {
|
||||
with("auto_init", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -195,10 +70,12 @@ public class GHCreateRepositoryBuilder {
|
||||
* @param team
|
||||
* team to grant access to
|
||||
* @return a builder to continue with building
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public GHCreateRepositoryBuilder team(GHTeam team) {
|
||||
public GHCreateRepositoryBuilder team(GHTeam team) throws IOException {
|
||||
if (team != null)
|
||||
this.builder.with("team_id", team.getId());
|
||||
return with("team_id", team.getId());
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -208,12 +85,14 @@ public class GHCreateRepositoryBuilder {
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public GHCreateRepositoryBuilder templateRepository(boolean enabled) {
|
||||
this.builder.withPreview(BAPTISE);
|
||||
this.builder.with("is_template", enabled);
|
||||
public GHCreateRepositoryBuilder templateRepository(boolean enabled) throws IOException {
|
||||
requester.withPreview(BAPTISE);
|
||||
with("is_template", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -223,14 +102,16 @@ public class GHCreateRepositoryBuilder {
|
||||
* @param owner
|
||||
* organization or personage
|
||||
* @return a builder to continue with building
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public GHCreateRepositoryBuilder owner(String owner) {
|
||||
this.builder.with("owner", owner);
|
||||
public GHCreateRepositoryBuilder owner(String owner) throws IOException {
|
||||
with("owner", owner);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create repository from template repository.
|
||||
* Create repository from template repository
|
||||
*
|
||||
* @param templateOwner
|
||||
* template repository owner
|
||||
@@ -242,8 +123,7 @@ public class GHCreateRepositoryBuilder {
|
||||
@Preview
|
||||
@Deprecated
|
||||
public GHCreateRepositoryBuilder fromTemplateRepository(String templateOwner, String templateRepo) {
|
||||
this.builder.withPreview(BAPTISE);
|
||||
this.apiUrlTail = "/repos/" + templateOwner + "/" + templateRepo + "/generate";
|
||||
requester.withPreview(BAPTISE).withUrlPath("/repos/" + templateOwner + "/" + templateRepo + "/generate");
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -252,10 +132,9 @@ public class GHCreateRepositoryBuilder {
|
||||
*
|
||||
* @return the gh repository
|
||||
* @throws IOException
|
||||
* if repsitory cannot be created
|
||||
* if repository cannot be created
|
||||
*/
|
||||
public GHRepository create() throws IOException {
|
||||
return builder.method("POST").withUrlPath(apiUrlTail).fetch(GHRepository.class).wrap(root);
|
||||
return done();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ public class GHOrganization extends GHPerson {
|
||||
* @return the gh create repository builder
|
||||
*/
|
||||
public GHCreateRepositoryBuilder createRepository(String name) {
|
||||
return new GHCreateRepositoryBuilder(root, "/orgs/" + login + "/repos", name);
|
||||
return new GHCreateRepositoryBuilder(name, root, "/orgs/" + login + "/repos");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -54,6 +54,8 @@ import java.util.Set;
|
||||
import java.util.TreeMap;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import static java.util.Arrays.*;
|
||||
import static org.kohsuke.github.Previews.*;
|
||||
|
||||
@@ -1290,6 +1292,15 @@ public class GHRepository extends GHObject {
|
||||
archived = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a builder that can be used to bulk update repository settings.
|
||||
*
|
||||
* @return the repository updater
|
||||
*/
|
||||
public Updater updateRepository() {
|
||||
return new Updater(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sort orders for listing forks
|
||||
*/
|
||||
@@ -2968,4 +2979,23 @@ public class GHRepository extends GHObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A {@link GHRepositoryBuilder} that allows multiple properties to be updated per request.
|
||||
*
|
||||
* Consumer must call {@link #done()} to commit changes.
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public static class Updater extends GHRepositoryBuilder<Updater> {
|
||||
protected Updater(@Nonnull GHRepository repository) {
|
||||
super(Updater.class, repository.root, null);
|
||||
requester.method("PATCH").withUrlPath(repository.getApiTailUrl(""));
|
||||
}
|
||||
|
||||
@Override
|
||||
public GHRepository done() throws IOException {
|
||||
return super.done().wrap(this.root);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
217
src/main/java/org/kohsuke/github/GHRepositoryBuilder.java
Normal file
217
src/main/java/org/kohsuke/github/GHRepositoryBuilder.java
Normal file
@@ -0,0 +1,217 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
abstract class GHRepositoryBuilder<S> extends AbstractBuilder<GHRepository, S> {
|
||||
|
||||
protected GHRepositoryBuilder(Class<S> intermediateReturnType, GitHub root, GHRepository baseInstance) {
|
||||
super(GHRepository.class, intermediateReturnType, root, baseInstance);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow or disallow squash-merging pull requests.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S allowSquashMerge(boolean enabled) throws IOException {
|
||||
return with("allow_squash_merge", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow or disallow merging pull requests with a merge commit.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S allowMergeCommit(boolean enabled) throws IOException {
|
||||
return with("allow_merge_commit", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow or disallow rebase-merging pull requests.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S allowRebaseMerge(boolean enabled) throws IOException {
|
||||
return with("allow_rebase_merge", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* After pull requests are merged, you can have head branches deleted automatically.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S deleteBranchOnMerge(boolean enabled) throws IOException {
|
||||
return with("delete_branch_on_merge", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Default repository branch
|
||||
*
|
||||
* @param branch
|
||||
* branch name
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S defaultBranch(String branch) throws IOException {
|
||||
return with("default_branch", branch);
|
||||
}
|
||||
|
||||
/**
|
||||
* Description for repository
|
||||
*
|
||||
* @param description
|
||||
* description of repository
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S description(String description) throws IOException {
|
||||
return with("description", description);
|
||||
}
|
||||
|
||||
/**
|
||||
* Homepage for repository
|
||||
*
|
||||
* @param homepage
|
||||
* homepage of repository
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S homepage(URL homepage) throws IOException {
|
||||
return homepage(homepage.toExternalForm());
|
||||
}
|
||||
|
||||
/**
|
||||
* Homepage for repository
|
||||
*
|
||||
* @param homepage
|
||||
* homepage of repository
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S homepage(String homepage) throws IOException {
|
||||
return with("homepage", homepage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the repository to private
|
||||
*
|
||||
* @param enabled
|
||||
* private if true
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S private_(boolean enabled) throws IOException {
|
||||
return with("private", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables issue tracker
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S issues(boolean enabled) throws IOException {
|
||||
return with("has_issues", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables projects
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S projects(boolean enabled) throws IOException {
|
||||
return with("has_projects", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables wiki
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S wiki(boolean enabled) throws IOException {
|
||||
return with("has_wiki", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables downloads
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
*
|
||||
* @return a builder to continue with building
|
||||
*
|
||||
* @throws IOException
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public S downloads(boolean enabled) throws IOException {
|
||||
return with("has_downloads", enabled);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GHRepository done() throws IOException {
|
||||
return super.done().wrap(this.root);
|
||||
}
|
||||
|
||||
S archive() throws IOException {
|
||||
return with("archived", "true");
|
||||
}
|
||||
|
||||
S name(String name) throws IOException {
|
||||
return with("name", name);
|
||||
}
|
||||
}
|
||||
@@ -845,7 +845,7 @@ public class GitHub {
|
||||
* @return the gh create repository builder
|
||||
*/
|
||||
public GHCreateRepositoryBuilder createRepository(String name) {
|
||||
return new GHCreateRepositoryBuilder(this, "/user/repos", name);
|
||||
return new GHCreateRepositoryBuilder(name, this, "/user/repos");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -174,14 +174,12 @@ public abstract class AbstractGitHubWireMockTest extends Assert {
|
||||
* if repository could not be created or retrieved.
|
||||
*/
|
||||
protected GHRepository getTempRepository(String name) throws IOException {
|
||||
String fullName = GITHUB_API_TEST_ORG + '/' + name;
|
||||
if (mockGitHub.isUseProxy()) {
|
||||
String fullName = getOrganization() + '/' + name;
|
||||
|
||||
if (mockGitHub.isUseProxy()) {
|
||||
cleanupRepository(fullName);
|
||||
|
||||
GHRepository repository = getGitHubBeforeAfter().getOrganization(GITHUB_API_TEST_ORG)
|
||||
.createRepository(name)
|
||||
.description("A test repository for testing the github-api project: " + name)
|
||||
getCreateBuilder(name).description("A test repository for testing the github-api project: " + name)
|
||||
.homepage("http://github-api.kohsuke.org/")
|
||||
.autoInit(true)
|
||||
.wiki(true)
|
||||
@@ -244,6 +242,20 @@ public abstract class AbstractGitHubWireMockTest extends Assert {
|
||||
// assumeTrue(login.equals("kohsuke") || login.equals("kohsuke2"));
|
||||
}
|
||||
|
||||
private GHCreateRepositoryBuilder getCreateBuilder(String name) throws IOException {
|
||||
GitHub github = getGitHubBeforeAfter();
|
||||
|
||||
if (mockGitHub.isTestWithOrg()) {
|
||||
return github.getOrganization(GITHUB_API_TEST_ORG).createRepository(name);
|
||||
}
|
||||
|
||||
return github.createRepository(name);
|
||||
}
|
||||
|
||||
private String getOrganization() throws IOException {
|
||||
return mockGitHub.isTestWithOrg() ? GITHUB_API_TEST_ORG : gitHub.getMyself().getLogin();
|
||||
}
|
||||
|
||||
public static <T> void assertThat(T actual, Matcher<? super T> matcher) {
|
||||
assertThat("", actual, matcher);
|
||||
}
|
||||
|
||||
@@ -161,6 +161,53 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUpdateRepository() throws Exception {
|
||||
String homepage = "https://github-api.kohsuke.org/apidocs/index.html";
|
||||
String description = "A test repository for update testing via the github-api project";
|
||||
|
||||
GHRepository repo = getTempRepository();
|
||||
GHRepository.Updater builder = repo.updateRepository();
|
||||
|
||||
// one merge option is always required
|
||||
GHRepository updated = builder.allowRebaseMerge(false)
|
||||
.allowSquashMerge(false)
|
||||
.deleteBranchOnMerge(true)
|
||||
.description(description)
|
||||
.downloads(false)
|
||||
.downloads(false)
|
||||
.homepage(homepage)
|
||||
.issues(false)
|
||||
.private_(true)
|
||||
.projects(false)
|
||||
.wiki(false)
|
||||
.done();
|
||||
|
||||
assertTrue(updated.isAllowMergeCommit());
|
||||
assertFalse(updated.isAllowRebaseMerge());
|
||||
assertFalse(updated.isAllowSquashMerge());
|
||||
assertTrue(updated.isDeleteBranchOnMerge());
|
||||
assertTrue(updated.isPrivate());
|
||||
assertFalse(updated.hasDownloads());
|
||||
assertFalse(updated.hasIssues());
|
||||
assertFalse(updated.hasProjects());
|
||||
assertFalse(updated.hasWiki());
|
||||
|
||||
assertEquals(homepage, updated.getHomepage());
|
||||
assertEquals(description, updated.getDescription());
|
||||
|
||||
// test the other merge option and making the repo public again
|
||||
GHRepository redux = updated.updateRepository()
|
||||
.allowMergeCommit(false)
|
||||
.allowRebaseMerge(true)
|
||||
.private_(false)
|
||||
.done();
|
||||
|
||||
assertFalse(redux.isAllowMergeCommit());
|
||||
assertTrue(redux.isAllowRebaseMerge());
|
||||
assertFalse(redux.isPrivate());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listContributors() throws IOException {
|
||||
GHRepository r = gitHub.getOrganization("hub4j").getRepository("github-api");
|
||||
|
||||
@@ -36,6 +36,7 @@ public class GitHubWireMockRule extends WireMockMultiServerRule {
|
||||
// You can use the proxy without taking a snapshot while writing and debugging tests.
|
||||
// You cannot take a snapshot without proxying.
|
||||
private final static boolean takeSnapshot = System.getProperty("test.github.takeSnapshot", "false") != "false";
|
||||
private final static boolean testWithOrg = System.getProperty("test.github.org", "true") == "true";
|
||||
private final static boolean useProxy = takeSnapshot
|
||||
|| System.getProperty("test.github.useProxy", "false") != "false";
|
||||
|
||||
@@ -71,6 +72,10 @@ public class GitHubWireMockRule extends WireMockMultiServerRule {
|
||||
return GitHubWireMockRule.takeSnapshot;
|
||||
}
|
||||
|
||||
public boolean isTestWithOrg() {
|
||||
return GitHubWireMockRule.testWithOrg;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initializeServers() {
|
||||
super.initializeServers();
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"id": 320619034,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjA2MTkwMzQ=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "hub4j-test-org/temp-testUpdateRepository",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository",
|
||||
"description": "A test repository for testing the github-api project: temp-testUpdateRepository",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-12-11T15:58:10Z",
|
||||
"updated_at": "2020-12-11T15:58:15Z",
|
||||
"pushed_at": "2020-12-11T15:58:13Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository",
|
||||
"homepage": "http://github-api.kohsuke.org/",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 9
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"id": 320619034,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjA2MTkwMzQ=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "hub4j-test-org/temp-testUpdateRepository",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository",
|
||||
"description": "A test repository for update testing via the github-api project",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-12-11T15:58:10Z",
|
||||
"updated_at": "2020-12-11T15:58:17Z",
|
||||
"pushed_at": "2020-12-11T15:58:13Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository",
|
||||
"homepage": "https://github-api.kohsuke.org/apidocs/index.html",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": false,
|
||||
"has_projects": false,
|
||||
"has_downloads": false,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": false,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": false,
|
||||
"delete_branch_on_merge": true,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 9
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"id": 320619034,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjA2MTkwMzQ=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "hub4j-test-org/temp-testUpdateRepository",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository",
|
||||
"description": "A test repository for update testing via the github-api project",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-12-11T15:58:10Z",
|
||||
"updated_at": "2020-12-11T15:58:17Z",
|
||||
"pushed_at": "2020-12-11T15:58:13Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository",
|
||||
"homepage": "https://github-api.kohsuke.org/apidocs/index.html",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": false,
|
||||
"has_projects": false,
|
||||
"has_downloads": false,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": false,
|
||||
"allow_merge_commit": false,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": true,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 9
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"id": 320693332,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjA2OTMzMzI=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "hub4j-test-org/temp-testUpdateRepository",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository",
|
||||
"description": "A test repository for testing the github-api project: temp-testUpdateRepository",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-12-11T22:01:10Z",
|
||||
"updated_at": "2020-12-11T22:01:14Z",
|
||||
"pushed_at": "2020-12-11T22:01:12Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/temp-testUpdateRepository",
|
||||
"homepage": "http://github-api.kohsuke.org/",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": false,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 9
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"id": 293932361,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTM5MzIzNjE=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "jgangemi/temp-testUpdateRepository",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "jgangemi",
|
||||
"id": 1831839,
|
||||
"node_id": "MDQ6VXNlcjE4MzE4Mzk=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/1831839?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/jgangemi",
|
||||
"html_url": "https://github.com/jgangemi",
|
||||
"followers_url": "https://api.github.com/users/jgangemi/followers",
|
||||
"following_url": "https://api.github.com/users/jgangemi/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jgangemi/orgs",
|
||||
"repos_url": "https://api.github.com/users/jgangemi/repos",
|
||||
"events_url": "https://api.github.com/users/jgangemi/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jgangemi/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"description": "A test repository for testing the github-api project: temp-testUpdateRepository",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository",
|
||||
"forks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/forks",
|
||||
"keys_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/teams",
|
||||
"hooks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/events",
|
||||
"assignees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/tags",
|
||||
"blobs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscription",
|
||||
"commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/merges",
|
||||
"archive_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/downloads",
|
||||
"issues_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-09-08T21:33:06Z",
|
||||
"updated_at": "2020-09-08T21:33:11Z",
|
||||
"pushed_at": "2020-09-08T21:33:09Z",
|
||||
"git_url": "git://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"ssh_url": "git@github.com:jgangemi/temp-testUpdateRepository.git",
|
||||
"clone_url": "https://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"svn_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"homepage": "http://github-api.kohsuke.org/",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"id": 293932361,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTM5MzIzNjE=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "jgangemi/temp-testUpdateRepository",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "jgangemi",
|
||||
"id": 1831839,
|
||||
"node_id": "MDQ6VXNlcjE4MzE4Mzk=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/1831839?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/jgangemi",
|
||||
"html_url": "https://github.com/jgangemi",
|
||||
"followers_url": "https://api.github.com/users/jgangemi/followers",
|
||||
"following_url": "https://api.github.com/users/jgangemi/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jgangemi/orgs",
|
||||
"repos_url": "https://api.github.com/users/jgangemi/repos",
|
||||
"events_url": "https://api.github.com/users/jgangemi/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jgangemi/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"description": "A test repository for update testing via the github-api project",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository",
|
||||
"forks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/forks",
|
||||
"keys_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/teams",
|
||||
"hooks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/events",
|
||||
"assignees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/tags",
|
||||
"blobs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscription",
|
||||
"commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/merges",
|
||||
"archive_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/downloads",
|
||||
"issues_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-09-08T21:33:06Z",
|
||||
"updated_at": "2020-09-08T21:33:13Z",
|
||||
"pushed_at": "2020-09-08T21:33:09Z",
|
||||
"git_url": "git://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"ssh_url": "git@github.com:jgangemi/temp-testUpdateRepository.git",
|
||||
"clone_url": "https://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"svn_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"homepage": "https://github-api.kohsuke.org/apidocs/index.html",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": false,
|
||||
"has_projects": false,
|
||||
"has_downloads": false,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": false,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": false,
|
||||
"delete_branch_on_merge": true,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"id": 293932361,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTM5MzIzNjE=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "jgangemi/temp-testUpdateRepository",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "jgangemi",
|
||||
"id": 1831839,
|
||||
"node_id": "MDQ6VXNlcjE4MzE4Mzk=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/1831839?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/jgangemi",
|
||||
"html_url": "https://github.com/jgangemi",
|
||||
"followers_url": "https://api.github.com/users/jgangemi/followers",
|
||||
"following_url": "https://api.github.com/users/jgangemi/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jgangemi/orgs",
|
||||
"repos_url": "https://api.github.com/users/jgangemi/repos",
|
||||
"events_url": "https://api.github.com/users/jgangemi/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jgangemi/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"description": "A test repository for update testing via the github-api project",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository",
|
||||
"forks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/forks",
|
||||
"keys_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/teams",
|
||||
"hooks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/events",
|
||||
"assignees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/tags",
|
||||
"blobs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscription",
|
||||
"commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/merges",
|
||||
"archive_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/downloads",
|
||||
"issues_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-09-08T21:33:06Z",
|
||||
"updated_at": "2020-09-08T21:33:13Z",
|
||||
"pushed_at": "2020-09-08T21:33:09Z",
|
||||
"git_url": "git://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"ssh_url": "git@github.com:jgangemi/temp-testUpdateRepository.git",
|
||||
"clone_url": "https://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"svn_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"homepage": "https://github-api.kohsuke.org/apidocs/index.html",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": false,
|
||||
"has_projects": false,
|
||||
"has_downloads": false,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": false,
|
||||
"allow_merge_commit": false,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": true,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"login": "jgangemi",
|
||||
"id": 1831839,
|
||||
"node_id": "MDQ6VXNlcjE4MzE4Mzk=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/1831839?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/jgangemi",
|
||||
"html_url": "https://github.com/jgangemi",
|
||||
"followers_url": "https://api.github.com/users/jgangemi/followers",
|
||||
"following_url": "https://api.github.com/users/jgangemi/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jgangemi/orgs",
|
||||
"repos_url": "https://api.github.com/users/jgangemi/repos",
|
||||
"events_url": "https://api.github.com/users/jgangemi/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jgangemi/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false,
|
||||
"name": "Jae Gangemi",
|
||||
"company": null,
|
||||
"blog": "",
|
||||
"location": null,
|
||||
"email": null,
|
||||
"hireable": null,
|
||||
"bio": null,
|
||||
"twitter_username": null,
|
||||
"public_repos": 36,
|
||||
"public_gists": 1,
|
||||
"followers": 1,
|
||||
"following": 0,
|
||||
"created_at": "2012-06-08T19:54:02Z",
|
||||
"updated_at": "2020-09-08T17:26:45Z",
|
||||
"private_gists": 0,
|
||||
"total_private_repos": 9,
|
||||
"owned_private_repos": 9,
|
||||
"disk_usage": 16576,
|
||||
"collaborators": 0,
|
||||
"two_factor_authentication": true,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"collaborators": 0,
|
||||
"private_repos": 10000
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"id": "4e493dd1-561c-4712-a5df-bb94c66d1bd0",
|
||||
"name": "repos_hub4j-test-org_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-5.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Fri, 11 Dec 2020 15:58:16 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"555ff498caefeffe418a91a6bdce77b8d258e2b9611b61d781f7cf09d55e6ef0\"",
|
||||
"Last-Modified": "Fri, 11 Dec 2020 15:58:15 GMT",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4957",
|
||||
"X-RateLimit-Reset": "1607705854",
|
||||
"X-RateLimit-Used": "43",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "DE14:0E9A:25E1B:54443:5FD39718"
|
||||
}
|
||||
},
|
||||
"uuid": "4e493dd1-561c-4712-a5df-bb94c66d1bd0",
|
||||
"persistent": true,
|
||||
"insertionIndex": 5
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"id": "eaae6715-f563-4ef2-ae65-ed37ffa99a01",
|
||||
"name": "repos_hub4j-test-org_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
"method": "PATCH",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"has_projects\":false,\"allow_squash_merge\":false,\"private\":true,\"has_downloads\":false,\"has_wiki\":false,\"description\":\"A test repository for update testing via the github-api project\",\"delete_branch_on_merge\":true,\"allow_rebase_merge\":false,\"has_issues\":false,\"homepage\":\"https://github-api.kohsuke.org/apidocs/index.html\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-6.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Fri, 11 Dec 2020 15:58:17 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"1597604183fb9f89ca861ee6dd048456b9fd231c7a63468c3ba2b3816eefbb02\"",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4956",
|
||||
"X-RateLimit-Reset": "1607705854",
|
||||
"X-RateLimit-Used": "44",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "DE14:0E9A:25E2B:5445A:5FD39718"
|
||||
}
|
||||
},
|
||||
"uuid": "eaae6715-f563-4ef2-ae65-ed37ffa99a01",
|
||||
"persistent": true,
|
||||
"insertionIndex": 6
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"id": "ff129618-2aad-41bb-8ac6-285401903b38",
|
||||
"name": "repos_hub4j-test-org_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
"method": "PATCH",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"allow_merge_commit\":false,\"allow_rebase_merge\":true}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-7.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Fri, 11 Dec 2020 15:58:17 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"5f771e7de1a2dff0c4baba3e61457b26130b5081807ce1006e6545991cad20e6\"",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4955",
|
||||
"X-RateLimit-Reset": "1607705854",
|
||||
"X-RateLimit-Used": "45",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "DE14:0E9A:25E65:544E3:5FD39719"
|
||||
}
|
||||
},
|
||||
"uuid": "ff129618-2aad-41bb-8ac6-285401903b38",
|
||||
"persistent": true,
|
||||
"insertionIndex": 7
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"id": "a60e0060-46f5-490d-bd8f-efa315baf228",
|
||||
"name": "repos_hub4j-test-org_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
"method": "PATCH",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"allow_merge_commit\":false,\"private\":false,\"allow_rebase_merge\":true}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-8.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Fri, 11 Dec 2020 22:01:16 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"500c5b5a3168fc5823684db294216928037aff552dd2b2f03715d1f49ac7453e\"",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4867",
|
||||
"X-RateLimit-Reset": "1607725816",
|
||||
"X-RateLimit-Used": "133",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "C0A7:6735:B758B:138DEB:5FD3EC2B"
|
||||
}
|
||||
},
|
||||
"uuid": "a60e0060-46f5-490d-bd8f-efa315baf228",
|
||||
"persistent": true,
|
||||
"insertionIndex": 8
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"id": "4933bd1c-62ac-4ad8-96c1-8403e7e0caf1",
|
||||
"name": "repos_jgangemi_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/jgangemi/temp-testUpdateRepository",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_jgangemi_temp-testupdaterepository-2.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Tue, 08 Sep 2020 21:33:12 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"fac1eef1086f6a04dfc2d15592c897e9\"",
|
||||
"Last-Modified": "Tue, 08 Sep 2020 21:33:11 GMT",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4970",
|
||||
"X-RateLimit-Reset": "1599602533",
|
||||
"X-RateLimit-Used": "30",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "D468:44C1:2169ECB:49A1201:5F57F891"
|
||||
}
|
||||
},
|
||||
"uuid": "4933bd1c-62ac-4ad8-96c1-8403e7e0caf1",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"id": "9e2ac66d-1299-4ca0-aac3-28cc6d0d9218",
|
||||
"name": "repos_jgangemi_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/jgangemi/temp-testUpdateRepository",
|
||||
"method": "PATCH",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"has_projects\":false,\"allow_squash_merge\":false,\"private\":true,\"has_downloads\":false,\"has_wiki\":false,\"name\":\"temp-testUpdateRepository\",\"description\":\"A test repository for update testing via the github-api project\",\"delete_branch_on_merge\":true,\"allow_rebase_merge\":false,\"has_issues\":false,\"homepage\":\"https://github-api.kohsuke.org/apidocs/index.html\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_jgangemi_temp-testupdaterepository-3.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Tue, 08 Sep 2020 21:33:13 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"21a7d0185465ab055b99b12716d6f532\"",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4969",
|
||||
"X-RateLimit-Reset": "1599602533",
|
||||
"X-RateLimit-Used": "31",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "D468:44C1:2169EDC:49A187D:5F57F898"
|
||||
}
|
||||
},
|
||||
"uuid": "9e2ac66d-1299-4ca0-aac3-28cc6d0d9218",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"id": "79c6a9fb-236d-4ebc-b8e8-71ae4d5ded63",
|
||||
"name": "repos_jgangemi_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/jgangemi/temp-testUpdateRepository",
|
||||
"method": "PATCH",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"allow_merge_commit\":false,\"name\":\"temp-testUpdateRepository\",\"allow_rebase_merge\":true}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_jgangemi_temp-testupdaterepository-4.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Tue, 08 Sep 2020 21:33:14 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"aa218ddb60df43d54fc89e9f88db8381\"",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4968",
|
||||
"X-RateLimit-Reset": "1599602533",
|
||||
"X-RateLimit-Used": "32",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "D468:44C1:2169F5B:49A195A:5F57F899"
|
||||
}
|
||||
},
|
||||
"uuid": "79c6a9fb-236d-4ebc-b8e8-71ae4d5ded63",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"id": "eb5ea320-8de4-4997-ad24-1f481e7f0caa",
|
||||
"name": "user",
|
||||
"request": {
|
||||
"url": "/user",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "user-1.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Tue, 08 Sep 2020 21:33:05 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"339238519100240ed9cb902c41e78f67\"",
|
||||
"Last-Modified": "Tue, 08 Sep 2020 17:26:45 GMT",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4974",
|
||||
"X-RateLimit-Reset": "1599602533",
|
||||
"X-RateLimit-Used": "26",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "D468:44C1:2169B0F:49A1129:5F57F890"
|
||||
}
|
||||
},
|
||||
"uuid": "eb5ea320-8de4-4997-ad24-1f481e7f0caa",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
Reference in New Issue
Block a user