Skip to content

Commit

Permalink
Merge pull request #29 from creative-commoners/pulls/main/unlink
Browse files Browse the repository at this point in the history
FIX Do not hyperlink website repos
  • Loading branch information
GuySartorelli authored Jun 5, 2024
2 parents 263234b + 420784e commit db591a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/DataFetcher/Utils/OutputUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public static function outputHtmlTable(string $filename, array $data, string $sc
preg_match_all($rx, $html, $m);
foreach ($m[0] as $url) {
$href = trim($url, '><');
// don't hyperlink repos such as doc.silverstripe.org
if (preg_match('#^[a-z]+\.silverstripe\.org$#', $href)) {
continue;
}
$extraText = '';
// hack for MergeUpsProcessor
if (strpos($href, ':needs-merge-up') !== false) {
Expand Down

0 comments on commit db591a5

Please sign in to comment.