Package io.github.cdklabs.projen.github
Class MergifyQueue.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.MergifyQueue.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MergifyQueue>
- Enclosing interface:
- MergifyQueue
@Stability(Experimental) public static final class MergifyQueue.Builder extends Object implements software.amazon.jsii.Builder<MergifyQueue>
A builder forMergifyQueue
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MergifyQueuebuild()Builds the configured instance.MergifyQueue.Builderconditions(List<? extends Object> conditions)Sets the value ofMergifyQueue.getConditions()MergifyQueue.BuildermergeMethod(String mergeMethod)Sets the value ofMergifyQueue.getMergeMethod()MergifyQueue.Buildername(String name)Sets the value ofMergifyQueue.getName()MergifyQueue.BuilderupdateMethod(String updateMethod)Sets the value ofMergifyQueue.getUpdateMethod()
-
-
-
Method Detail
-
conditions
@Stability(Experimental) public MergifyQueue.Builder conditions(List<? extends Object> conditions)
Sets the value ofMergifyQueue.getConditions()- Parameters:
conditions- A list of Conditions string that must match against the pull request for the pull request to be added to the queue. This parameter is required.- Returns:
this
-
name
@Stability(Experimental) public MergifyQueue.Builder name(String name)
Sets the value ofMergifyQueue.getName()- Parameters:
name- The name of the queue. This parameter is required.- Returns:
this
-
mergeMethod
@Stability(Experimental) public MergifyQueue.Builder mergeMethod(String mergeMethod)
Sets the value ofMergifyQueue.getMergeMethod()- Parameters:
mergeMethod- Merge method to use. Possible values aremerge,squash,rebaseorfast-forward.fast-forwardis not supported on queues withspeculative_checks> 1,batch_size> 1, or withallow_inplace_checksset to false.- Returns:
this
-
updateMethod
@Stability(Experimental) public MergifyQueue.Builder updateMethod(String updateMethod)
Sets the value ofMergifyQueue.getUpdateMethod()- Parameters:
updateMethod- Method to use to update the pull request with its base branch when the speculative check is done in-place. Possible values:mergeto merge the base branch into the pull request.rebaseto rebase the pull request against its base branch.
Note that the
rebasemethod has some drawbacks, see Mergify docs for details.- Returns:
this
-
build
@Stability(Experimental) public MergifyQueue build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MergifyQueue>- Returns:
- a new instance of
MergifyQueue - Throws:
NullPointerException- if any required attribute was not provided
-
-