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
See Also:
  • 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