public class BranchCreationHookRequest extends BranchHookRequest
hook request
that is raised just before a branch is created using the UI or REST.
Branches created by pushing will trigger a standard RepositoryHookRequest
and not this specific type.StandardRepositoryHookTrigger.BRANCH_CREATE
Modifier and Type | Class and Description |
---|---|
static class |
BranchCreationHookRequest.Builder |
BranchHookRequest.AbstractBuilder<B extends BranchHookRequest.AbstractBuilder<B>>
Modifier and Type | Method and Description |
---|---|
Collection<RefChange> |
getRefChanges() |
getBranch
getContext, getRepository, getScmHookDetails, getTrigger, isDryRun
@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()
.Copyright © 2020 Atlassian. All rights reserved.