Class PullRequestMergedEvent
- java.lang.Object
-
- org.apache.pinot.tools.streams.githubevents.PullRequestMergedEvent
-
public class PullRequestMergedEvent extends Object
Represents the pull request merged event
-
-
Constructor Summary
Constructors Constructor Description PullRequestMergedEvent(com.fasterxml.jackson.databind.JsonNode event, com.fasterxml.jackson.databind.JsonNode commits, com.fasterxml.jackson.databind.JsonNode reviewComments, com.fasterxml.jackson.databind.JsonNode comments)Construct a PullRequestMergedEvent from the github event of type PullRequestEvent which is also merged and closed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAssignees()StringgetAuthorAssociation()List<String>getAuthors()List<String>getCommenters()List<String>getCommitters()longgetCreatedTimeMillis()longgetElapsedTimeMillis()List<String>getLabels()StringgetMergedBy()longgetMergedTimeMillis()longgetNumAuthors()longgetNumCommenters()longgetNumComments()longgetNumCommits()longgetNumCommitters()longgetNumFilesChanged()longgetNumLinesAdded()longgetNumLinesDeleted()longgetNumReviewComments()longgetNumReviewers()StringgetOrganization()StringgetRepo()List<String>getRequestedReviewers()List<String>getRequestedTeams()List<String>getReviewers()StringgetTitle()StringgetUserId()StringgetUserType()
-
-
-
Constructor Detail
-
PullRequestMergedEvent
public PullRequestMergedEvent(com.fasterxml.jackson.databind.JsonNode event, com.fasterxml.jackson.databind.JsonNode commits, com.fasterxml.jackson.databind.JsonNode reviewComments, com.fasterxml.jackson.databind.JsonNode comments)Construct a PullRequestMergedEvent from the github event of type PullRequestEvent which is also merged and closed. Note that this constructor assumes that the event is valid of this type- Parameters:
event- - event of type PullRequestEvent which has action closed and is mergedcommits- - commits data corresponding to the eventreviewComments- - review comments data corresponding to the eventcomments- - comments data corresponding to the event
-
-
Method Detail
-
getTitle
public String getTitle()
-
getUserId
public String getUserId()
-
getUserType
public String getUserType()
-
getAuthorAssociation
public String getAuthorAssociation()
-
getMergedBy
public String getMergedBy()
-
getNumAuthors
public long getNumAuthors()
-
getRepo
public String getRepo()
-
getOrganization
public String getOrganization()
-
getNumComments
public long getNumComments()
-
getNumReviewComments
public long getNumReviewComments()
-
getNumCommits
public long getNumCommits()
-
getNumLinesAdded
public long getNumLinesAdded()
-
getNumLinesDeleted
public long getNumLinesDeleted()
-
getNumFilesChanged
public long getNumFilesChanged()
-
getNumReviewers
public long getNumReviewers()
-
getNumCommenters
public long getNumCommenters()
-
getNumCommitters
public long getNumCommitters()
-
getCreatedTimeMillis
public long getCreatedTimeMillis()
-
getElapsedTimeMillis
public long getElapsedTimeMillis()
-
getMergedTimeMillis
public long getMergedTimeMillis()
-
-