chore(ci): fold pyrefly diff comments (#32685)

This commit is contained in:
-LAN-
2026-02-27 15:23:59 +08:00
committed by GitHub
parent 8ff51a58fd
commit 661af404e9
2 changed files with 17 additions and 3 deletions

View File

@@ -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
<details>
<summary>base → PR</summary>
\`\`\`diff
${diff}
\`\`\`
</details>`
: '### Pyrefly Diff\nNo changes detected.';
await github.rest.issues.createComment({
issue_number: prNumber,