Package com.jcabi.github
Interface Labels
-
- All Known Implementing Classes:
Labels.Smart
@Immutable public interface Labels
Github labels.- Since:
- 0.1
- Version:
- $Id: d8f9b9ea911e16ebe78a512c65652b0c8a7a703a $
- Author:
- Yegor Bugayenko (yegor256@gmail.com)
- See Also:
- Labels API
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Labels.Smart
Smart Labels with extra features.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Label
create(String name, String color)
Create new label.void
delete(String name)
Delete label by name.Label
get(String name)
Get a label by name.Iterable<Label>
iterate()
Iterate them all.Repo
repo()
The repo we're in.
-
-
-
Method Detail
-
repo
Repo repo()
The repo we're in.- Returns:
- Repo
-
create
Label create(String name, String color) throws IOException
Create new label.- Parameters:
name
- The name of itcolor
- Color of it- Returns:
- The label created
- Throws:
IOException
- If there is any I/O problem- See Also:
- Create a Label
-
get
Label get(String name)
Get a label by name.- Parameters:
name
- The name of it- Returns:
- The label
- See Also:
- Get a single label
-
iterate
Iterable<Label> iterate()
Iterate them all.- Returns:
- Iterator of labels
- See Also:
- List Labels on an Issue
-
delete
void delete(String name) throws IOException
Delete label by name.- Parameters:
name
- Name of the label to remove- Throws:
IOException
- If there is any I/O problem- See Also:
- Delete a Label
-
-