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 marker = '<!-- pr-title-check -->';
const error = `${{ steps.title_check.outputs.error_message || steps.title_check.outputs.error || '' }}`.trim(); 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 details = error ? `\n\n**Error:** ${error}` : '\n\n**Error:** See workflow logs.';
const body = `${marker} const body =
**PR title check failed** `${marker}\n**PR title check failed**\n\n` +
`Please use a Conventional Commit-style prefix (e.g., \`feat:\`, \`fix:\`, \`docs:\`, \`chore:\`).\n` +
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}`;
If this change should appear in release notes, ensure the title reflects the correct category.${details}`;
const { data: comments } = await github.rest.issues.listComments({ const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner, 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 metaUrl = metaId ? `https://github.com/${owner}/${repo}/actions/runs/${runId}/artifacts/${metaId}` : null;
const body = const body =
`${marker} `${marker}\n**Firmware build stats**\n\n` +
**Firmware build stats** `\`\`\`\n${ram || "RAM: not found"}\n${flash || "Flash: not found"}\n\`\`\`\n\n` +
`**Artifacts**\n` +
\`\`\` `- CI run: ${runUrl}\n` +
${ram || "RAM: not found"} `- Firmware binary: ${fwUrl ? `[firmware-bin](${fwUrl})` : "artifact not found"}\n` +
${flash || "Flash: not found"} `- Build logs: ${metaUrl ? `[build-meta](${metaUrl})` : "artifact not found"}`;
\`\`\`
**Artifacts**
- CI run: ${runUrl}
- Firmware binary: ${fwUrl ? `[firmware-bin](${fwUrl})` : "artifact not found"}
- Build logs: ${metaUrl ? `[build-meta](${metaUrl})` : "artifact not found"}
`;
const { data: comments } = await github.rest.issues.listComments({ const { data: comments } = await github.rest.issues.listComments({
owner, owner,