Class GitHubPRLabelPatternExistsEvent

java.lang.Object
hudson.model.AbstractDescribableImpl<GitHubPREvent>
org.jenkinsci.plugins.github.pullrequest.events.GitHubPREvent
org.jenkinsci.plugins.github.pullrequest.events.impl.GitHubPRLabelPatternExistsEvent
All Implemented Interfaces:
ExtensionPoint, Describable<GitHubPREvent>

public class GitHubPRLabelPatternExistsEvent extends GitHubPREvent
Used to skip PR builder. Use case is skipping if PR is marked with some label or labels.
  • Constructor Details

    • GitHubPRLabelPatternExistsEvent

      @DataBoundConstructor public GitHubPRLabelPatternExistsEvent(GitHubPRLabel label, boolean skip)
  • Method Details

    • check

      public GitHubPRCause check(@NonNull GitHubPRDecisionContext prDecisionContext) throws IOException
      Description copied from class: GitHubPREvent
      indicates that PR was changed
      Overrides:
      check in class GitHubPREvent
      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
    • getLabel

      public GitHubPRLabel getLabel()
    • isSkip

      public boolean isSkip()