public class GHCommitBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
GHCommitBuilder |
author(String name,
String email,
Date date)
Configures the author of this commit.
|
GHCommitBuilder |
committer(String name,
String email,
Date date)
Configures the committer of this commit.
|
GHCommit |
create()
Creates a blob based on the parameters specified thus far.
|
GHCommitBuilder |
message(String message) |
GHCommitBuilder |
parent(String parent) |
GHCommitBuilder |
tree(String tree) |
public GHCommitBuilder message(String message)
message - the commit messagepublic GHCommitBuilder tree(String tree)
tree - the SHA of the tree object this commit points topublic GHCommitBuilder parent(String parent)
parent - the SHA of a parent commit.public GHCommitBuilder author(String name, String email, Date date)
public GHCommitBuilder committer(String name, String email, Date date)
public GHCommit create() throws IOException
IOExceptionCopyright © 2018. All rights reserved.