File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 27
27
};
28
28
29
29
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
33
34
};
34
35
35
36
const issue = context.payload.issue;
58
59
finalScore = Math.round((reach * impact) / effort);
59
60
} else {
60
61
// 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
62
63
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
64
65
finalScore = Math.round((defaultReach * defaultImpact) / defaultEffort);
65
66
}
66
67
You can’t perform that action at this time.
0 commit comments