@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Let diffusion.readmequery accept a commit

Summary:
Ref T2683. This should probably just be `diffusion.filecontentquery` but keep things as they are for now.

This method uses a commit, so accept one. Soon, this will save a bit of work.

Test Plan: Viewed readmes in main and browse views.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T2683

Differential Revision: https://secure.phabricator.com/D9093

+4 -4
+1 -3
src/applications/diffusion/conduit/ConduitAPI_diffusion_readmequery_Method.php
··· 1 1 <?php 2 2 3 - /** 4 - * @group conduit 5 - */ 6 3 final class ConduitAPI_diffusion_readmequery_Method 7 4 extends ConduitAPI_diffusion_abstractquery_Method { 8 5 ··· 19 16 protected function defineCustomParamTypes() { 20 17 return array( 21 18 'paths' => 'required array <string>', 19 + 'commit' => 'optional string', 22 20 ); 23 21 } 24 22
+1
src/applications/diffusion/controller/DiffusionBrowseDirectoryController.php
··· 70 70 'diffusion.readmequery', 71 71 array( 72 72 'paths' => $results->getPathDicts(), 73 + 'commit' => $drequest->getStableCommit(), 73 74 )); 74 75 if ($readme) { 75 76 $box = new PHUIBoxView();
+2 -1
src/applications/diffusion/controller/DiffusionRepositoryController.php
··· 83 83 $readme = $this->callConduitWithDiffusionRequest( 84 84 'diffusion.readmequery', 85 85 array( 86 - 'paths' => $browse_results->getPathDicts() 86 + 'paths' => $browse_results->getPathDicts(), 87 + 'commit' => $drequest->getStableCommit(), 87 88 )); 88 89 } else { 89 90 $readme = null;