Skip to content

Commit

Permalink
Merge pull request #345 from gsmet/github-api-1.308
Browse files Browse the repository at this point in the history
Upgrade to Quarkus GitHub API 1.308.0
  • Loading branch information
gsmet committed Aug 18, 2022
2 parents 1e7d872 + 59c9130 commit 1758dfc
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/includes/attributes.adoc
@@ -1,4 +1,4 @@
:quarkus-version: 2.11.1.Final
:quarkus-version: 2.11.2.Final
:quarkus-github-app-version: 1.10.2

:github-api-javadoc-root-url: https://github-api.kohsuke.org/apidocs/org/kohsuke/github
Expand Down
Expand Up @@ -11,6 +11,7 @@ public final class Actions {
public static final String ASSIGNED = "assigned";
public static final String CATEGORY_CHANGED = "category_changed";
public static final String COMPLETED = "completed";
public static final String CONVERTED = "converted";
public static final String CREATED = "created";
public static final String CLOSED = "closed";
public static final String DELETED = "deleted";
Expand All @@ -33,9 +34,11 @@ public final class Actions {
public static final String REMOVED = "removed";
public static final String RENAMED = "renamed";
public static final String REOPENED = "reopened";
public static final String REORDERED = "reordered";
public static final String REQUESTED_ACTION = "requested_action";
public static final String REQUESTED = "requested";
public static final String REREQUESTED = "rerequested";
public static final String RESTORED = "restored";
public static final String REVIEW_REQUESTED = "review_requested";
public static final String REVIEW_REQUEST_REMOVED = "review_request_removed";
public static final String SUBMITTED = "submitted";
Expand Down
@@ -0,0 +1,84 @@
package io.quarkiverse.githubapp.event;

import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.inject.Qualifier;

import org.kohsuke.github.GHEventPayload;

@Event(name = "projects_v2_item", payload = GHEventPayload.ProjectsV2Item.class)
@Target({ PARAMETER, TYPE })
@Retention(RUNTIME)
@Qualifier
public @interface ProjectsV2Item {

String value() default Actions.ALL;

@ProjectsV2Item(Archived.NAME)
@Target(PARAMETER)
@Retention(RUNTIME)
@Qualifier
public @interface Archived {

String NAME = Actions.ARCHIVED;
}

@ProjectsV2Item(Converted.NAME)
@Target(PARAMETER)
@Retention(RUNTIME)
@Qualifier
public @interface Converted {

String NAME = Actions.CONVERTED;
}

@ProjectsV2Item(Created.NAME)
@Target(PARAMETER)
@Retention(RUNTIME)
@Qualifier
public @interface Created {

String NAME = Actions.CREATED;
}

@ProjectsV2Item(Deleted.NAME)
@Target(PARAMETER)
@Retention(RUNTIME)
@Qualifier
public @interface Deleted {

String NAME = Actions.DELETED;
}

@ProjectsV2Item(Edited.NAME)
@Target(PARAMETER)
@Retention(RUNTIME)
@Qualifier
public @interface Edited {

String NAME = Actions.EDITED;
}

@ProjectsV2Item(Reordered.NAME)
@Target(PARAMETER)
@Retention(RUNTIME)
@Qualifier
public @interface Reordered {

String NAME = Actions.REORDERED;
}

@ProjectsV2Item(Restored.NAME)
@Target(PARAMETER)
@Retention(RUNTIME)
@Qualifier
public @interface Restored {

String NAME = Actions.RESTORED;
}
}
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -28,7 +28,7 @@
<jandex-plugin.version>1.2.3</jandex-plugin.version>
<assertj.version>3.23.1</assertj.version>

<quarkus-github-api.version>1.307.0</quarkus-github-api.version>
<quarkus-github-api.version>1.308.0</quarkus-github-api.version>
<airline.version>2.9.0</airline.version>
<okhttp-eventsource.version>2.7.0</okhttp-eventsource.version>

Expand Down
@@ -1,6 +1,5 @@
package io.quarkiverse.githubapp.testing.dsl;

import io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient;
import org.kohsuke.github.GHIssue;
import org.kohsuke.github.GHIssueComment;
import org.kohsuke.github.GHObject;
Expand All @@ -9,6 +8,8 @@
import org.kohsuke.github.GHTeam;
import org.kohsuke.github.GitHub;

import io.smallrye.graphql.client.dynamic.api.DynamicGraphQLClient;

public interface GitHubMockContext {

GitHub client(long id);
Expand Down

0 comments on commit 1758dfc

Please sign in to comment.