mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-05 15:17: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 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,
|
||||||
|
|||||||
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 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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user