Page MenuHomePhabricator

D10026.diff
No OneTemporary

D10026.diff

diff --git a/src/events/constant/ArcanistEventType.php b/src/events/constant/ArcanistEventType.php
--- a/src/events/constant/ArcanistEventType.php
+++ b/src/events/constant/ArcanistEventType.php
@@ -9,6 +9,7 @@
const TYPE_DIFF_DIDBUILDMESSAGE = 'diff.didBuildMessage';
const TYPE_DIFF_WASCREATED = 'diff.wasCreated';
+ const TYPE_REVISION_WASCREATEDREVISION = 'revision.wasCreatedRevision';
const TYPE_REVISION_WILLCREATEREVISION = 'revision.willCreateRevision';
const TYPE_LAND_WILLPUSHREVISION = 'land.willPushRevision';
diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php
--- a/src/workflow/ArcanistDiffWorkflow.php
+++ b/src/workflow/ArcanistDiffWorkflow.php
@@ -613,6 +613,12 @@
}
$uri = $result['uri'];
+ $this->dispatchEvent(
+ ArcanistEventType::TYPE_REVISION_WASCREATEDREVISION,
+ array(
+ 'revisionUri' => $uri
+ ));
+
echo phutil_console_format(
" **Revision URI:** __%s__\n\n",
$uri);

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 20, 12:46 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712247
Default Alt Text
D10026.diff (1 KB)

Event Timeline