Class RtCommits

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

@Immutable @Loggable(1) public final class RtCommits extends Object implements Commits
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) throws IOException
      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
      Throws:
      IOException - - If anything goes wrong.
    • 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 ref)
      Description copied from interface: Commits
      Return a Statuses object for a given ref (sha, branch name, etc).
      Specified by:
      statuses in interface Commits
      Parameters:
      ref - The ref of the Commit
      Returns:
      Status