summary refs log tree commit diff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/jira-CR.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/jira-CR.php b/.local/bin/jira-CR.php
index 7e5f55f..46dce3b 100755
--- a/.local/bin/jira-CR.php
+++ b/.local/bin/jira-CR.php
@@ -15,6 +15,7 @@ if (!function_exists('array_any')) {
 
 $ansired = "\033[31m";
 $ansigreen = "\033[32m";
+$ansiyellow = "\033[33m";
 $ansireset = "\033[0m";
 
 $padlen = 50;
@@ -113,8 +114,11 @@ foreach ($prs_json as $pr) {
         $commentNames = array_unique($commentNames);
 
         $changes = $changeNames ? (str_repeat("❌", count($changeNames)) . ": " . implode(", ", $changeNames) . '. ') : '';
+        $changes = $changes ? ($ansired . $changes . $ansireset) : '';
         $reviewRequests = $requestNames ? (str_repeat("🟡", count($requestNames)) . ": " . implode(", ", $requestNames) . '. ') : '';
+        $reviewRequests = $reviewRequests ? ($ansiyellow . $reviewRequests . $ansireset) : '';
         $approvals = $approvers ? (str_repeat("✅", count($approvers)) . ": " . implode(", ", $approvers) . '. ') : '';
+        $approvals = $approvals ? ($ansigreen . $approvals . $ansireset) : '';
         $comments = $commentNames ? (str_repeat("💬", count($commentNames)) . ": " . implode(", ", $commentNames) . '. ') : '';
 
         $review_status = $changes . $reviewRequests . $approvals . $comments;