Page MenuHomePhabricator

Extend conduit repository.create for hosting and policies
Needs RevisionPublic

Authored by darabi on Jun 17 2014, 9:56 AM.



Ref T4789. While it is possible to create a repo with the conduit, it
is not possible to control the hosting and policy parameters. This
patch introduces the following parameters to the conduit call, which
are forwarded without validation to the PhabricatorRepository.

Test Plan

Create a repo with

echo '{"name":"test-repo","callsign":"TRP","vcs":"git","hosting-enabled":true,"serve-over-http": "readwrite", "pushPolicy":"PHID-PROJ-2ougcjiddsrkkcptcfpi", "localPath":"/var/repo/CDEL"}' | arc call-conduit repository.create

To find out the PHIDs of your projects, execute

echo "{}" | arc call-conduit project.query

Diff Detail

rP Phabricator
Lint Passed
No Test Coverage
Build Status
Buildable 1171
Build 1171: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

darabi retitled this revision from to Extend conduit repository.create for hosting and policies.
darabi updated this object.
darabi edited the test plan for this revision. (Show Details)
darabi added a reviewer: Blessed Reviewers.
bluehawk added a subscriber: bluehawk.

This worked wonderfully for me, thank you so much!

Anyone know when this patch will make it into master?

We probably won't get to T4789 for a while.

epriestley edited edge metadata.

This should wait until after T5873 and be rebuilt on top of it.

This revision now requires changes to proceed.May 17 2015, 1:33 PM