From 661af404e9235aa67aaac2ade7811c01b58c2b2f Mon Sep 17 00:00:00 2001 From: -LAN- Date: Fri, 27 Feb 2026 15:23:59 +0800 Subject: [PATCH] chore(ci): fold pyrefly diff comments (#32685) --- .github/workflows/pyrefly-diff-comment.yml | 11 +++++++++-- .github/workflows/pyrefly-diff.yml | 9 ++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pyrefly-diff-comment.yml b/.github/workflows/pyrefly-diff-comment.yml index b9790945f9..b21aa17483 100644 --- a/.github/workflows/pyrefly-diff-comment.yml +++ b/.github/workflows/pyrefly-diff-comment.yml @@ -77,8 +77,15 @@ jobs: } const body = diff.trim() - ? `### Pyrefly Diff (base → PR)\\n\\`\\`\\`diff\\n${diff}\\n\\`\\`\\`` - : '### Pyrefly Diff\\nNo changes detected.'; + ? `### Pyrefly Diff +
+base → PR + +\`\`\`diff +${diff} +\`\`\` +
` + : '### Pyrefly Diff\nNo changes detected.'; await github.rest.issues.createComment({ issue_number: prNumber, diff --git a/.github/workflows/pyrefly-diff.yml b/.github/workflows/pyrefly-diff.yml index 7dc407c11c..0311187d44 100644 --- a/.github/workflows/pyrefly-diff.yml +++ b/.github/workflows/pyrefly-diff.yml @@ -74,7 +74,14 @@ jobs: } const body = diff.trim() - ? `### Pyrefly Diff (base → PR)\n\`\`\`diff\n${diff}\n\`\`\`` + ? `### Pyrefly Diff +
+base → PR + +\`\`\`diff +${diff} +\`\`\` +
` : '### Pyrefly Diff\nNo changes detected.'; await github.rest.issues.createComment({