@jsenv/github-pull-request-impact 1.8.26 → 1.8.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/github-pull-request-impact",
3
- "version": "1.8.26",
3
+ "version": "1.8.28",
4
4
  "description": "Report pull request impact on something",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "/src/"
27
27
  ],
28
28
  "dependencies": {
29
- "@jsenv/filesystem": "4.14.6",
30
- "@jsenv/humanize": "1.4.0"
29
+ "@jsenv/filesystem": "4.15.1",
30
+ "@jsenv/humanize": "1.5.1"
31
31
  }
32
32
  }
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  import { assertAndNormalizeDirectoryUrl } from "@jsenv/filesystem";
7
- import { createLogger } from "@jsenv/humanize";
7
+ import { createLogger, errorToMarkdown } from "@jsenv/humanize";
8
8
  import { fileURLToPath } from "node:url";
9
9
  import { createGitHubPullRequestCommentText } from "./internal/create_github_pull_request_comment_text.js";
10
10
  import { exec } from "./internal/exec.js";
@@ -410,7 +410,7 @@ const jsenvCreateBeforeMergeErrorComment = (
410
410
 
411
411
  **Error:** Error while trying to collect info before merging ${pullRequestHead} into ${pullRequestBase}.
412
412
 
413
- <pre>${error.stack}</pre>
413
+ ${errorToMarkdown(error)}
414
414
 
415
415
  ---`;
416
416
  };
@@ -423,7 +423,7 @@ const jsenvCreateCommentForAfterMergeError = (
423
423
 
424
424
  **Error:** Error while trying to collect info after merging ${pullRequestHead} into ${pullRequestBase}.
425
425
 
426
- <pre>${error.stack}</pre>
426
+ ${errorToMarkdown(error)}
427
427
 
428
428
  ---`;
429
429
  };