java.lang.Object
org.kohsuke.github.GHContentDeleter
Builder for deleting repository content with support for specifying author and committer information.
Obtain an instance via GHContent.createDelete().
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionConfigures the author of the commit.Configures the author of the commit.Deprecated.Sets the branch to delete the content from.commit()Commits the deletion.Configures the committer of the commit.Configures the committer of the commit.Deprecated.usecommitter(String, String, Instant)insteadSets the commit message.
-
Method Details
-
author
Configures the author of the commit. If not specified, the authenticated user is used as the author.- Parameters:
name- the name of the authoremail- the email of the author- Returns:
- this deleter
-
author
Deprecated.useauthor(String, String, Instant)insteadConfigures the author of the commit. If not specified, the authenticated user is used as the author.- Parameters:
name- the name of the authoremail- the email of the authordate- the date of the authoring- Returns:
- this deleter
-
author
Configures the author of the commit. If not specified, the authenticated user is used as the author.- Parameters:
name- the name of the authoremail- the email of the authordate- the timestamp for the authoring- Returns:
- this deleter
-
branch
Sets the branch to delete the content from.- Parameters:
branch- the branch name- Returns:
- this deleter
-
commit
Commits the deletion.- Returns:
- the response containing the commit information
- Throws:
IOException- the io exception
-
committer
Configures the committer of the commit. If not specified, the authenticated user is used as the committer.- Parameters:
name- the name of the committeremail- the email of the committer- Returns:
- this deleter
-
committer
Deprecated.usecommitter(String, String, Instant)insteadConfigures the committer of the commit. If not specified, the authenticated user is used as the committer.- Parameters:
name- the name of the committeremail- the email of the committerdate- the date of the commit- Returns:
- this deleter
-
committer
Configures the committer of the commit. If not specified, the authenticated user is used as the committer.- Parameters:
name- the name of the committeremail- the email of the committerdate- the timestamp of the commit- Returns:
- this deleter
-
message
Sets the commit message.- Parameters:
message- the commit message- Returns:
- this deleter
-
author(String, String, Instant)instead