Package io.quarkiverse.githubapp
Enum ConfigFile.Source
- java.lang.Object
-
- java.lang.Enum<ConfigFile.Source>
-
- io.quarkiverse.githubapp.ConfigFile.Source
-
- All Implemented Interfaces:
Serializable,Comparable<ConfigFile.Source>
- Enclosing class:
- ConfigFile
public static enum ConfigFile.Source extends Enum<ConfigFile.Source>
Which repository to extract a configuration file from.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CURRENT_REPOSITORYAlways retrieve the configuration file from the repository from which an event was sent.DEFAULTDefault 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_REPOSITORYSOURCE_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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigFile.SourcevalueOf(String name)Returns the enum constant of this type with the specified name.static ConfigFile.Source[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final ConfigFile.Source 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
public static final ConfigFile.Source 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
public static final ConfigFile.Source CURRENT_REPOSITORY
Always retrieve the configuration file from the repository from which an event was sent.
-
-
Method Detail
-
values
public static ConfigFile.Source[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConfigFile.Source c : ConfigFile.Source.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigFile.Source valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-