mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 14:47:37 +03:00
format fixes
This commit is contained in:
parent
cb9c17b80a
commit
f75c0c5aee
9
.github/workflows/pr-formatting-check.yml
vendored
9
.github/workflows/pr-formatting-check.yml
vendored
@ -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,
|
||||
|
||||
19
.github/workflows/pr-writer.yml
vendored
19
.github/workflows/pr-writer.yml
vendored
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user