public class GHCommitComment extends GHObject implements Reactable
GHRepository#listCommitComments(),
GHCommit#listComments(),
GHCommit#createComment(String, String, Integer,
Integer)created_at, id, responseHeaderFields, updated_at, url| Constructor and Description |
|---|
GHCommitComment() |
| Modifier and Type | Method and Description |
|---|---|
GHReaction |
createReaction(ReactionContent content)
Deprecated.
|
void |
delete()
Deletes this comment.
|
String |
getBody()
Commit comment in the GitHub flavored markdown format.
|
GHCommit |
getCommit()
Gets the commit to which this comment is associated with.
|
URL |
getHtmlUrl()
URL like
'https://github.com/kohsuke/sandbox-ant/commit/8ae38db0ea5837313ab5f39d43a6f73de3bd9000#commitcomment-1252827' to
show this commit comment in a browser.
|
int |
getLine()
A commit comment can be on a specific line of a specific file, if so, this field points to the line number in the
file.
|
GHRepository |
getOwner()
Gets owner.
|
String |
getPath()
A commit comment can be on a specific line of a specific file, if so, this field points to a file.
|
String |
getSHA1()
Gets sha 1.
|
GHUser |
getUser()
Gets the user who put this comment.
|
PagedIterable<GHReaction> |
listReactions()
Deprecated.
|
void |
update(String body)
Updates the body of the commit message.
|
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toStringpublic GHRepository getOwner()
public URL getHtmlUrl()
getHtmlUrl in class GHObjectpublic String getSHA1()
public String getBody()
public String getPath()
public int getLine()
public GHUser getUser() throws IOException
IOException - the io exceptionpublic GHCommit getCommit() throws IOException
IOException - the io exceptionpublic void update(String body) throws IOException
body - the bodyIOException - the io exception@Preview @Deprecated public GHReaction createReaction(ReactionContent content) throws IOException
ReactablecreateReaction in interface Reactablecontent - the contentIOException - the io exception@Preview @Deprecated public PagedIterable<GHReaction> listReactions()
ReactablelistReactions in interface Reactablepublic void delete()
throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.