countDefinedWorkflows
countDefinedWorkflows(
repoDir):number
Defined in: src/backlog.ts:90
Number of workflows defined in a repo working copy — the count shown on the
backlog Actions tab. “Defined” = files directly under .github/workflows
ending in .yml/.yaml. Read from the local checkout, so it adds zero
GitHub API pressure to the rate-limited counts warmer (unlike issue/PR counts,
which hit the forge). Missing dir / unreadable → 0.
Deliberately diverges from ActionsPanel, which lists workflow runs from GitHub: a never-run (or non-default-branch) workflow still counts here but has no run row there, so the badge can read higher than the panel.
Parameters
Section titled “Parameters”repoDir
Section titled “repoDir”string
Returns
Section titled “Returns”number