public class SimpleRepositoryHookRequest extends AbstractRepositoryHookRequest
RepositoryHookRequest
Modifier and Type | Class and Description |
---|---|
protected static class |
SimpleRepositoryHookRequest.AbstractBuilder<B extends SimpleRepositoryHookRequest.AbstractBuilder<B>> |
static class |
SimpleRepositoryHookRequest.Builder |
Modifier | Constructor and Description |
---|---|
protected |
SimpleRepositoryHookRequest(SimpleRepositoryHookRequest.AbstractBuilder<?> builder) |
Modifier and Type | Method and Description |
---|---|
Collection<RefChange> |
getRefChanges() |
Optional<ScmHookDetails> |
getScmHookDetails() |
getContext, getRepository, getTrigger, isDryRun
protected SimpleRepositoryHookRequest(SimpleRepositoryHookRequest.AbstractBuilder<?> builder)
@Nonnull public Collection<RefChange> getRefChanges()
getRefChanges
in interface RepositoryHookRequest
getRefChanges
in class AbstractRepositoryHookRequest
empty
for some dry-run requests where the
target hash is not yet known because the relevant commit hasn't been created yet. As an example, this is
the case for merge requests
. In these cases, the specialized request type should
provide sufficient information about the proposed change. For MergeHookRequest
, this would be
MergeHookRequest.getFromRef()
and MergeHookRequest.getToRef()
.@Nonnull public Optional<ScmHookDetails> getScmHookDetails()
getScmHookDetails
in interface RepositoryHookRequest
getScmHookDetails
in class AbstractRepositoryHookRequest
Copyright © 2019 Atlassian. All rights reserved.