mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
Fix potential undefined points issue in contributor points calculation (#5393)
This commit is contained in:
committed by
GitHub
parent
a15ff85c20
commit
45530638fe
6
.github/scripts/count-points.mjs
vendored
6
.github/scripts/count-points.mjs
vendored
@@ -161,9 +161,9 @@ async function countContributorPoints(repo) {
|
||||
const isReleasePR = pr.title.match(/^🔖 \(\d+\.\d+\.\d+\)/);
|
||||
|
||||
// Calculate points for reviewers based on PR size
|
||||
const prPoints = config.PR_REVIEW_POINT_TIERS.find(
|
||||
tier => totalChanges > tier.minChanges,
|
||||
).points;
|
||||
const prPoints =
|
||||
config.PR_REVIEW_POINT_TIERS.find(tier => totalChanges > tier.minChanges)
|
||||
?.points ?? 0;
|
||||
|
||||
// Award points to the PR creator if it's a release PR
|
||||
if (isReleasePR && stats.has(pr.user.login)) {
|
||||
|
||||
Reference in New Issue
Block a user