GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(web): count skipped runs with one listedWorkflowRuns call · pingdotgg/t3code@4bd2723

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components/workflows
    • WorkflowRunsView.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/workflows/WorkflowRunsView.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/workflows/WorkflowRunsView.tsx
+4-7Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,10 @@ export function WorkflowRunsView({
210210
const all = allWorkflowRunNodes(groups);
211211
const section = groups.workflows.find((candidate) => candidate.name === workflow) ?? null;
212212
// With a workflow picked, the list holds only its runs, so count only its skipped ones.
213-
const skipped =
214-
section === null
215-
? visible.skipped
216-
: listedWorkflowRuns(
217-
snapshot.runs.filter((run) => run.workflow === section.name),
218-
false,
219-
).skipped;
213+
const skipped = listedWorkflowRuns(
214+
section === null ? snapshot.runs : snapshot.runs.filter((run) => run.workflow === section.name),
215+
false,
216+
).skipped;
220217
// A run that another invoked is not in the list itself; the one it is part of stands for it.
221218
const listedFor = (node: WorkflowRunNode | null): string | null => {
222219
if (node === null) return null;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.