public class LabelService extends GitHubService
Label objects in use for a given
repository.ACCEPT_FULL, ACCEPT_HTML, ACCEPT_PREVIEW_DRAX, ACCEPT_PREVIEW_IRONMAN, ACCEPT_PREVIEW_LOKI, ACCEPT_RAW, ACCEPT_TEXT, client| Constructor and Description |
|---|
LabelService()
Create label service
|
LabelService(GitHubClient client)
Create label service for client
|
| Modifier and Type | Method and Description |
|---|---|
Label |
createLabel(IRepositoryIdProvider repository,
Label label)
Create label
|
Label |
createLabel(java.lang.String user,
java.lang.String repository,
Label label)
Create label
|
void |
deleteLabel(IRepositoryIdProvider repository,
java.lang.String label)
Delete a label with the given id from the given repository
|
void |
deleteLabel(java.lang.String user,
java.lang.String repository,
java.lang.String label)
Delete a label with the given id from the given repository
|
Label |
editLabel(IRepositoryIdProvider repository,
Label label)
Edit the given label in the given repository
|
Label |
getLabel(IRepositoryIdProvider repository,
java.lang.String label)
Get label with given name
|
Label |
getLabel(java.lang.String user,
java.lang.String repository,
java.lang.String label)
Get label with given name
|
java.util.List<Label> |
getLabels(IRepositoryIdProvider repository)
Get labels
|
java.util.List<Label> |
getLabels(java.lang.String user,
java.lang.String repository)
Get labels
|
java.util.List<Label> |
setLabels(IRepositoryIdProvider repository,
java.lang.String issueId,
java.util.List<Label> labels)
Set the labels for an issue
|
java.util.List<Label> |
setLabels(java.lang.String user,
java.lang.String repository,
java.lang.String issueId,
java.util.List<Label> labels)
Set the labels for an issue
|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepositorypublic LabelService()
public LabelService(GitHubClient client)
client - public java.util.List<Label> getLabels(IRepositoryIdProvider repository) throws java.io.IOException
repository - java.io.IOExceptionpublic java.util.List<Label> getLabels(java.lang.String user, java.lang.String repository) throws java.io.IOException
user - repository - java.io.IOExceptionpublic java.util.List<Label> setLabels(IRepositoryIdProvider repository, java.lang.String issueId, java.util.List<Label> labels) throws java.io.IOException
repository - issueId - labels - java.io.IOExceptionpublic java.util.List<Label> setLabels(java.lang.String user, java.lang.String repository, java.lang.String issueId, java.util.List<Label> labels) throws java.io.IOException
user - repository - issueId - labels - java.io.IOExceptionpublic Label createLabel(IRepositoryIdProvider repository, Label label) throws java.io.IOException
repository - label - java.io.IOExceptionpublic Label createLabel(java.lang.String user, java.lang.String repository, Label label) throws java.io.IOException
user - repository - label - java.io.IOExceptionpublic Label getLabel(IRepositoryIdProvider repository, java.lang.String label) throws java.io.IOException
repository - label - java.io.IOExceptionpublic Label getLabel(java.lang.String user, java.lang.String repository, java.lang.String label) throws java.io.IOException
user - repository - label - java.io.IOExceptionpublic void deleteLabel(IRepositoryIdProvider repository, java.lang.String label) throws java.io.IOException
repository - label - java.io.IOExceptionpublic void deleteLabel(java.lang.String user,
java.lang.String repository,
java.lang.String label)
throws java.io.IOException
user - repository - label - java.io.IOExceptionpublic Label editLabel(IRepositoryIdProvider repository, Label label) throws java.io.IOException
repository - label - java.io.IOException