Package net.kyori.indra.api.model
Interface ApplyTo
@Modifiable
public interface ApplyTo
A representation of services that can be configured for a specific forge site (GitHub, GitLab, etc).
ApplyTo instances are mutable and must not be shared.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanci()Get whether CI configuration will be applied.@NotNull ApplyToci(boolean ci) Set whether continuous integration configuration will be applied.static @NotNull ApplyTodefaults()Create a new instance with default values.default booleanissues()Get whether issues configuration will be applied.@NotNull ApplyToissues(boolean issues) Set whether issue tracker configuration will be applied.default booleanGet whether publishing configuration will be applied.@NotNull ApplyTopublishing(boolean publishing) Set whether publishing will be applied.default booleanscm()Get whether scm configuration will be applied.@NotNull ApplyToscm(boolean scm) Set whether scm will be applied.
-
Method Details
-
defaults
Create a new instance with default values.- Returns:
- the new instance
- Since:
- 2.0.0
-
ci
@Default default boolean ci()Get whether CI configuration will be applied.- Returns:
- whether to apply CI configuration
- Since:
- 1.2.0
-
ci
Set whether continuous integration configuration will be applied.- Parameters:
ci- whether to apply continuous integration configuration- Returns:
- this instance
- Since:
- 1.2.0
-
issues
@Default default boolean issues()Get whether issues configuration will be applied.- Returns:
- whether to apply issues configuration
- Since:
- 1.0.0
-
issues
Set whether issue tracker configuration will be applied.- Parameters:
issues- whether to apply issue tracker configuration- Returns:
- this instance
- Since:
- 1.0.0
-
scm
@Default default boolean scm()Get whether scm configuration will be applied.- Returns:
- whether to apply scm
- Since:
- 1.0.0
-
scm
Set whether scm will be applied.- Parameters:
scm- whether to apply scm- Returns:
- this instance
- Since:
- 1.0.0
-
publishing
@Default default boolean publishing()Get whether publishing configuration will be applied.- Returns:
- whether to apply publishing
- Since:
- 1.0.0
-
publishing
Set whether publishing will be applied.- Parameters:
publishing- whether to apply publishing- Returns:
- this instance
- Since:
- 1.0.0
-