mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Merge pull request #578 from martinvanzijl/issue_457_create_team_with_repo_access_fix
GHOrganization.createTeam now adds team to specified repositories
This commit is contained in:
@@ -239,7 +239,7 @@ public class GHOrganization extends GHPerson {
|
||||
Requester post = new Requester(root).with("name", name).with("permission", p);
|
||||
List<String> repo_names = new ArrayList<String>();
|
||||
for (GHRepository r : repositories) {
|
||||
repo_names.add(r.getName());
|
||||
repo_names.add(login + "/" + r.getName());
|
||||
}
|
||||
post.with("repo_names",repo_names);
|
||||
return post.method("POST").to("/orgs/" + login + "/teams", GHTeam.class).wrapUp(this);
|
||||
|
||||
@@ -11,8 +11,24 @@ import java.io.IOException;
|
||||
public class GHOrganizationTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
public static final String GITHUB_API_TEST = "github-api-test";
|
||||
public static final String TEAM_NAME_CREATE = "create-team-test";
|
||||
|
||||
|
||||
@Before
|
||||
@After
|
||||
public void cleanUpTeam() throws IOException {
|
||||
// Cleanup is only needed when proxying
|
||||
if (!mockGitHub.isUseProxy()) {
|
||||
return;
|
||||
}
|
||||
|
||||
GHTeam team = gitHubBeforeAfter.getOrganization(GITHUB_API_TEST_ORG).
|
||||
getTeamByName(TEAM_NAME_CREATE);
|
||||
if (team != null) {
|
||||
team.delete();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateRepository() throws IOException {
|
||||
cleanupRepository(GITHUB_API_TEST_ORG + '/' + GITHUB_API_TEST);
|
||||
@@ -57,4 +73,17 @@ public class GHOrganizationTest extends AbstractGitHubWireMockTest {
|
||||
// Check the invitation has worked.
|
||||
// assertTrue(org.hasMember(user));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testCreateTeamWithRepoAccess() throws IOException {
|
||||
String REPO_NAME = "github-api";
|
||||
|
||||
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
|
||||
GHRepository repo = org.getRepository(REPO_NAME);
|
||||
|
||||
// Create team with access to repository. Check access was granted.
|
||||
GHTeam team = org.createTeam(TEAM_NAME_CREATE, GHOrganization.Permission.PUSH, repo);
|
||||
Assert.assertTrue(team.getRepositories().containsKey(REPO_NAME));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"login": "github-api-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"url": "https://api.github.com/orgs/github-api-test-org",
|
||||
"repos_url": "https://api.github.com/orgs/github-api-test-org/repos",
|
||||
"events_url": "https://api.github.com/orgs/github-api-test-org/events",
|
||||
"hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/github-api-test-org/issues",
|
||||
"members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"description": null,
|
||||
"is_verified": false,
|
||||
"has_organization_projects": true,
|
||||
"has_repository_projects": true,
|
||||
"public_repos": 10,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"html_url": "https://github.com/github-api-test-org",
|
||||
"created_at": "2014-05-10T19:39:11Z",
|
||||
"updated_at": "2015-04-20T00:42:30Z",
|
||||
"type": "Organization",
|
||||
"total_private_repos": 0,
|
||||
"owned_private_repos": 0,
|
||||
"private_gists": 0,
|
||||
"disk_usage": 132,
|
||||
"collaborators": 0,
|
||||
"billing_email": "kk@kohsuke.org",
|
||||
"default_repository_permission": "none",
|
||||
"members_can_create_repositories": false,
|
||||
"two_factor_requirement_enabled": false,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"private_repos": 0,
|
||||
"filled_seats": 7,
|
||||
"seats": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "create-team-test",
|
||||
"id": 3501817,
|
||||
"node_id": "MDQ6VGVhbTM1MDE4MTc=",
|
||||
"slug": "create-team-test",
|
||||
"description": null,
|
||||
"privacy": "secret",
|
||||
"url": "https://api.github.com/teams/3501817",
|
||||
"html_url": "https://github.com/orgs/github-api-test-org/teams/create-team-test",
|
||||
"members_url": "https://api.github.com/teams/3501817/members{/member}",
|
||||
"repositories_url": "https://api.github.com/teams/3501817/repos",
|
||||
"permission": "push",
|
||||
"created_at": "2019-11-01T16:29:09Z",
|
||||
"updated_at": "2019-11-01T16:29:09Z",
|
||||
"members_count": 0,
|
||||
"repos_count": 1,
|
||||
"organization": {
|
||||
"login": "github-api-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"url": "https://api.github.com/orgs/github-api-test-org",
|
||||
"repos_url": "https://api.github.com/orgs/github-api-test-org/repos",
|
||||
"events_url": "https://api.github.com/orgs/github-api-test-org/events",
|
||||
"hooks_url": "https://api.github.com/orgs/github-api-test-org/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/github-api-test-org/issues",
|
||||
"members_url": "https://api.github.com/orgs/github-api-test-org/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/github-api-test-org/public_members{/member}",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"description": null,
|
||||
"is_verified": false,
|
||||
"has_organization_projects": true,
|
||||
"has_repository_projects": true,
|
||||
"public_repos": 10,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"html_url": "https://github.com/github-api-test-org",
|
||||
"created_at": "2014-05-10T19:39:11Z",
|
||||
"updated_at": "2015-04-20T00:42:30Z",
|
||||
"type": "Organization"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,330 @@
|
||||
{
|
||||
"id": 206888201,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=",
|
||||
"name": "github-api",
|
||||
"full_name": "github-api-test-org/github-api",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "github-api-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/github-api-test-org",
|
||||
"html_url": "https://github.com/github-api-test-org",
|
||||
"followers_url": "https://api.github.com/users/github-api-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/github-api-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/github-api-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/github-api-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/github-api-test-org/github-api",
|
||||
"description": "Tricky",
|
||||
"fork": true,
|
||||
"url": "https://api.github.com/repos/github-api-test-org/github-api",
|
||||
"forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks",
|
||||
"keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams",
|
||||
"hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/github-api-test-org/github-api/events",
|
||||
"assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags",
|
||||
"blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription",
|
||||
"commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges",
|
||||
"archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads",
|
||||
"issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments",
|
||||
"created_at": "2019-09-06T23:26:04Z",
|
||||
"updated_at": "2019-10-30T01:54:39Z",
|
||||
"pushed_at": "2019-10-21T22:34:49Z",
|
||||
"git_url": "git://github.com/github-api-test-org/github-api.git",
|
||||
"ssh_url": "git@github.com:github-api-test-org/github-api.git",
|
||||
"clone_url": "https://github.com/github-api-test-org/github-api.git",
|
||||
"svn_url": "https://github.com/github-api-test-org/github-api",
|
||||
"homepage": "http://github-api.kohsuke.org/",
|
||||
"size": 11391,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Java",
|
||||
"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": {
|
||||
"key": "mit",
|
||||
"name": "MIT License",
|
||||
"spdx_id": "MIT",
|
||||
"url": "https://api.github.com/licenses/mit",
|
||||
"node_id": "MDc6TGljZW5zZTEz"
|
||||
},
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"organization": {
|
||||
"login": "github-api-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/github-api-test-org",
|
||||
"html_url": "https://github.com/github-api-test-org",
|
||||
"followers_url": "https://api.github.com/users/github-api-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/github-api-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/github-api-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/github-api-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"parent": {
|
||||
"id": 617210,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=",
|
||||
"name": "github-api",
|
||||
"full_name": "github-api/github-api",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "github-api",
|
||||
"id": 54909825,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/github-api",
|
||||
"html_url": "https://github.com/github-api",
|
||||
"followers_url": "https://api.github.com/users/github-api/followers",
|
||||
"following_url": "https://api.github.com/users/github-api/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/github-api/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/github-api/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/github-api/orgs",
|
||||
"repos_url": "https://api.github.com/users/github-api/repos",
|
||||
"events_url": "https://api.github.com/users/github-api/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/github-api/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/github-api/github-api",
|
||||
"description": "Java API for GitHub",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/github-api/github-api",
|
||||
"forks_url": "https://api.github.com/repos/github-api/github-api/forks",
|
||||
"keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/github-api/github-api/teams",
|
||||
"hooks_url": "https://api.github.com/repos/github-api/github-api/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/github-api/github-api/events",
|
||||
"assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/github-api/github-api/tags",
|
||||
"blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/github-api/github-api/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/github-api/github-api/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/github-api/github-api/subscription",
|
||||
"commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/github-api/github-api/merges",
|
||||
"archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/github-api/github-api/downloads",
|
||||
"issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/github-api/github-api/deployments",
|
||||
"created_at": "2010-04-19T04:13:03Z",
|
||||
"updated_at": "2019-11-01T11:49:24Z",
|
||||
"pushed_at": "2019-11-01T01:49:29Z",
|
||||
"git_url": "git://github.com/github-api/github-api.git",
|
||||
"ssh_url": "git@github.com:github-api/github-api.git",
|
||||
"clone_url": "https://github.com/github-api/github-api.git",
|
||||
"svn_url": "https://github.com/github-api/github-api",
|
||||
"homepage": "http://github-api.kohsuke.org/",
|
||||
"size": 14820,
|
||||
"stargazers_count": 571,
|
||||
"watchers_count": 571,
|
||||
"language": "Java",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": true,
|
||||
"forks_count": 434,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 66,
|
||||
"license": {
|
||||
"key": "mit",
|
||||
"name": "MIT License",
|
||||
"spdx_id": "MIT",
|
||||
"url": "https://api.github.com/licenses/mit",
|
||||
"node_id": "MDc6TGljZW5zZTEz"
|
||||
},
|
||||
"forks": 434,
|
||||
"open_issues": 66,
|
||||
"watchers": 571,
|
||||
"default_branch": "master"
|
||||
},
|
||||
"source": {
|
||||
"id": 617210,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnk2MTcyMTA=",
|
||||
"name": "github-api",
|
||||
"full_name": "github-api/github-api",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "github-api",
|
||||
"id": 54909825,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjU0OTA5ODI1",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/54909825?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/github-api",
|
||||
"html_url": "https://github.com/github-api",
|
||||
"followers_url": "https://api.github.com/users/github-api/followers",
|
||||
"following_url": "https://api.github.com/users/github-api/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/github-api/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/github-api/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/github-api/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/github-api/orgs",
|
||||
"repos_url": "https://api.github.com/users/github-api/repos",
|
||||
"events_url": "https://api.github.com/users/github-api/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/github-api/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/github-api/github-api",
|
||||
"description": "Java API for GitHub",
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/github-api/github-api",
|
||||
"forks_url": "https://api.github.com/repos/github-api/github-api/forks",
|
||||
"keys_url": "https://api.github.com/repos/github-api/github-api/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/github-api/github-api/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/github-api/github-api/teams",
|
||||
"hooks_url": "https://api.github.com/repos/github-api/github-api/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/github-api/github-api/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/github-api/github-api/events",
|
||||
"assignees_url": "https://api.github.com/repos/github-api/github-api/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/github-api/github-api/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/github-api/github-api/tags",
|
||||
"blobs_url": "https://api.github.com/repos/github-api/github-api/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/github-api/github-api/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/github-api/github-api/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/github-api/github-api/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/github-api/github-api/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/github-api/github-api/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/github-api/github-api/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/github-api/github-api/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/github-api/github-api/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/github-api/github-api/subscription",
|
||||
"commits_url": "https://api.github.com/repos/github-api/github-api/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/github-api/github-api/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/github-api/github-api/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/github-api/github-api/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/github-api/github-api/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/github-api/github-api/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/github-api/github-api/merges",
|
||||
"archive_url": "https://api.github.com/repos/github-api/github-api/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/github-api/github-api/downloads",
|
||||
"issues_url": "https://api.github.com/repos/github-api/github-api/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/github-api/github-api/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/github-api/github-api/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/github-api/github-api/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/github-api/github-api/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/github-api/github-api/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/github-api/github-api/deployments",
|
||||
"created_at": "2010-04-19T04:13:03Z",
|
||||
"updated_at": "2019-11-01T11:49:24Z",
|
||||
"pushed_at": "2019-11-01T01:49:29Z",
|
||||
"git_url": "git://github.com/github-api/github-api.git",
|
||||
"ssh_url": "git@github.com:github-api/github-api.git",
|
||||
"clone_url": "https://github.com/github-api/github-api.git",
|
||||
"svn_url": "https://github.com/github-api/github-api",
|
||||
"homepage": "http://github-api.kohsuke.org/",
|
||||
"size": 14820,
|
||||
"stargazers_count": 571,
|
||||
"watchers_count": 571,
|
||||
"language": "Java",
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": true,
|
||||
"forks_count": 434,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 66,
|
||||
"license": {
|
||||
"key": "mit",
|
||||
"name": "MIT License",
|
||||
"spdx_id": "MIT",
|
||||
"url": "https://api.github.com/licenses/mit",
|
||||
"node_id": "MDc6TGljZW5zZTEz"
|
||||
},
|
||||
"forks": 434,
|
||||
"open_issues": 66,
|
||||
"watchers": 571,
|
||||
"default_branch": "master"
|
||||
},
|
||||
"network_count": 434,
|
||||
"subscribers_count": 0
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
[
|
||||
{
|
||||
"id": 206888201,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyMDY4ODgyMDE=",
|
||||
"name": "github-api",
|
||||
"full_name": "github-api-test-org/github-api",
|
||||
"owner": {
|
||||
"login": "github-api-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/github-api-test-org",
|
||||
"html_url": "https://github.com/github-api-test-org",
|
||||
"followers_url": "https://api.github.com/users/github-api-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/github-api-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/github-api-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/github-api-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"private": false,
|
||||
"html_url": "https://github.com/github-api-test-org/github-api",
|
||||
"description": "Tricky",
|
||||
"fork": true,
|
||||
"url": "https://api.github.com/repos/github-api-test-org/github-api",
|
||||
"forks_url": "https://api.github.com/repos/github-api-test-org/github-api/forks",
|
||||
"keys_url": "https://api.github.com/repos/github-api-test-org/github-api/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/github-api-test-org/github-api/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/github-api-test-org/github-api/teams",
|
||||
"hooks_url": "https://api.github.com/repos/github-api-test-org/github-api/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/github-api-test-org/github-api/events",
|
||||
"assignees_url": "https://api.github.com/repos/github-api-test-org/github-api/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/github-api-test-org/github-api/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/github-api-test-org/github-api/tags",
|
||||
"blobs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/github-api-test-org/github-api/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/github-api-test-org/github-api/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/github-api-test-org/github-api/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/github-api-test-org/github-api/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/github-api-test-org/github-api/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/github-api-test-org/github-api/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/github-api-test-org/github-api/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/github-api-test-org/github-api/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/github-api-test-org/github-api/subscription",
|
||||
"commits_url": "https://api.github.com/repos/github-api-test-org/github-api/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/github-api-test-org/github-api/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/github-api-test-org/github-api/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/github-api-test-org/github-api/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/github-api-test-org/github-api/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/github-api-test-org/github-api/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/github-api-test-org/github-api/merges",
|
||||
"archive_url": "https://api.github.com/repos/github-api-test-org/github-api/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/github-api-test-org/github-api/downloads",
|
||||
"issues_url": "https://api.github.com/repos/github-api-test-org/github-api/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/github-api-test-org/github-api/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/github-api-test-org/github-api/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/github-api-test-org/github-api/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/github-api-test-org/github-api/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/github-api-test-org/github-api/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/github-api-test-org/github-api/deployments",
|
||||
"created_at": "2019-09-06T23:26:04Z",
|
||||
"updated_at": "2019-10-30T01:54:39Z",
|
||||
"pushed_at": "2019-10-21T22:34:49Z",
|
||||
"git_url": "git://github.com/github-api-test-org/github-api.git",
|
||||
"ssh_url": "git@github.com:github-api-test-org/github-api.git",
|
||||
"clone_url": "https://github.com/github-api-test-org/github-api.git",
|
||||
"svn_url": "https://github.com/github-api-test-org/github-api",
|
||||
"homepage": "http://github-api.kohsuke.org/",
|
||||
"size": 11391,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Java",
|
||||
"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": {
|
||||
"key": "mit",
|
||||
"name": "MIT License",
|
||||
"spdx_id": "MIT",
|
||||
"url": "https://api.github.com/licenses/mit",
|
||||
"node_id": "MDc6TGljZW5zZTEz"
|
||||
},
|
||||
"forks": 0,
|
||||
"open_issues": 0,
|
||||
"watchers": 0,
|
||||
"default_branch": "master",
|
||||
"permissions": {
|
||||
"pull": true,
|
||||
"push": true,
|
||||
"admin": false
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"login": "bitwiseman",
|
||||
"id": 1958953,
|
||||
"node_id": "MDQ6VXNlcjE5NTg5NTM=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/bitwiseman",
|
||||
"html_url": "https://github.com/bitwiseman",
|
||||
"followers_url": "https://api.github.com/users/bitwiseman/followers",
|
||||
"following_url": "https://api.github.com/users/bitwiseman/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/bitwiseman/orgs",
|
||||
"repos_url": "https://api.github.com/users/bitwiseman/repos",
|
||||
"events_url": "https://api.github.com/users/bitwiseman/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/bitwiseman/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false,
|
||||
"name": "Liam Newman",
|
||||
"company": "Cloudbees, Inc.",
|
||||
"blog": "",
|
||||
"location": "Seattle, WA, USA",
|
||||
"email": "bitwiseman@gmail.com",
|
||||
"hireable": null,
|
||||
"bio": "https://twitter.com/bitwiseman",
|
||||
"public_repos": 170,
|
||||
"public_gists": 7,
|
||||
"followers": 139,
|
||||
"following": 9,
|
||||
"created_at": "2012-07-11T20:38:33Z",
|
||||
"updated_at": "2019-09-24T19:32:29Z",
|
||||
"private_gists": 7,
|
||||
"total_private_repos": 9,
|
||||
"owned_private_repos": 0,
|
||||
"disk_usage": 33697,
|
||||
"collaborators": 0,
|
||||
"two_factor_authentication": true,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"collaborators": 0,
|
||||
"private_repos": 10000
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"id": "8c23f18e-d928-4e88-851d-fa36feecf615",
|
||||
"name": "orgs_github-api-test-org",
|
||||
"request": {
|
||||
"url": "/orgs/github-api-test-org",
|
||||
"method": "GET"
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "orgs_github-api-test-org-8c23f18e-d928-4e88-851d-fa36feecf615.json",
|
||||
"headers": {
|
||||
"Date": "Fri, 01 Nov 2019 16:29:08 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4975",
|
||||
"X-RateLimit-Reset": "1572629252",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"bbee0a14a82ca84871298052e1bcb545\"",
|
||||
"Last-Modified": "Mon, 20 Apr 2015 00:42:30 GMT",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"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": "D319:5DFB:15D51C7:19DE151:5DBC5D53"
|
||||
}
|
||||
},
|
||||
"uuid": "8c23f18e-d928-4e88-851d-fa36feecf615",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"id": "3459b05f-6e47-4c41-be60-83c125bf180b",
|
||||
"name": "orgs_github-api-test-org_teams",
|
||||
"request": {
|
||||
"url": "/orgs/github-api-test-org/teams",
|
||||
"method": "POST",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"name\":\"create-team-test\",\"repo_names\":[\"github-api-test-org/github-api\"],\"permission\":\"push\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 201,
|
||||
"bodyFileName": "orgs_github-api-test-org_teams-3459b05f-6e47-4c41-be60-83c125bf180b.json",
|
||||
"headers": {
|
||||
"Date": "Fri, 01 Nov 2019 16:29:09 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "201 Created",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4973",
|
||||
"X-RateLimit-Reset": "1572629252",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "\"107dcb6fe97e7e3aa92c5751075dec52\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "admin:org, repo",
|
||||
"Location": "https://api.github.com/teams/3501817",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"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": "D319:5DFB:15D51FE:19DE222:5DBC5D55"
|
||||
}
|
||||
},
|
||||
"uuid": "3459b05f-6e47-4c41-be60-83c125bf180b",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"id": "25876edf-6351-4b59-9e1d-82886a02f721",
|
||||
"name": "repos_github-api-test-org_github-api",
|
||||
"request": {
|
||||
"url": "/repos/github-api-test-org/github-api",
|
||||
"method": "GET"
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_github-api-test-org_github-api-25876edf-6351-4b59-9e1d-82886a02f721.json",
|
||||
"headers": {
|
||||
"Date": "Fri, 01 Nov 2019 16:29:09 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4974",
|
||||
"X-RateLimit-Reset": "1572629252",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"cf0b2ec3da3061f2b2fcb4a57302a097\"",
|
||||
"Last-Modified": "Wed, 30 Oct 2019 01:54:39 GMT",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"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": "D319:5DFB:15D51E2:19DE203:5DBC5D54"
|
||||
}
|
||||
},
|
||||
"uuid": "25876edf-6351-4b59-9e1d-82886a02f721",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"id": "97bad23b-9d25-4db2-8420-afbc40b450ac",
|
||||
"name": "teams_3501817_repos",
|
||||
"request": {
|
||||
"url": "/teams/3501817/repos",
|
||||
"method": "GET"
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "teams_3501817_repos-97bad23b-9d25-4db2-8420-afbc40b450ac.json",
|
||||
"headers": {
|
||||
"Date": "Fri, 01 Nov 2019 16:29:09 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4972",
|
||||
"X-RateLimit-Reset": "1572629252",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"99c69bfffe7e8b07f2a131b6a51ab377\"",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"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": "D319:5DFB:15D5245:19DE265:5DBC5D55"
|
||||
}
|
||||
},
|
||||
"uuid": "97bad23b-9d25-4db2-8420-afbc40b450ac",
|
||||
"persistent": true,
|
||||
"insertionIndex": 5
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"id": "8620f09e-7f34-4e00-860b-335d22d56f92",
|
||||
"name": "user",
|
||||
"request": {
|
||||
"url": "/user",
|
||||
"method": "GET"
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "user-8620f09e-7f34-4e00-860b-335d22d56f92.json",
|
||||
"headers": {
|
||||
"Date": "Fri, 01 Nov 2019 16:29:07 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4979",
|
||||
"X-RateLimit-Reset": "1572629252",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"314a780ab48b55be9920f26d1eda7d83\"",
|
||||
"Last-Modified": "Tue, 24 Sep 2019 19:32:29 GMT",
|
||||
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"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": "D319:5DFB:15D513B:19DE13D:5DBC5D53"
|
||||
}
|
||||
},
|
||||
"uuid": "8620f09e-7f34-4e00-860b-335d22d56f92",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
Reference in New Issue
Block a user