@Immutable public interface Statuses extends JsonReadable
The status exposes all available properties through its
json()
method. However, it is recommended to use its
"smart" decorator, which helps you to get access to all JSON properties,
for example:
URL url = new Status.Smart(status).url();
Modifier and Type | Interface and Description |
---|---|
static class |
Statuses.StatusCreate
Data to use when creating a new GitHub commit status.
|
Modifier and Type | Method and Description |
---|---|
Commit |
commit()
Associated commit.
|
Status |
create(Statuses.StatusCreate status)
Create new status.
|
Iterable<Status> |
list(String ref)
List all statuses for a given ref.
|
json
Commit commit()
Status create(Statuses.StatusCreate status) throws IOException
status
- Add this statusIOException
- If there is any I/O problemIterable<Status> list(String ref)
ref
- It can be a SHA, a branch name, or a tag name.Copyright © 2012–2018 jcabi.com. All rights reserved.