Fix icons in p10k config once more

This commit is contained in:
Alexander Bantyev 2022-09-14 01:32:15 +04:00
parent 4982aae72e
commit 54bdb27773
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -1813,8 +1813,8 @@
fi | tee /dev/stderr \
| jq -r '.data.repository.object.statusCheckRollup as $rollup | $rollup.state as $state | $rollup.contexts.edges as $contexts | if $rollup == null then ["∅"] else
$contexts | map (.node.state) | unique | map(. as $state | {} | .[$state|tostring] = ($contexts | map(select(.node.state == $state)) | length)) | add as $result
| (($result.PENDING//0) + ($result.EXPECTED//0)) as $waiting
| ($result.null//0) as $running
| (($result.EXPECTED//0)) as $waiting
| (($result.null//0) + ($result.PENDING//0)) as $running
| (($result.SUCCESS//0) + ($result.NEUTRAL//0)) as $success
| (($result.FAILURE//0) + ($result.ERROR//0)) as $failure
| if $state == "PENDING" or $state == "EXPECTED" then [" "] elif $state == "SUCCESS" then [""] elif $state == "FAILURE" or $state == "ERROR" then [""] else ["(?)"] end