public class GHCommitComment extends GHObject
GHRepository.listCommitComments(),
GHCommit.listComments(),
GHCommit.createComment(String, String, Integer, Integer)created_at, id, updated_at, url| Constructor and Description |
|---|
GHCommitComment() |
| Modifier and Type | Method and Description |
|---|---|
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() |
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() |
GHUser |
getUser()
Gets the user who put this comment.
|
void |
update(String body)
Updates the body of the commit message.
|
getCreatedAt, getId, getUpdatedAt, getUrlpublic GHRepository getOwner()
public URL getHtmlUrl()
public String getSHA1()
public String getBody()
public String getPath()
public int getLine()
public GHUser getUser() throws IOException
IOExceptionpublic GHCommit getCommit() throws IOException
IOExceptionpublic void update(String body) throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.