Enum Class ConfigFile.Source

java.lang.Object
java.lang.Enum<ConfigFile.Source>
io.quarkiverse.githubapp.ConfigFile.Source
All Implemented Interfaces:
Serializable, Comparable<ConfigFile.Source>, Constable
Enclosing class:
ConfigFile

public static enum ConfigFile.Source extends Enum<ConfigFile.Source>
Which repository to extract a configuration file from.
  • Enum Constant Details

    • DEFAULT

      public static final ConfigFile.Source DEFAULT
      Default behavior:
      • If quarkus.github-app.read-config-files-from-source-repository is unset or set to false, behaves as CURRENT_REPOSITORY
      • If quarkus.github-app.read-config-files-from-source-repository is set to true, behaves as SOURCE_REPOSITORY
    • 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 Details

    • values

      public static ConfigFile.Source[] 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

      public static ConfigFile.Source valueOf(String name)
      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 name
      NullPointerException - if the argument is null