diff options
| author | Zach DeCook <zach.decook@bettercarpeople.com> | 2026-05-12 11:25:40 -0400 |
|---|---|---|
| committer | Zach DeCook <zach.decook@bettercarpeople.com> | 2026-05-12 11:25:40 -0400 |
| commit | 23b8225826fd5fa75a0415cd7cd86554d34308ad (patch) | |
| tree | 3882992fa36421f13dd764094a719b2238c6408b /.local/bin/jira-CR.php | |
| parent | 27de71ec539cc866f89577dc7a95d36bff62f6db (diff) | |
| download | dotfiles-23b8225826fd5fa75a0415cd7cd86554d34308ad.tar.gz | |
add more colors
Diffstat (limited to '.local/bin/jira-CR.php')
| -rwxr-xr-x | .local/bin/jira-CR.php | 4 |
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; |
