mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Update GHRepository method to use Setter
It appears that the correct way to pass these booleans is as booleans not as strings. Fixes #765
This commit is contained in:
@@ -1087,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.
|
||||
*
|
||||
@@ -1104,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1116,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1128,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1140,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1152,7 +1144,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void renameTo(String name) throws IOException {
|
||||
edit("name", name);
|
||||
set().name(name);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1164,7 +1156,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void setDescription(String value) throws IOException {
|
||||
edit("description", value);
|
||||
set().description(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1176,7 +1168,7 @@ public class GHRepository extends GHObject {
|
||||
* the io exception
|
||||
*/
|
||||
public void setHomepage(String value) throws IOException {
|
||||
edit("homepage", value);
|
||||
set().homepage(value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1188,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1200,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1212,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1224,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1236,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1248,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);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1285,9 +1277,9 @@ 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;
|
||||
}
|
||||
|
||||
@@ -3013,6 +3005,10 @@ public class GHRepository extends GHObject {
|
||||
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(""));
|
||||
}
|
||||
}
|
||||
@@ -3027,6 +3023,10 @@ public class GHRepository extends GHObject {
|
||||
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(""));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -208,7 +208,7 @@ abstract class GHRepositoryBuilder<S> extends AbstractBuilder<GHRepository, S> {
|
||||
}
|
||||
|
||||
S archive() throws IOException {
|
||||
return with("archived", "true");
|
||||
return with("archived", true);
|
||||
}
|
||||
|
||||
S name(String name) throws IOException {
|
||||
|
||||
@@ -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));
|
||||
@@ -197,11 +197,7 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
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();
|
||||
GHRepository redux = updated.update().allowMergeCommit(false).allowRebaseMerge(true).private_(false).done();
|
||||
|
||||
assertFalse(redux.isAllowMergeCommit());
|
||||
assertTrue(redux.isAllowRebaseMerge());
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"has_projects\":false,\"allow_squash_merge\":false,\"private\":true,\"has_downloads\":false,\"has_wiki\":false,\"description\":\"A test repository for update testing via the github-api project\",\"delete_branch_on_merge\":true,\"allow_rebase_merge\":false,\"has_issues\":false,\"homepage\":\"https://github-api.kohsuke.org/apidocs/index.html\"}",
|
||||
"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
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"allow_merge_commit\":false,\"private\":false,\"allow_rebase_merge\":true}",
|
||||
"equalToJson": "{\"name\":\"temp-testUpdateRepository\",\"allow_merge_commit\":false,\"private\":false,\"allow_rebase_merge\":true}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"description\":\"updated using set()\"}",
|
||||
"equalToJson": "{\"name\":\"temp-testUpdateRepository\",\"description\":\"updated using set()\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user