Package com.jcabi.github
Interface RepoCommit
-
- All Superinterfaces:
Comparable<RepoCommit>
,JsonReadable
- All Known Implementing Classes:
RepoCommit.Smart
@Immutable public interface RepoCommit extends Comparable<RepoCommit>, JsonReadable
Github repo commit.The repo commit 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 RepoCommit.Smart(commit).url();
- Since:
- 0.8
- Version:
- $Id: 2d9c5362012aec5d7ed28d0e159fd15fb8a46e35 $
- Author:
- Paul Polishchuk (ppol@ua.fm)
- See Also:
- Commits API
- Suppressed Checkstyle violations:
- MultipleStringLiterals (500 lines)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RepoCommit.Smart
Smart commit.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Repo
repo()
The repo we're in.String
sha()
SHA of it.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface com.jcabi.github.JsonReadable
json
-
-