Skip to content

Commit 1cdcb2f

Browse files
committed
update
1 parent 7db5c80 commit 1cdcb2f

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/stats.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ jobs:
2323
orgs: new Set(),
2424
repos: new Set(),
2525
commits: 0,
26-
prNumbers: 0,
27-
branchNames: 0,
26+
prsAndBranches: 0,
2827
};
2928
let cursor = null;
3029
@@ -58,13 +57,8 @@ jobs:
5857
counts.orgs.add(item.org);
5958
counts.repos.add(item.repo);
6059
61-
// Count PR numbers and branch names
62-
console.log(item.ref);
63-
if (/^\d+$/.test(item.ref)) {
64-
counts.prNumbers += 1;
65-
} else {
66-
counts.branchNames += 1;
67-
}
60+
// Count PR numbers and branch names combined
61+
counts.prsAndBranches += 1;
6862
}
6963
}
7064
}
@@ -83,8 +77,7 @@ jobs:
8377
orgs: counts.orgs.size,
8478
repos: counts.repos.size,
8579
commits: counts.commits,
86-
prNumbers: counts.prNumbers,
87-
branchNames: counts.branchNames,
80+
prsAndBranches: counts.prsAndBranches,
8881
};
8982
}
9083

0 commit comments

Comments
 (0)