public class GHIssue extends GHObject
GHRepository.getIssue(int),
GitHub.searchIssues(),
GHIssueSearchBuilder| Modifier and Type | Class and Description |
|---|---|
static class |
GHIssue.Label
Deprecated.
use
GHLabel |
static class |
GHIssue.PullRequest |
| Modifier and Type | Field and Description |
|---|---|
protected GHUser |
assignee |
protected java.lang.String |
body |
protected java.lang.String |
closed_at |
protected GHUser |
closed_by |
protected int |
comments |
protected java.lang.String |
html_url |
protected java.util.List<GHIssue.Label> |
labels |
protected GHMilestone |
milestone |
protected int |
number |
protected GHIssue.PullRequest |
pull_request |
protected java.lang.String |
state |
protected java.lang.String |
title |
protected GHUser |
user |
created_at, id, updated_at, url| Constructor and Description |
|---|
GHIssue() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignTo(GHUser user) |
void |
close()
Closes this issue.
|
GHIssueComment |
comment(java.lang.String message)
Updates the issue by adding a comment.
|
protected java.lang.String |
getApiRoute() |
java.net.URL |
getApiURL() |
GHUser |
getAssignee() |
java.lang.String |
getBody()
The description of this pull request.
|
java.util.Date |
getClosedAt() |
GHUser |
getClosedBy()
Reports who has closed the issue.
|
java.util.List<GHIssueComment> |
getComments()
Obtains all the comments associated with this issue.
|
int |
getCommentsCount() |
java.net.URL |
getHtmlUrl()
The HTML page of this issue,
like https://github.com/jenkinsci/jenkins/issues/100
|
protected java.lang.String |
getIssuesApiRoute() |
java.util.Collection<GHLabel> |
getLabels() |
GHMilestone |
getMilestone() |
int |
getNumber()
ID.
|
GHIssue.PullRequest |
getPullRequest()
Returns non-null if this issue is a shadow of a pull request.
|
GHRepository |
getRepository()
Repository to which the issue belongs.
|
GHIssueState |
getState() |
java.lang.String |
getTitle() |
GHUser |
getUser()
User who submitted the issue.
|
boolean |
isPullRequest() |
PagedIterable<GHIssueComment> |
listComments()
Obtains all the comments associated with this issue.
|
void |
reopen()
Reopens this issue.
|
void |
setBody(java.lang.String body) |
void |
setLabels(java.lang.String... labels) |
void |
setTitle(java.lang.String title) |
getCreatedAt, getId, getUpdatedAt, getUrl, toStringprotected GHUser assignee
protected java.lang.String state
protected int number
protected java.lang.String closed_at
protected int comments
protected java.lang.String body
protected java.util.List<GHIssue.Label> labels
protected GHUser user
protected java.lang.String title
protected java.lang.String html_url
protected GHIssue.PullRequest pull_request
protected GHMilestone milestone
protected GHUser closed_by
public GHRepository getRepository()
public java.lang.String getBody()
public int getNumber()
public java.net.URL getHtmlUrl()
getHtmlUrl in class GHObjectpublic java.lang.String getTitle()
public GHIssueState getState()
public java.util.Collection<GHLabel> getLabels() throws java.io.IOException
java.io.IOExceptionpublic java.util.Date getClosedAt()
public java.net.URL getApiURL()
@WithBridgeMethods(value=void.class) public GHIssueComment comment(java.lang.String message) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic void reopen()
throws java.io.IOException
java.io.IOExceptionpublic void setTitle(java.lang.String title)
throws java.io.IOException
java.io.IOExceptionpublic void setBody(java.lang.String body)
throws java.io.IOException
java.io.IOExceptionpublic void assignTo(GHUser user) throws java.io.IOException
java.io.IOExceptionpublic void setLabels(java.lang.String... labels)
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<GHIssueComment> getComments() throws java.io.IOException
java.io.IOExceptionlistComments()public PagedIterable<GHIssueComment> listComments() throws java.io.IOException
java.io.IOExceptionprotected java.lang.String getApiRoute()
protected java.lang.String getIssuesApiRoute()
public GHUser getAssignee()
public GHUser getUser()
public GHUser getClosedBy()
Note that GitHub doesn't always seem to report this information even for an issue that's already closed. See https://github.com/kohsuke/github-api/issues/60.
public int getCommentsCount()
public GHIssue.PullRequest getPullRequest()
public boolean isPullRequest()
public GHMilestone getMilestone()
Copyright © 2016. All Rights Reserved.