Class MkCommits

  • All Implemented Interfaces:
    Commits

    @Immutable
    @Loggable(1)
    public final class MkCommits
    extends Object
    implements Commits
    Mock of Github Commits.
    Version:
    $Id: a3ff072a1e93cc8e48015bf30f9ab554c694ecfe $
    Author:
    Ed Hillmann (edhillmann@yahoo.com)
    • Method Detail

      • repo

        public Repo repo()
        Description copied from interface: Commits
        Owner of them.
        Specified by:
        repo in interface Commits
        Returns:
        Repo
      • create

        public Commit create​(javax.json.JsonObject params)
        Description copied from interface: Commits
        Create a Commit object.
        Specified by:
        create in interface Commits
        Parameters:
        params - The input for creating the Tag.
        Returns:
        Commit
      • get

        public Commit get​(String sha)
        Description copied from interface: Commits
        Return a Commit by its SHA.
        Specified by:
        get in interface Commits
        Parameters:
        sha - The sha of the Commit.
        Returns:
        Commit
      • statuses

        public Statuses statuses​(String sha)
        Description copied from interface: Commits
        Return a Statuses object for a given ref (sha, branch name, etc).
        Specified by:
        statuses in interface Commits
        Parameters:
        sha - The ref of the Commit
        Returns:
        Status