@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.

made DiffusionHomeController use commit summaries

Summary: Latest commit in repositories are displayed together with their summaries if available

Test Plan:
Diffusion did not crash - a good sign

commit summaries also only appear on Diffusion Home //only// - as expected

Reviewers: epriestley, btrahan, chad

Reviewed By: epriestley

CC: aran, Korvin

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

authored by

Anh Nhan Nguyen and committed by
epriestley
58ef3be1 5de77744

+9 -7
+3 -6
src/applications/diffusion/controller/DiffusionHomeController.php
··· 130 130 'href' => '/diffusion/'.$repository->getCallsign().'/', 131 131 ), 132 132 $repository->getName()), 133 - $repository->getDetail('description'), 134 133 PhabricatorRepositoryType::getNameForRepositoryType( 135 134 $repository->getVersionControlSystem()), 136 135 $size, ··· 138 137 $commit 139 138 ? DiffusionView::linkCommit( 140 139 $repository, 141 - $commit->getCommitIdentifier()) 140 + $commit->getCommitIdentifier(), 141 + $commit->getSummary()) 142 142 : '-', 143 143 $date, 144 144 $time, ··· 166 166 $table->setHeaders( 167 167 array( 168 168 'Repository', 169 - 'Description', 170 169 'VCS', 171 170 'Commits', 172 171 'Lint', ··· 177 176 $table->setColumnClasses( 178 177 array( 179 178 'pri', 180 - 'wide', 181 179 '', 182 - 'n', 183 180 'n', 184 181 'n', 182 + 'wide', 185 183 '', 186 184 'right', 187 185 )); 188 186 $table->setColumnVisibility( 189 187 array( 190 - true, 191 188 true, 192 189 true, 193 190 true,
+6 -1
src/applications/diffusion/view/DiffusionView.php
··· 113 113 114 114 final public static function linkCommit( 115 115 PhabricatorRepository $repository, 116 - $commit) { 116 + $commit, 117 + $summary = '') { 117 118 118 119 $commit_name = self::nameCommit($repository, $commit); 119 120 $callsign = $repository->getCallsign(); 121 + 122 + if (strlen($summary)) { 123 + $commit_name .= ': ' . $summary; 124 + } 120 125 121 126 return phutil_tag( 122 127 'a',