Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/HeraldCommitAdapter.php
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | public function getTriggerObjectPHIDs() { | ||||
$repository_phid = $this->getRepository()->getPHID(); | $repository_phid = $this->getRepository()->getPHID(); | ||||
$commit_phid = $this->getObject()->getPHID(); | $commit_phid = $this->getObject()->getPHID(); | ||||
$phids = array(); | $phids = array(); | ||||
$phids[] = $commit_phid; | $phids[] = $commit_phid; | ||||
$phids[] = $repository_phid; | $phids[] = $repository_phid; | ||||
// NOTE: This is projects for the repository, not for the commit. When | // NOTE: This is projects for the repository, not for the commit. When | ||||
// Herald evalutes, commits normally can not have any project tags yet. | // Herald evaluates, commits normally can not have any project tags yet. | ||||
$repository_project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs( | $repository_project_phids = PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
$repository_phid, | $repository_phid, | ||||
$project_type); | $project_type); | ||||
foreach ($repository_project_phids as $phid) { | foreach ($repository_project_phids as $phid) { | ||||
$phids[] = $phid; | $phids[] = $phid; | ||||
} | } | ||||
$phids = array_unique($phids); | $phids = array_unique($phids); | ||||
▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines |