public class GHIssue extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GHIssue.Label |
static class |
GHIssue.PullRequest |
| Modifier and Type | Field and Description |
|---|---|
protected GHUser |
assignee |
protected String |
body |
protected String |
closed_at |
protected GHUser |
closed_by |
protected int |
comments |
protected String |
created_at |
protected String |
html_url |
protected int |
id |
protected List<GHIssue.Label> |
labels |
protected GHMilestone |
milestone |
protected int |
number |
protected GHIssue.PullRequest |
pull_request |
protected String |
state |
protected String |
title |
protected String |
updated_at |
protected String |
url |
protected GHUser |
user |
| Constructor and Description |
|---|
GHIssue() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignTo(GHUser user) |
void |
close()
Closes this issue.
|
void |
comment(String message)
Updates the issue by adding a comment.
|
protected String |
getApiRoute() |
URL |
getApiURL() |
GHUser |
getAssignee() |
String |
getBody()
The description of this pull request.
|
Date |
getClosedAt() |
GHUser |
getClosedBy() |
List<GHIssueComment> |
getComments()
Obtains all the comments associated with this issue.
|
int |
getCommentsCount() |
Date |
getCreatedAt() |
Collection<GHIssue.Label> |
getLabels() |
GHMilestone |
getMilestone() |
int |
getNumber()
ID.
|
GHIssue.PullRequest |
getPullRequest() |
GHRepository |
getRepository()
Repository to which the issue belongs.
|
GHIssueState |
getState() |
String |
getTitle() |
Date |
getUpdatedAt() |
URL |
getUrl()
The HTML page of this issue,
like https://github.com/jenkinsci/jenkins/issues/100
|
GHUser |
getUser()
User who submitted the issue.
|
PagedIterable<GHIssueComment> |
listComments()
Obtains all the comments associated with this issue.
|
void |
reopen()
Reopens this issue.
|
void |
setBody(String body) |
void |
setLabels(String... labels) |
void |
setTitle(String title) |
protected GHUser assignee
protected String state
protected int number
protected String closed_at
protected int comments
protected String body
protected List<GHIssue.Label> labels
protected GHUser user
protected String title
protected String created_at
protected String html_url
protected GHIssue.PullRequest pull_request
protected GHMilestone milestone
protected String url
protected String updated_at
protected int id
protected GHUser closed_by
public GHRepository getRepository()
public String getBody()
public int getNumber()
public URL getUrl()
public String getTitle()
public GHIssueState getState()
public Collection<GHIssue.Label> getLabels()
public Date getCreatedAt()
public Date getUpdatedAt()
public Date getClosedAt()
public URL getApiURL()
public void comment(String message) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void reopen()
throws IOException
IOExceptionpublic void setTitle(String title) throws IOException
IOExceptionpublic void setBody(String body) throws IOException
IOExceptionpublic void assignTo(GHUser user) throws IOException
IOExceptionpublic void setLabels(String... labels) throws IOException
IOExceptionpublic List<GHIssueComment> getComments() throws IOException
IOExceptionlistComments()public PagedIterable<GHIssueComment> listComments() throws IOException
IOExceptionprotected String getApiRoute()
public GHUser getAssignee()
public GHUser getUser()
public GHUser getClosedBy()
public int getCommentsCount()
public GHIssue.PullRequest getPullRequest()
public GHMilestone getMilestone()
Copyright © 2014. All rights reserved.