@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow build steps to create URI artifacts

Summary: Ref T1049. This allows build steps to create URI artifacts, which can be used to link to external builds and other resources.

Test Plan: Used a build step in an external library to test the creation of a URI artifact and verified it appeared correctly.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T1049

Differential Revision: https://secure.phabricator.com/D10173

+6 -1
+6 -1
src/applications/harbormaster/storage/build/HarbormasterBuildArtifact.php
··· 13 13 14 14 const TYPE_FILE = 'file'; 15 15 const TYPE_HOST = 'host'; 16 - const TYPE_BUILD_STATE = 'buildstate'; 16 + const TYPE_URI = 'uri'; 17 17 18 18 public static function initializeNewBuildArtifact( 19 19 HarbormasterBuildTarget $build_target) { ··· 69 69 ->setObjectName(pht('Drydock Lease')) 70 70 ->setHeader($lease->getID()) 71 71 ->setHref('/drydock/lease/'.$lease->getID()); 72 + case self::TYPE_URI: 73 + return id(new PHUIObjectItemView()) 74 + ->setObjectName($data['name']) 75 + ->setHeader($data['uri']) 76 + ->setHref($data['uri']); 72 77 default: 73 78 return null; 74 79 }