Page MenuHomePhabricator

D15027.diff
No OneTemporary

D15027.diff

diff --git a/src/applications/diffusion/engine/DiffusionCommitHookEngine.php b/src/applications/diffusion/engine/DiffusionCommitHookEngine.php
--- a/src/applications/diffusion/engine/DiffusionCommitHookEngine.php
+++ b/src/applications/diffusion/engine/DiffusionCommitHookEngine.php
@@ -308,6 +308,7 @@
$rules = null;
$blocking_effect = null;
$blocked_update = null;
+ $blocking_xscript = null;
foreach ($updates as $update) {
$adapter = id(clone $adapter_template)
->setPushLog($update);
@@ -332,6 +333,7 @@
if ($effect->getAction() == $block_action) {
$blocking_effect = $effect;
$blocked_update = $update;
+ $blocking_xscript = $xscript;
break;
}
}
@@ -357,13 +359,16 @@
throw new DiffusionCommitHookRejectException(
pht(
"This push was rejected by Herald push rule %s.\n".
- "Change: %s\n".
- " Rule: %s\n".
- "Reason: %s",
+ " Change: %s\n".
+ " Rule: %s\n".
+ " Reason: %s\n".
+ "Transcript: %s",
$rule->getMonogram(),
$blocked_name,
$rule->getName(),
- $message));
+ $message,
+ PhabricatorEnv::getProductionURI(
+ '/herald/transcript/'.$blocking_xscript->getID().'/')));
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 26, 3:45 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6721520
Default Alt Text
D15027.diff (1 KB)

Event Timeline