Class MkCommits

java.lang.Object
com.jcabi.github.mock.MkCommits
All Implemented Interfaces:
Commits

@Immutable @Loggable(1) public final class MkCommits extends Object implements Commits
Mock of GitHub Commits.
Since:
0.3
  • Method Details

    • repo

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

      public Commit create(jakarta.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