From 23b8225826fd5fa75a0415cd7cd86554d34308ad Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 12 May 2026 11:25:40 -0400 Subject: add more colors --- .local/bin/jira-CR.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.local') 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; -- cgit 1.4.1