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)
    • Method Detail

      • repo

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

        String sha()
        SHA of it.
        Returns:
        SHA