Package com.jcabi.github
Interface Milestones
-
@Immutable public interface Milestones
Github Milestones.- Since:
- 0.7
- Version:
- $Id: 7996b16fe1f2b30f1e5a28ac3049131edac927ce $
- Author:
- Paul Polishchuk (ppol@ua.fm)
- See Also:
- Milestones API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Milestone
create(String title)
Create Milestone.Milestone
get(int number)
Get specific milestone by number.Iterable<Milestone>
iterate(Map<String,String> params)
Iterate them all.void
remove(int number)
Remove milestone by number.Repo
repo()
Owner of them.
-
-
-
Method Detail
-
repo
Repo repo()
Owner of them.- Returns:
- Repo
-
create
Milestone create(String title) throws IOException
Create Milestone.- Parameters:
title
- Milestone creation JSON- Returns:
- Milestone
- Throws:
IOException
- If there is any I/O problem- Since:
- 0.5
- See Also:
- Create Milestone
-
get
Milestone get(int number)
Get specific milestone by number.- Parameters:
number
- Milestone number- Returns:
- Milestone
- See Also:
- Get a single milestone
-
iterate
Iterable<Milestone> iterate(Map<String,String> params)
Iterate them all.- Parameters:
params
- Iterating parameters, as requested by API- Returns:
- Iterator of milestones
- See Also:
- List milestones for a repository
-
remove
void remove(int number) throws IOException
Remove milestone by number.- Parameters:
number
- Milestone number- Throws:
IOException
- If there is any I/O problem- See Also:
- Delete a milestone
-
-