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
See Also:
Suppressed Checkstyle violations:
MultipleStringLiterals (500 lines)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Smart commit.
  • Method Summary

    Modifier and Type
    Method
    Description
    The repo we're in.
    sha()
    SHA of it.

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface com.jcabi.github.JsonReadable

    json
  • Method Details

    • repo

      Repo repo()
      The repo we're in.
      Returns:
      Repo
    • sha

      String sha()
      SHA of it.
      Returns:
      SHA