public class GHMilestone extends GHObject
| Modifier and Type | Field and Description |
|---|---|
protected String |
closed_at |
created_at, id, responseHeaderFields, updated_at, url| Constructor and Description |
|---|
GHMilestone() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this milestone.
|
void |
delete()
Deletes this milestone.
|
protected String |
getApiRoute()
Gets api route.
|
Date |
getClosedAt()
When was this milestone closed?
|
int |
getClosedIssues()
Gets closed issues.
|
GHUser |
getCreator()
Gets creator.
|
String |
getDescription()
Gets description.
|
Date |
getDueOn()
Gets due on.
|
URL |
getHtmlUrl()
Gets html url.
|
int |
getNumber()
Gets number.
|
int |
getOpenIssues()
Gets open issues.
|
GHRepository |
getOwner()
Gets owner.
|
GitHub |
getRoot()
Gets root.
|
GHMilestoneState |
getState()
Gets state.
|
String |
getTitle()
Gets title.
|
void |
reopen()
Reopens this milestone.
|
void |
setDescription(String description)
Sets description.
|
void |
setDueOn(Date dueOn)
Sets due on.
|
void |
setTitle(String title)
Sets title.
|
GHMilestone |
wrap(GHRepository repo)
Wrap gh milestone.
|
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toStringprotected String closed_at
public GitHub getRoot()
public GHRepository getOwner()
public GHUser getCreator() throws IOException
IOException - the io exceptionpublic Date getDueOn()
public Date getClosedAt() throws IOException
IOException - the io exceptionpublic String getTitle()
public String getDescription()
public int getClosedIssues()
public int getOpenIssues()
public int getNumber()
public URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectpublic GHMilestoneState getState()
public void close()
throws IOException
IOException - the io exceptionpublic void reopen()
throws IOException
IOException - the io exceptionpublic void delete()
throws IOException
IOException - the io exceptionpublic void setTitle(String title) throws IOException
title - the titleIOException - the io exceptionpublic void setDescription(String description) throws IOException
description - the descriptionIOException - the io exceptionpublic void setDueOn(Date dueOn) throws IOException
dueOn - the due onIOException - the io exceptionprotected String getApiRoute()
public GHMilestone wrap(GHRepository repo)
repo - the repoCopyright © 2020. All rights reserved.