Package com.jcabi.github
Interface IssueLabels
-
- All Known Implementing Classes:
IssueLabels.Smart
@Immutable public interface IssueLabels
Github labels of an issue.- Since:
- 0.1
- Version:
- $Id: 918106ac9a3f6cb7f97da51698b63ce3c98d1381 $
- Author:
- Yegor Bugayenko (yegor256@gmail.com)
- See Also:
- Labels API
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIssueLabels.SmartSmart IssueLabels with extra features.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(Iterable<String> labels)Add new labels.voidclear()Remove all labels.Issueissue()The issue we're in.Iterable<Label>iterate()Iterate them all.voidremove(String name)Remove label by name.voidreplace(Iterable<String> labels)Replace all labels.
-
-
-
Method Detail
-
issue
Issue issue()
The issue we're in.- Returns:
- Issue
-
add
void add(Iterable<String> labels) throws IOException
Add new labels.- Parameters:
labels- The labels to add- Throws:
IOException- If there is any I/O problem- See Also:
- Add labels to an issue
-
replace
void replace(Iterable<String> labels) throws IOException
Replace all labels.- Parameters:
labels- The labels to save- Throws:
IOException- If there is any I/O problem- See Also:
- Replace all labels for an issue
-
iterate
Iterable<Label> iterate()
Iterate them all.- Returns:
- Iterator of labels
- See Also:
- List Labels on an Issue
-
remove
void remove(String name) throws IOException
Remove label by name.- Parameters:
name- Name of the label to remove- Throws:
IOException- If there is any I/O problem- See Also:
- Remove a Label from an Issue
-
clear
void clear() throws IOExceptionRemove all labels.- Throws:
IOException- If there is any I/O problem- See Also:
- Remove all labels from an issue
-
-