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

at recaptime-dev/main 39 lines 898 B view raw
1<?php 2 3$table = new PhabricatorRepositoryCommit(); 4$conn = $table->establishConnection('w'); 5 6$rows = queryfx_all( 7 $conn, 8 'SELECT fullCommitName FROM repository_badcommit'); 9 10$viewer = PhabricatorUser::getOmnipotentUser(); 11 12foreach ($rows as $row) { 13 $identifier = $row['fullCommitName']; 14 15 $commit = id(new DiffusionCommitQuery()) 16 ->setViewer($viewer) 17 ->withIdentifiers(array($identifier)) 18 ->executeOne(); 19 20 if (!$commit) { 21 echo tsprintf( 22 "%s\n", 23 pht( 24 'Skipped hint for "%s", this is not a valid commit.', 25 $identifier)); 26 } else { 27 PhabricatorRepositoryCommitHint::updateHint( 28 $commit->getRepository()->getPHID(), 29 $commit->getCommitIdentifier(), 30 null, 31 PhabricatorRepositoryCommitHint::HINT_UNREADABLE); 32 33 echo tsprintf( 34 "%s\n", 35 pht( 36 'Updated commit hint for "%s".', 37 $identifier)); 38 } 39}