mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Ensures releases fails for unknown categories
This commit is contained in:
@@ -17,7 +17,7 @@ public class ReleaseTest extends AbstractGitHubWireMockTest {
|
||||
String tagName = UUID.randomUUID().toString();
|
||||
String releaseName = "release-" + tagName;
|
||||
|
||||
GHRelease release = repo.createRelease(tagName).name(releaseName).prerelease(false).create();
|
||||
GHRelease release = repo.createRelease(tagName).name(releaseName).categoryName("announcements").prerelease(false).create();
|
||||
|
||||
GHRelease releaseCheck = repo.getRelease(release.getId());
|
||||
|
||||
@@ -43,4 +43,14 @@ public class ReleaseTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(httpException.getResponseCode(), is(422));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCreateReleaseWithUnknownCategoryFails() throws Exception {
|
||||
GHRepository repo = gitHub.getRepository("hub4j-test-org/testCreateRelease");
|
||||
|
||||
String tagName = UUID.randomUUID().toString();
|
||||
String releaseName = "release-" + tagName;
|
||||
|
||||
assertThrows(GHFileNotFoundException.class, () -> { repo.createRelease(tagName).name(releaseName).categoryName("an invalid cateogry").prerelease(false).create(); });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"id": 375534019,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzNzU1MzQwMTk=",
|
||||
"name": "testCreateRelease",
|
||||
"full_name": "hub4j-test-org/testCreateRelease",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/hub4j-test-org/testCreateRelease",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease",
|
||||
"forks_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/forks",
|
||||
"keys_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/teams",
|
||||
"hooks_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/events",
|
||||
"assignees_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/tags",
|
||||
"blobs_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/subscription",
|
||||
"commits_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/merges",
|
||||
"archive_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/downloads",
|
||||
"issues_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/deployments",
|
||||
"created_at": "2021-06-10T01:25:59Z",
|
||||
"updated_at": "2021-06-10T01:31:14Z",
|
||||
"pushed_at": "2021-06-10T16:08:28Z",
|
||||
"git_url": "git://github.com/hub4j-test-org/testCreateRelease.git",
|
||||
"ssh_url": "git@github.com:hub4j-test-org/testCreateRelease.git",
|
||||
"clone_url": "https://github.com/hub4j-test-org/testCreateRelease.git",
|
||||
"svn_url": "https://github.com/hub4j-test-org/testCreateRelease",
|
||||
"homepage": null,
|
||||
"size": 11948,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": "Java",
|
||||
"has_issues": false,
|
||||
"has_projects": false,
|
||||
"has_downloads": true,
|
||||
"has_wiki": false,
|
||||
"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": "main",
|
||||
"permissions": {
|
||||
"admin": true,
|
||||
"push": true,
|
||||
"pull": true
|
||||
},
|
||||
"temp_clone_token": "",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false,
|
||||
"organization": {
|
||||
"login": "hub4j-test-org",
|
||||
"id": 7544739,
|
||||
"node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/hub4j-test-org",
|
||||
"html_url": "https://github.com/hub4j-test-org",
|
||||
"followers_url": "https://api.github.com/users/hub4j-test-org/followers",
|
||||
"following_url": "https://api.github.com/users/hub4j-test-org/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/hub4j-test-org/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/hub4j-test-org/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/hub4j-test-org/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/hub4j-test-org/orgs",
|
||||
"repos_url": "https://api.github.com/users/hub4j-test-org/repos",
|
||||
"events_url": "https://api.github.com/users/hub4j-test-org/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/hub4j-test-org/received_events",
|
||||
"type": "Organization",
|
||||
"site_admin": false
|
||||
},
|
||||
"network_count": 0,
|
||||
"subscribers_count": 12
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"login": "jlengrand",
|
||||
"id": 921666,
|
||||
"node_id": "MDQ6VXNlcjkyMTY2Ng==",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/921666?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/jlengrand",
|
||||
"html_url": "https://github.com/jlengrand",
|
||||
"followers_url": "https://api.github.com/users/jlengrand/followers",
|
||||
"following_url": "https://api.github.com/users/jlengrand/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jlengrand/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jlengrand/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jlengrand/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jlengrand/orgs",
|
||||
"repos_url": "https://api.github.com/users/jlengrand/repos",
|
||||
"events_url": "https://api.github.com/users/jlengrand/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jlengrand/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false,
|
||||
"name": "julien Lengrand-Lambert",
|
||||
"company": "@ing-bank",
|
||||
"blog": "http://www.lengrand.fr/",
|
||||
"location": "Utrecht, The Netherlands",
|
||||
"email": null,
|
||||
"hireable": true,
|
||||
"bio": "Community Builder and Lead developer. I create 'islands' where engineers are the heroes.",
|
||||
"twitter_username": "jlengrand",
|
||||
"public_repos": 122,
|
||||
"public_gists": 21,
|
||||
"followers": 64,
|
||||
"following": 46,
|
||||
"created_at": "2011-07-17T23:18:29Z",
|
||||
"updated_at": "2021-06-09T22:41:52Z",
|
||||
"private_gists": 14,
|
||||
"total_private_repos": 14,
|
||||
"owned_private_repos": 14,
|
||||
"disk_usage": 444076,
|
||||
"collaborators": 6,
|
||||
"two_factor_authentication": true,
|
||||
"plan": {
|
||||
"name": "free",
|
||||
"space": 976562499,
|
||||
"collaborators": 0,
|
||||
"private_repos": 10000
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"id": "6b7b6053-021e-40c3-8fd6-c2eabfac3e73",
|
||||
"name": "repos_hub4j-test-org_testcreaterelease",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/testCreateRelease",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_testcreaterelease-2.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 10 Jun 2021 16:10:44 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"815a429015c03760df92a98e66683d6a9e8aba234b04ab7e562574643787c484\"",
|
||||
"Last-Modified": "Thu, 10 Jun 2021 01:31:14 GMT",
|
||||
"X-OAuth-Scopes": "admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4976",
|
||||
"X-RateLimit-Reset": "1623344540",
|
||||
"X-RateLimit-Used": "24",
|
||||
"X-RateLimit-Resource": "core",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "C472:9EEC:400CF79:413C07A:60C23984"
|
||||
}
|
||||
},
|
||||
"uuid": "6b7b6053-021e-40c3-8fd6-c2eabfac3e73",
|
||||
"persistent": true,
|
||||
"insertionIndex": 2
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "7212361d-bd71-4030-ab0a-d4970c4f3e11",
|
||||
"name": "repos_hub4j-test-org_testcreaterelease_releases",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/testCreateRelease/releases",
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"discussion_category_name\":\"an invalid cateogry\",\"tag_name\":\"1dbf041f-a540-49b8-bf89-fb13e80950ea\",\"prerelease\":false,\"name\":\"release-1dbf041f-a540-49b8-bf89-fb13e80950ea\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 404,
|
||||
"body": "{\"message\":\"Discussion could not be created. Make sure you passed a valid category name.\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#create-a-release\"}",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 10 Jun 2021 16:10:45 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"X-OAuth-Scopes": "admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4975",
|
||||
"X-RateLimit-Reset": "1623344540",
|
||||
"X-RateLimit-Used": "25",
|
||||
"X-RateLimit-Resource": "core",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"Vary": "Accept-Encoding, Accept, X-Requested-With",
|
||||
"X-GitHub-Request-Id": "C473:A4A9:61E91B:6DF40B:60C23984"
|
||||
}
|
||||
},
|
||||
"uuid": "7212361d-bd71-4030-ab0a-d4970c4f3e11",
|
||||
"persistent": true,
|
||||
"insertionIndex": 3
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "2a603e86-fe5e-4a24-bf4a-11e97ccb8f6b",
|
||||
"name": "repos_hub4j-test-org_testcreaterelease_releases",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/testCreateRelease/releases",
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"discussion_category_name\":\"an invalid cateogry\",\"tag_name\":\"a2fae175-0d1b-4745-aa44-8305740301b9\",\"prerelease\":false,\"name\":\"release-a2fae175-0d1b-4745-aa44-8305740301b9\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 404,
|
||||
"body": "{\"message\":\"Discussion could not be created. Make sure you passed a valid category name.\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#create-a-release\"}",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 10 Jun 2021 16:13:27 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"X-OAuth-Scopes": "admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4973",
|
||||
"X-RateLimit-Reset": "1623344540",
|
||||
"X-RateLimit-Used": "27",
|
||||
"X-RateLimit-Resource": "core",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"Vary": "Accept-Encoding, Accept, X-Requested-With",
|
||||
"X-GitHub-Request-Id": "C4AD:9227:25EAE85:26A74A4:60C23A27"
|
||||
}
|
||||
},
|
||||
"uuid": "2a603e86-fe5e-4a24-bf4a-11e97ccb8f6b",
|
||||
"persistent": true,
|
||||
"insertionIndex": 4
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "28f0a76d-d606-4eff-8c4a-0e619a50bd0d",
|
||||
"name": "repos_hub4j-test-org_testcreaterelease_releases",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/testCreateRelease/releases",
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"discussion_category_name\":\"an invalid cateogry\",\"tag_name\":\"b41bfd91-cdbc-401e-b791-6e828f41bb7e\",\"prerelease\":false,\"name\":\"release-b41bfd91-cdbc-401e-b791-6e828f41bb7e\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 404,
|
||||
"body": "{\"message\":\"Discussion could not be created. Make sure you passed a valid category name.\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#create-a-release\"}",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 10 Jun 2021 16:14:27 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"X-OAuth-Scopes": "admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4971",
|
||||
"X-RateLimit-Reset": "1623344540",
|
||||
"X-RateLimit-Used": "29",
|
||||
"X-RateLimit-Resource": "core",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"Vary": "Accept-Encoding, Accept, X-Requested-With",
|
||||
"X-GitHub-Request-Id": "C4C3:A4AC:3CB955C:3DE63CF:60C23A63"
|
||||
}
|
||||
},
|
||||
"uuid": "28f0a76d-d606-4eff-8c4a-0e619a50bd0d",
|
||||
"persistent": true,
|
||||
"insertionIndex": 5
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"id": "7116b2bb-fb99-41ab-966a-68834bd29cda",
|
||||
"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": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 10 Jun 2021 16:10:43 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"02702ed486b737dbebf75786b5e6754c51de30f4df9ae2303e75d496711dd609\"",
|
||||
"Last-Modified": "Wed, 09 Jun 2021 22:41:52 GMT",
|
||||
"X-OAuth-Scopes": "admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages",
|
||||
"X-Accepted-OAuth-Scopes": "",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4978",
|
||||
"X-RateLimit-Reset": "1623344540",
|
||||
"X-RateLimit-Used": "22",
|
||||
"X-RateLimit-Resource": "core",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "C470:9224:4D1554:545AF6:60C23983"
|
||||
}
|
||||
},
|
||||
"uuid": "7116b2bb-fb99-41ab-966a-68834bd29cda",
|
||||
"persistent": true,
|
||||
"insertionIndex": 1
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/releases/44426833",
|
||||
"assets_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/releases/44426833/assets",
|
||||
"upload_url": "https://uploads.github.com/repos/hub4j-test-org/testCreateRelease/releases/44426833/assets{?name,label}",
|
||||
"html_url": "https://github.com/hub4j-test-org/testCreateRelease/releases/tag/38c0b3e9-2abc-4e79-b791-aeab4cc4efcd",
|
||||
"id": 44426833,
|
||||
"author": {
|
||||
"login": "jlengrand",
|
||||
"id": 921666,
|
||||
"node_id": "MDQ6VXNlcjkyMTY2Ng==",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/921666?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/jlengrand",
|
||||
"html_url": "https://github.com/jlengrand",
|
||||
"followers_url": "https://api.github.com/users/jlengrand/followers",
|
||||
"following_url": "https://api.github.com/users/jlengrand/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jlengrand/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jlengrand/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jlengrand/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jlengrand/orgs",
|
||||
"repos_url": "https://api.github.com/users/jlengrand/repos",
|
||||
"events_url": "https://api.github.com/users/jlengrand/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jlengrand/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"node_id": "MDc6UmVsZWFzZTQ0NDI2ODMz",
|
||||
"tag_name": "38c0b3e9-2abc-4e79-b791-aeab4cc4efcd",
|
||||
"target_commitish": "main",
|
||||
"name": "release-38c0b3e9-2abc-4e79-b791-aeab4cc4efcd",
|
||||
"draft": false,
|
||||
"prerelease": false,
|
||||
"created_at": "2021-06-02T21:59:14Z",
|
||||
"published_at": "2021-06-10T16:08:28Z",
|
||||
"assets": [],
|
||||
"tarball_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/tarball/38c0b3e9-2abc-4e79-b791-aeab4cc4efcd",
|
||||
"zipball_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/zipball/38c0b3e9-2abc-4e79-b791-aeab4cc4efcd",
|
||||
"body": null,
|
||||
"discussion_url": "https://github.com/hub4j-test-org/testCreateRelease/discussions/2"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/releases/44426833",
|
||||
"assets_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/releases/44426833/assets",
|
||||
"upload_url": "https://uploads.github.com/repos/hub4j-test-org/testCreateRelease/releases/44426833/assets{?name,label}",
|
||||
"html_url": "https://github.com/hub4j-test-org/testCreateRelease/releases/tag/38c0b3e9-2abc-4e79-b791-aeab4cc4efcd",
|
||||
"id": 44426833,
|
||||
"author": {
|
||||
"login": "jlengrand",
|
||||
"id": 921666,
|
||||
"node_id": "MDQ6VXNlcjkyMTY2Ng==",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/921666?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/jlengrand",
|
||||
"html_url": "https://github.com/jlengrand",
|
||||
"followers_url": "https://api.github.com/users/jlengrand/followers",
|
||||
"following_url": "https://api.github.com/users/jlengrand/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/jlengrand/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/jlengrand/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/jlengrand/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/jlengrand/orgs",
|
||||
"repos_url": "https://api.github.com/users/jlengrand/repos",
|
||||
"events_url": "https://api.github.com/users/jlengrand/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/jlengrand/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"node_id": "MDc6UmVsZWFzZTQ0NDI2ODMz",
|
||||
"tag_name": "38c0b3e9-2abc-4e79-b791-aeab4cc4efcd",
|
||||
"target_commitish": "main",
|
||||
"name": "release-38c0b3e9-2abc-4e79-b791-aeab4cc4efcd",
|
||||
"draft": false,
|
||||
"prerelease": false,
|
||||
"created_at": "2021-06-02T21:59:14Z",
|
||||
"published_at": "2021-06-10T16:08:28Z",
|
||||
"assets": [],
|
||||
"tarball_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/tarball/38c0b3e9-2abc-4e79-b791-aeab4cc4efcd",
|
||||
"zipball_url": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/zipball/38c0b3e9-2abc-4e79-b791-aeab4cc4efcd",
|
||||
"body": null,
|
||||
"discussion_url": "https://github.com/hub4j-test-org/testCreateRelease/discussions/2"
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"id": "f597ac37-d134-4cc0-be3d-292535a1e003",
|
||||
"name": "repos_hub4j-test-org_testcreaterelease_releases",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/testCreateRelease/releases",
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
},
|
||||
"bodyPatterns": [
|
||||
{
|
||||
"equalToJson": "{\"discussion_category_name\":\"announcements\",\"tag_name\":\"38c0b3e9-2abc-4e79-b791-aeab4cc4efcd\",\"prerelease\":false,\"name\":\"release-38c0b3e9-2abc-4e79-b791-aeab4cc4efcd\"}",
|
||||
"ignoreArrayOrder": true,
|
||||
"ignoreExtraElements": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"response": {
|
||||
"status": 201,
|
||||
"bodyFileName": "repos_hub4j-test-org_testcreaterelease_releases-5.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 10 Jun 2021 16:08:29 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "\"ba683aab31c9f3ebc9855db1583849adbb759a0c22aa2cf2ab90a2e286671f97\"",
|
||||
"X-OAuth-Scopes": "admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4980",
|
||||
"X-RateLimit-Reset": "1623344540",
|
||||
"X-RateLimit-Used": "20",
|
||||
"X-RateLimit-Resource": "core",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "C442:E96A:A16BBF:AD7BE4:60C238FC",
|
||||
"Location": "https://api.github.com/repos/hub4j-test-org/testCreateRelease/releases/44426833"
|
||||
}
|
||||
},
|
||||
"uuid": "f597ac37-d134-4cc0-be3d-292535a1e003",
|
||||
"persistent": true,
|
||||
"insertionIndex": 5
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"id": "3088c0ea-dfc0-425b-9c67-6692c4559048",
|
||||
"name": "repos_hub4j-test-org_testcreaterelease_releases_44426833",
|
||||
"request": {
|
||||
"url": "/repos/hub4j-test-org/testCreateRelease/releases/44426833",
|
||||
"method": "GET",
|
||||
"headers": {
|
||||
"Accept": {
|
||||
"equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"status": 200,
|
||||
"bodyFileName": "repos_hub4j-test-org_testcreaterelease_releases_44426833-6.json",
|
||||
"headers": {
|
||||
"Server": "GitHub.com",
|
||||
"Date": "Thu, 10 Jun 2021 16:08:29 GMT",
|
||||
"Content-Type": "application/json; charset=utf-8",
|
||||
"Cache-Control": "private, max-age=60, s-maxage=60",
|
||||
"Vary": [
|
||||
"Accept, Authorization, Cookie, X-GitHub-OTP",
|
||||
"Accept-Encoding, Accept, X-Requested-With"
|
||||
],
|
||||
"ETag": "W/\"ba683aab31c9f3ebc9855db1583849adbb759a0c22aa2cf2ab90a2e286671f97\"",
|
||||
"Last-Modified": "Thu, 10 Jun 2021 16:08:28 GMT",
|
||||
"X-OAuth-Scopes": "admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages",
|
||||
"X-Accepted-OAuth-Scopes": "repo",
|
||||
"X-GitHub-Media-Type": "unknown, github.v3",
|
||||
"X-RateLimit-Limit": "5000",
|
||||
"X-RateLimit-Remaining": "4979",
|
||||
"X-RateLimit-Reset": "1623344540",
|
||||
"X-RateLimit-Used": "21",
|
||||
"X-RateLimit-Resource": "core",
|
||||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
|
||||
"X-Frame-Options": "deny",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-XSS-Protection": "0",
|
||||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
|
||||
"Content-Security-Policy": "default-src 'none'",
|
||||
"X-GitHub-Request-Id": "C443:7AC1:26466E3:2745A45:60C238FD"
|
||||
}
|
||||
},
|
||||
"uuid": "3088c0ea-dfc0-425b-9c67-6692c4559048",
|
||||
"persistent": true,
|
||||
"insertionIndex": 6
|
||||
}
|
||||
Reference in New Issue
Block a user