Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9fa45c

Browse filesBrowse files
authored
Merge pull request hub4j#1939 from bitwiseman/feature/ci-site
Re-enable site for v2.x
2 parents 87805f6 + 9419cd9 commit a9fa45c
Copy full SHA for a9fa45c

File tree

Expand file treeCollapse file tree

175 files changed

+1699
-33
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

175 files changed

+1699
-33
lines changed

‎.github/workflows/maven-build.yml

Copy file name to clipboardExpand all lines: .github/workflows/maven-build.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ jobs:
5757
- name: Maven Site
5858
env:
5959
MAVEN_OPTS: ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
60-
run: mvn -B clean site -D enable-ci --file pom.xml
60+
# running install site seems to more closely imitate real site deployment,
61+
# more likely to prevent failed deployment
62+
run: mvn -B clean install site -DskipTests --file pom.xml
6163
test:
6264
name: test (${{ matrix.os }}, Java ${{ matrix.java }})
6365
# Does not require build output, but orders execution to prevent launching test workflows when simple build fails

‎.github/workflows/publish_release_branch.yml

Copy file name to clipboardExpand all lines: .github/workflows/publish_release_branch.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Maven Install and Site with Code Coverage
2424
env:
2525
MAVEN_OPTS: ${{ env.JAVA_11_PLUS_MAVEN_OPTS }}
26-
run: mvn -B clean install -D enable-ci --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED"
26+
run: mvn -B clean install site -D enable-ci --file pom.xml "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED"
2727

2828
- uses: actions/upload-artifact@v4
2929
with:

‎pom.xml

Copy file name to clipboardExpand all lines: pom.xml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,9 @@
202202
<plugin>
203203
<groupId>org.apache.maven.plugins</groupId>
204204
<artifactId>maven-javadoc-plugin</artifactId>
205-
<version>3.8.0</version>
205+
<version>3.10.0</version>
206206
<configuration>
207+
<source>11</source>
207208
<release>11</release>
208209
<failOnWarnings>true</failOnWarnings>
209210
<doclint>all</doclint>
@@ -279,6 +280,7 @@
279280
<configuration>
280281
<source>11</source>
281282
<target>11</target>
283+
<release>11</release>
282284
<annotationProcessorPaths>
283285
<annotationProcessorPath>
284286
<groupId>org.jenkins-ci</groupId>

‎src/main/java/org/kohsuke/github/AbstractBuilder.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/AbstractBuilder.java
+5-11Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import javax.annotation.CheckForNull;
88
import javax.annotation.Nonnull;
99

