PriorityScorer
Defined in: queue/priority.ts:27
Priority scorer for queue items
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PriorityScorer():
PriorityScorer
Returns
Section titled “Returns”PriorityScorer
Methods
Section titled “Methods”score()
Section titled “score()”score(
pr):Priority
Defined in: queue/priority.ts:32
Calculate priority score from PR metadata Returns 1 (critical), 2 (normal), or 3 (low)
Parameters
Section titled “Parameters”Returns
Section titled “Returns”fromLabels()
Section titled “fromLabels()”
staticfromLabels(labels):Priority
Defined in: queue/priority.ts:74
Calculate priority from labels Looks for priority/critical, priority/high, priority/low labels
Parameters
Section titled “Parameters”labels
Section titled “labels”string[]
Returns
Section titled “Returns”fromType()
Section titled “fromType()”
staticfromType(type):Priority
Defined in: queue/priority.ts:137
Calculate priority from PR type
Parameters
Section titled “Parameters”"ci-fix" | "security" | "feature" | "docs" | "bugfix" | "chore"