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)
Message gh commit builder.
|
GHCommitBuilder |
parent(String parent)
Parent gh commit builder.
|
GHCommitBuilder |
tree(String tree)
Tree gh commit builder.
|
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)
name - the nameemail - the emaildate - the datepublic GHCommitBuilder committer(String name, String email, Date date)
name - the nameemail - the emaildate - the datepublic GHCommit create() throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.