File tree 1 file changed +6
-2
lines changed
.github/workflows/scripts
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 29
29
# GITHUB_TOKEN GitHub token for authentication.
30
30
#
31
31
32
- # shellcheck disable=SC2153
32
+ # shellcheck disable=SC2153,SC2155
33
33
34
34
# Ensure that the exit status of pipelines is non-zero in the event that at least one
35
35
# of the commands in a pipeline fails:
@@ -253,7 +253,11 @@ update_commit_map() {
253
253
for existing in " ${commit_keys[@]} " ; do
254
254
if [ " $existing " = " $key " ]; then
255
255
commit_counts[i]=$(( commit_counts[i] + 1 ))
256
- commit_comments[i]=" ${commit_comments[i]} " $' \n\n ' " - ${link} " $' \n\n ' " > **Line ${line} **: ${formatted_body} " $' \n\n ' " ${code_snippet} "
256
+ if [ " $line " = " null" ]; then
257
+ commit_comments[i]=" ${commit_comments[i]} " $' \n\n ' " - ${link} " $' \n\n ' " > ${formatted_body} " $' \n\n ' " ${code_snippet} "
258
+ else
259
+ commit_comments[i]=" ${commit_comments[i]} " $' \n\n ' " - ${link} " $' \n\n ' " > **Line ${line} **: ${formatted_body} " $' \n\n ' " ${code_snippet} "
260
+ fi
257
261
found=1
258
262
break
259
263
fi
You can’t perform that action at this time.
0 commit comments