public final class GHContentBuilder extends Object
Call various methods to build up parameters, then call commit() to make the change effective.
GHRepository.createContent()| Modifier and Type | Method and Description |
|---|---|
GHContentBuilder |
branch(String branch) |
GHContentUpdateResponse |
commit()
Commits a new content.
|
GHContentBuilder |
content(byte[] content) |
GHContentBuilder |
content(String content) |
GHContentBuilder |
message(String commitMessage) |
GHContentBuilder |
path(String path) |
GHContentBuilder |
sha(String sha)
Used when updating (but not creating a new content) to specify
Thetblob SHA of the file being replaced.
|
public GHContentBuilder path(String path)
public GHContentBuilder branch(String branch)
public GHContentBuilder sha(String sha)
public GHContentBuilder content(byte[] content)
public GHContentBuilder content(String content)
public GHContentBuilder message(String commitMessage)
public GHContentUpdateResponse commit() throws IOException
IOExceptionCopyright © 2018. All rights reserved.