Class Overview
Request that is provided to repository-hook
plugin modules when a file is
edited
.
Summary
Nested Classes |
class |
FileEditHookRequest.Builder |
|
Public Methods
@Nonnull
public
Branch
getBranch
()
Returns
- the branch on which the edit operation would happen
Returns
- a supplier providing access to the file content
@Nonnull
public
Optional<String>
getMessage
()
@Nonnull
public
String
getPath
()
Returns
- the path of the edited or created file
@Nonnull
public
Optional<String>
getSourceCommitId
()
Returns
- the commit ID of the existing file in the repository, or
Optional#empty
if this is a new file