From f75c0c5aee6f0565e9009ddc646f42008db8a66d Mon Sep 17 00:00:00 2001 From: Arthur Tazhitdinov Date: Sun, 1 Feb 2026 22:12:48 +0300 Subject: [PATCH] format fixes --- .github/workflows/pr-formatting-check.yml | 9 ++++----- .github/workflows/pr-writer.yml | 19 ++++++------------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pr-formatting-check.yml b/.github/workflows/pr-formatting-check.yml index a02c5fd5..c2b43f32 100644 --- a/.github/workflows/pr-formatting-check.yml +++ b/.github/workflows/pr-formatting-check.yml @@ -38,11 +38,10 @@ jobs: const marker = ''; const error = `${{ steps.title_check.outputs.error_message || steps.title_check.outputs.error || '' }}`.trim(); const details = error ? `\n\n**Error:** ${error}` : '\n\n**Error:** See workflow logs.'; - const body = `${marker} -**PR title check failed** - -Please use a Conventional Commit-style prefix (e.g., \`feat:\`, \`fix:\`, \`docs:\`, \`chore:\`). -If this change should appear in release notes, ensure the title reflects the correct category.${details}`; + const body = + `${marker}\n**PR title check failed**\n\n` + + `Please use a Conventional Commit-style prefix (e.g., \`feat:\`, \`fix:\`, \`docs:\`, \`chore:\`).\n` + + `If this change should appear in release notes, ensure the title reflects the correct category.${details}`; const { data: comments } = await github.rest.issues.listComments({ owner: context.repo.owner, diff --git a/.github/workflows/pr-writer.yml b/.github/workflows/pr-writer.yml index 115c0d23..0c5d8a56 100644 --- a/.github/workflows/pr-writer.yml +++ b/.github/workflows/pr-writer.yml @@ -125,19 +125,12 @@ jobs: const metaUrl = metaId ? `https://github.com/${owner}/${repo}/actions/runs/${runId}/artifacts/${metaId}` : null; const body = -`${marker} -**Firmware build stats** - -\`\`\` -${ram || "RAM: not found"} -${flash || "Flash: not found"} -\`\`\` - -**Artifacts** -- CI run: ${runUrl} -- Firmware binary: ${fwUrl ? `[firmware-bin](${fwUrl})` : "artifact not found"} -- Build logs: ${metaUrl ? `[build-meta](${metaUrl})` : "artifact not found"} -`; + `${marker}\n**Firmware build stats**\n\n` + + `\`\`\`\n${ram || "RAM: not found"}\n${flash || "Flash: not found"}\n\`\`\`\n\n` + + `**Artifacts**\n` + + `- CI run: ${runUrl}\n` + + `- Firmware binary: ${fwUrl ? `[firmware-bin](${fwUrl})` : "artifact not found"}\n` + + `- Build logs: ${metaUrl ? `[build-meta](${metaUrl})` : "artifact not found"}`; const { data: comments } = await github.rest.issues.listComments({ owner,