GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: fix `request-ci-failed` comment · nodejs/node@078be3b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools/actions
    • start-ci.sh
Expand file treeCollapse file tree
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.