Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #345 from gsmet/github-api-1.308
Upgrade to Quarkus GitHub API 1.308.0
- Loading branch information
Showing
5 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
events/src/main/java/io/quarkiverse/githubapp/event/ProjectsV2Item.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters