Skip to content

Commit 630078b

Browse files
committed
Test fixes for 1.x backport
1 parent cad279e commit 630078b

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
44

5+
import java.io.IOException;
6+
import java.net.URL;
7+
58
/**
69
* A Github App Installation Request.
710
*
@@ -19,6 +22,8 @@ public GHAppInstallationRequest() {
1922

2023
private GHUser requester;
2124

25+
private String htmlUrl;
26+
2227
/**
2328
* Gets the organization where the app was requested to be installed.
2429
*
@@ -39,4 +44,9 @@ public GHUser getRequester() {
3944
return requester;
4045
}
4146

47+
@Override
48+
public URL getHtmlUrl() throws IOException {
49+
return GitHubClient.parseURL(htmlUrl);
50+
}
51+
4252
}

src/main/resources/META-INF/native-image/org.kohsuke/github-api/reflect-config.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6284,6 +6284,36 @@
62846284
"allPublicClasses": true,
62856285
"allDeclaredClasses": true
62866286
},
6287+
{
6288+
"name": "org.kohsuke.github.GitHubAbuseLimitHandler$1",
6289+
"allPublicFields": true,
6290+
"allDeclaredFields": true,
6291+
"queryAllPublicConstructors": true,
6292+
"queryAllDeclaredConstructors": true,
6293+
"allPublicConstructors": true,
6294+
"allDeclaredConstructors": true,
6295+
"queryAllPublicMethods": true,
6296+
"queryAllDeclaredMethods": true,
6297+
"allPublicMethods": true,
6298+
"allDeclaredMethods": true,
6299+
"allPublicClasses": true,
6300+
"allDeclaredClasses": true
6301+
},
6302+
{
6303+
"name": "org.kohsuke.github.GitHubAbuseLimitHandler$2",
6304+
"allPublicFields": true,
6305+
"allDeclaredFields": true,
6306+
"queryAllPublicConstructors": true,
6307+
"queryAllDeclaredConstructors": true,
6308+
"allPublicConstructors": true,
6309+
"allDeclaredConstructors": true,
6310+
"queryAllPublicMethods": true,
6311+
"queryAllDeclaredMethods": true,
6312+
"allPublicMethods": true,
6313+
"allDeclaredMethods": true,
6314+
"allPublicClasses": true,
6315+
"allDeclaredClasses": true
6316+
},
62876317
{
62886318
"name": "org.kohsuke.github.GitHubBuilder",
62896319
"allPublicFields": true,

src/main/resources/META-INF/native-image/org.kohsuke/github-api/serialization-config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,12 @@
12591259
{
12601260
"name": "org.kohsuke.github.GitHub$AuthorizationRefreshGitHubWrapper"
12611261
},
1262+
{
1263+
"name": "org.kohsuke.github.GitHubAbuseLimitHandler$1"
1264+
},
1265+
{
1266+
"name": "org.kohsuke.github.GitHubAbuseLimitHandler$2"
1267+
},
12621268
{
12631269
"name": "org.kohsuke.github.GitHubBuilder"
12641270
},

src/test/resources/no-reflect-and-serialization-list

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ org.kohsuke.github.GitHub
1818
org.kohsuke.github.GitHub$DependentAuthorizationProvider
1919
org.kohsuke.github.GitHub$LoginLoadingUserAuthorizationProvider
2020
org.kohsuke.github.GitHubAbuseLimitHandler
21+
org.kohsuke.github.GitHubAbuseLimitHandler$1
22+
org.kohsuke.github.GitHubAbuseLimitHandler$2
2123
org.kohsuke.github.GitHubClient
2224
org.kohsuke.github.GitHubClient$BodyHandler
2325
org.kohsuke.github.GitHubClient$GHApiInfo

0 commit comments

Comments
 (0)