Skip to content

Commit

Permalink
Merge pull request #50 from rcousineau-xandr/warn-with-warning
Browse files Browse the repository at this point in the history
key warning styling via the word warning
  • Loading branch information
navicore authored Jan 17, 2024
2 parents 0c3acb2 + 4ef0218 commit 2856066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion out
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ style=$(evaluate "$(jq -r '.params.style // "default"' < "${payload}")")
# or in the text_output if we didn't find it in the title
[[ "${style}" == "default" ]] && [[ "${text_output,,}" =~ (pass|succeed|success) ]] && style="good"
[[ "${style}" == "default" ]] && [[ "${text_output,,}" =~ (fail) ]] && style="attention"
[[ "${style}" == "default" ]] && [[ "${text_output,,}" =~ (error) ]] && style="warning"
[[ "${style}" == "default" ]] && [[ "${text_output,,}" =~ (error|warning) ]] && style="warning"

DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
Expand Down

0 comments on commit 2856066

Please sign in to comment.