Skip to content

Commit 89acb05

Browse files
committed
Run spotless and generate WireMock snapshots
1 parent 372a54d commit 89acb05

7 files changed

Lines changed: 4764 additions & 8 deletions

File tree

src/main/java/org/kohsuke/github/GHFork.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,16 @@
66
public enum GHFork {
77

88
/**
9-
* Search in the parent repository and in forks
10-
* with more stars than the parent repository.
9+
* Search in the parent repository and in forks with more stars than the parent repository.
1110
*
12-
* Forks with the same or fewer stars than
13-
* the parent repository are still ignored.
11+
* Forks with the same or fewer stars than the parent repository are still ignored.
1412
*/
1513
PARENT_AND_FORKS("true"),
1614

1715
/**
18-
* Search only in forks with more stars than
19-
* the parent repository.
16+
* Search only in forks with more stars than the parent repository.
2017
*
21-
* The parent repository is ignored. If no forks
22-
* have more stars than the parent, no results will be returned.
18+
* The parent repository is ignored. If no forks have more stars than the parent, no results will be returned.
2319
*/
2420
FORKS_ONLY("only"),
2521

src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContentWithForks/__files/search_code-2.json

Lines changed: 2286 additions & 0 deletions
Large diffs are not rendered by default.

src/test/resources/org/kohsuke/github/GitHubTest/wiremock/searchContentWithForks/__files/search_code-3.json

Lines changed: 2286 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"login": "sahansera",
3+
"id": 2032296,
4+
"node_id": "MDQ6VXNlcjIwMzIyOTY=",
5+
"avatar_url": "https://avatars.githubusercontent.com/u/2032296?v=4",
6+
"gravatar_id": "",
7+
"url": "https://api.github.com/users/sahansera",
8+
"html_url": "https://github.com/sahansera",
9+
"followers_url": "https://api.github.com/users/sahansera/followers",
10+
"following_url": "https://api.github.com/users/sahansera/following{/other_user}",
11+
"gists_url": "https://api.github.com/users/sahansera/gists{/gist_id}",
12+
"starred_url": "https://api.github.com/users/sahansera/starred{/owner}{/repo}",
13+
"subscriptions_url": "https://api.github.com/users/sahansera/subscriptions",
14+
"organizations_url": "https://api.github.com/users/sahansera/orgs",
15+
"repos_url": "https://api.github.com/users/sahansera/repos",
16+
"events_url": "https://api.github.com/users/sahansera/events{/privacy}",
17+
"received_events_url": "https://api.github.com/users/sahansera/received_events",
18+
"type": "User",
19+
"site_admin": true,
20+
"name": "Sahan Serasinghe",
21+
"company": "@github",
22+
"blog": "https://sahansera.dev",
23+
"location": "Adelaide, Australia",
24+
"email": "sahan.serasinghe@gmail.com",
25+
"hireable": null,
26+
"bio": null,
27+
"twitter_username": null,
28+
"public_repos": 79,
29+
"public_gists": 6,
30+
"followers": 26,
31+
"following": 19,
32+
"created_at": "2012-07-24T07:16:33Z",
33+
"updated_at": "2021-11-18T15:29:00Z",
34+
"private_gists": 7,
35+
"total_private_repos": 25,
36+
"owned_private_repos": 25,
37+
"disk_usage": 505415,
38+
"collaborators": 1,
39+
"two_factor_authentication": true,
40+
"plan": {
41+
"name": "pro",
42+
"space": 976562499,
43+
"collaborators": 0,
44+
"private_repos": 9999
45+
}
46+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"id": "b264f2c8-9780-4d39-8f59-39adb461e042",
3+
"name": "search_code",
4+
"request": {
5+
"url": "/search/code?sort=indexed&order=desc&q=addClass+language%3Ajs",
6+
"method": "GET",
7+
"headers": {
8+
"Accept": {
9+
"equalTo": "application/vnd.github.v3+json"
10+
}
11+
}
12+
},
13+
"response": {
14+
"status": 200,
15+
"bodyFileName": "search_code-2.json",
16+
"headers": {
17+
"Server": "GitHub.com",
18+
"Date": "Sun, 21 Nov 2021 13:04:45 GMT",
19+
"Content-Type": "application/json; charset=utf-8",
20+
"Cache-Control": "no-cache",
21+
"Vary": [
22+
"Accept, Authorization, Cookie, X-GitHub-OTP",
23+
"Accept-Encoding, Accept, X-Requested-With"
24+
],
25+
"X-OAuth-Scopes": "admin:org, delete_repo, repo, user",
26+
"X-Accepted-OAuth-Scopes": "",
27+
"github-authentication-token-expiration": "2022-01-30 03:21:12 UTC",
28+
"X-GitHub-Media-Type": "github.v3; format=json",
29+
"X-RateLimit-Limit": "30",
30+
"X-RateLimit-Remaining": "29",
31+
"X-RateLimit-Reset": "1637499943",
32+
"X-RateLimit-Used": "1",
33+
"X-RateLimit-Resource": "search",
34+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
35+
"X-Frame-Options": "deny",
36+
"X-Content-Type-Options": "nosniff",
37+
"X-XSS-Protection": "0",
38+
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
39+
"Content-Security-Policy": "default-src 'none'",
40+
"X-GitHub-Request-Id": "D5C0:1F74:CD3CA9:DC0F7D:619A43EA",
41+
"Link": "<https://api.github.com/search/code?sort=indexed&order=desc&q=addClass+language%3Ajs&page=2>; rel=\"next\", <https://api.github.com/search/code?sort=indexed&order=desc&q=addClass+language%3Ajs&page=34>; rel=\"last\""
42+
}
43+
},
44+
"uuid": "b264f2c8-9780-4d39-8f59-39adb461e042",
45+
"persistent": true,
46+
"insertionIndex": 2
47+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"id": "e8cbb690-9c42-4a75-83c8-65a3dc22c263",
3+
"name": "search_code",
4+
"request": {
5+
"url": "/search/code?sort=indexed&order=desc&q=addClass+language%3Ajs+fork%3Atrue",
6+
"method": "GET",
7+
"headers": {
8+
"Accept": {
9+
"equalTo": "application/vnd.github.v3+json"
10+
}
11+
}
12+
},
13+
"response": {
14+
"status": 200,
15+
"bodyFileName": "search_code-3.json",
16+
"headers": {
17+
"Server": "GitHub.com",
18+
"Date": "Sun, 21 Nov 2021 13:04:48 GMT",
19+
"Content-Type": "application/json; charset=utf-8",
20+
"Cache-Control": "no-cache",
21+
"Vary": [
22+
"Accept, Authorization, Cookie, X-GitHub-OTP",
23+
"Accept-Encoding, Accept, X-Requested-With"
24+
],
25+
"X-OAuth-Scopes": "admin:org, delete_repo, repo, user",
26+
"X-Accepted-OAuth-Scopes": "",
27+
"github-authentication-token-expiration": "2022-01-30 03:21:12 UTC",
28+
"X-GitHub-Media-Type": "github.v3; format=json",
29+
"X-RateLimit-Limit": "30",
30+
"X-RateLimit-Remaining": "28",
31+
"X-RateLimit-Reset": "1637499943",
32+
"X-RateLimit-Used": "2",
33+
"X-RateLimit-Resource": "search",
34+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
35+
"X-Frame-Options": "deny",
36+
"X-Content-Type-Options": "nosniff",
37+
"X-XSS-Protection": "0",
38+
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
39+
"Content-Security-Policy": "default-src 'none'",
40+
"X-GitHub-Request-Id": "D5C1:1F74:CD3D28:DC100B:619A43EE",
41+
"Link": "<https://api.github.com/search/code?sort=indexed&order=desc&q=addClass+language%3Ajs+fork%3Atrue&page=2>; rel=\"next\", <https://api.github.com/search/code?sort=indexed&order=desc&q=addClass+language%3Ajs+fork%3Atrue&page=34>; rel=\"last\""
42+
}
43+
},
44+
"uuid": "e8cbb690-9c42-4a75-83c8-65a3dc22c263",
45+
"persistent": true,
46+
"insertionIndex": 3
47+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "117d529c-d4aa-46ea-8b5b-c07ea58ee7be",
3+
"name": "user",
4+
"request": {
5+
"url": "/user",
6+
"method": "GET",
7+
"headers": {
8+
"Accept": {
9+
"equalTo": "application/vnd.github.v3+json"
10+
}
11+
}
12+
},
13+
"response": {
14+
"status": 200,
15+
"bodyFileName": "user-1.json",
16+
"headers": {
17+
"Server": "GitHub.com",
18+
"Date": "Sun, 21 Nov 2021 13:04:41 GMT",
19+
"Content-Type": "application/json; charset=utf-8",
20+
"Cache-Control": "private, max-age=60, s-maxage=60",
21+
"Vary": [
22+
"Accept, Authorization, Cookie, X-GitHub-OTP",
23+
"Accept-Encoding, Accept, X-Requested-With"
24+
],
25+
"ETag": "W/\"274b7a0391a4d8ec088bc09c2ea4493111a73618dc4f9b76977913c0187d8e4b\"",
26+
"Last-Modified": "Thu, 18 Nov 2021 15:29:00 GMT",
27+
"X-OAuth-Scopes": "admin:org, delete_repo, repo, user",
28+
"X-Accepted-OAuth-Scopes": "",
29+
"github-authentication-token-expiration": "2022-01-30 03:21:12 UTC",
30+
"X-GitHub-Media-Type": "github.v3; format=json",
31+
"X-RateLimit-Limit": "5000",
32+
"X-RateLimit-Remaining": "4793",
33+
"X-RateLimit-Reset": "1637502525",
34+
"X-RateLimit-Used": "207",
35+
"X-RateLimit-Resource": "core",
36+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
37+
"X-Frame-Options": "deny",
38+
"X-Content-Type-Options": "nosniff",
39+
"X-XSS-Protection": "0",
40+
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
41+
"Content-Security-Policy": "default-src 'none'",
42+
"X-GitHub-Request-Id": "D5BE:1F74:CD3C84:DC0F57:619A43E9"
43+
}
44+
},
45+
"uuid": "117d529c-d4aa-46ea-8b5b-c07ea58ee7be",
46+
"persistent": true,
47+
"insertionIndex": 1
48+
}

0 commit comments

Comments
 (0)