Package org.kohsuke.github
Class GHRepositoryDiscussion
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHRepositoryDiscussion
-
public class GHRepositoryDiscussion extends GHObject
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:
- The GraphQL API for Discussions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGHRepositoryDiscussion.CategoryCategory of a discussion.static classGHRepositoryDiscussion.State
-
Field Summary
-
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
-
Constructor Summary
Constructors Constructor Description GHRepositoryDiscussion()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetActiveLockReason()DategetAnswerChosenAt()GHUsergetAnswerChosenBy()URLgetAnswerHtmlUrl()GHCommentAuthorAssociationgetAuthorAssociation()StringgetBody()GHRepositoryDiscussion.CategorygetCategory()intgetComments()URLgetHtmlUrl()Gets html url.intgetNumber()GitHubgetRoot()Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.GHRepositoryDiscussion.StategetState()StringgetTimelineUrl()StringgetTitle()GHUsergetUser()booleanisLocked()-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
-
-
-
Method Detail
-
getCategory
public GHRepositoryDiscussion.Category getCategory()
-
getAnswerHtmlUrl
public URL getAnswerHtmlUrl()
-
getAnswerChosenAt
public Date getAnswerChosenAt()
-
getAnswerChosenBy
public GHUser getAnswerChosenBy() throws IOException
- Throws:
IOException
-
getHtmlUrl
public URL getHtmlUrl()
Description copied from class:GHObjectGets html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- URL of this object for humans, which renders some HTML.
-
getNumber
public int getNumber()
-
getTitle
public String getTitle()
-
getUser
public GHUser getUser() throws IOException
- Throws:
IOException
-
getState
public GHRepositoryDiscussion.State getState()
-
isLocked
public boolean isLocked()
-
getComments
public int getComments()
-
getAuthorAssociation
public GHCommentAuthorAssociation getAuthorAssociation()
-
getActiveLockReason
public String getActiveLockReason()
-
getBody
public String getBody()
-
getTimelineUrl
public String getTimelineUrl()
-
getRoot
@Deprecated public GitHub getRoot()
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
-