mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Merge pull request #939 from jgangemi/jae/bulk-update
- bulk update of repository options
This commit is contained in:
@@ -31,21 +31,37 @@ Example for a single test case:
|
||||
|
||||
`WireMockStatusReporterTest: GitHub proxying and user auth correctly configured for user login: <your login>`
|
||||
|
||||
Whenever you run tests with `-Dtest.github.useProxy`, they will try to get data from local files but will fallback to proxying to github if not found.
|
||||
|
||||
Whenever you run tests with `-Dtest.github.useProxy`, they will try to get data from local files but will fallback to proxying to GitHub if not found.
|
||||
|
||||
### 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:
|
||||
#### Running tests using GitHub test proxy
|
||||
|
||||
`mvn install -Dtest.github.takeSnapshot -Dtest=YourTestClassName`
|
||||
Keep `useProxy` enabled and iterate on your tests as needed. With `useProxy` enabled your tests will interact with
|
||||
GitHub - you will need to clean up your server-state between runs. This can be done manually to start with.
|
||||
Once your test code is somewhat stable, use `getGitHubBeforeAfter()` to get a `GitHub` instance for test setup and cleanup.
|
||||
Interactions with that `GitHub` instance will not be recorded as part of the test, keeping the test data files to a minimum.
|
||||
|
||||
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.
|
||||
#### Running tests against your personal GitHub user account
|
||||
|
||||
By default, test helper methods such as `getTempRepository()` target the `hub4j-test-org` GitHub organization.
|
||||
Please request access to this org to record your tests before submitting a PR. This helps keep the project stable and nimble.
|
||||
Until you have access (or if you don't want access), you can set the following additional system property to target
|
||||
your personal github account.
|
||||
|
||||
`mvn install -Dtest.github.org=false -Dtest=YourTestClassName`
|
||||
|
||||
#### Taking a snapshot
|
||||
|
||||
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 will create snapshot WireMock data files under the path `src/test/resources/org/kohsuhke/github/YourTestClassName/wiremock`.
|
||||
Each method will get a separate directory that will hold the data files for that test method.
|
||||
|
||||
Add all files including the generated data to your commit and submit a PR.
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
import static org.kohsuke.github.Previews.BAPTISTE;
|
||||
|
||||
@@ -10,158 +9,17 @@ import static org.kohsuke.github.Previews.BAPTISTE;
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class GHCreateRepositoryBuilder extends GitHubInteractiveObject {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -170,10 +28,11 @@ public class GHCreateRepositoryBuilder extends GitHubInteractiveObject {
|
||||
* @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);
|
||||
return this;
|
||||
public GHCreateRepositoryBuilder gitignoreTemplate(String language) throws IOException {
|
||||
return with("gitignore_template", language);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -182,10 +41,24 @@ public class GHCreateRepositoryBuilder extends GitHubInteractiveObject {
|
||||
* @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);
|
||||
return this;
|
||||
public GHCreateRepositoryBuilder licenseTemplate(String license) throws IOException {
|
||||
return with("license_template", license);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 {
|
||||
return with("auto_init", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -194,10 +67,12 @@ public class GHCreateRepositoryBuilder extends GitHubInteractiveObject {
|
||||
* @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;
|
||||
}
|
||||
|
||||
@@ -207,13 +82,13 @@ public class GHCreateRepositoryBuilder extends GitHubInteractiveObject {
|
||||
* @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.
|
||||
* @deprecated Use {@link #isTemplate(boolean)} method instead
|
||||
*/
|
||||
@Preview(BAPTISTE)
|
||||
@Deprecated
|
||||
public GHCreateRepositoryBuilder templateRepository(boolean enabled) {
|
||||
this.builder.withPreview(BAPTISTE);
|
||||
this.builder.with("is_template", enabled);
|
||||
return this;
|
||||
public GHCreateRepositoryBuilder templateRepository(boolean enabled) throws IOException {
|
||||
return isTemplate(enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -222,14 +97,15 @@ public class GHCreateRepositoryBuilder extends GitHubInteractiveObject {
|
||||
* @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);
|
||||
return this;
|
||||
public GHCreateRepositoryBuilder owner(String owner) throws IOException {
|
||||
return with("owner", owner);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create repository from template repository.
|
||||
* Create repository from template repository
|
||||
*
|
||||
* @param templateOwner
|
||||
* template repository owner
|
||||
@@ -241,8 +117,7 @@ public class GHCreateRepositoryBuilder extends GitHubInteractiveObject {
|
||||
@Preview(BAPTISTE)
|
||||
@Deprecated
|
||||
public GHCreateRepositoryBuilder fromTemplateRepository(String templateOwner, String templateRepo) {
|
||||
this.builder.withPreview(BAPTISTE);
|
||||
this.apiUrlTail = "/repos/" + templateOwner + "/" + templateRepo + "/generate";
|
||||
requester.withPreview(BAPTISTE).withUrlPath("/repos/" + templateOwner + "/" + templateRepo + "/generate");
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -251,10 +126,9 @@ public class GHCreateRepositoryBuilder extends GitHubInteractiveObject {
|
||||
*
|
||||
* @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.*;
|
||||
|
||||
@@ -1085,14 +1087,6 @@ public class GHRepository extends GHObject {
|
||||
.send();
|
||||
}
|
||||
|
||||
private void edit(String key, String value) throws IOException {
|
||||
Requester requester = root.createRequest();
|
||||
if (!key.equals("name")) {
|
||||
requester.with("name", name); // even when we don't change the name, we need to send it in
|
||||
}
|
||||
requester.with(key, value).method("PATCH").withUrlPath(getApiTailUrl("")).send();
|
||||
}
|
||||
|
||||
/**
|
||||
* Enables or disables the issue tracker for this repository.
|
||||
*
|
||||
@@ -1102,7 +1096,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void enableIssueTracker(boolean v) throws IOException {
|
||||
edit("has_issues", String.valueOf(v));
|
||||
set().issues(v);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1114,7 +1108,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void enableProjects(boolean v) throws IOException {
|
||||
edit("has_projects", String.valueOf(v));
|
||||
set().projects(v);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1126,7 +1120,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void enableWiki(boolean v) throws IOException {
|
||||
edit("has_wiki", String.valueOf(v));
|
||||
set().wiki(v);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1138,7 +1132,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void enableDownloads(boolean v) throws IOException {
|
||||
edit("has_downloads", String.valueOf(v));
|
||||
set().downloads(v);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1150,7 +1144,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void renameTo(String name) throws IOException {
|
||||
edit("name", name);
|
||||
set().name(name);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1162,7 +1156,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void setDescription(String value) throws IOException {
|
||||
edit("description", value);
|
||||
set().description(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1174,7 +1168,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void setHomepage(String value) throws IOException {
|
||||
edit("homepage", value);
|
||||
set().homepage(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1186,7 +1180,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void setDefaultBranch(String value) throws IOException {
|
||||
edit("default_branch", value);
|
||||
set().defaultBranch(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1198,7 +1192,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void setPrivate(boolean value) throws IOException {
|
||||
edit("private", Boolean.toString(value));
|
||||
set().private_(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1210,7 +1204,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void allowSquashMerge(boolean value) throws IOException {
|
||||
edit("allow_squash_merge", Boolean.toString(value));
|
||||
set().allowSquashMerge(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1222,7 +1216,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void allowMergeCommit(boolean value) throws IOException {
|
||||
edit("allow_merge_commit", Boolean.toString(value));
|
||||
set().allowMergeCommit(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1234,7 +1228,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void allowRebaseMerge(boolean value) throws IOException {
|
||||
edit("allow_rebase_merge", Boolean.toString(value));
|
||||
set().allowRebaseMerge(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1246,7 +1240,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void deleteBranchOnMerge(boolean value) throws IOException {
|
||||
edit("delete_branch_on_merge", Boolean.toString(value));
|
||||
set().deleteBranchOnMerge(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1283,12 +1277,30 @@ public class GHRepository extends GHObject {
|
||||
* In case of any networking error or error from the server.
|
||||
*/
|
||||
public void archive() throws IOException {
|
||||
edit("archived", "true");
|
||||
// Generall would not update this record,
|
||||
// but do so here since this will result in any other update actions failing
|
||||
set().archive();
|
||||
// Generally would not update this record,
|
||||
// but doing so here since this will result in any other update actions failing
|
||||
archived = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a builder that can be used to bulk update repository settings.
|
||||
*
|
||||
* @return the repository updater
|
||||
*/
|
||||
public Updater update() {
|
||||
return new Updater(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a builder that can be used to bulk update repository settings.
|
||||
*
|
||||
* @return the repository updater
|
||||
*/
|
||||
public Setter set() {
|
||||
return new Setter(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sort orders for listing forks
|
||||
*/
|
||||
@@ -2965,7 +2977,7 @@ public class GHRepository extends GHObject {
|
||||
final URL url = Objects.requireNonNull(getUrl(), "Missing instance URL!");
|
||||
|
||||
try {
|
||||
// IMPORTANT: the url for repository records is does not reliably point to the API url.
|
||||
// IMPORTANT: the url for repository records does not reliably point to the API url.
|
||||
// There is bug in Push event payloads that returns the wrong url.
|
||||
// All other occurrences of "url" take the form "https://api.github.com/...".
|
||||
// For Push event repository records, they take the form "https://github.com/{fullName}".
|
||||
@@ -2982,4 +2994,40 @@ 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.
|
||||
*/
|
||||
@BetaApi
|
||||
@Deprecated
|
||||
public static class Updater extends GHRepositoryBuilder<Updater> {
|
||||
protected Updater(@Nonnull GHRepository repository) {
|
||||
super(Updater.class, repository.root, null);
|
||||
// even when we don't change the name, we need to send it in
|
||||
// this requirement may be out-of-date, but we do not want to break it
|
||||
requester.with("name", repository.name);
|
||||
|
||||
requester.method("PATCH").withUrlPath(repository.getApiTailUrl(""));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A {@link GHRepositoryBuilder} that allows multiple properties to be updated per request.
|
||||
*
|
||||
* Consumer must call {@link #done()} to commit changes.
|
||||
*/
|
||||
@BetaApi
|
||||
@Deprecated
|
||||
public static class Setter extends GHRepositoryBuilder<GHRepository> {
|
||||
protected Setter(@Nonnull GHRepository repository) {
|
||||
super(GHRepository.class, repository.root, null);
|
||||
// even when we don't change the name, we need to send it in
|
||||
// this requirement may be out-of-date, but we do not want to break it
|
||||
requester.with("name", repository.name);
|
||||
|
||||
requester.method("PATCH").withUrlPath(repository.getApiTailUrl(""));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
235
src/main/java/org/kohsuke/github/GHRepositoryBuilder.java
Normal file
235
src/main/java/org/kohsuke/github/GHRepositoryBuilder.java
Normal file
@@ -0,0 +1,235 @@
|
||||
package org.kohsuke.github;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
import static org.kohsuke.github.Previews.BAPTISTE;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies whether the repository is a template.
|
||||
*
|
||||
* @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(BAPTISTE)
|
||||
@Deprecated
|
||||
public S isTemplate(boolean enabled) throws IOException {
|
||||
requester.withPreview(BAPTISTE);
|
||||
return with("is_template", 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);
|
||||
}
|
||||
|
||||
@@ -69,10 +69,7 @@ public class AppTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(r.hasDownloads(), is(false));
|
||||
assertThat(r.getName(), equalTo(targetName));
|
||||
|
||||
// ISSUE: #765
|
||||
// From what I can tell this is a bug in GithHub.
|
||||
// updating `has_projects` doesn't seem to do anything
|
||||
assertThat(r.hasProjects(), is(true));
|
||||
assertThat(r.hasProjects(), is(false));
|
||||
|
||||
r.delete();
|
||||
}
|
||||
|
||||
@@ -55,10 +55,10 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Test
|
||||
public void archive() throws Exception {
|
||||
// Archive is a one-way action in the API.
|
||||
// After taking snapshot, manual state reset is required.
|
||||
snapshotNotAllowed();
|
||||
|
||||
// Archive is a one-way action in the API.
|
||||
// We do thi this one
|
||||
GHRepository repo = getRepository();
|
||||
|
||||
assertThat(repo.isArchived(), is(false));
|
||||
@@ -161,6 +161,54 @@ 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.update();
|
||||
|
||||
// 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.update().allowMergeCommit(false).allowRebaseMerge(true).private_(false).done();
|
||||
|
||||
assertFalse(redux.isAllowMergeCommit());
|
||||
assertTrue(redux.isAllowRebaseMerge());
|
||||
assertFalse(redux.isPrivate());
|
||||
|
||||
String updatedDescription = "updated using set()";
|
||||
redux = redux.set().description(updatedDescription);
|
||||
|
||||
assertThat(redux.getDescription(), equalTo(updatedDescription));
|
||||
}
|
||||
|
||||
@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();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 251751384,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyNTE3NTEzODQ=",
|
||||
"id": 325161462,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNjE0NjI=",
|
||||
"name": "github-api-test-rename",
|
||||
"full_name": "bitwiseman/github-api-test-rename",
|
||||
"private": false,
|
||||
@@ -64,9 +64,9 @@
|
||||
"labels_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/deployments",
|
||||
"created_at": "2020-03-31T21:52:44Z",
|
||||
"updated_at": "2020-03-31T21:52:45Z",
|
||||
"pushed_at": "2020-03-31T21:52:45Z",
|
||||
"created_at": "2020-12-29T02:01:46Z",
|
||||
"updated_at": "2020-12-29T02:01:48Z",
|
||||
"pushed_at": "2020-12-29T02:01:48Z",
|
||||
"git_url": "git://github.com/bitwiseman/github-api-test-rename.git",
|
||||
"ssh_url": "git@github.com:bitwiseman/github-api-test-rename.git",
|
||||
"clone_url": "https://github.com/bitwiseman/github-api-test-rename.git",
|
||||
@@ -90,7 +90,7 @@
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 251751384,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyNTE3NTEzODQ=",
|
||||
"id": 325161462,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNjE0NjI=",
|
||||
"name": "github-api-test-rename",
|
||||
"full_name": "bitwiseman/github-api-test-rename",
|
||||
"private": false,
|
||||
@@ -64,9 +64,9 @@
|
||||
"labels_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/deployments",
|
||||
"created_at": "2020-03-31T21:52:44Z",
|
||||
"updated_at": "2020-03-31T21:52:46Z",
|
||||
"pushed_at": "2020-03-31T21:52:45Z",
|
||||
"created_at": "2020-12-29T02:01:46Z",
|
||||
"updated_at": "2020-12-29T02:01:49Z",
|
||||
"pushed_at": "2020-12-29T02:01:48Z",
|
||||
"git_url": "git://github.com/bitwiseman/github-api-test-rename.git",
|
||||
"ssh_url": "git@github.com:bitwiseman/github-api-test-rename.git",
|
||||
"clone_url": "https://github.com/bitwiseman/github-api-test-rename.git",
|
||||
@@ -90,7 +90,7 @@
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 251751384,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyNTE3NTEzODQ=",
|
||||
"id": 325161462,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNjE0NjI=",
|
||||
"name": "github-api-test-rename",
|
||||
"full_name": "bitwiseman/github-api-test-rename",
|
||||
"private": false,
|
||||
@@ -64,9 +64,9 @@
|
||||
"labels_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/deployments",
|
||||
"created_at": "2020-03-31T21:52:44Z",
|
||||
"updated_at": "2020-03-31T21:52:46Z",
|
||||
"pushed_at": "2020-03-31T21:52:45Z",
|
||||
"created_at": "2020-12-29T02:01:46Z",
|
||||
"updated_at": "2020-12-29T02:01:49Z",
|
||||
"pushed_at": "2020-12-29T02:01:48Z",
|
||||
"git_url": "git://github.com/bitwiseman/github-api-test-rename.git",
|
||||
"ssh_url": "git@github.com:bitwiseman/github-api-test-rename.git",
|
||||
"clone_url": "https://github.com/bitwiseman/github-api-test-rename.git",
|
||||
@@ -90,7 +90,7 @@
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 251751384,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyNTE3NTEzODQ=",
|
||||
"id": 325161462,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNjE0NjI=",
|
||||
"name": "github-api-test-rename",
|
||||
"full_name": "bitwiseman/github-api-test-rename",
|
||||
"private": false,
|
||||
@@ -64,9 +64,9 @@
|
||||
"labels_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/deployments",
|
||||
"created_at": "2020-03-31T21:52:44Z",
|
||||
"updated_at": "2020-03-31T21:52:47Z",
|
||||
"pushed_at": "2020-03-31T21:52:45Z",
|
||||
"created_at": "2020-12-29T02:01:46Z",
|
||||
"updated_at": "2020-12-29T02:01:49Z",
|
||||
"pushed_at": "2020-12-29T02:01:48Z",
|
||||
"git_url": "git://github.com/bitwiseman/github-api-test-rename.git",
|
||||
"ssh_url": "git@github.com:bitwiseman/github-api-test-rename.git",
|
||||
"clone_url": "https://github.com/bitwiseman/github-api-test-rename.git",
|
||||
@@ -77,7 +77,7 @@
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": false,
|
||||
"has_projects": true,
|
||||
"has_projects": false,
|
||||
"has_downloads": false,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
@@ -90,7 +90,7 @@
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 251751384,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyNTE3NTEzODQ=",
|
||||
"id": 325161462,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNjE0NjI=",
|
||||
"name": "github-api-test-rename2",
|
||||
"full_name": "bitwiseman/github-api-test-rename2",
|
||||
"private": false,
|
||||
@@ -64,9 +64,9 @@
|
||||
"labels_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename2/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename2/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename2/deployments",
|
||||
"created_at": "2020-03-31T21:52:44Z",
|
||||
"updated_at": "2020-03-31T21:52:47Z",
|
||||
"pushed_at": "2020-03-31T21:52:45Z",
|
||||
"created_at": "2020-12-29T02:01:46Z",
|
||||
"updated_at": "2020-12-29T02:01:50Z",
|
||||
"pushed_at": "2020-12-29T02:01:48Z",
|
||||
"git_url": "git://github.com/bitwiseman/github-api-test-rename2.git",
|
||||
"ssh_url": "git@github.com:bitwiseman/github-api-test-rename2.git",
|
||||
"clone_url": "https://github.com/bitwiseman/github-api-test-rename2.git",
|
||||
@@ -77,7 +77,7 @@
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": false,
|
||||
"has_projects": true,
|
||||
"has_projects": false,
|
||||
"has_downloads": false,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
@@ -90,7 +90,7 @@
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 251751384,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyNTE3NTEzODQ=",
|
||||
"id": 325161462,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNjE0NjI=",
|
||||
"name": "github-api-test-rename2",
|
||||
"full_name": "bitwiseman/github-api-test-rename2",
|
||||
"private": false,
|
||||
@@ -64,9 +64,9 @@
|
||||
"labels_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename2/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename2/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename2/deployments",
|
||||
"created_at": "2020-03-31T21:52:44Z",
|
||||
"updated_at": "2020-03-31T21:52:47Z",
|
||||
"pushed_at": "2020-03-31T21:52:45Z",
|
||||
"created_at": "2020-12-29T02:01:46Z",
|
||||
"updated_at": "2020-12-29T02:01:50Z",
|
||||
"pushed_at": "2020-12-29T02:01:48Z",
|
||||
"git_url": "git://github.com/bitwiseman/github-api-test-rename2.git",
|
||||
"ssh_url": "git@github.com:bitwiseman/github-api-test-rename2.git",
|
||||
"clone_url": "https://github.com/bitwiseman/github-api-test-rename2.git",
|
||||
@@ -77,7 +77,7 @@
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": false,
|
||||
"has_projects": true,
|
||||
"has_projects": false,
|
||||
"has_downloads": false,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
@@ -90,7 +90,7 @@
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
|
||||
@@ -23,17 +23,18 @@
|
||||
"location": "Seattle, WA, USA",
|
||||
"email": "bitwiseman@gmail.com",
|
||||
"hireable": null,
|
||||
"bio": "https://twitter.com/bitwiseman",
|
||||
"public_repos": 181,
|
||||
"bio": null,
|
||||
"twitter_username": "bitwiseman",
|
||||
"public_repos": 199,
|
||||
"public_gists": 7,
|
||||
"followers": 151,
|
||||
"following": 9,
|
||||
"followers": 174,
|
||||
"following": 11,
|
||||
"created_at": "2012-07-11T20:38:33Z",
|
||||
"updated_at": "2020-03-27T19:14:56Z",
|
||||
"private_gists": 8,
|
||||
"total_private_repos": 10,
|
||||
"updated_at": "2020-12-23T22:23:08Z",
|
||||
"private_gists": 19,
|
||||
"total_private_repos": 17,
|
||||
"owned_private_repos": 0,
|
||||
"disk_usage": 33697,
|
||||
"disk_usage": 33700,
|
||||
"collaborators": 0,
|
||||
"two_factor_authentication": true,
|
||||
"plan": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 251751384,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyNTE3NTEzODQ=",
|
||||
"id": 325161462,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNjE0NjI=",
|
||||
"name": "github-api-test-rename",
|
||||
"full_name": "bitwiseman/github-api-test-rename",
|
||||
"private": false,
|
||||
@@ -64,9 +64,9 @@
|
||||
"labels_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/bitwiseman/github-api-test-rename/deployments",
|
||||
"created_at": "2020-03-31T21:52:44Z",
|
||||
"updated_at": "2020-03-31T21:52:44Z",
|
||||
"pushed_at": "2020-03-31T21:52:45Z",
|
||||
"created_at": "2020-12-29T02:01:46Z",
|
||||
"updated_at": "2020-12-29T02:01:46Z",
|
||||
"pushed_at": "2020-12-29T02:01:48Z",
|
||||
"git_url": "git://github.com/bitwiseman/github-api-test-rename.git",
|
||||
"ssh_url": "git@github.com:bitwiseman/github-api-test-rename.git",
|
||||
"clone_url": "https://github.com/bitwiseman/github-api-test-rename.git",
|
||||
@@ -90,7 +90,7 @@
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"default_branch": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "c3f87b1c-6f0b-4b79-bde4-9109f7c55cc7",
|
||||
"id": "0f6b2dfc-bd03-4adf-8ded-7bcf4d50a33a",
|
||||
"name": "repos_bitwiseman_github-api-test-rename",
|
||||
"request": {
|
||||
"url": "/repos/bitwiseman/github-api-test-rename",
|
||||
@@ -11,9 +11,9 @@
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"name\":\"github-api-test-rename\",\"has_issues\":\"false\"}",
|
||||
"equalToJson": "{\"name\":\"github-api-test-rename\",\"has_issues\":false}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -21,32 +21,34 @@
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_bitwiseman_github-api-test-rename-3.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 31 Mar 2020 21:52:46 GMT",
|
||||
"Date": "Tue, 29 Dec 2020 02:01:48 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4953",
|
||||
"X-RateLimit-Reset": "1585694558",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"625a698b64b32794236772173b8d0bb3\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"ETag": "W/\"a52f61229d5886754583189c59bea839991a358da17cc588bae9833f5cb7c174\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4980",
|
||||
"X-RateLimit-Reset": "1609210718",
|
||||
"X-RateLimit-Used": "20",
|
||||
"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": "E4E1:4164:31A22:3BAEA:5E83BBAD"
|
||||
"X-GitHub-Request-Id": "D20D:05F9:1179BDE:154F64A:5FEA8E0C"
|
||||
}
|
||||
},
|
||||
"uuid": "c3f87b1c-6f0b-4b79-bde4-9109f7c55cc7",
|
||||
"uuid": "0f6b2dfc-bd03-4adf-8ded-7bcf4d50a33a",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "8efcaa7b-d3ca-4fce-b31a-8a765e5c044a",
|
||||
"id": "e6db9030-3c2a-4417-8eb1-d1adf96e23f3",
|
||||
"name": "repos_bitwiseman_github-api-test-rename",
|
||||
"request": {
|
||||
"url": "/repos/bitwiseman/github-api-test-rename",
|
||||
@@ -11,9 +11,9 @@
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"has_downloads\":\"false\",\"name\":\"github-api-test-rename\"}",
|
||||
"equalToJson": "{\"has_downloads\":false,\"name\":\"github-api-test-rename\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -21,32 +21,34 @@
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_bitwiseman_github-api-test-rename-4.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 31 Mar 2020 21:52:46 GMT",
|
||||
"Date": "Tue, 29 Dec 2020 02:01:49 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4952",
|
||||
"X-RateLimit-Reset": "1585694557",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"237ebb38233326024057a1ee045f6772\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"ETag": "W/\"e2e852a0e8c370af5757e17975f27e4aaa1bb672c1f78cfea19ba9839f0aa522\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4979",
|
||||
"X-RateLimit-Reset": "1609210718",
|
||||
"X-RateLimit-Used": "21",
|
||||
"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": "E4E1:4164:31A2E:3BAFA:5E83BBAE"
|
||||
"X-GitHub-Request-Id": "D20D:05F9:1179BE0:154F650:5FEA8E0C"
|
||||
}
|
||||
},
|
||||
"uuid": "8efcaa7b-d3ca-4fce-b31a-8a765e5c044a",
|
||||
"uuid": "e6db9030-3c2a-4417-8eb1-d1adf96e23f3",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "a6888579-14e4-4301-9ec5-976a19cb23c0",
|
||||
"id": "708dd4c9-17f3-467c-b999-c6692eca9196",
|
||||
"name": "repos_bitwiseman_github-api-test-rename",
|
||||
"request": {
|
||||
"url": "/repos/bitwiseman/github-api-test-rename",
|
||||
@@ -11,9 +11,9 @@
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"has_wiki\":\"false\",\"name\":\"github-api-test-rename\"}",
|
||||
"equalToJson": "{\"has_wiki\":false,\"name\":\"github-api-test-rename\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -21,32 +21,34 @@
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_bitwiseman_github-api-test-rename-5.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 31 Mar 2020 21:52:46 GMT",
|
||||
"Date": "Tue, 29 Dec 2020 02:01:49 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4951",
|
||||
"X-RateLimit-Reset": "1585694557",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"6836a34e195156e2d14d7e41ce4dbd18\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"ETag": "W/\"41298ff7d400b8fa7d77ab54760b5b91cedf24a10056ffac65bdcfc83b04ccbe\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4978",
|
||||
"X-RateLimit-Reset": "1609210718",
|
||||
"X-RateLimit-Used": "22",
|
||||
"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": "E4E1:4164:31A3C:3BB0D:5E83BBAE"
|
||||
"X-GitHub-Request-Id": "D20D:05F9:1179BE1:154F652:5FEA8E0D"
|
||||
}
|
||||
},
|
||||
"uuid": "a6888579-14e4-4301-9ec5-976a19cb23c0",
|
||||
"uuid": "708dd4c9-17f3-467c-b999-c6692eca9196",
|
||||
"persistent": true,
|
||||
"insertionIndex": 5
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "ed55776a-ceb6-4491-b48b-bae26fcbf332",
|
||||
"id": "7e41350c-bd2d-4136-a3af-1bd92b99c914",
|
||||
"name": "repos_bitwiseman_github-api-test-rename",
|
||||
"request": {
|
||||
"url": "/repos/bitwiseman/github-api-test-rename",
|
||||
@@ -11,9 +11,9 @@
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"has_projects\":\"false\",\"name\":\"github-api-test-rename\"}",
|
||||
"equalToJson": "{\"has_projects\":false,\"name\":\"github-api-test-rename\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -21,32 +21,34 @@
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_bitwiseman_github-api-test-rename-6.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 31 Mar 2020 21:52:47 GMT",
|
||||
"Date": "Tue, 29 Dec 2020 02:01:49 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4950",
|
||||
"X-RateLimit-Reset": "1585694557",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"717896c8338f5e74e2d41b75d9def566\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"ETag": "W/\"613ae20a7be1b5a781f2895599044a2d083f0c3cc60c5dd197a46293112acca5\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4977",
|
||||
"X-RateLimit-Reset": "1609210718",
|
||||
"X-RateLimit-Used": "23",
|
||||
"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": "E4E1:4164:31A56:3BB20:5E83BBAE"
|
||||
"X-GitHub-Request-Id": "D20D:05F9:1179BE4:154F654:5FEA8E0D"
|
||||
}
|
||||
},
|
||||
"uuid": "ed55776a-ceb6-4491-b48b-bae26fcbf332",
|
||||
"uuid": "7e41350c-bd2d-4136-a3af-1bd92b99c914",
|
||||
"persistent": true,
|
||||
"insertionIndex": 6
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "9fb96a01-8e78-4eaa-b108-02ebdf17400f",
|
||||
"id": "60ab15fc-d786-4414-b1e1-a2106f589f09",
|
||||
"name": "repos_bitwiseman_github-api-test-rename",
|
||||
"request": {
|
||||
"url": "/repos/bitwiseman/github-api-test-rename",
|
||||
@@ -13,7 +13,7 @@
|
||||
{
|
||||
"equalToJson": "{\"name\":\"github-api-test-rename2\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -21,32 +21,34 @@
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_bitwiseman_github-api-test-rename-7.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 31 Mar 2020 21:52:47 GMT",
|
||||
"Date": "Tue, 29 Dec 2020 02:01:50 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4949",
|
||||
"X-RateLimit-Reset": "1585694557",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"9058ae4164d77e4b7b058f9d891bf651\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"ETag": "W/\"cac660f4f5a9d481b91d940cbe3d788d8b8e967777dfd7db7994687a03213f4d\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4976",
|
||||
"X-RateLimit-Reset": "1609210718",
|
||||
"X-RateLimit-Used": "24",
|
||||
"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": "E4E1:4164:31A6F:3BB42:5E83BBAF"
|
||||
"X-GitHub-Request-Id": "D20D:05F9:1179BEA:154F65E:5FEA8E0D"
|
||||
}
|
||||
},
|
||||
"uuid": "9fb96a01-8e78-4eaa-b108-02ebdf17400f",
|
||||
"uuid": "60ab15fc-d786-4414-b1e1-a2106f589f09",
|
||||
"persistent": true,
|
||||
"insertionIndex": 7
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "9ee72427-9f6d-43b3-939e-9b536909dcea",
|
||||
"id": "0a2a2675-d0ed-40d1-8041-91f99525fe75",
|
||||
"name": "repos_bitwiseman_github-api-test-rename2",
|
||||
"request": {
|
||||
"url": "/repos/bitwiseman/github-api-test-rename2",
|
||||
@@ -14,33 +14,35 @@
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_bitwiseman_github-api-test-rename2-8.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 31 Mar 2020 21:52:48 GMT",
|
||||
"Date": "Tue, 29 Dec 2020 02:01:50 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4948",
|
||||
"X-RateLimit-Reset": "1585694558",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"d24c3403abec48c56297b034446c701b\"",
|
||||
"Last-Modified": "Tue, 31 Mar 2020 21:52:47 GMT",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"ETag": "W/\"6d44c25fcb8181989e397f2e428d30fde2905c22b20be54154afe59451b30c0a\"",
|
||||
"Last-Modified": "Tue, 29 Dec 2020 02:01:50 GMT",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4975",
|
||||
"X-RateLimit-Reset": "1609210718",
|
||||
"X-RateLimit-Used": "25",
|
||||
"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": "E4E1:4164:31A8F:3BB67:5E83BBAF"
|
||||
"X-GitHub-Request-Id": "D20D:05F9:1179BF0:154F665:5FEA8E0E"
|
||||
}
|
||||
},
|
||||
"uuid": "9ee72427-9f6d-43b3-939e-9b536909dcea",
|
||||
"uuid": "0a2a2675-d0ed-40d1-8041-91f99525fe75",
|
||||
"persistent": true,
|
||||
"insertionIndex": 8
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "c8fa85da-988e-47cf-b21c-38d27339a88e",
|
||||
"id": "3e74cb28-36f1-4d10-a64d-047556103a3d",
|
||||
"name": "repos_bitwiseman_github-api-test-rename2",
|
||||
"request": {
|
||||
"url": "/repos/bitwiseman/github-api-test-rename2",
|
||||
@@ -13,26 +13,30 @@
|
||||
"response": {
|
||||
"status": 204,
|
||||
"headers": {
|
||||
"Date": "Tue, 31 Mar 2020 21:52:48 GMT",
|
||||
"Date": "Tue, 29 Dec 2020 02:01:50 GMT",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "204 No Content",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4947",
|
||||
"X-RateLimit-Reset": "1585694557",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "delete_repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4974",
|
||||
"X-RateLimit-Reset": "1609210718",
|
||||
"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'",
|
||||
"Vary": "Accept-Encoding, Accept, X-Requested-With",
|
||||
"X-GitHub-Request-Id": "E4E1:4164:31A99:3BB80:5E83BBB0"
|
||||
"Vary": [
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"X-GitHub-Request-Id": "D20D:05F9:1179BF2:154F668:5FEA8E0E"
|
||||
}
|
||||
},
|
||||
"uuid": "c8fa85da-988e-47cf-b21c-38d27339a88e",
|
||||
"uuid": "3e74cb28-36f1-4d10-a64d-047556103a3d",
|
||||
"persistent": true,
|
||||
"insertionIndex": 9
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "07ec9cf2-6ec1-4873-9574-03ffb8098382",
|
||||
"id": "11b552a8-f555-455b-a195-61d93587feb0",
|
||||
"name": "user",
|
||||
"request": {
|
||||
"url": "/user",
|
||||
@@ -14,33 +14,35 @@
|
||||
"status": 200,
|
||||
"bodyFileName": "user-1.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 31 Mar 2020 21:52:43 GMT",
|
||||
"Date": "Tue, 29 Dec 2020 02:01:45 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4958",
|
||||
"X-RateLimit-Reset": "1585694557",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"740bb7db37d5437d08ea1aa5e652cf37\"",
|
||||
"Last-Modified": "Fri, 27 Mar 2020 19:14:56 GMT",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"ETag": "W/\"bb2babcbd8a6f75f8e5bbf778f169fdb662bf030c0f4a81ed94fde38b7c93347\"",
|
||||
"Last-Modified": "Wed, 23 Dec 2020 22:23:08 GMT",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4985",
|
||||
"X-RateLimit-Reset": "1609210718",
|
||||
"X-RateLimit-Used": "15",
|
||||
"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": "E4E1:4164:319AB:3BA5D:5E83BBAB"
|
||||
"X-GitHub-Request-Id": "D20D:05F9:1179BC7:154F635:5FEA8E09"
|
||||
}
|
||||
},
|
||||
"uuid": "07ec9cf2-6ec1-4873-9574-03ffb8098382",
|
||||
"uuid": "11b552a8-f555-455b-a195-61d93587feb0",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "ff870138-00e8-464e-a79b-d1c172187674",
|
||||
"id": "fc0e1a16-42f0-4842-aa57-f5e3695b9a78",
|
||||
"name": "user_repos",
|
||||
"request": {
|
||||
"url": "/user/repos",
|
||||
@@ -13,7 +13,7 @@
|
||||
{
|
||||
"equalToJson": "{\"private\":false,\"name\":\"github-api-test-rename\",\"description\":\"a test repository\",\"homepage\":\"http://github-api.kohsuke.org/\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -21,33 +21,35 @@
|
||||
"status": 201,
|
||||
"bodyFileName": "user_repos-2.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 31 Mar 2020 21:52:45 GMT",
|
||||
"Date": "Tue, 29 Dec 2020 02:01:48 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "201 Created",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4954",
|
||||
"X-RateLimit-Reset": "1585694557",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "\"daedc8151488984685ca38bb50cda5c6\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"ETag": "\"e6bdb2b74b53f0236b78b25394c030306faebf64d5761aeab5014bccc1eed948\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "public_repo, repo",
|
||||
"Location": "https://api.github.com/repos/bitwiseman/github-api-test-rename",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4981",
|
||||
"X-RateLimit-Reset": "1609210718",
|
||||
"X-RateLimit-Used": "19",
|
||||
"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": "E4E1:4164:319DD:3BA6A:5E83BBAB"
|
||||
"X-GitHub-Request-Id": "D20D:05F9:1179BCD:154F636:5FEA8E09"
|
||||
}
|
||||
},
|
||||
"uuid": "ff870138-00e8-464e-a79b-d1c172187674",
|
||||
"uuid": "fc0e1a16-42f0-4842-aa57-f5e3695b9a78",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -6,9 +6,9 @@
|
||||
"method": "PATCH",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"archived\":\"true\",\"name\":\"github-api\"}",
|
||||
"equalToJson": "{\"archived\":true,\"name\":\"github-api\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
],
|
||||
"headers": {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"name\":\"github-api\",\"delete_branch_on_merge\":\"true\"}",
|
||||
"equalToJson": "{\"name\":\"github-api\",\"delete_branch_on_merge\":true}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"name\":\"github-api\",\"delete_branch_on_merge\":\"false\"}",
|
||||
"equalToJson": "{\"name\":\"github-api\",\"delete_branch_on_merge\":false}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"method": "PATCH",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"allow_squash_merge\":\"true\",\"name\":\"temp-setMergeOptions\"}",
|
||||
"equalToJson": "{\"allow_squash_merge\":true,\"name\":\"temp-setMergeOptions\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"method": "PATCH",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"allow_merge_commit\":\"false\",\"name\":\"temp-setMergeOptions\"}",
|
||||
"equalToJson": "{\"allow_merge_commit\":false,\"name\":\"temp-setMergeOptions\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"method": "PATCH",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"name\":\"temp-setMergeOptions\",\"allow_rebase_merge\":\"false\"}",
|
||||
"equalToJson": "{\"name\":\"temp-setMergeOptions\",\"allow_rebase_merge\":false}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"method": "PATCH",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"allow_merge_commit\":\"true\",\"name\":\"temp-setMergeOptions\"}",
|
||||
"equalToJson": "{\"allow_merge_commit\":true,\"name\":\"temp-setMergeOptions\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"method": "PATCH",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"name\":\"temp-setMergeOptions\",\"allow_rebase_merge\":\"true\"}",
|
||||
"equalToJson": "{\"name\":\"temp-setMergeOptions\",\"allow_rebase_merge\":true}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"method": "PATCH",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"allow_squash_merge\":\"false\",\"name\":\"temp-setMergeOptions\"}",
|
||||
"equalToJson": "{\"allow_squash_merge\":false,\"name\":\"temp-setMergeOptions\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"method": "PATCH",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"private\":\"true\",\"name\":\"test-repo-public\"}",
|
||||
"equalToJson": "{\"private\":true,\"name\":\"test-repo-public\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"method": "PATCH",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"private\":\"false\",\"name\":\"test-repo-public\"}",
|
||||
"equalToJson": "{\"private\":false,\"name\":\"test-repo-public\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"id": 325150955,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNTA5NTU=",
|
||||
"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-29T00:55:25Z",
|
||||
"updated_at": "2020-12-29T00:55:29Z",
|
||||
"pushed_at": "2020-12-29T00:55:27Z",
|
||||
"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": 325150955,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNTA5NTU=",
|
||||
"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-29T00:55:25Z",
|
||||
"updated_at": "2020-12-29T00:55:31Z",
|
||||
"pushed_at": "2020-12-29T00:55:27Z",
|
||||
"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": 325150955,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNTA5NTU=",
|
||||
"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 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-29T00:55:25Z",
|
||||
"updated_at": "2020-12-29T00:55:32Z",
|
||||
"pushed_at": "2020-12-29T00:55:27Z",
|
||||
"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": 325150955,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNTA5NTU=",
|
||||
"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": "updated using set()",
|
||||
"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-29T00:55:25Z",
|
||||
"updated_at": "2020-12-29T00:55:32Z",
|
||||
"pushed_at": "2020-12-29T00:55:27Z",
|
||||
"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,46 @@
|
||||
{
|
||||
"login": "bitwiseman",
|
||||
"id": 1958953,
|
||||
"node_id": "MDQ6VXNlcjE5NTg5NTM=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/bitwiseman",
|
||||
"html_url": "https://github.com/bitwiseman",
|
||||
"followers_url": "https://api.github.com/users/bitwiseman/followers",
|
||||
"following_url": "https://api.github.com/users/bitwiseman/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/bitwiseman/orgs",
|
||||
"repos_url": "https://api.github.com/users/bitwiseman/repos",
|
||||
"events_url": "https://api.github.com/users/bitwiseman/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/bitwiseman/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false,
|
||||
"name": "Liam Newman",
|
||||
"company": "Cloudbees, Inc.",
|
||||
"blog": "",
|
||||
"location": "Seattle, WA, USA",
|
||||
"email": "bitwiseman@gmail.com",
|
||||
"hireable": null,
|
||||
"bio": null,
|
||||
"twitter_username": "bitwiseman",
|
||||
"public_repos": 199,
|
||||
"public_gists": 7,
|
||||
"followers": 174,
|
||||
"following": 11,
|
||||
"created_at": "2012-07-11T20:38:33Z",
|
||||
"updated_at": "2020-12-23T22:23:08Z",
|
||||
"private_gists": 19,
|
||||
"total_private_repos": 17,
|
||||
"owned_private_repos": 0,
|
||||
"disk_usage": 33700,
|
||||
"collaborators": 0,
|
||||
"two_factor_authentication": true,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"collaborators": 0,
|
||||
"private_repos": 10000
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "6d758950-6c1e-477b-91f3-13c08df69806",
|
||||
"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-2.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 29 Dec 2020 00:55:31 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"94ef3acba45f9b45fbbe10e354266379fefe700c77292bf036f3e6d2280f22cb\"",
|
||||
"Last-Modified": "Tue, 29 Dec 2020 00:55:29 GMT",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4983",
|
||||
"X-RateLimit-Reset": "1609206867",
|
||||
"X-RateLimit-Used": "17",
|
||||
"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": "FD00:1C7F:1FC6EE4:26FAA43:5FEA7E7C"
|
||||
}
|
||||
},
|
||||
"uuid": "6d758950-6c1e-477b-91f3-13c08df69806",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"id": "d0036ebb-64a8-4c4c-bed3-697870892d5f",
|
||||
"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": "{\"name\":\"temp-testUpdateRepository\",\"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-3.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 29 Dec 2020 00:55:31 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"07d81468f31a53b32f3a3778303dea04863d3e095bb74182cf49845cd962d81f\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4982",
|
||||
"X-RateLimit-Reset": "1609206867",
|
||||
"X-RateLimit-Used": "18",
|
||||
"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": "FD00:1C7F:1FC6EE9:26FAB0D:5FEA7E83"
|
||||
}
|
||||
},
|
||||
"uuid": "d0036ebb-64a8-4c4c-bed3-697870892d5f",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"id": "1ef45b59-338b-4770-aac1-c85ee63b4fb7",
|
||||
"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": "{\"name\":\"temp-testUpdateRepository\",\"allow_merge_commit\":false,\"private\":false,\"allow_rebase_merge\":true}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-4.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 29 Dec 2020 00:55:32 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"22a92d14baf1cb39402015378e5d6ac8b3ce3d174163e8c9a0e932a0d3da8c0b\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4981",
|
||||
"X-RateLimit-Reset": "1609206867",
|
||||
"X-RateLimit-Used": "19",
|
||||
"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": "FD00:1C7F:1FC6EF8:26FAB20:5FEA7E83"
|
||||
}
|
||||
},
|
||||
"uuid": "1ef45b59-338b-4770-aac1-c85ee63b4fb7",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"id": "1f4a886b-7a65-4975-9cc7-01f5601158f8",
|
||||
"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": "{\"name\":\"temp-testUpdateRepository\",\"description\":\"updated using set()\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-5.json",
|
||||
"headers": {
|
||||
"Date": "Tue, 29 Dec 2020 00:55:32 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"43a9b1515cd78e7b2d830a545963df7530cec6aa5cb81f987fb5d01b25d1f5ec\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4980",
|
||||
"X-RateLimit-Reset": "1609206867",
|
||||
"X-RateLimit-Used": "20",
|
||||
"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": "FD00:1C7F:1FC6F08:26FAB39:5FEA7E84"
|
||||
}
|
||||
},
|
||||
"uuid": "1f4a886b-7a65-4975-9cc7-01f5601158f8",
|
||||
"persistent": true,
|
||||
"insertionIndex": 5
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "a1814daa-1783-4ae2-b7fc-18bf3f4aa9ed",
|
||||
"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": {
|
||||
"Date": "Tue, 29 Dec 2020 00:55:24 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"bb2babcbd8a6f75f8e5bbf778f169fdb662bf030c0f4a81ed94fde38b7c93347\"",
|
||||
"Last-Modified": "Wed, 23 Dec 2020 22:23:08 GMT",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, workflow, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4988",
|
||||
"X-RateLimit-Reset": "1609206867",
|
||||
"X-RateLimit-Used": "12",
|
||||
"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": "FD00:1C7F:1FC6E49:26FAA40:5FEA7E7C"
|
||||
}
|
||||
},
|
||||
"uuid": "a1814daa-1783-4ae2-b7fc-18bf3f4aa9ed",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
Reference in New Issue
Block a user