Package com.jcabi.github
Interface IssueLabels
- All Known Implementing Classes:
IssueLabels.Smart
@Immutable
public interface IssueLabels
GitHub labels of an issue.
- Since:
- 0.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classSmart IssueLabels with extra features. -
Method Summary
-
Method Details
-
issue
Issue issue()The issue we're in.- Returns:
- Issue
-
add
Add new labels.- Parameters:
labels- The labels to add- Throws:
IOException- If there is any I/O problem- See Also:
-
replace
Replace all labels.- Parameters:
labels- The labels to save- Throws:
IOException- If there is any I/O problem- See Also:
-
iterate
Iterate them all.- Returns:
- Iterator of labels
- See Also:
-
remove
Remove label by name.- Parameters:
name- Name of the label to remove- Throws:
IOException- If there is any I/O problem- See Also:
-
clear
Remove all labels.- Throws:
IOException- If there is any I/O problem- See Also:
-