Skip to content

Commit

Permalink
YETUS-896 Add an emoji column to the github vote table
Browse files Browse the repository at this point in the history
  • Loading branch information
Guanghao Zhang committed Jul 24, 2019
1 parent 6b94d9d commit 7326dd4
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions precommit/src/main/shell/test-patch.d/github.sh
Expand Up @@ -585,7 +585,7 @@ function github_finalreport
big_console_header "Adding comment to Github"

if [[ ${result} == 0 ]]; then
echo ":confetti_ball: **+1 overall**" >> "${commentfile}"
echo ":+1: **+1 overall**" >> "${commentfile}"
else
echo ":broken_heart: **-1 overall**" >> "${commentfile}"
fi
Expand All @@ -599,8 +599,8 @@ function github_finalreport

{
printf '\n\n'
echo "| Vote | Subsystem | Runtime | Comment |"
echo "|:----:|----------:|--------:|:--------|"
echo "| Emoji | Vote | Subsystem | Runtime | Comment |"
echo "|:----:|:----:|----------:|--------:|:--------|"
} >> "${commentfile}"

i=0
Expand All @@ -610,9 +610,17 @@ function github_finalreport
comment=$(echo "${ourstring}" | cut -f5 -d\|)

if [[ "${vote}" = "H" ]]; then
echo "||| _${comment}_ |" >> "${commentfile}"
echo "|||| _${comment}_ |" >> "${commentfile}"
elif [[ "${vote}" = "-1" ]]; then
echo "| :broken_heart: ${TP_VOTE_TABLE[${i}]}" >> "${commentfile}"
elif [[ "${vote}" = "+1" ]]; then
echo "| :+1: ${TP_VOTE_TABLE[${i}]}" >> "${commentfile}"
elif [[ "${vote}" = "-0" ]]; then
echo "| :worried: ${TP_VOTE_TABLE[${i}]}" >> "${commentfile}"
elif [[ "${vote}" = "+0" ]]; then
echo "| :relaxed: ${TP_VOTE_TABLE[${i}]}" >> "${commentfile}"
else
echo "${TP_VOTE_TABLE[${i}]}" >> "${commentfile}"
echo "| :confused: ${TP_VOTE_TABLE[${i}]}" >> "${commentfile}"
fi
((i=i+1))
done
Expand Down

0 comments on commit 7326dd4

Please sign in to comment.