@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.

set localpath in repository.create

Summary: Since there's no way to set it, it defaults to an empty value. Make the conduit call set up sane default.

Test Plan: Call method, repo get's built with expected localpath.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

authored by

Aviv Eyal and committed by
epriestley
64e2aad4 8756d82c

+8 -1
+8 -1
src/applications/repository/conduit/ConduitAPI_repository_create_Method.php
··· 25 25 'description' => 'optional string', 26 26 'encoding' => 'optional string', 27 27 'tracking' => 'optional bool', 28 - 'uri' => 'optional string', 28 + 'uri' => 'required string', 29 29 'credentialPHID' => 'optional string', 30 30 'svnSubpath' => 'optional string', 31 31 'branchFilter' => 'optional list<string>', ··· 82 82 } 83 83 $repository->setCallsign($callsign); 84 84 85 + $local_path = PhabricatorEnv::getEnvConfig( 86 + 'repository.default-local-path'); 87 + 88 + $local_path = rtrim($local_path, '/'); 89 + $local_path = $local_path.'/'.$callsign.'/'; 90 + 85 91 $vcs = $request->getValue('vcs'); 86 92 87 93 $map = array( ··· 104 110 'description' => $request->getValue('description'), 105 111 'tracking-enabled' => (bool)$request->getValue('tracking', true), 106 112 'remote-uri' => $remote_uri, 113 + 'local-path' => $local_path, 107 114 'branch-filter' => array_fill_keys( 108 115 $request->getValue('branchFilter', array()), 109 116 true),