java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHRepositoryDiscussion
A discussion in the repository.
This is different from Teams discussions (see GHDiscussion
).
The discussion event exposes the GraphQL object (more or less - the ids are handled differently for instance) directly. The new Discussions API is only available through GraphQL so for now you cannot execute any actions on this object.
- Author:
- Guillaume Smet
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Category of a discussion.static enum
The Enum State. -
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the active lock reason.Gets the answer chosen at.Gets the answer chosen by.Gets the answer html url.Gets the author association.getBody()
Gets the body.Gets the category.int
Gets the comments.Gets the html url.int
Gets the number.getState()
Gets the state.Gets the timeline url.getTitle()
Gets the title.getUser()
Gets the user.boolean
isLocked()
Checks if is locked.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Constructor Details
-
GHRepositoryDiscussion
public GHRepositoryDiscussion()Create default GHRepositoryDiscussion instance
-
-
Method Details
-
getCategory
Gets the category.- Returns:
- the category
-
getAnswerHtmlUrl
Gets the answer html url.- Returns:
- the answer html url
-
getAnswerChosenAt
Gets the answer chosen at.- Returns:
- the answer chosen at
-
getAnswerChosenBy
Gets the answer chosen by.- Returns:
- the answer chosen by
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getHtmlUrl
Gets the html url.- Returns:
- the html url
-
getNumber
public int getNumber()Gets the number.- Returns:
- the number
-
getTitle
Gets the title.- Returns:
- the title
-
getUser
Gets the user.- Returns:
- the user
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getState
Gets the state.- Returns:
- the state
-
isLocked
public boolean isLocked()Checks if is locked.- Returns:
- true, if is locked
-
getComments
public int getComments()Gets the comments.- Returns:
- the comments
-
getAuthorAssociation
Gets the author association.- Returns:
- the author association
-
getActiveLockReason
Gets the active lock reason.- Returns:
- the active lock reason
-
getBody
Gets the body.- Returns:
- the body
-
getTimelineUrl
Gets the timeline url.- Returns:
- the timeline url
-