Class GitHubPRBranchRestriction
- java.lang.Object
-
- org.jenkinsci.plugins.github.pullrequest.restrictions.GitHubPRBranchRestriction
-
- All Implemented Interfaces:
Describable<GitHubPRBranchRestriction>
public class GitHubPRBranchRestriction extends Object implements Describable<GitHubPRBranchRestriction>
Restriction by target branch (one or many).- Author:
- Kanstantsin Shautsou
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitHubPRBranchRestriction.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description GitHubPRBranchRestriction(String targetBranch)
GitHubPRBranchRestriction(List<String> targetBranches)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptor<GitHubPRBranchRestriction>
getDescriptor()
String
getTargetBranch()
Set<String>
getTargetBranchList()
boolean
isBranchBuildAllowed(org.kohsuke.github.GHPullRequest remotePR)
-
-
-
Method Detail
-
isBranchBuildAllowed
public boolean isBranchBuildAllowed(org.kohsuke.github.GHPullRequest remotePR)
-
getTargetBranch
public String getTargetBranch()
-
getDescriptor
public Descriptor<GitHubPRBranchRestriction> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<GitHubPRBranchRestriction>
-
-