Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0738d14

Browse filesBrowse files
aduh95RafaelGSS
authored andcommitted
tools: fix request-ci-failed comment
Refs: #45209 (comment) PR-URL: #45218 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 02ebde3 commit 0738d14
Copy full SHA for 0738d14

File tree

Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed
Open diff view settings
Collapse file

‎tools/actions/start-ci.sh‎

Copy file name to clipboardExpand all lines: tools/actions/start-ci.sh
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ for pr in "$@"; do
1717
# Do we need to reset?
1818
gh pr edit "$pr" --add-label "$REQUEST_CI_FAILED_LABEL"
1919

20-
jq -n --arg content "<details><summary>Couldn't start CI</summary><pre>$(cat output || true)</pre></details>" > output.json
20+
# shellcheck disable=SC2154
21+
cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
22+
body="<details><summary>Failed to start CI</summary><pre>$(cat output)</pre><a href='$cqurl'>$cqurl</a></details>"
23+
echo "$body"
2124

22-
gh pr comment "$pr" --body-file output.json
25+
gh pr comment "$pr" --body "$body"
2326

24-
rm output.json;
27+
rm output
2528
fi
2629
done;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.