Interface Commit

  • All Superinterfaces:
    Comparable<Commit>, JsonReadable
    All Known Implementing Classes:
    Commit.Smart, MkCommit

    @Immutable
    public interface Commit
    extends Comparable<Commit>, JsonReadable
    Github commit.

    The 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 Commit.Smart(commit).url();
    Since:
    0.3
    Version:
    $Id: 9c6519e15242ced37de6781380b2f3a7a395722b $
    Author:
    Yegor Bugayenko (yegor256@gmail.com)
    See Also:
    Pull Request API, Commits API
    • Method Detail

      • repo

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

        String sha()
        SHA of it.
        Returns:
        SHA