Package org.kohsuke.github
Class GHMilestone
- java.lang.Object
-
- org.kohsuke.github.GHObject
-
- org.kohsuke.github.GHMilestone
-
public class GHMilestone extends GHObject
The type GHMilestone.- Author:
- Yusuke Kokubo
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringclosed_at-
Fields inherited from class org.kohsuke.github.GHObject
created_at, id, responseHeaderFields, updated_at, url
-
-
Constructor Summary
Constructors Constructor Description GHMilestone()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this milestone.voiddelete()Deletes this milestone.protected StringgetApiRoute()Gets api route.DategetClosedAt()When was this milestone closed?intgetClosedIssues()Gets closed issues.GHUsergetCreator()Gets creator.StringgetDescription()Gets description.DategetDueOn()Gets due on.URLgetHtmlUrl()Gets html url.intgetNumber()Gets number.intgetOpenIssues()Gets open issues.GHRepositorygetOwner()Gets owner.GitHubgetRoot()Gets root.GHMilestoneStategetState()Gets state.StringgetTitle()Gets title.voidreopen()Reopens this milestone.voidsetDescription(String description)Sets description.voidsetDueOn(Date dueOn)Sets due on.voidsetTitle(String title)Sets title.GHMilestonewrap(GHRepository repo)Wrap gh milestone.-
Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, getUrl, toString
-
-
-
-
Field Detail
-
closed_at
protected String closed_at
-
-
Method Detail
-
getRoot
public GitHub getRoot()
Gets root.- Returns:
- the root
-
getOwner
public GHRepository getOwner()
Gets owner.- Returns:
- the owner
-
getCreator
public GHUser getCreator() throws IOException
Gets creator.- Returns:
- the creator
- Throws:
IOException- the io exception
-
getDueOn
public Date getDueOn()
Gets due on.- Returns:
- the due on
-
getClosedAt
public Date getClosedAt() throws IOException
When was this milestone closed?- Returns:
- the closed at
- Throws:
IOException- the io exception
-
getTitle
public String getTitle()
Gets title.- Returns:
- the title
-
getDescription
public String getDescription()
Gets description.- Returns:
- the description
-
getClosedIssues
public int getClosedIssues()
Gets closed issues.- Returns:
- the closed issues
-
getOpenIssues
public int getOpenIssues()
Gets open issues.- Returns:
- the open issues
-
getNumber
public int getNumber()
Gets number.- Returns:
- the number
-
getHtmlUrl
public URL getHtmlUrl()
Description copied from class:GHObjectGets html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- URL of this object for humans, which renders some HTML.
-
getState
public GHMilestoneState getState()
Gets state.- Returns:
- the state
-
close
public void close() throws IOExceptionCloses this milestone.- Throws:
IOException- the io exception
-
reopen
public void reopen() throws IOExceptionReopens this milestone.- Throws:
IOException- the io exception
-
delete
public void delete() throws IOExceptionDeletes this milestone.- Throws:
IOException- the io exception
-
setTitle
public void setTitle(String title) throws IOException
Sets title.- Parameters:
title- the title- Throws:
IOException- the io exception
-
setDescription
public void setDescription(String description) throws IOException
Sets description.- Parameters:
description- the description- Throws:
IOException- the io exception
-
setDueOn
public void setDueOn(Date dueOn) throws IOException
Sets due on.- Parameters:
dueOn- the due on- Throws:
IOException- the io exception
-
getApiRoute
protected String getApiRoute()
Gets api route.- Returns:
- the api route
-
wrap
public GHMilestone wrap(GHRepository repo)
Wrap gh milestone.- Parameters:
repo- the repo- Returns:
- the gh milestone
-
-