Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
<artifactId>commons-io</artifactId>
<version>2.16.1</version>
</dependency>
<dependency>
<groupId>community.kotlin.conrib</groupId>
<artifactId>github-api</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/kohsuke/github/AbstractBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import community.kotlin.conrib.github.GitHubRequestBuilderDone;

/**
* An abstract data object builder/updater.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
import java.io.StringWriter;
import java.util.Optional;
import java.util.logging.Logger;
import community.kotlin.conrib.github.GHException;
import community.kotlin.conrib.github.GHIOException;
import community.kotlin.conrib.github.GHNotExternallyManagedEnterpriseException;
import community.kotlin.conrib.github.GHTeamCannotBeExternallyManagedException;
import community.kotlin.conrib.github.HttpException;

/**
* Utility class for helping with operations for enterprise managed resources.
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/kohsuke/github/GHApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import community.kotlin.conrib.github.GHEvent;

// TODO: Auto-generated Javadoc
/**
Expand All @@ -19,7 +20,8 @@
* @author Paulo Miguel Almeida
* @see GitHub#getApp() GitHub#getApp()
*/
public class GHApp extends GHObject {
public class GHApp extends GHObject
implements community.kotlin.conrib.github.GHApp {

private String description;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import community.kotlin.conrib.github.GHPermissionType;

// TODO: Auto-generated Javadoc
/**
Expand All @@ -12,7 +13,8 @@
* @author Paulo Miguel Almeida
* @see GHAppInstallation#createToken() GHAppInstallation#createToken()
*/
public class GHAppCreateTokenBuilder extends GitHubInteractiveObject {
public class GHAppCreateTokenBuilder extends GitHubInteractiveObject
implements community.kotlin.conrib.github.GHAppCreateTokenBuilder {

private final String apiUrlTail;
/** The builder. */
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHAppFromManifest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* @author Daniel Baur
* @see GitHub#createAppFromManifest(String)
*/
public class GHAppFromManifest extends GHApp {
public class GHAppFromManifest extends GHApp
implements community.kotlin.conrib.github.GHAppFromManifest {

private String clientId;

Expand Down
7 changes: 6 additions & 1 deletion src/main/java/org/kohsuke/github/GHAppInstallation.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import community.kotlin.conrib.github.GHEvent;
import community.kotlin.conrib.github.GHPermissionType;
import community.kotlin.conrib.github.GHRepositorySelection;
import community.kotlin.conrib.github.GHTargetType;

// TODO: Auto-generated Javadoc
/**
Expand All @@ -25,7 +29,8 @@
* @see GHApp#getInstallationByRepository(String, String) GHApp#getInstallationByRepository(String, String)
* @see GHApp#getInstallationByUser(String) GHApp#getInstallationByUser(String)
*/
public class GHAppInstallation extends GHObject {
public class GHAppInstallation extends GHObject
implements community.kotlin.conrib.github.GHAppInstallation {

private static class GHAppInstallationRepositoryResult extends SearchResult<GHRepository> {
private GHRepository[] repositories;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
* @author Anuj Hydrabadi
* @see GHApp#listInstallationRequests() GHApp#listInstallationRequests()
*/
public class GHAppInstallationRequest extends GHObject {
public class GHAppInstallationRequest extends GHObject
implements community.kotlin.conrib.github.GHAppInstallationRequest {
private GHOrganization account;

private GHUser requester;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/kohsuke/github/GHAppInstallationToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.time.Instant;
import java.util.*;
import community.kotlin.conrib.github.GHRepositorySelection;

// TODO: Auto-generated Javadoc
/**
Expand All @@ -12,7 +13,8 @@
* @author Paulo Miguel Almeida
* @see GHAppInstallation#createToken() GHAppInstallation#createToken()
*/
public class GHAppInstallationToken extends GitHubInteractiveObject {
public class GHAppInstallationToken extends GitHubInteractiveObject
implements community.kotlin.conrib.github.GHAppInstallationToken {

private Map<String, String> permissions;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHArtifact.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
*
* @author Guillaume Smet
*/
public class GHArtifact extends GHObject {
public class GHArtifact extends GHObject
implements community.kotlin.conrib.github.GHArtifact {

private String archiveDownloadUrl;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHAsset.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
*
* @see GHRelease#getAssets() GHRelease#getAssets()
*/
public class GHAsset extends GHObject {
public class GHAsset extends GHObject
implements community.kotlin.conrib.github.GHAsset {

/**
* Wrap gh asset [ ].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
*
* @see GitHub#getInstallation() GitHub#getAuthenticatedAppInstallation()
*/
public class GHAuthenticatedAppInstallation extends GitHubInteractiveObject {
public class GHAuthenticatedAppInstallation extends GitHubInteractiveObject
implements community.kotlin.conrib.github.GHAuthenticatedAppInstallation {

private static class GHAuthenticatedAppInstallationRepositoryResult extends SearchResult<GHRepository> {
private GHRepository[] repositories;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHAuthorization.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
* @see GitHub#createToken(Collection, String, String) GitHub#createToken(Collection, String, String)
* @see <a href="http://developer.github.com/v3/oauth/#create-a-new-authorization">API documentation</a>
*/
public class GHAuthorization extends GHObject {
public class GHAuthorization extends GHObject
implements community.kotlin.conrib.github.GHAuthorization {

@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD" },
justification = "JSON API")
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHAutolink.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
* @see GHRepository#listAutolinks() GHRepository#listAutolinks()
* @see <a href="https://docs.github.com/en/rest/repos/autolinks">Repository autolinks API</a>
*/
public class GHAutolink {
public class GHAutolink
implements community.kotlin.conrib.github.GHAutolink {

private int id;
private boolean isAlphanumeric;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHAutolinkBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
* @see GHRepository#createAutolink()
* @see GHAutolink
*/
public class GHAutolinkBuilder {
public class GHAutolinkBuilder
implements community.kotlin.conrib.github.GHAutolinkBuilder {

private Boolean isAlphanumeric;
private String keyPrefix;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHBlob.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
* @see GHRepository#getBlob(String) GHRepository#getBlob(String)
* @see <a href="https://developer.github.com/v3/git/blobs/#get-a-blob">Get a blob</a>
*/
public class GHBlob {
public class GHBlob
implements community.kotlin.conrib.github.GHBlob {

private String content, encoding, url, sha;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHBlobBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
/**
* Builder pattern for creating a new blob. Based on https://developer.github.com/v3/git/blobs/#create-a-blob
*/
public class GHBlobBuilder {
public class GHBlobBuilder
implements community.kotlin.conrib.github.GHBlobBuilder {
private final GHRepository repo;
private final Requester req;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHBranch.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD",
"URF_UNREAD_FIELD" },
justification = "JSON API")
public class GHBranch extends GitHubInteractiveObject {
public class GHBranch extends GitHubInteractiveObject
implements community.kotlin.conrib.github.GHBranch {
/**
* The type Commit.
*/
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHBranchProtection.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD",
"URF_UNREAD_FIELD" },
justification = "JSON API")
public class GHBranchProtection extends GitHubInteractiveObject {
public class GHBranchProtection extends GitHubInteractiveObject
implements community.kotlin.conrib.github.GHBranchProtection {

/**
* The type AllowDeletions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD",
"URF_UNREAD_FIELD" },
justification = "JSON API")
public class GHBranchProtectionBuilder {
public class GHBranchProtectionBuilder
implements community.kotlin.conrib.github.GHBranchProtectionBuilder {
private static class Restrictions {
private Set<String> teams = new HashSet<String>();
private Set<String> users = new HashSet<String>();
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHBranchSync.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
/**
* The type Gh branch sync.
*/
public class GHBranchSync extends GitHubInteractiveObject {
public class GHBranchSync extends GitHubInteractiveObject
implements community.kotlin.conrib.github.GHBranchSync {

/**
* The base branch.
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHCheckRun.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*/
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "URF_UNREAD_FIELD" },
justification = "JSON API")
public class GHCheckRun extends GHObject {
public class GHCheckRun extends GHObject
implements community.kotlin.conrib.github.GHCheckRun {

/**
* The Enum AnnotationLevel.
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/kohsuke/github/GHCheckRunBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import community.kotlin.conrib.github.GHException;

// TODO: Auto-generated Javadoc
/**
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/kohsuke/github/GHCheckSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.util.Collections;
import java.util.Date;
import java.util.List;
import community.kotlin.conrib.github.GHEvent;

// TODO: Auto-generated Javadoc
/**
Expand All @@ -20,7 +21,8 @@
*/
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "URF_UNREAD_FIELD" },
justification = "JSON API")
public class GHCheckSuite extends GHObject {
public class GHCheckSuite extends GHObject
implements community.kotlin.conrib.github.GHCheckSuite {

/**
* The Class HeadCommit.
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHCodeownersError.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
*
* @author Michael Grant
*/
public class GHCodeownersError {
public class GHCodeownersError
implements community.kotlin.conrib.github.GHCodeownersError {

private String kind, source, suggestion, message, path;

Expand Down
46 changes: 0 additions & 46 deletions src/main/java/org/kohsuke/github/GHCommentAuthorAssociation.java

This file was deleted.

4 changes: 3 additions & 1 deletion src/main/java/org/kohsuke/github/GHCommit.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.util.Collections;
import java.util.Date;
import java.util.List;
import community.kotlin.conrib.github.GHException;

// TODO: Auto-generated Javadoc
/**
Expand All @@ -21,7 +22,8 @@
* @see GHCommitComment#getCommit() GHCommitComment#getCommit()
*/
@SuppressFBWarnings(value = { "NP_UNWRITTEN_FIELD", "UWF_UNWRITTEN_FIELD" }, justification = "JSON API")
public class GHCommit {
public class GHCommit
implements community.kotlin.conrib.github.GHCommit {

/**
* A file that was modified.
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHCommitBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
/**
* Builder pattern for creating a new commit. Based on https://developer.github.com/v3/git/commits/#create-a-commit
*/
public class GHCommitBuilder {
public class GHCommitBuilder
implements community.kotlin.conrib.github.GHCommitBuilder {
private static final class UserInfo {
private final String date;
private final String email;
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/org/kohsuke/github/GHCommitComment.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import java.io.IOException;
import java.net.URL;
import community.kotlin.conrib.github.Reactable;
import community.kotlin.conrib.github.ReactionContent;

// TODO: Auto-generated Javadoc
/**
Expand All @@ -17,7 +19,9 @@
*/
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
justification = "JSON API")
public class GHCommitComment extends GHObject implements Reactable {
public class GHCommitComment extends GHObject
implements Reactable,
community.kotlin.conrib.github.GHCommitComment {

private GHRepository owner;

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/GHCommitPointer.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
*
* @author Kohsuke Kawaguchi
*/
public class GHCommitPointer {
public class GHCommitPointer
implements community.kotlin.conrib.github.GHCommitPointer {

private String ref, sha, label;

Expand Down
Loading
Loading