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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
action()
The action that was performed.Integer
number()
The pull request number.PullRequest
pullRequest()
The pull request-
Methods inherited from interface com.spotify.github.v3.activity.events.BaseEvent
eventInstallation, repository, sender
-
-
-
-
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
-
-