selectCandidates
selectCandidates(
issues,autoLabel):Issue[]
Defined in: src/drain-core.ts:249
Filter issues to those carrying autoLabel and NOT already claimed
(ACTIVE_LABEL), then order: priority-labeled first (each group by issue
number ascending = oldest first). A priority label without the auto label is
ignored — the auto label is the opt-in. Excluding claimed issues is what keeps a
second shepherd instance from re-taking an issue this (or another) instance is
already working or has a ready PR open for.
Parameters
Section titled “Parameters”issues
Section titled “issues”Issue[]
autoLabel
Section titled “autoLabel”string
Returns
Section titled “Returns”Issue[]