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({