Skip to content

Commit 976de37

Browse files
feat(estimation): Update priority scoring weights and defaults
fixed wrong size labels, default reach is medum
1 parent 2e9a409 commit 976de37

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/priority-score.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
};
2828
2929
const effortWeights = {
30-
"effort:high": 10,
31-
"effort:medium": 5,
32-
"effort:low": 2
30+
"size/l": 9,
31+
"size/m": 4,
32+
"size/s": 1,
33+
"size/xl": 18
3334
};
3435
3536
const issue = context.payload.issue;
@@ -58,7 +59,7 @@ jobs:
5859
finalScore = Math.round((reach * impact) / effort);
5960
} else {
6061
// Fallback to default values if labels are missing
61-
const defaultReach = reach || 50; // default to medium-low reach
62+
const defaultReach = reach || 75; // default to medium reach
6263
const defaultImpact = impact || 75; // default to low impact
6364
const defaultEffort = effort || 5; // default to medium effort
6465
finalScore = Math.round((defaultReach * defaultImpact) / defaultEffort);

0 commit comments

Comments
 (0)