Package com.jcabi.github
Interface Statuses
-
- All Superinterfaces:
JsonReadable
- All Known Implementing Classes:
RtStatuses
@Immutable public interface Statuses extends JsonReadable
Github status.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();
- Since:
- 0.23
- Version:
- $Id: 72914b994af8bda4a5fb440c9bbe7cf9021bf34a $
- Author:
- Marcin Cylke (marcin.cylke+github@gmail.com)
- See Also:
- Repo statuses
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Statuses.StatusCreate
Data to use when creating a new GitHub commit status.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface com.jcabi.github.JsonReadable
json
-
-
-
-
Method Detail
-
commit
Commit commit()
Associated commit.- Returns:
- Commit
-
create
Status create(Statuses.StatusCreate status) throws IOException
Create new status.- Parameters:
status
- Add this status- Returns:
- The added status
- Throws:
IOException
- If there is any I/O problem- See Also:
- Create a Status
-
list
Iterable<Status> list(String ref)
List all statuses for a given ref.- Parameters:
ref
- It can be a SHA, a branch name, or a tag name.- Returns:
- Iterable of statuses
- See Also:
- List Statuses for a specific Ref
-
-