Differential D15986 Diff 38488 src/applications/diffusion/conduit/DiffusionTagsQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionTagsQueryConduitAPIMethod.php
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | final class DiffusionTagsQueryConduitAPIMethod | ||||
| } | } | ||||
| private function loadGitTagList() { | private function loadGitTagList() { | ||||
| $drequest = $this->getDiffusionRequest(); | $drequest = $this->getDiffusionRequest(); | ||||
| $repository = $drequest->getRepository(); | $repository = $drequest->getRepository(); | ||||
| $refs = id(new DiffusionLowLevelGitRefQuery()) | $refs = id(new DiffusionLowLevelGitRefQuery()) | ||||
| ->setRepository($repository) | ->setRepository($repository) | ||||
| ->withIsTag(true) | ->withRefTypes( | ||||
| array( | |||||
| PhabricatorRepositoryRefCursor::TYPE_TAG, | |||||
| )) | |||||
| ->execute(); | ->execute(); | ||||
| $tags = array(); | $tags = array(); | ||||
| foreach ($refs as $ref) { | foreach ($refs as $ref) { | ||||
| $fields = $ref->getRawFields(); | $fields = $ref->getRawFields(); | ||||
| $tag = id(new DiffusionRepositoryTag()) | $tag = id(new DiffusionRepositoryTag()) | ||||
| ->setAuthor($fields['author']) | ->setAuthor($fields['author']) | ||||
| ->setEpoch($fields['epoch']) | ->setEpoch($fields['epoch']) | ||||
| ▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines | |||||