mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 00:18:28 +08:00
chore(ci): fold pyrefly diff comments (#32685)
This commit is contained in:
parent
8ff51a58fd
commit
661af404e9
11
.github/workflows/pyrefly-diff-comment.yml
vendored
11
.github/workflows/pyrefly-diff-comment.yml
vendored
@ -77,8 +77,15 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
const body = diff.trim()
|
const body = diff.trim()
|
||||||
? `### Pyrefly Diff (base → PR)\\n\\`\\`\\`diff\\n${diff}\\n\\`\\`\\``
|
? `### Pyrefly Diff
|
||||||
: '### Pyrefly Diff\\nNo changes detected.';
|
<details>
|
||||||
|
<summary>base → PR</summary>
|
||||||
|
|
||||||
|
\`\`\`diff
|
||||||
|
${diff}
|
||||||
|
\`\`\`
|
||||||
|
</details>`
|
||||||
|
: '### Pyrefly Diff\nNo changes detected.';
|
||||||
|
|
||||||
await github.rest.issues.createComment({
|
await github.rest.issues.createComment({
|
||||||
issue_number: prNumber,
|
issue_number: prNumber,
|
||||||
|
|||||||
9
.github/workflows/pyrefly-diff.yml
vendored
9
.github/workflows/pyrefly-diff.yml
vendored
@ -74,7 +74,14 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
const body = diff.trim()
|
const body = diff.trim()
|
||||||
? `### Pyrefly Diff (base → PR)\n\`\`\`diff\n${diff}\n\`\`\``
|
? `### Pyrefly Diff
|
||||||
|
<details>
|
||||||
|
<summary>base → PR</summary>
|
||||||
|
|
||||||
|
\`\`\`diff
|
||||||
|
${diff}
|
||||||
|
\`\`\`
|
||||||
|
</details>`
|
||||||
: '### Pyrefly Diff\nNo changes detected.';
|
: '### Pyrefly Diff\nNo changes detected.';
|
||||||
|
|
||||||
await github.rest.issues.createComment({
|
await github.rest.issues.createComment({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user