From 2f2529fbbedce612cf507dc8e2176db44a3d5428 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 11 Oct 2016 19:14:29 -0500 Subject: [PATCH] Improve gitlog script to reference Github issues --- tests/scripts/packaging/gitlog.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tests/scripts/packaging/gitlog.php b/tests/scripts/packaging/gitlog.php index 11dbdd71f3..fefbe1ada1 100644 --- a/tests/scripts/packaging/gitlog.php +++ b/tests/scripts/packaging/gitlog.php @@ -60,10 +60,20 @@ foreach ($logs as $log) { if (substr($issue, 0, 1) == '#') { // not a BeezNest task $num = substr($issue, 1); - if ($formatHTML) { - $issueLink = ' - #' . $num . ''; + if ($num > 4000) { + //should be Chamilo support site + if ($formatHTML) { + $issueLink = ' - CT#' . $num . ''; + } else { + $issueLink = ' - ' . $num; + } } else { - $issueLink = ' - ' . $num; + //should be Github + if ($formatHTML) { + $issueLink = ' - GH#' . $num . ''; + } else { + $issueLink = ' - ' . $num; + } } } else { $num = substr($issue, 3);