chore: auto-fix lint & formatting [skip ci]

This commit is contained in:
github-actions[bot] committed 2026-09-26 06:58:56 +00:00
1 parent e607d41432
commit ae36c22fda
3 files changed
+17 -6

No files matched your search

+1 -1
View File
@@ -199,7 +199,7 @@ tests/__snapshots__/ # formatter snapshot golden files (toMatchSnapshot)
- Milestone progress bars (🟢🟡🟠⬜) are data visualization and are exempt from the emoji toggle. - Milestone progress bars (🟢🟡🟠⬜) are data visualization and are exempt from the emoji toggle.
- `workflow_run` messages render a **Jobs** field as a Discord `diff` fenced code block - `workflow_run` messages render a **Jobs** field as a Discord `diff` fenced code block
(`server/lib/formatters/workflow.ts`): one line per job, `${marker} ${name} ${emoji}${status}` plus (`server/lib/formatters/workflow.ts`): one line per job, `${marker} ${name} ${emoji}${status}` plus
` · {duration}` for completed jobs. `+` (green) for `success`, `-` (red) for other non-pending `· {duration}` for completed jobs. `+` (green) for `success`, `-` (red) for other non-pending
conclusions, a plain space for running/queued/pending; job names clamp to 200 chars and the field conclusions, a plain space for running/queued/pending; job names clamp to 200 chars and the field
to the platform field limit. Drivers without diff support (Telegram, Feishu) collapse it to inline code. to the platform field limit. Drivers without diff support (Telegram, Feishu) collapse it to inline code.
- Commit hashes, branches and tags render as inline code wrapped in a hyperlink - Commit hashes, branches and tags render as inline code wrapped in a hyperlink
+2 -3
View File
@@ -155,7 +155,7 @@ export function formatWorkflowRun(
? "running" ? "running"
: j.status === "queued" : j.status === "queued"
? "queued" ? "queued"
: j.conclusion ?? "pending"; : (j.conclusion ?? "pending");
const emoji = WORKFLOW_CONCLUSION_EMOJI[status] ?? "⏳"; const emoji = WORKFLOW_CONCLUSION_EMOJI[status] ?? "⏳";
const marker = const marker =
status === "success" status === "success"
@@ -163,8 +163,7 @@ export function formatWorkflowRun(
: status === "running" || status === "queued" || status === "pending" : status === "running" || status === "queued" || status === "pending"
? " " ? " "
: "-"; : "-";
const done = const done = status !== "running" && status !== "queued" && status !== "pending";
status !== "running" && status !== "queued" && status !== "pending";
const duration = done ? jobDuration(j.started_at, j.completed_at) : undefined; const duration = done ? jobDuration(j.started_at, j.completed_at) : undefined;
return `${marker} ${cap(j.name ?? "", 200)} ${em(emoji)}${status}${duration ? ` · ${duration}` : ""}`; return `${marker} ${cap(j.name ?? "", 200)} ${em(emoji)}${status}${duration ? ` · ${duration}` : ""}`;
}); });
+14 -2
View File
@@ -165,10 +165,22 @@ describe("message title spec", () => {
html_url: "https://github.com/acme/widget/actions/runs/42", html_url: "https://github.com/acme/widget/actions/runs/42",
run_number: 42, run_number: 42,
jobs: [ jobs: [
{ name: "build", status: "completed", conclusion: "success", started_at: "2024-01-01T00:00:00Z", completed_at: "2024-01-01T00:01:23Z" }, {
name: "build",
status: "completed",
conclusion: "success",
started_at: "2024-01-01T00:00:00Z",
completed_at: "2024-01-01T00:01:23Z",
},
{ name: "deploy", status: "in_progress", conclusion: null }, { name: "deploy", status: "in_progress", conclusion: null },
{ name: "lint", status: "queued", conclusion: null }, { name: "lint", status: "queued", conclusion: null },
{ name: "test", status: "completed", conclusion: "failure", started_at: "2024-01-01T00:00:00Z", completed_at: "2024-01-01T00:00:45Z" }, {
name: "test",
status: "completed",
conclusion: "failure",
started_at: "2024-01-01T00:00:00Z",
completed_at: "2024-01-01T00:00:45Z",
},
], ],
}, },
repository: repo, repository: repo,