Package org.kohsuke.github
Class GHMilestone
java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHMilestone
The type GHMilestone.
- Author:
- Yusuke Kokubo
-
Field Summary
FieldsFields inherited from class org.kohsuke.github.GHObject
responseHeaderFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this milestone.voiddelete()Deletes this milestone.protected StringGets api route.When was this milestone closed?.intGets closed issues.Gets creator.Gets description.getDueOn()Gets due on.Gets the html url.intGets number.intGets open issues.getOwner()Gets owner.getRoot()Deprecated.getState()Gets state.getTitle()Gets title.voidreopen()Reopens this milestone.voidsetDescription(String description) Sets description.voidSets due on.voidSets title.wrap(GHRepository repo) Deprecated.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Field Details
-
closed_at
The closed at.
-
-
Constructor Details
-
GHMilestone
public GHMilestone()
-
-
Method Details
-
getOwner
Gets owner.- Returns:
- the owner
-
getCreator
Gets creator.- Returns:
- the creator
- Throws:
IOException- the io exception
-
getDueOn
Gets due on.- Returns:
- the due on
-
getClosedAt
When was this milestone closed?.- Returns:
- the closed at
- Throws:
IOException- the io exception
-
getTitle
Gets title.- Returns:
- the title
-
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
Gets the html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- the html url
-
getState
Gets state.- Returns:
- the state
-
close
Closes this milestone.- Throws:
IOException- the io exception
-
reopen
Reopens this milestone.- Throws:
IOException- the io exception
-
delete
Deletes this milestone.- Throws:
IOException- the io exception
-
setTitle
Sets title.- Parameters:
title- the title- Throws:
IOException- the io exception
-
setDescription
Sets description.- Parameters:
description- the description- Throws:
IOException- the io exception
-
setDueOn
Sets due on.- Parameters:
dueOn- the due on- Throws:
IOException- the io exception
-
getApiRoute
Gets api route.- Returns:
- the api route
-
wrap
Deprecated.Wrap gh milestone.- Parameters:
repo- the repo- Returns:
- the gh milestone
-
getRoot
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
GitHubinstance, use a local copy instead of pulling it out of objects.