com.atlassian.stash.hook.PreReceiveHook |
Hook that is called just before a push request is completed.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Callback method that is called just before a push request is completed.
|
Callback method that is called just before a push request is completed. This hook executes during the processing
of a push and the client will have to wait during the execution of the onReceive
method.
repository | the repository that was pushed to |
---|---|
refChanges | the refs that are about to be updated |
hookResponse | used to write to the client's stdout and/or stderr |
true
if the push request is to be accepted, false
if it should be rejected.
Note that returning true
does not guarantee that the push will be accepted as there may
be other PreReceiveHook
s that reject the push.