Skip to content

Commit 84b68f2

Browse files
feat(estimation): update priority scoring weights and defaults (#2951)
Co-authored-by: Copilot <[email protected]>
1 parent 8609f66 commit 84b68f2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/priority-score.yml

Lines changed: 6 additions & 5 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,9 +59,9 @@ 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
63-
const defaultEffort = effort || 5; // default to medium effort
64+
const defaultEffort = effort || 4; // default to medium effort
6465
finalScore = Math.round((defaultReach * defaultImpact) / defaultEffort);
6566
}
6667

0 commit comments

Comments
 (0)