Page MenuHomePhabricator

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

Authored by epriestley on Apr 15 2019, 1:57 PM.
Tags
None
Referenced Files
F19035703: D20426.id.diff
Nov 25 2025, 5:47 PM
F19026564: D20426.diff
Nov 24 2025, 11:25 AM
F18927133: D20426.diff
Nov 9 2025, 8:44 PM
F18767121: D20426.id48728.diff
Oct 7 2025, 8:39 PM
F18766659: D20426.id.diff
Oct 7 2025, 5:47 PM
F18714654: D20426.diff
Sep 29 2025, 8:35 AM
F18626395: D20426.id48781.diff
Sep 16 2025, 1:11 AM
F18616324: D20426.diff
Sep 14 2025, 5:07 PM
Subscribers
None

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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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.Apr 17 2019, 8:06 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.