Package io.github.cdklabs.projen.github
Class PullRequestBackport.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.PullRequestBackport.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PullRequestBackport>
- Enclosing class:
- PullRequestBackport
@Stability(Experimental) public static final class PullRequestBackport.Builder extends Object implements software.amazon.jsii.Builder<PullRequestBackport>
(experimental) A fluent builder forPullRequestBackport.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PullRequestBackport.BuilderautoApproveBackport(Boolean autoApproveBackport)(experimental) Automatically approve backport PRs if the 'auto approve' workflow is available.PullRequestBackport.BuilderbackportBranchNamePrefix(String backportBranchNamePrefix)(experimental) The prefix used to name backport branches.PullRequestBackport.BuilderbackportPrLabels(List<String> backportPrLabels)(experimental) The labels added to the created backport PR.PullRequestBackport.Builderbranches(List<String> branches)(experimental) List of branches that can be a target for backports.PullRequestBackportbuild()static PullRequestBackport.Buildercreate(software.constructs.IConstruct scope)PullRequestBackport.BuildercreateWithConflicts(Boolean createWithConflicts)(experimental) Should this created Backport PRs with conflicts.PullRequestBackport.BuilderlabelPrefix(String labelPrefix)(experimental) The prefix used to detect PRs that should be backported.PullRequestBackport.BuilderworkflowName(String workflowName)(experimental) The name of the workflow.
-
-
-
Method Detail
-
create
@Stability(Experimental) public static PullRequestBackport.Builder create(software.constructs.IConstruct scope)
- Parameters:
scope- This parameter is required.- Returns:
- a new instance of
PullRequestBackport.Builder.
-
autoApproveBackport
@Stability(Experimental) public PullRequestBackport.Builder autoApproveBackport(Boolean autoApproveBackport)
(experimental) Automatically approve backport PRs if the 'auto approve' workflow is available.Default: true
- Parameters:
autoApproveBackport- Automatically approve backport PRs if the 'auto approve' workflow is available. This parameter is required.- Returns:
this
-
backportBranchNamePrefix
@Stability(Experimental) public PullRequestBackport.Builder backportBranchNamePrefix(String backportBranchNamePrefix)
(experimental) The prefix used to name backport branches.Make sure to include a separator at the end like
/or_.Default: "backport/"
- Parameters:
backportBranchNamePrefix- The prefix used to name backport branches. This parameter is required.- Returns:
this
-
backportPrLabels
@Stability(Experimental) public PullRequestBackport.Builder backportPrLabels(List<String> backportPrLabels)
(experimental) The labels added to the created backport PR.Default: ["backport"]
- Parameters:
backportPrLabels- The labels added to the created backport PR. This parameter is required.- Returns:
this
-
branches
@Stability(Experimental) public PullRequestBackport.Builder branches(List<String> branches)
(experimental) List of branches that can be a target for backports.Default: - allow backports to all release branches
- Parameters:
branches- List of branches that can be a target for backports. This parameter is required.- Returns:
this
-
createWithConflicts
@Stability(Experimental) public PullRequestBackport.Builder createWithConflicts(Boolean createWithConflicts)
(experimental) Should this created Backport PRs with conflicts.Conflicts will have to be resolved manually, but a PR is always created. Set to
falseto prevent the backport PR from being created if there are conflicts.Default: true
- Parameters:
createWithConflicts- Should this created Backport PRs with conflicts. This parameter is required.- Returns:
this
-
labelPrefix
@Stability(Experimental) public PullRequestBackport.Builder labelPrefix(String labelPrefix)
(experimental) The prefix used to detect PRs that should be backported.Default: "backport-to-"
- Parameters:
labelPrefix- The prefix used to detect PRs that should be backported. This parameter is required.- Returns:
this
-
workflowName
@Stability(Experimental) public PullRequestBackport.Builder workflowName(String workflowName)
(experimental) The name of the workflow.Default: "backport"
- Parameters:
workflowName- The name of the workflow. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public PullRequestBackport build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PullRequestBackport>- Returns:
- a newly built instance of
PullRequestBackport.
-
-