Class GitHubPRNumber
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitHubPREvent>
-
- org.jenkinsci.plugins.github.pullrequest.events.GitHubPREvent
-
- org.jenkinsci.plugins.github.pullrequest.events.impl.GitHubPRNumber
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GitHubPREvent>
public class GitHubPRNumber extends GitHubPREvent
Check that PR number #isMatch() to event configured number. When this happen #isSkip() defines whether PR should be skipped or trigger.- Author:
- Kanstantsin Shautsou
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitHubPRNumber.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description GitHubPRNumber(Integer number, boolean match, boolean skip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitHubPRCause
check(GitHubPRDecisionContext prDecisionContext)
indicates that PR was changedInteger
getNumber()
boolean
isMatch()
boolean
isSkip()
-
Methods inherited from class org.jenkinsci.plugins.github.pullrequest.events.GitHubPREvent
checkHook, getDescriptor
-
-
-
-
Constructor Detail
-
GitHubPRNumber
@DataBoundConstructor public GitHubPRNumber(Integer number, boolean match, boolean skip)
-
-
Method Detail
-
getNumber
@CheckForNull public Integer getNumber()
-
isMatch
public boolean isMatch()
-
isSkip
public boolean isSkip()
-
check
public GitHubPRCause check(@NonNull GitHubPRDecisionContext prDecisionContext) throws IOException
Description copied from class:GitHubPREvent
indicates that PR was changed- Overrides:
check
in classGitHubPREvent
- Returns:
- cause object. null when no influence (other events will be checked. If cause.isSkip() == true, then other checks wouldn't influence. And triggering for this branch will be skipped. If cause.isSkip() == false, indicates that branch build should be run.
- Throws:
IOException
-
-