Page MenuHomePhabricator

Extend conduit repository.create for hosting and policies
Needs RevisionPublic

Authored by darabi on Jun 17 2014, 9:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 6 2024, 7:16 AM
Unknown Object (File)
Oct 2 2024, 9:56 AM
Unknown Object (File)
Oct 2 2024, 9:54 AM
Unknown Object (File)
Oct 2 2024, 9:48 AM
Unknown Object (File)
Oct 1 2024, 5:53 PM
Unknown Object (File)
Sep 30 2024, 9:50 PM
Unknown Object (File)
Sep 25 2024, 11:07 AM
Unknown Object (File)
Sep 21 2024, 9:11 PM
Tokens
"Haypence" token, awarded by shaneduffy."Yellow Medal" token, awarded by bluehawk.

Details

Summary

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

Repository
rP Phabricator
Branch
conduit-repository-create
Lint
Lint Passed
Unit
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