10-
// TODO: Auto-generated Javadoc
1110
/**
1211
* An abstract data object builder/updater.
1312
*
@@ -42,7 +41,7 @@
4241
* Intermediate return type for this builder returned by calls to {@link #with(String, Object)}. If {@link S}
4342
* the same as {@link R}, this builder will commit changes after each call to {@link #with(String, Object)}.
4443
*/
45-
abstract class AbstractBuilder<R, S> extends GitHubInteractiveObject {
44+
abstract class AbstractBuilder<R, S> extends GitHubInteractiveObject implements GitHubRequestBuilderDone<R> {
4645

4746
@Nonnull
4847
private final Class<R> returnType;
@@ -58,9 +57,9 @@ abstract class AbstractBuilder<R, S> extends GitHubInteractiveObject {
5857

5958
// TODO: Not sure how update-in-place behavior should be controlled
6059
// However, it certainly can be controlled dynamically down to the instance level or inherited for all children of
61-
// some
60+
// some connection.
61+
6262
/** The update in place. */
63-
// connection.
6463
protected boolean updateInPlace;
6564

6665
/**
@@ -96,14 +95,9 @@ protected AbstractBuilder(@Nonnull Class<R> finalReturnType,
9695
}
9796

9897
/**
99-
* Finishes an update, committing changes.
100-
*
101-
* This method may update-in-place or not. Either way it returns the resulting instance.
102-
*
103-
* @return an instance with updated current data
104-
* @throws IOException
105-
* if there is an I/O Exception
98+
* {@inheritDoc}
10699
*/
100+
@Override
107101
@Nonnull
108102
@BetaApi
109103
public R done() throws IOException {

‎src/main/java/org/kohsuke/github/GHApp.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHApp.java
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
*/
2121
public class GHApp extends GHObject {
2222

23+
/**
24+
* Create default GHApp instance
25+
*/
26+
public GHApp() {
27+
}
28+
2329
private GHUser owner;
2430
private String name;
2531
private String slug;

‎src/main/java/org/kohsuke/github/GHAppFromManifest.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHAppFromManifest.java
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
*/
99
public class GHAppFromManifest extends GHApp {
1010

11+
/**
12+
* Create default GHAppFromManifest instance
13+
*/
14+
public GHAppFromManifest() {
15+
}
16+
1117
private String clientId;
1218
private String clientSecret;
1319
private String webhookSecret;

‎src/main/java/org/kohsuke/github/GHAppInstallation.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHAppInstallation.java
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
* @see GHApp#getInstallationByUser(String) GHApp#getInstallationByUser(String)
2525
*/
2626
public class GHAppInstallation extends GHObject {
27+
28+
/**
29+
* Create default GHAppInstallation instance
30+
*/
31+
public GHAppInstallation() {
32+
}
33+
2734
private GHUser account;
2835

2936
@JsonProperty("access_tokens_url")

‎src/main/java/org/kohsuke/github/GHAppInstallationToken.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHAppInstallationToken.java
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
* @see GHAppInstallation#createToken() GHAppInstallation#createToken()
1212
*/
1313
public class GHAppInstallationToken extends GitHubInteractiveObject {
14+
15+
/**
16+
* Create default GHAppInstallationToken instance
17+
*/
18+
public GHAppInstallationToken() {
19+
}
20+
1421
private String token;
1522

1623
/** The expires at. */

‎src/main/java/org/kohsuke/github/GHArtifact.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHArtifact.java
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
*/
2121
public class GHArtifact extends GHObject {
2222

23+
/**
24+
* Create default GHArtifact instance
25+
*/
26+
public GHArtifact() {
27+
}
28+
2329
// Not provided by the API.
2430
@JsonIgnore
2531
private GHRepository owner;

‎src/main/java/org/kohsuke/github/GHAsset.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHAsset.java
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
*/
1313
public class GHAsset extends GHObject {
1414

15+
/**
16+
* Create default GHAsset instance
17+
*/
18+
public GHAsset() {
19+
}
20+
1521
/** The owner. */
1622
GHRepository owner;
1723
private String name;

‎src/main/java/org/kohsuke/github/GHAuthorization.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHAuthorization.java
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
*/
1818
public class GHAuthorization extends GHObject {
1919

20+
/**
21+
* Create default GHAuthorization instance
22+
*/
23+
public GHAuthorization() {
24+
}
25+
2026
/** The Constant USER. */
2127
public static final String USER = "user";
2228

‎src/main/java/org/kohsuke/github/GHBlob.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHBlob.java
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
* @see <a href="https://developer.github.com/v3/git/blobs/#get-a-blob">Get a blob</a>
1717
*/
1818
public class GHBlob {
19+
20+
/**
21+
* Create default GHBlob instance
22+
*/
23+
public GHBlob() {
24+
}
25+
1926
private String content, encoding, url, sha;
2027
private long size;
2128

‎src/main/java/org/kohsuke/github/GHBranch.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHBranch.java
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ public class GHBranch extends GitHubInteractiveObject {
4848
*/
4949
public static class Commit {
5050

51+
/**
52+
* Create default Commit instance
53+
*/
54+
public Commit() {
55+
}
56+
5157
/** The sha. */
5258
String sha;
5359

‎src/main/java/org/kohsuke/github/GHBranchProtection.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHBranchProtection.java
+84Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
"URF_UNREAD_FIELD" },
2020
justification = "JSON API")
2121
public class GHBranchProtection extends GitHubInteractiveObject {
22+
23+
/**
24+
* Create default GHBranchProtection instance
25+
*/
26+
public GHBranchProtection() {
27+
}
28+
2229
private static final String REQUIRE_SIGNATURES_URI = "/required_signatures";
2330

2431
@JsonProperty
@@ -204,6 +211,13 @@ private Requester requester() {
204211
* The type AllowDeletions.
205212
*/
206213
public static class AllowDeletions {
214+
215+
/**
216+
* Create default AllowDeletions instance
217+
*/
218+
public AllowDeletions() {
219+
}
220+
207221
@JsonProperty
208222
private boolean enabled;
209223

@@ -270,6 +284,13 @@ public Integer getAppId() {
270284
* The type AllowForcePushes.
271285
*/
272286
public static class AllowForcePushes {
287+
288+
/**
289+
* Create default AllowForcePushes instance
290+
*/
291+
public AllowForcePushes() {
292+
}
293+
273294
@JsonProperty
274295
private boolean enabled;
275296

@@ -287,6 +308,13 @@ public boolean isEnabled() {
287308
* The type AllowForkSyncing.
288309
*/
289310
public static class AllowForkSyncing {
311+
312+
/**
313+
* Create default AllowForkSyncing instance
314+
*/
315+
public AllowForkSyncing() {
316+
}
317+
290318
@JsonProperty
291319
private boolean enabled;
292320

@@ -304,6 +332,13 @@ public boolean isEnabled() {
304332
* The type BlockCreations.
305333
*/
306334
public static class BlockCreations {
335+
336+
/**
337+
* Create default BlockCreations instance
338+
*/
339+
public BlockCreations() {
340+
}
341+
307342
@JsonProperty
308343
private boolean enabled;
309344

@@ -321,6 +356,13 @@ public boolean isEnabled() {
321356
* The type EnforceAdmins.
322357
*/
323358
public static class EnforceAdmins {
359+
360+
/**
361+
* Create default EnforceAdmins instance
362+
*/
363+
public EnforceAdmins() {
364+
}
365+
324366
@JsonProperty
325367
private boolean enabled;
326368

@@ -350,6 +392,13 @@ public boolean isEnabled() {
350392
* The type LockBranch.
351393
*/
352394
public static class LockBranch {
395+
396+
/**
397+
* Create default LockBranch instance
398+
*/
399+
public LockBranch() {
400+
}
401+
353402
@JsonProperty
354403
private boolean enabled;
355404

@@ -367,6 +416,13 @@ public boolean isEnabled() {
367416
* The type RequiredConversationResolution.
368417
*/
369418
public static class RequiredConversationResolution {
419+
420+
/**
421+
* Create default RequiredConversationResolution instance
422+
*/
423+
public RequiredConversationResolution() {
424+
}
425+
370426
@JsonProperty
371427
private boolean enabled;
372428

@@ -384,6 +440,13 @@ public boolean isEnabled() {
384440
* The type RequiredLinearHistory.
385441
*/
386442
public static class RequiredLinearHistory {
443+
444+
/**
445+
* Create default RequiredLinearHistory instance
446+
*/
447+
public RequiredLinearHistory() {
448+
}
449+
387450
@JsonProperty
388451
private boolean enabled;
389452

@@ -401,6 +464,13 @@ public boolean isEnabled() {
401464
* The type RequiredReviews.
402465
*/
403466
public static class RequiredReviews {
467+
468+
/**
469+
* Create default RequiredReviews instance
470+
*/
471+
public RequiredReviews() {
472+
}
473+
404474
@JsonProperty("dismissal_restrictions")
405475
private Restrictions dismissalRestriction;
406476

@@ -504,6 +574,13 @@ public boolean isEnabled() {
504574
* The type RequiredStatusChecks.
505575
*/
506576
public static class RequiredStatusChecks {
577+
578+
/**
579+
* Create default RequiredStatusChecks instance
580+
*/
581+
public RequiredStatusChecks() {
582+
}
583+
507584
@JsonProperty
508585
private Collection<String> contexts;
509586

@@ -557,6 +634,13 @@ public boolean isRequiresBranchUpToDate() {
557634
* The type Restrictions.
558635
*/
559636
public static class Restrictions {
637+
638+
/**
639+
* Create default Restrictions instance
640+
*/
641+
public Restrictions() {
642+
}
643+
560644
@JsonProperty
561645
private Collection<GHTeam> teams;
562646

‎src/main/java/org/kohsuke/github/GHBranchSync.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHBranchSync.java
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
*/
88
public class GHBranchSync extends GitHubInteractiveObject {
99

10+
/**
11+
* Create default GHBranchSync instance
12+
*/
13+
public GHBranchSync() {
14+
}
15+
1016
/**
1117
* The Repository that this branch is in.
1218
*/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.