Page MenuHomePhabricator

Expose repository ref rules via "diffusion.repository.search"
ClosedPublic

Authored by epriestley on Mon, Apr 15, 1:57 PM.

Details

Summary

Depends on D20425. Ref T13277. See PHI1067. There's currently no way to retrieve branch/ref rules over the API, which makes some management operations against a large number of repositories difficult.

Expose these rules to the API.

Test Plan

Called diffusion.repository.search, got rules in the result set.

Diff Detail

Repository
rP Phabricator
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

epriestley created this revision.Mon, Apr 15, 1:57 PM
epriestley requested review of this revision.Mon, Apr 15, 1:59 PM
amckinley accepted this revision.Wed, Apr 17, 8:06 PM
amckinley added inline comments.
src/applications/repository/storage/PhabricatorRepository.php
2842

Should be "Fetch, track, and permanent ref rules", right?

This revision is now accepted and ready to land.Wed, Apr 17, 8:06 PM
epriestley added inline comments.Thu, Apr 18, 12:27 PM
src/applications/repository/storage/PhabricatorRepository.php
2842

I'm being sneaky about "track" since I'm trying to get rid of it.

This revision was automatically updated to reflect the committed changes.