mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Merge pull request #897 from bonnie-young/add-create-repo-with-template-support
add create repo with template support
This commit is contained in:
@@ -3,6 +3,8 @@ package org.kohsuke.github;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
import static org.kohsuke.github.Previews.BAPTISE;
|
||||
|
||||
/**
|
||||
* Creates a repository
|
||||
*
|
||||
@@ -11,7 +13,7 @@ import java.net.URL;
|
||||
public class GHCreateRepositoryBuilder {
|
||||
private final GitHub root;
|
||||
protected final Requester builder;
|
||||
private final String apiUrlTail;
|
||||
private String apiUrlTail;
|
||||
|
||||
GHCreateRepositoryBuilder(GitHub root, String apiUrlTail, String name) {
|
||||
this.root = root;
|
||||
@@ -200,6 +202,51 @@ public class GHCreateRepositoryBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies whether the repository is a template.
|
||||
*
|
||||
* @param enabled
|
||||
* true if enabled
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public GHCreateRepositoryBuilder templateRepository(boolean enabled) {
|
||||
this.builder.withPreview(BAPTISE);
|
||||
this.builder.with("is_template", enabled);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Specifies the ownership of the repository.
|
||||
*
|
||||
* @param owner
|
||||
* organization or personage
|
||||
* @return a builder to continue with building
|
||||
*/
|
||||
public GHCreateRepositoryBuilder owner(String owner) {
|
||||
this.builder.with("owner", owner);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create repository from template repository.
|
||||
*
|
||||
* @param templateOwner
|
||||
* template repository owner
|
||||
* @param templateRepo
|
||||
* template repository
|
||||
* @return a builder to continue with building
|
||||
* @see <a href="https://developer.github.com/v3/previews/">GitHub API Previews</a>
|
||||
*/
|
||||
@Preview
|
||||
@Deprecated
|
||||
public GHCreateRepositoryBuilder fromTemplateRepository(String templateOwner, String templateRepo) {
|
||||
this.builder.withPreview(BAPTISE);
|
||||
this.apiUrlTail = "/repos/" + templateOwner + "/" + templateRepo + "/generate";
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a repository with all the parameters.
|
||||
*
|
||||
|
||||
@@ -78,4 +78,12 @@ class Previews {
|
||||
* @see <a href="https://developer.github.com/v3/previews/#require-signed-commits">GitHub API Previews</a>
|
||||
*/
|
||||
static final String ZZZAX = "application/vnd.github.zzzax-preview+json";
|
||||
|
||||
/**
|
||||
* Create repository from template repository
|
||||
*
|
||||
* @see <a href="https://developer.github.com/v3/previews/#create-and-use-repository-templates">GitHub API
|
||||
* Previews</a>
|
||||
*/
|
||||
static final String BAPTISE = "application/vnd.github.baptiste-preview+json";
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import java.util.List;
|
||||
public class GHOrganizationTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
public static final String GITHUB_API_TEST = "github-api-test";
|
||||
public static final String GITHUB_API_TEMPLATE_TEST = "github-api-template-test";
|
||||
public static final String TEAM_NAME_CREATE = "create-team-test";
|
||||
|
||||
@Before
|
||||
@@ -56,6 +57,36 @@ public class GHOrganizationTest extends AbstractGitHubWireMockTest {
|
||||
Assert.assertNotNull(repository.getReadme());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateRepositoryWithParameterIsTemplate() throws IOException {
|
||||
cleanupRepository(GITHUB_API_TEST_ORG + '/' + GITHUB_API_TEST);
|
||||
|
||||
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
|
||||
GHRepository repository = org.createRepository(GITHUB_API_TEMPLATE_TEST)
|
||||
.description("a test template repository used to test kohsuke's github-api")
|
||||
.homepage("http://github-api.kohsuke.org/")
|
||||
.team(org.getTeamByName("Core Developers"))
|
||||
.autoInit(true)
|
||||
.templateRepository(true)
|
||||
.create();
|
||||
Assert.assertNotNull(repository);
|
||||
Assert.assertNotNull(repository.getReadme());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateRepositoryWithTemplate() throws IOException {
|
||||
cleanupRepository(GITHUB_API_TEST_ORG + '/' + GITHUB_API_TEST);
|
||||
|
||||
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
|
||||
GHRepository repository = org.createRepository(GITHUB_API_TEST)
|
||||
.fromTemplateRepository(GITHUB_API_TEST_ORG, GITHUB_API_TEMPLATE_TEST)
|
||||
.owner(GITHUB_API_TEST_ORG)
|
||||
.create();
|
||||
|
||||
Assert.assertNotNull(repository);
|
||||
Assert.assertNotNull(repository.getReadme());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInviteUser() throws IOException {
|
||||
GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG);
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"url": "https://api.github.com/orgs/hub4j-test-org",
|
||||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
|
||||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
|
||||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/hub4j-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": 9,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"html_url": "https://github.com/hub4j-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": 3,
|
||||
"seats": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"id": 212682270,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyMTI2ODIyNzA=",
|
||||
"name": "github-api-template-test",
|
||||
"full_name": "hub4j-test-org/github-api-template-test",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "http://localhost:51951/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "http://localhost:51951/users/hub4j-test-org/followers",
|
||||
"following_url": "http://localhost:51951/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "http://localhost:51951/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "http://localhost:51951/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "http://localhost:51951/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "http://localhost:51951/users/hub4j-test-org/orgs",
|
||||
"repos_url": "http://localhost:51951/users/hub4j-test-org/repos",
|
||||
"events_url": "http://localhost:51951/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "http://localhost:51951/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/github-api-template-test",
|
||||
"description": "a test repository used to test kohsuke's github-api",
|
||||
"fork": false,
|
||||
"url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test",
|
||||
"forks_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/forks",
|
||||
"keys_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/keys{/key_id}",
|
||||
"collaborators_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/collaborators{/collaborator}",
|
||||
"teams_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/teams",
|
||||
"hooks_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/hooks",
|
||||
"issue_events_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/issues/events{/number}",
|
||||
"events_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/events",
|
||||
"assignees_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/assignees{/user}",
|
||||
"branches_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/branches{/branch}",
|
||||
"tags_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/tags",
|
||||
"blobs_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/git/blobs{/sha}",
|
||||
"git_tags_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/git/tags{/sha}",
|
||||
"git_refs_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/git/refs{/sha}",
|
||||
"trees_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/git/trees{/sha}",
|
||||
"statuses_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/statuses/{sha}",
|
||||
"languages_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/languages",
|
||||
"stargazers_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/stargazers",
|
||||
"contributors_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/contributors",
|
||||
"subscribers_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/subscribers",
|
||||
"subscription_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/subscription",
|
||||
"commits_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/commits{/sha}",
|
||||
"git_commits_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/git/commits{/sha}",
|
||||
"comments_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/comments{/number}",
|
||||
"issue_comment_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/issues/comments{/number}",
|
||||
"contents_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/contents/{+path}",
|
||||
"compare_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/compare/{base}...{head}",
|
||||
"merges_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/merges",
|
||||
"archive_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/{archive_format}{/ref}",
|
||||
"downloads_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/downloads",
|
||||
"issues_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/issues{/number}",
|
||||
"pulls_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/pulls{/number}",
|
||||
"milestones_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/milestones{/number}",
|
||||
"notifications_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/notifications{?since,all,participating}",
|
||||
"labels_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/labels{/name}",
|
||||
"releases_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/releases{/id}",
|
||||
"deployments_url": "http://localhost:51951/repos/hub4j-test-org/github-api-template-test/deployments",
|
||||
"created_at": "2019-10-03T21:18:43Z",
|
||||
"updated_at": "2019-10-03T21:18:43Z",
|
||||
"pushed_at": "2019-10-03T21:18:44Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/github-api-template-test.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/github-api-template-test.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/github-api-template-test.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/github-api-template-test",
|
||||
"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
|
||||
},
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "http://localhost:51951/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "http://localhost:51951/users/hub4j-test-org/followers",
|
||||
"following_url": "http://localhost:51951/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "http://localhost:51951/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "http://localhost:51951/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "http://localhost:51951/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "http://localhost:51951/users/hub4j-test-org/orgs",
|
||||
"repos_url": "http://localhost:51951/users/hub4j-test-org/repos",
|
||||
"events_url": "http://localhost:51951/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "http://localhost:51951/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 2
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
[
|
||||
{
|
||||
"name": "Owners",
|
||||
"id": 820404,
|
||||
"node_id": "MDQ6VGVhbTgyMDQwNA==",
|
||||
"slug": "owners",
|
||||
"description": null,
|
||||
"privacy": "secret",
|
||||
"url": "https://api.github.com/teams/820404",
|
||||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/owners",
|
||||
"members_url": "https://api.github.com/teams/820404/members{/member}",
|
||||
"repositories_url": "https://api.github.com/teams/820404/repos",
|
||||
"permission": "admin"
|
||||
},
|
||||
{
|
||||
"name": "Core Developers",
|
||||
"id": 820406,
|
||||
"node_id": "MDQ6VGVhbTgyMDQwNg==",
|
||||
"slug": "core-developers",
|
||||
"description": "A random team",
|
||||
"privacy": "secret",
|
||||
"url": "https://api.github.com/teams/820406",
|
||||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/core-developers",
|
||||
"members_url": "https://api.github.com/teams/820406/members{/member}",
|
||||
"repositories_url": "https://api.github.com/teams/820406/repos",
|
||||
"permission": "pull"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "README.md",
|
||||
"path": "README.md",
|
||||
"sha": "aa0e9008d8d8c4745d81d718b5d418f6a5529759",
|
||||
"size": 70,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/github-api-template-test/contents/README.md?ref=master",
|
||||
"html_url": "https://github.com/hub4j-test-org/github-api-template-test/blob/master/README.md",
|
||||
"git_url": "https://api.github.com/repos/hub4j-test-org/github-api-template-test/git/blobs/aa0e9008d8d8c4745d81d718b5d418f6a5529759",
|
||||
"download_url": "https://raw.githubusercontent.com/hub4j-test-org/github-api-template-test/master/README.md",
|
||||
"type": "file",
|
||||
"content": "IyBnaXRodWItYXBpLXRlc3QKYSB0ZXN0IHJlcG9zaXRvcnkgdXNlZCB0byB0\nZXN0IGtvaHN1a2UncyBnaXRodWItYXBpCg==\n",
|
||||
"encoding": "base64",
|
||||
"_links": {
|
||||
"self": "https://api.github.com/repos/hub4j-test-org/github-api-template-test/contents/README.md?ref=master",
|
||||
"git": "https://api.github.com/repos/hub4j-test-org/github-api-template-test/git/blobs/aa0e9008d8d8c4745d81d718b5d418f6a5529759",
|
||||
"html": "https://github.com/hub4j-test-org/github-api-template-test/blob/master/README.md"
|
||||
}
|
||||
}
|
||||
@@ -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": 167,
|
||||
"public_gists": 4,
|
||||
"followers": 136,
|
||||
"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,48 @@
|
||||
{
|
||||
"id": "7b0ac54c-1ef0-453a-99db-a480b3b5a746",
|
||||
"name": "orgs_hub4j-test-org",
|
||||
"request": {
|
||||
"url": "/orgs/hub4j-test-org",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "orgs_hub4j-test-org-2.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Oct 2019 21:18:43 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4900",
|
||||
"X-RateLimit-Reset": "1570140015",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"",
|
||||
"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": "CAF1:9576:6B11DD:8037AC:5D9665B2"
|
||||
}
|
||||
},
|
||||
"uuid": "7b0ac54c-1ef0-453a-99db-a480b3b5a746",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"id": "423c774e-3d61-423a-ad0d-ee166bf2b4de",
|
||||
"name": "orgs_hub4j-test-org_repos",
|
||||
"request": {
|
||||
"url": "/orgs/hub4j-test-org/repos",
|
||||
"method": "POST",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"auto_init\":true,\"is_template\":true,\"name\":\"github-api-template-test\",\"description\":\"a test template repository used to test kohsuke's github-api\",\"team_id\":820406,\"homepage\":\"http://github-api.kohsuke.org/\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
],
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.baptiste-preview+json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 201,
|
||||
"bodyFileName": "orgs_hub4j-test-org_repos-4.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Oct 2019 21:18:45 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "201 Created",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4898",
|
||||
"X-RateLimit-Reset": "1570140015",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "\"2b3e3ea59f28d3dadc92e7bb9aa81918\"",
|
||||
"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": "public_repo, repo",
|
||||
"Location": "https://api.github.com/repos/hub4j-test-org/github-api-template-test",
|
||||
"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": "CAF1:9576:6B11EA:8037CF:5D9665B3"
|
||||
}
|
||||
},
|
||||
"uuid": "423c774e-3d61-423a-ad0d-ee166bf2b4de",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"id": "eb06b2d9-1dda-4070-bdfe-3005f550e7ec",
|
||||
"name": "orgs_hub4j-test-org_teams",
|
||||
"request": {
|
||||
"url": "/orgs/hub4j-test-org/teams",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "orgs_hub4j-test-org_teams-3.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Oct 2019 21:18:43 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4899",
|
||||
"X-RateLimit-Reset": "1570140015",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"67966e090e6d1b149d83e98c21d76074\"",
|
||||
"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": "CAF1:9576:6B11E4:8037CB:5D9665B3"
|
||||
}
|
||||
},
|
||||
"uuid": "eb06b2d9-1dda-4070-bdfe-3005f550e7ec",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "12092c16-85de-454a-80ae-61c283738838",
|
||||
"name": "repos_hub4j-test-org_github-api-template-test_readme",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/github-api-template-test/readme",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_github-api-test_readme-5.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Oct 2019 21:18:45 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4897",
|
||||
"X-RateLimit-Reset": "1570140015",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"cabb44de69d6ea06b2d8ca4bb5b01405\"",
|
||||
"Last-Modified": "Thu, 03 Oct 2019 21:18:44 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": "CAF1:9576:6B1234:803821:5D9665B5"
|
||||
}
|
||||
},
|
||||
"uuid": "12092c16-85de-454a-80ae-61c283738838",
|
||||
"persistent": true,
|
||||
"insertionIndex": 5
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "d246cfb6-e28a-417b-8d74-29080bbc1c4c",
|
||||
"name": "user",
|
||||
"request": {
|
||||
"url": "/user",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "user-1.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Oct 2019 21:18:42 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4904",
|
||||
"X-RateLimit-Reset": "1570140015",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"cf6199fecf47b59c42190e1e11147ee2\"",
|
||||
"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": "CAF1:9576:6B11BA:80379D:5D9665B2"
|
||||
}
|
||||
},
|
||||
"uuid": "d246cfb6-e28a-417b-8d74-29080bbc1c4c",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544738,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"url": "https://api.github.com/orgs/hub4j-test-org",
|
||||
"repos_url": "https://api.github.com/orgs/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/orgs/hub4j-test-org/events",
|
||||
"hooks_url": "https://api.github.com/orgs/hub4j-test-org/hooks",
|
||||
"issues_url": "https://api.github.com/orgs/hub4j-test-org/issues",
|
||||
"members_url": "https://api.github.com/orgs/hub4j-test-org/members{/member}",
|
||||
"public_members_url": "https://api.github.com/orgs/hub4j-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": 9,
|
||||
"public_gists": 0,
|
||||
"followers": 0,
|
||||
"following": 0,
|
||||
"html_url": "https://github.com/hub4j-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": 3,
|
||||
"seats": 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"id": 212682278,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkyMTI2ODIyNzA=",
|
||||
"name": "github-api-test",
|
||||
"full_name": "hub4j-test-org/github-api-test",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "http://localhost:51951/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "http://localhost:51951/users/hub4j-test-org/followers",
|
||||
"following_url": "http://localhost:51951/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "http://localhost:51951/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "http://localhost:51951/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "http://localhost:51951/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "http://localhost:51951/users/hub4j-test-org/orgs",
|
||||
"repos_url": "http://localhost:51951/users/hub4j-test-org/repos",
|
||||
"events_url": "http://localhost:51951/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "http://localhost:51951/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/github-api-test",
|
||||
"description": "a test repository used to test kohsuke's github-api",
|
||||
"fork": false,
|
||||
"url": "http://localhost:51951/repos/hub4j-test-org/github-api-test",
|
||||
"forks_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/forks",
|
||||
"keys_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/keys{/key_id}",
|
||||
"collaborators_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/collaborators{/collaborator}",
|
||||
"teams_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/teams",
|
||||
"hooks_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/hooks",
|
||||
"issue_events_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/issues/events{/number}",
|
||||
"events_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/events",
|
||||
"assignees_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/assignees{/user}",
|
||||
"branches_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/branches{/branch}",
|
||||
"tags_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/tags",
|
||||
"blobs_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/git/blobs{/sha}",
|
||||
"git_tags_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/git/tags{/sha}",
|
||||
"git_refs_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/git/refs{/sha}",
|
||||
"trees_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/git/trees{/sha}",
|
||||
"statuses_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/statuses/{sha}",
|
||||
"languages_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/languages",
|
||||
"stargazers_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/stargazers",
|
||||
"contributors_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/contributors",
|
||||
"subscribers_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/subscribers",
|
||||
"subscription_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/subscription",
|
||||
"commits_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/commits{/sha}",
|
||||
"git_commits_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/git/commits{/sha}",
|
||||
"comments_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/comments{/number}",
|
||||
"issue_comment_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/issues/comments{/number}",
|
||||
"contents_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/contents/{+path}",
|
||||
"compare_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/compare/{base}...{head}",
|
||||
"merges_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/merges",
|
||||
"archive_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/{archive_format}{/ref}",
|
||||
"downloads_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/downloads",
|
||||
"issues_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/issues{/number}",
|
||||
"pulls_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/pulls{/number}",
|
||||
"milestones_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/milestones{/number}",
|
||||
"notifications_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/notifications{?since,all,participating}",
|
||||
"labels_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/labels{/name}",
|
||||
"releases_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/releases{/id}",
|
||||
"deployments_url": "http://localhost:51951/repos/hub4j-test-org/github-api-test/deployments",
|
||||
"created_at": "2019-10-03T21:18:43Z",
|
||||
"updated_at": "2019-10-03T21:18:43Z",
|
||||
"pushed_at": "2019-10-03T21:18:44Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/github-api-test.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/github-api-test.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/github-api-test.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/github-api-test",
|
||||
"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
|
||||
},
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "http://localhost:51951/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "http://localhost:51951/users/hub4j-test-org/followers",
|
||||
"following_url": "http://localhost:51951/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "http://localhost:51951/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "http://localhost:51951/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "http://localhost:51951/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "http://localhost:51951/users/hub4j-test-org/orgs",
|
||||
"repos_url": "http://localhost:51951/users/hub4j-test-org/repos",
|
||||
"events_url": "http://localhost:51951/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "http://localhost:51951/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 2
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
[
|
||||
{
|
||||
"name": "Owners",
|
||||
"id": 820408,
|
||||
"node_id": "MDQ6VGVhbTgyMDQwNA==",
|
||||
"slug": "owners",
|
||||
"description": null,
|
||||
"privacy": "secret",
|
||||
"url": "https://api.github.com/teams/820404",
|
||||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/owners",
|
||||
"members_url": "https://api.github.com/teams/820404/members{/member}",
|
||||
"repositories_url": "https://api.github.com/teams/820404/repos",
|
||||
"permission": "admin"
|
||||
},
|
||||
{
|
||||
"name": "Core Developers",
|
||||
"id": 820406,
|
||||
"node_id": "MDQ6VGVhbTgyMDQwNg==",
|
||||
"slug": "core-developers",
|
||||
"description": "A random team",
|
||||
"privacy": "secret",
|
||||
"url": "https://api.github.com/teams/820406",
|
||||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/core-developers",
|
||||
"members_url": "https://api.github.com/teams/820406/members{/member}",
|
||||
"repositories_url": "https://api.github.com/teams/820406/repos",
|
||||
"permission": "pull"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "README.md",
|
||||
"path": "README.md",
|
||||
"sha": "aa0e9008d8d8c4745d81d718b5d418f6a5529759",
|
||||
"size": 70,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/github-api-template-test/contents/README.md?ref=master",
|
||||
"html_url": "https://github.com/hub4j-test-org/github-api-template-test/blob/master/README.md",
|
||||
"git_url": "https://api.github.com/repos/hub4j-test-org/github-api-template-test/git/blobs/aa0e9008d8d8c4745d81d718b5d418f6a5529759",
|
||||
"download_url": "https://raw.githubusercontent.com/hub4j-test-org/github-api-template-test/master/README.md",
|
||||
"type": "file",
|
||||
"content": "IyBnaXRodWItYXBpLXRlc3QKYSB0ZXN0IHJlcG9zaXRvcnkgdXNlZCB0byB0\nZXN0IGtvaHN1a2UncyBnaXRodWItYXBpCg==\n",
|
||||
"encoding": "base64",
|
||||
"_links": {
|
||||
"self": "https://api.github.com/repos/hub4j-test-org/github-api-template-test/contents/README.md?ref=master",
|
||||
"git": "https://api.github.com/repos/hub4j-test-org/github-api-template-test/git/blobs/aa0e9008d8d8c4745d81d718b5d418f6a5529759",
|
||||
"html": "https://github.com/hub4j-test-org/github-api-template-test/blob/master/README.md"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"login": "bitwiseman",
|
||||
"id": 1958958,
|
||||
"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": 167,
|
||||
"public_gists": 4,
|
||||
"followers": 136,
|
||||
"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,48 @@
|
||||
{
|
||||
"id": "7b0ac54c-1ef0-453a-99db-a480b3b5a746",
|
||||
"name": "orgs_hub4j-test-org",
|
||||
"request": {
|
||||
"url": "/orgs/hub4j-test-org",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "orgs_hub4j-test-org-2.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Oct 2019 21:18:43 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4900",
|
||||
"X-RateLimit-Reset": "1570140015",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"d36965e157281b2a309c39e4c2343a55\"",
|
||||
"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": "CAF1:9576:6B11DD:8037AC:5D9665B2"
|
||||
}
|
||||
},
|
||||
"uuid": "7b0ac54c-1ef0-453a-99db-a480b3b5a746",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"id": "423c774e-3d61-423a-ad0d-ee166bf2b4de",
|
||||
"name": "orgs_hub4j-test-org_repos",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/github-api-template-test/generate",
|
||||
"method": "POST",
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"name\":\"github-api-test\",\"owner\":\"hub4j-test-org\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": true
|
||||
}
|
||||
],
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "application/vnd.github.baptiste-preview+json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 201,
|
||||
"bodyFileName": "orgs_hub4j-test-org_repos-4.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Oct 2019 21:18:45 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "201 Created",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4898",
|
||||
"X-RateLimit-Reset": "1570140015",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "\"2b3e3ea59f28d3dadc92e7bb9aa81918\"",
|
||||
"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": "public_repo, repo",
|
||||
"Location": "https://api.github.com/repos/hub4j-test-org/github-api-test",
|
||||
"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": "CAF1:9576:6B11EA:8037CF:5D9665B3"
|
||||
}
|
||||
},
|
||||
"uuid": "423c774e-3d61-423a-ad0d-ee166bf2b4de",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"id": "eb06b2d9-1dda-4070-bdfe-3005f550e7ec",
|
||||
"name": "orgs_hub4j-test-org_teams",
|
||||
"request": {
|
||||
"url": "/orgs/hub4j-test-org/teams",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "orgs_hub4j-test-org_teams-3.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Oct 2019 21:18:43 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4899",
|
||||
"X-RateLimit-Reset": "1570140015",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"67966e090e6d1b149d83e98c21d76074\"",
|
||||
"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": "CAF1:9576:6B11E4:8037CB:5D9665B3"
|
||||
}
|
||||
},
|
||||
"uuid": "eb06b2d9-1dda-4070-bdfe-3005f550e7ec",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "12092c16-85de-454a-80ae-61c283738838",
|
||||
"name": "repos_hub4j-test-org_github-api-test_readme",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/github-api-test/readme",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_github-api-test_readme-5.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Oct 2019 21:18:45 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4897",
|
||||
"X-RateLimit-Reset": "1570140015",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"cabb44de69d6ea06b2d8ca4bb5b01405\"",
|
||||
"Last-Modified": "Thu, 03 Oct 2019 21:18:44 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": "CAF1:9576:6B1234:803821:5D9665B5"
|
||||
}
|
||||
},
|
||||
"uuid": "12092c16-85de-454a-80ae-61c283738838",
|
||||
"persistent": true,
|
||||
"insertionIndex": 5
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "d246cfb6-e28a-417b-8d74-29080bbc1c4c",
|
||||
"name": "user",
|
||||
"request": {
|
||||
"url": "/user",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "user-1.json",
|
||||
"headers": {
|
||||
"Date": "Thu, 03 Oct 2019 21:18:42 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Server": "GitHub.com",
|
||||
"Status": "200 OK",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4904",
|
||||
"X-RateLimit-Reset": "1570140015",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding"
|
||||
],
|
||||
"ETag": "W/\"cf6199fecf47b59c42190e1e11147ee2\"",
|
||||
"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": "CAF1:9576:6B11BA:80379D:5D9665B2"
|
||||
}
|
||||
},
|
||||
"uuid": "d246cfb6-e28a-417b-8d74-29080bbc1c4c",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
Reference in New Issue
Block a user