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)
Sun, Feb 16, 6:45 PM
Unknown Object (File)
Sat, Feb 8, 4:35 AM
Unknown Object (File)
Jan 21 2025, 8:52 AM
Unknown Object (File)
Jan 15 2025, 7:44 PM
Unknown Object (File)
Jan 8 2025, 1:09 AM
Unknown Object (File)
Dec 30 2024, 9:17 AM
Unknown Object (File)
Dec 30 2024, 8:25 AM
Unknown Object (File)
Dec 28 2024, 6:44 AM
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