mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Add GHRepository.Setter
This commit is contained in:
@@ -1296,10 +1296,19 @@ public class GHRepository extends GHObject {
|
||||
*
|
||||
* @return the repository updater
|
||||
*/
|
||||
public Updater updateRepository() {
|
||||
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
|
||||
*/
|
||||
@@ -2976,7 +2985,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}".
|
||||
@@ -3006,10 +3015,19 @@ public class GHRepository extends GHObject {
|
||||
super(Updater.class, repository.root, null);
|
||||
requester.method("PATCH").withUrlPath(repository.getApiTailUrl(""));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public GHRepository done() throws IOException {
|
||||
return super.done().wrap(this.root);
|
||||
/**
|
||||
* 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);
|
||||
requester.method("PATCH").withUrlPath(repository.getApiTailUrl(""));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
String description = "A test repository for update testing via the github-api project";
|
||||
|
||||
GHRepository repo = getTempRepository();
|
||||
GHRepository.Updater builder = repo.updateRepository();
|
||||
GHRepository.Updater builder = repo.update();
|
||||
|
||||
// one merge option is always required
|
||||
GHRepository updated = builder.allowRebaseMerge(false)
|
||||
@@ -197,7 +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.updateRepository()
|
||||
GHRepository redux = updated.update()
|
||||
.allowMergeCommit(false)
|
||||
.allowRebaseMerge(true)
|
||||
.private_(false)
|
||||
@@ -206,6 +206,11 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 320693332,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjA2OTMzMzI=",
|
||||
"id": 325150955,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNTA5NTU=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "hub4j-test-org/temp-testUpdateRepository",
|
||||
"private": false,
|
||||
@@ -64,9 +64,9 @@
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-12-11T22:01:10Z",
|
||||
"updated_at": "2020-12-11T22:01:14Z",
|
||||
"pushed_at": "2020-12-11T22:01:12Z",
|
||||
"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",
|
||||
@@ -96,8 +96,9 @@
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": false,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"organization": {
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 320619034,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjA2MTkwMzQ=",
|
||||
"id": 325150955,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNTA5NTU=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "hub4j-test-org/temp-testUpdateRepository",
|
||||
"private": true,
|
||||
@@ -64,9 +64,9 @@
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-12-11T15:58:10Z",
|
||||
"updated_at": "2020-12-11T15:58:17Z",
|
||||
"pushed_at": "2020-12-11T15:58:13Z",
|
||||
"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",
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"id": 320619034,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjA2MTkwMzQ=",
|
||||
"id": 325150955,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNTA5NTU=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "hub4j-test-org/temp-testUpdateRepository",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
@@ -64,9 +64,9 @@
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-12-11T15:58:10Z",
|
||||
"updated_at": "2020-12-11T15:58:17Z",
|
||||
"pushed_at": "2020-12-11T15:58:13Z",
|
||||
"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",
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 320619034,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjA2MTkwMzQ=",
|
||||
"id": 325150955,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMjUxNTA5NTU=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "hub4j-test-org/temp-testUpdateRepository",
|
||||
"private": false,
|
||||
@@ -25,7 +25,7 @@
|
||||
"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",
|
||||
"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",
|
||||
@@ -64,22 +64,22 @@
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-12-11T15:58:10Z",
|
||||
"updated_at": "2020-12-11T15:58:15Z",
|
||||
"pushed_at": "2020-12-11T15:58:13Z",
|
||||
"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": "http://github-api.kohsuke.org/",
|
||||
"homepage": "https://github-api.kohsuke.org/apidocs/index.html",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_issues": false,
|
||||
"has_projects": false,
|
||||
"has_downloads": false,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
@@ -96,11 +96,10 @@
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_squash_merge": false,
|
||||
"allow_merge_commit": false,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"delete_branch_on_merge": true,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
{
|
||||
"id": 293932361,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTM5MzIzNjE=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "jgangemi/temp-testUpdateRepository",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "jgangemi",
|
||||
"id": 1831839,
|
||||
"node_id": "MDQ6VXNlcjE4MzE4Mzk=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/1831839?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/jgangemi",
|
||||
"html_url": "https://github.com/jgangemi",
|
||||
"followers_url": "https://api.github.com/users/jgangemi/followers",
|
||||
"following_url": "https://api.github.com/users/jgangemi/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jgangemi/orgs",
|
||||
"repos_url": "https://api.github.com/users/jgangemi/repos",
|
||||
"events_url": "https://api.github.com/users/jgangemi/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jgangemi/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"description": "A test repository for testing the github-api project: temp-testUpdateRepository",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository",
|
||||
"forks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/forks",
|
||||
"keys_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/teams",
|
||||
"hooks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/events",
|
||||
"assignees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/tags",
|
||||
"blobs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscription",
|
||||
"commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/merges",
|
||||
"archive_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/downloads",
|
||||
"issues_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-09-08T21:33:06Z",
|
||||
"updated_at": "2020-09-08T21:33:11Z",
|
||||
"pushed_at": "2020-09-08T21:33:09Z",
|
||||
"git_url": "git://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"ssh_url": "git@github.com:jgangemi/temp-testUpdateRepository.git",
|
||||
"clone_url": "https://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"svn_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"homepage": "http://github-api.kohsuke.org/",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -1,105 +0,0 @@
|
||||
{
|
||||
"id": 293932361,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTM5MzIzNjE=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "jgangemi/temp-testUpdateRepository",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "jgangemi",
|
||||
"id": 1831839,
|
||||
"node_id": "MDQ6VXNlcjE4MzE4Mzk=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/1831839?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/jgangemi",
|
||||
"html_url": "https://github.com/jgangemi",
|
||||
"followers_url": "https://api.github.com/users/jgangemi/followers",
|
||||
"following_url": "https://api.github.com/users/jgangemi/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jgangemi/orgs",
|
||||
"repos_url": "https://api.github.com/users/jgangemi/repos",
|
||||
"events_url": "https://api.github.com/users/jgangemi/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jgangemi/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"description": "A test repository for update testing via the github-api project",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository",
|
||||
"forks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/forks",
|
||||
"keys_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/teams",
|
||||
"hooks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/events",
|
||||
"assignees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/tags",
|
||||
"blobs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscription",
|
||||
"commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/merges",
|
||||
"archive_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/downloads",
|
||||
"issues_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-09-08T21:33:06Z",
|
||||
"updated_at": "2020-09-08T21:33:13Z",
|
||||
"pushed_at": "2020-09-08T21:33:09Z",
|
||||
"git_url": "git://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"ssh_url": "git@github.com:jgangemi/temp-testUpdateRepository.git",
|
||||
"clone_url": "https://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"svn_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"homepage": "https://github-api.kohsuke.org/apidocs/index.html",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": false,
|
||||
"has_projects": false,
|
||||
"has_downloads": false,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": false,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": false,
|
||||
"delete_branch_on_merge": true,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -1,105 +0,0 @@
|
||||
{
|
||||
"id": 293932361,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyOTM5MzIzNjE=",
|
||||
"name": "temp-testUpdateRepository",
|
||||
"full_name": "jgangemi/temp-testUpdateRepository",
|
||||
"private": true,
|
||||
"owner": {
|
||||
"login": "jgangemi",
|
||||
"id": 1831839,
|
||||
"node_id": "MDQ6VXNlcjE4MzE4Mzk=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/1831839?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/jgangemi",
|
||||
"html_url": "https://github.com/jgangemi",
|
||||
"followers_url": "https://api.github.com/users/jgangemi/followers",
|
||||
"following_url": "https://api.github.com/users/jgangemi/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jgangemi/orgs",
|
||||
"repos_url": "https://api.github.com/users/jgangemi/repos",
|
||||
"events_url": "https://api.github.com/users/jgangemi/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jgangemi/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"description": "A test repository for update testing via the github-api project",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository",
|
||||
"forks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/forks",
|
||||
"keys_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/teams",
|
||||
"hooks_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/events",
|
||||
"assignees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/tags",
|
||||
"blobs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/subscription",
|
||||
"commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/merges",
|
||||
"archive_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/downloads",
|
||||
"issues_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/jgangemi/temp-testUpdateRepository/deployments",
|
||||
"created_at": "2020-09-08T21:33:06Z",
|
||||
"updated_at": "2020-09-08T21:33:13Z",
|
||||
"pushed_at": "2020-09-08T21:33:09Z",
|
||||
"git_url": "git://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"ssh_url": "git@github.com:jgangemi/temp-testUpdateRepository.git",
|
||||
"clone_url": "https://github.com/jgangemi/temp-testUpdateRepository.git",
|
||||
"svn_url": "https://github.com/jgangemi/temp-testUpdateRepository",
|
||||
"homepage": "https://github-api.kohsuke.org/apidocs/index.html",
|
||||
"size": 0,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": false,
|
||||
"has_projects": false,
|
||||
"has_downloads": false,
|
||||
"has_wiki": false,
|
||||
"has_pages": false,
|
||||
"forks_count": 0,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 0,
|
||||
"license": null,
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": false,
|
||||
"allow_merge_commit": false,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": true,
|
||||
"network_count": 0,
|
||||
"subscribers_count": 1
|
||||
}
|
||||
@@ -1,40 +1,40 @@
|
||||
{
|
||||
"login": "jgangemi",
|
||||
"id": 1831839,
|
||||
"node_id": "MDQ6VXNlcjE4MzE4Mzk=",
|
||||
"avatar_url": "https://avatars0.githubusercontent.com/u/1831839?v=4",
|
||||
"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/jgangemi",
|
||||
"html_url": "https://github.com/jgangemi",
|
||||
"followers_url": "https://api.github.com/users/jgangemi/followers",
|
||||
"following_url": "https://api.github.com/users/jgangemi/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jgangemi/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jgangemi/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jgangemi/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jgangemi/orgs",
|
||||
"repos_url": "https://api.github.com/users/jgangemi/repos",
|
||||
"events_url": "https://api.github.com/users/jgangemi/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jgangemi/received_events",
|
||||
"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": "Jae Gangemi",
|
||||
"company": null,
|
||||
"name": "Liam Newman",
|
||||
"company": "Cloudbees, Inc.",
|
||||
"blog": "",
|
||||
"location": null,
|
||||
"email": null,
|
||||
"location": "Seattle, WA, USA",
|
||||
"email": "bitwiseman@gmail.com",
|
||||
"hireable": null,
|
||||
"bio": null,
|
||||
"twitter_username": null,
|
||||
"public_repos": 36,
|
||||
"public_gists": 1,
|
||||
"followers": 1,
|
||||
"following": 0,
|
||||
"created_at": "2012-06-08T19:54:02Z",
|
||||
"updated_at": "2020-09-08T17:26:45Z",
|
||||
"private_gists": 0,
|
||||
"total_private_repos": 9,
|
||||
"owned_private_repos": 9,
|
||||
"disk_usage": 16576,
|
||||
"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": {
|
||||
|
||||
@@ -1,53 +1,48 @@
|
||||
{
|
||||
"id": "ff129618-2aad-41bb-8ac6-285401903b38",
|
||||
"id": "6d758950-6c1e-477b-91f3-13c08df69806",
|
||||
"name": "repos_hub4j-test-org_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
"method": "PATCH",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"allow_merge_commit\":false,\"allow_rebase_merge\":true}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-7.json",
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-2.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Fri, 11 Dec 2020 15:58:17 GMT",
|
||||
"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, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"5f771e7de1a2dff0c4baba3e61457b26130b5081807ce1006e6545991cad20e6\"",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"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": "4955",
|
||||
"X-RateLimit-Reset": "1607705854",
|
||||
"X-RateLimit-Used": "45",
|
||||
"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": "DE14:0E9A:25E65:544E3:5FD39719"
|
||||
"X-GitHub-Request-Id": "FD00:1C7F:1FC6EE4:26FAA43:5FEA7E7C"
|
||||
}
|
||||
},
|
||||
"uuid": "ff129618-2aad-41bb-8ac6-285401903b38",
|
||||
"uuid": "6d758950-6c1e-477b-91f3-13c08df69806",
|
||||
"persistent": true,
|
||||
"insertionIndex": 7
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "eaae6715-f563-4ef2-ae65-ed37ffa99a01",
|
||||
"id": "d0036ebb-64a8-4c4c-bed3-697870892d5f",
|
||||
"name": "repos_hub4j-test-org_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
@@ -19,35 +19,36 @@
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-6.json",
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-3.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Fri, 11 Dec 2020 15:58:17 GMT",
|
||||
"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, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"1597604183fb9f89ca861ee6dd048456b9fd231c7a63468c3ba2b3816eefbb02\"",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow",
|
||||
"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": "4956",
|
||||
"X-RateLimit-Reset": "1607705854",
|
||||
"X-RateLimit-Used": "44",
|
||||
"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": "DE14:0E9A:25E2B:5445A:5FD39718"
|
||||
"X-GitHub-Request-Id": "FD00:1C7F:1FC6EE9:26FAB0D:5FEA7E83"
|
||||
}
|
||||
},
|
||||
"uuid": "eaae6715-f563-4ef2-ae65-ed37ffa99a01",
|
||||
"uuid": "d0036ebb-64a8-4c4c-bed3-697870892d5f",
|
||||
"persistent": true,
|
||||
"insertionIndex": 6
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "a60e0060-46f5-490d-bd8f-efa315baf228",
|
||||
"id": "1ef45b59-338b-4770-aac1-c85ee63b4fb7",
|
||||
"name": "repos_hub4j-test-org_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
@@ -19,35 +19,36 @@
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-8.json",
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-4.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Fri, 11 Dec 2020 22:01:16 GMT",
|
||||
"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, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"500c5b5a3168fc5823684db294216928037aff552dd2b2f03715d1f49ac7453e\"",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow",
|
||||
"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": "4867",
|
||||
"X-RateLimit-Reset": "1607725816",
|
||||
"X-RateLimit-Used": "133",
|
||||
"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": "C0A7:6735:B758B:138DEB:5FD3EC2B"
|
||||
"X-GitHub-Request-Id": "FD00:1C7F:1FC6EF8:26FAB20:5FEA7E83"
|
||||
}
|
||||
},
|
||||
"uuid": "a60e0060-46f5-490d-bd8f-efa315baf228",
|
||||
"uuid": "1ef45b59-338b-4770-aac1-c85ee63b4fb7",
|
||||
"persistent": true,
|
||||
"insertionIndex": 8
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -1,47 +1,54 @@
|
||||
{
|
||||
"id": "4e493dd1-561c-4712-a5df-bb94c66d1bd0",
|
||||
"id": "1f4a886b-7a65-4975-9cc7-01f5601158f8",
|
||||
"name": "repos_hub4j-test-org_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/temp-testUpdateRepository",
|
||||
"method": "GET",
|
||||
"method": "PATCH",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"description\":\"updated using set()\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_temp-testupdaterepository-5.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Fri, 11 Dec 2020 15:58:16 GMT",
|
||||
"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, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"555ff498caefeffe418a91a6bdce77b8d258e2b9611b61d781f7cf09d55e6ef0\"",
|
||||
"Last-Modified": "Fri, 11 Dec 2020 15:58:15 GMT",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user, workflow",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"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": "4957",
|
||||
"X-RateLimit-Reset": "1607705854",
|
||||
"X-RateLimit-Used": "43",
|
||||
"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": "DE14:0E9A:25E1B:54443:5FD39718"
|
||||
"X-GitHub-Request-Id": "FD00:1C7F:1FC6F08:26FAB39:5FEA7E84"
|
||||
}
|
||||
},
|
||||
"uuid": "4e493dd1-561c-4712-a5df-bb94c66d1bd0",
|
||||
"uuid": "1f4a886b-7a65-4975-9cc7-01f5601158f8",
|
||||
"persistent": true,
|
||||
"insertionIndex": 5
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
{
|
||||
"id": "4933bd1c-62ac-4ad8-96c1-8403e7e0caf1",
|
||||
"name": "repos_jgangemi_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/jgangemi/temp-testUpdateRepository",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_jgangemi_temp-testupdaterepository-2.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Tue, 08 Sep 2020 21:33:12 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"fac1eef1086f6a04dfc2d15592c897e9\"",
|
||||
"Last-Modified": "Tue, 08 Sep 2020 21:33:11 GMT",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4970",
|
||||
"X-RateLimit-Reset": "1599602533",
|
||||
"X-RateLimit-Used": "30",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "D468:44C1:2169ECB:49A1201:5F57F891"
|
||||
}
|
||||
},
|
||||
"uuid": "4933bd1c-62ac-4ad8-96c1-8403e7e0caf1",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
{
|
||||
"id": "9e2ac66d-1299-4ca0-aac3-28cc6d0d9218",
|
||||
"name": "repos_jgangemi_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/jgangemi/temp-testUpdateRepository",
|
||||
"method": "PATCH",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"has_projects\":false,\"allow_squash_merge\":false,\"private\":true,\"has_downloads\":false,\"has_wiki\":false,\"name\":\"temp-testUpdateRepository\",\"description\":\"A test repository for update testing via the github-api project\",\"delete_branch_on_merge\":true,\"allow_rebase_merge\":false,\"has_issues\":false,\"homepage\":\"https://github-api.kohsuke.org/apidocs/index.html\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_jgangemi_temp-testupdaterepository-3.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Tue, 08 Sep 2020 21:33:13 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"21a7d0185465ab055b99b12716d6f532\"",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4969",
|
||||
"X-RateLimit-Reset": "1599602533",
|
||||
"X-RateLimit-Used": "31",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "D468:44C1:2169EDC:49A187D:5F57F898"
|
||||
}
|
||||
},
|
||||
"uuid": "9e2ac66d-1299-4ca0-aac3-28cc6d0d9218",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
{
|
||||
"id": "79c6a9fb-236d-4ebc-b8e8-71ae4d5ded63",
|
||||
"name": "repos_jgangemi_temp-testupdaterepository",
|
||||
"request": {
|
||||
"url": "/repos/jgangemi/temp-testUpdateRepository",
|
||||
"method": "PATCH",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"allow_merge_commit\":false,\"name\":\"temp-testUpdateRepository\",\"allow_rebase_merge\":true}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_jgangemi_temp-testupdaterepository-4.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Tue, 08 Sep 2020 21:33:14 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Status": "200 OK",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"aa218ddb60df43d54fc89e9f88db8381\"",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4968",
|
||||
"X-RateLimit-Reset": "1599602533",
|
||||
"X-RateLimit-Used": "32",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "1; mode=block",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "D468:44C1:2169F5B:49A195A:5F57F899"
|
||||
}
|
||||
},
|
||||
"uuid": "79c6a9fb-236d-4ebc-b8e8-71ae4d5ded63",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"id": "eb5ea320-8de4-4997-ad24-1f481e7f0caa",
|
||||
"id": "a1814daa-1783-4ae2-b7fc-18bf3f4aa9ed",
|
||||
"name": "user",
|
||||
"request": {
|
||||
"url": "/user",
|
||||
@@ -14,34 +14,35 @@
|
||||
"status": 200,
|
||||
"bodyFileName": "user-1.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Tue, 08 Sep 2020 21:33:05 GMT",
|
||||
"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, Accept, X-Requested-With",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"339238519100240ed9cb902c41e78f67\"",
|
||||
"Last-Modified": "Tue, 08 Sep 2020 17:26:45 GMT",
|
||||
"X-OAuth-Scopes": "admin:public_key, admin:repo_hook, delete_repo, repo, user",
|
||||
"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": "4974",
|
||||
"X-RateLimit-Reset": "1599602533",
|
||||
"X-RateLimit-Used": "26",
|
||||
"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": "D468:44C1:2169B0F:49A1129:5F57F890"
|
||||
"X-GitHub-Request-Id": "FD00:1C7F:1FC6E49:26FAA40:5FEA7E7C"
|
||||
}
|
||||
},
|
||||
"uuid": "eb5ea320-8de4-4997-ad24-1f481e7f0caa",
|
||||
"uuid": "a1814daa-1783-4ae2-b7fc-18bf3f4aa9ed",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
Reference in New Issue
Block a user