java.lang.Object
org.kohsuke.github.GHContentBuilder
Used to create/update content.
Call various methods to build up parameters, then call commit() to make the change effective.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionBranch gh content builder.commit()Commits a new content.content(byte[] content) Content gh content builder.Content gh content builder.Message gh content builder.Path gh content builder.Used when updating (but not creating a new content) to specify the blob SHA of the file being replaced.
-
Method Details
-
branch
Branch gh content builder.- Parameters:
branch- the branch- Returns:
- the gh content builder
-
commit
Commits a new content.- Returns:
- the gh content update response
- Throws:
IOException- the io exception
-
content
Content gh content builder.- Parameters:
content- the content- Returns:
- the gh content builder
-
content
Content gh content builder.- Parameters:
content- the content- Returns:
- the gh content builder
-
message
Message gh content builder.- Parameters:
commitMessage- the commit message- Returns:
- the gh content builder
-
path
Path gh content builder.- Parameters:
path- the path- Returns:
- the gh content builder
-
sha
Used when updating (but not creating a new content) to specify the blob SHA of the file being replaced.- Parameters:
sha- the sha- Returns:
- the gh content builder
-