Interface PullRequestEvent

  • All Superinterfaces:
    BaseEvent
    All Known Implementing Classes:
    ImmutablePullRequestEvent

    @Immutable
    public interface PullRequestEvent
    extends BaseEvent
    Triggered when a pull request is assigned, unassigned, labeled, unlabeled, opened, edited, closed, reopened, or synchronized.
    • Method Detail

      • action

        @Nullable
        String action()
        The action that was performed. Can be one of "assigned", "unassigned", "labeled", "unlabeled", "opened", "edited", "closed", or "reopened", or "synchronize". If the action is "closed" and the merged key is false, the pull request was closed with unmerged commits. If the action is "closed" and the merged key is true, the pull request was merged.
      • number

        @Nullable
        Integer number()
        The pull request number.
      • pullRequest

        @Nullable
        PullRequest pullRequest()
        The pull request