Package org.kohsuke.github
Class GHIssueEvent
- java.lang.Object
-
- org.kohsuke.github.GHIssueEvent
-
public class GHIssueEvent extends Object
The type GHIssueEvent.- Author:
- Martin van Zijl
- See Also:
- Github documentation for issue events
-
-
Constructor Summary
Constructors Constructor Description GHIssueEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GHUsergetActor()Gets actor.GHUsergetAssignee()Get theGHUserthat was assigned or unassigned from the issue.StringgetCommitId()Gets commit id.StringgetCommitUrl()Gets commit url.DategetCreatedAt()Gets created at.StringgetEvent()Gets event.longgetId()Gets id.GHIssuegetIssue()Gets issue.GHLabelgetLabel()Get theGHLabelthat was added to or removed from the issue.GHMilestonegetMilestone()Get theGHMilestonethat this issue was added to or removed from.StringgetNodeId()Gets node id.GHIssueRenamegetRename()Get theGHIssueRenamethat contains information about issue old and new name.GHUsergetRequestedReviewer()Get theGHUserperson requested to review the pull request.GHUsergetReviewRequester()Get theGHUserperson who requested a review.GitHubgetRoot()Gets root.StringgetUrl()Gets url.StringtoString()
-
-
-
Method Detail
-
getId
public long getId()
Gets id.- Returns:
- the id
-
getNodeId
public String getNodeId()
Gets node id.- Returns:
- the node id
-
getUrl
public String getUrl()
Gets url.- Returns:
- the url
-
getActor
public GHUser getActor()
Gets actor.- Returns:
- the actor
-
getEvent
public String getEvent()
Gets event.- Returns:
- the event
-
getCommitId
public String getCommitId()
Gets commit id.- Returns:
- the commit id
-
getCommitUrl
public String getCommitUrl()
Gets commit url.- Returns:
- the commit url
-
getCreatedAt
public Date getCreatedAt()
Gets created at.- Returns:
- the created at
-
getRoot
public GitHub getRoot()
Gets root.- Returns:
- the root
-
getIssue
public GHIssue getIssue()
Gets issue.- Returns:
- the issue
-
getMilestone
public GHMilestone getMilestone()
Get theGHMilestonethat this issue was added to or removed from. Only present for events "milestoned" and "demilestoned",nullotherwise.- Returns:
- the milestone
-
getLabel
public GHLabel getLabel()
Get theGHLabelthat was added to or removed from the issue. Only present for events "labeled" and "unlabeled",nullotherwise.- Returns:
- the label
-
getAssignee
public GHUser getAssignee()
Get theGHUserthat was assigned or unassigned from the issue. Only present for events "assigned" and "unassigned",nullotherwise.- Returns:
- the user
-
getRename
public GHIssueRename getRename()
Get theGHIssueRenamethat contains information about issue old and new name. Only present for event "renamed",nullotherwise.- Returns:
- the GHIssueRename
-
getReviewRequester
public GHUser getReviewRequester()
Get theGHUserperson who requested a review. Only present for events "review_requested", "review_request_removed",nullotherwise.- Returns:
- the GHUser
- See Also:
- review_requested and review_request_removed
-
getRequestedReviewer
public GHUser getRequestedReviewer()
Get theGHUserperson requested to review the pull request. Only present for events "review_requested", "review_request_removed",nullotherwise.- Returns:
- the GHUser
- See Also:
- review_requested and review_request_removed
-
-