Package io.quarkiverse.githubapp
Enum Class ConfigFile.Source
- All Implemented Interfaces:
Serializable,Comparable<ConfigFile.Source>,Constable
- Enclosing class:
- ConfigFile
Which repository to extract a configuration file from.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways retrieve the configuration file from the repository from which an event was sent.Default behavior: Ifquarkus.github-app.read-config-files-from-source-repositoryis unset or set tofalse, behaves asCURRENT_REPOSITORYIfquarkus.github-app.read-config-files-from-source-repositoryis set totrue, behaves asSOURCE_REPOSITORYAlways retrieve the configuration file from the "source" (non-fork) repository; in the case of forks, the configuration file living in the fork will be ignored. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigFile.SourceReturns the enum constant of this class with the specified name.static ConfigFile.Source[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default behavior:- If
quarkus.github-app.read-config-files-from-source-repositoryis unset or set tofalse, behaves asCURRENT_REPOSITORY - If
quarkus.github-app.read-config-files-from-source-repositoryis set totrue, behaves asSOURCE_REPOSITORY
- If
-
SOURCE_REPOSITORY
Always retrieve the configuration file from the "source" (non-fork) repository; in the case of forks, the configuration file living in the fork will be ignored. -
CURRENT_REPOSITORY
Always retrieve the configuration file from the repository from which an event was sent.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-