mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
When "phabricator.silent" is enabled, don't call webhooks
Summary: Ref T13078. The `phabricator.silent` configuration flag should disable webhook calls, since this is consistent with the documented and desired behavior. Test Plan: Enabled `phabricator.silent`, made test hook calls, saw them fail with a "silent" failure reason. Maniphest Tasks: T13078 Differential Revision: https://secure.phabricator.com/D19084
This commit is contained in:
parent
6bfd0ff275
commit
a2453706ab
1 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,13 @@ final class HeraldWebhookWorker
|
|||
$status));
|
||||
}
|
||||
|
||||
// If we're in silent mode, permanently fail the webhook request and then
|
||||
// return to complete this task.
|
||||
if (PhabricatorEnv::getEnvConfig('phabricator.silent')) {
|
||||
$this->failRequest($request, 'hook', 'silent');
|
||||
return;
|
||||
}
|
||||
|
||||
$hook = $request->getWebhook();
|
||||
|
||||
if ($hook->isDisabled()) {
|
||||
|
|
Loading…
Reference in a new issue