Class GitHubPRLabelAddedEvent

All Implemented Interfaces:
ExtensionPoint, Describable<GitHubPREvent>

public class GitHubPRLabelAddedEvent extends GitHubPREvent
When label is added to pull request. Set of labels is considered added only when at least one label of set was newly added (was not saved in local PR previously) AND every label of set exists on remote PR now.
Author:
Kanstantsin Shautsou
  • Constructor Details

    • GitHubPRLabelAddedEvent

      @DataBoundConstructor public GitHubPRLabelAddedEvent(GitHubPRLabel label)
  • Method Details

    • getLabel

      public GitHubPRLabel getLabel()
    • 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