From c676e648c4541ec5e2d243b30d39566e95576a62 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 16 Mar 2022 10:45:29 +0100 Subject: [PATCH] Handle release notifications properly --- home/.local/bin/scripts/gh-notification | 30 +++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/home/.local/bin/scripts/gh-notification b/home/.local/bin/scripts/gh-notification index 41d0bcf..2b8d57f 100755 --- a/home/.local/bin/scripts/gh-notification +++ b/home/.local/bin/scripts/gh-notification @@ -204,14 +204,36 @@ if [ "$total" -gt 0 ]; then # Parse out the data from given output lines issue_type="$(echo "$line" | awk '{print $4}' | sed 's/\x1b\[[0-9;]*m//g')" repo_id="$(echo "$line" | awk '{print $3}' | sed 's/\x1b\[[0-9;]*m//g')" - issue_id="$(echo "$line" | awk '{print $5}' | sed 's/\x1b\[[0-9;]*m//g' | cut -c2-)" - description="$(echo "$line" | awk '{for (i=6; i