Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14384303
D10393.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10393.diff
View Options
diff --git a/src/applications/herald/adapter/HeraldCommitAdapter.php b/src/applications/herald/adapter/HeraldCommitAdapter.php
--- a/src/applications/herald/adapter/HeraldCommitAdapter.php
+++ b/src/applications/herald/adapter/HeraldCommitAdapter.php
@@ -443,7 +443,10 @@
return null;
}
- switch ($revision->getStatus()) {
+ $status = $data->getCommitDetail(
+ 'precommitRevisionStatus',
+ $revision->getStatus());
+ switch ($status) {
case ArcanistDifferentialRevisionStatus::ACCEPTED:
case ArcanistDifferentialRevisionStatus::CLOSED:
return $revision->getPHID();
diff --git a/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php b/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
--- a/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
+++ b/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
@@ -110,6 +110,11 @@
$revision = $revision_query->executeOne();
if ($revision) {
+ if (!$data->getCommitDetail('precommitRevisionStatus')) {
+ $data->setCommitDetail(
+ 'precommitRevisionStatus',
+ $revision->getStatus());
+ }
$commit_drev = PhabricatorEdgeConfig::TYPE_COMMIT_HAS_DREV;
id(new PhabricatorEdgeEditor())
->addEdge($commit->getPHID(), $commit_drev, $revision->getPHID())
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 10:27 AM (20 h, 22 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6918077
Default Alt Text
D10393.diff (1 KB)
Attached To
Mode
D10393: Diffusion / Herald - tweak "Accepted Differential Revision exists" Herald field
Attached
Detach File
Event Timeline
Log In to Comment