format fixes

This commit is contained in:
Arthur Tazhitdinov 2026-02-01 22:12:48 +03:00
parent cb9c17b80a
commit f75c0c5aee
2 changed files with 10 additions and 18 deletions

View File

@ -38,11 +38,10 @@ jobs:
const marker = '<!-- pr-title-check -->';
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,

View File

@ -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,