Skip to content

Commit df823a5

Browse files
authored
Use collapsible comments for failed checks (#4)
* Use collapsible comments for failed checks * Update failed check display for consistency with preflight
1 parent 359eabf commit df823a5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/init.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,16 @@ report_error() {
108108
local message=$1
109109

110110
if [[ -n "$merge_request_id" ]]; then
111-
sticky_comment "<h2>❌ Gruntwork Pipelines is unable to run</h2>❌ $message<br><br><a href=\"$CI_PROJECT_URL/-/jobs/$CI_JOB_ID\">View full logs</a>"
111+
sticky_comment "<details open>
112+
<summary>
113+
<h2>❌ Gruntwork Pipelines is unable to run</h2>
114+
</summary>
115+
<p>❌ $message</p>
116+
<hr/>
117+
<p>
118+
<em>👉 <a href=\"$CI_PROJECT_URL/-/jobs/$CI_JOB_ID\">View full logs</a></em>
119+
</p>
120+
</details>"
112121
collapse_older_pipelines_notes
113122
fi
114123
echo "$message"

0 commit comments

Comments
 (0)