- All Implemented Interfaces:
Commits
@Immutable
@Loggable(1)
public final class MkCommits
extends Object
implements Commits
Mock of GitHub Commits.
- Since:
- 0.3
-
Method Summary
create(jakarta.json.JsonObject params)
Return a Commit by its SHA.
Return a Statuses object for a given ref (sha, branch name, etc).
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
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
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
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