java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHMilestone
The type GHMilestone.
- Author:
- Yusuke Kokubo
-
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this milestone.void
delete()
Deletes this milestone.protected String
Gets api route.When was this milestone closed?.int
Gets closed issues.Gets creator.Gets description.getDueOn()
Gets due on.Gets the html url.int
Gets number.int
Gets open issues.getOwner()
Gets owner.getState()
Gets state.getTitle()
Gets title.void
reopen()
Reopens this milestone.void
setDescription
(String description) Sets description.void
Sets due on.void
Sets title.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()Create default GHMilestone instance
-
-
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.- 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
-