Enum ConfigFile.Source

    • Enum Constant Detail

      • 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 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 name
        NullPointerException - if the argument is null