Class GitHubPRDescriptionEvent

All Implemented Interfaces:
ExtensionPoint, Describable<GitHubPREvent>

public class GitHubPRDescriptionEvent extends GitHubPREvent
Used to skip PR builder. Use case is skipping if special description exists.
  • Constructor Details

    • GitHubPRDescriptionEvent

      @DataBoundConstructor public GitHubPRDescriptionEvent(String skipMsg)
  • Method Details

    • check

      public GitHubPRCause check(@NonNull GitHubPRDecisionContext prDecisionContext) throws IOException
      Checks for skip message in pull request description.
      Overrides:
      check in class GitHubPREvent
      Parameters:
      prDecisionContext - .remotePR GHIssue that contains description for checking
      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
    • getSkipMsg

      public String getSkipMsg()