We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db5c80 commit 1cdcb2fCopy full SHA for 1cdcb2f
.github/workflows/stats.yml
@@ -23,8 +23,7 @@ jobs:
23
orgs: new Set(),
24
repos: new Set(),
25
commits: 0,
26
- prNumbers: 0,
27
- branchNames: 0,
+ prsAndBranches: 0,
28
};
29
let cursor = null;
30
@@ -58,13 +57,8 @@ jobs:
58
57
counts.orgs.add(item.org);
59
counts.repos.add(item.repo);
60
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
- }
+ // Count PR numbers and branch names combined
+ counts.prsAndBranches += 1;
68
}
69
70
@@ -83,8 +77,7 @@ jobs:
83
77
orgs: counts.orgs.size,
84
78
repos: counts.repos.size,
85
79
commits: counts.commits,
86
- prNumbers: counts.prNumbers,
87
- branchNames: counts.branchNames,
80
+ prsAndBranches: counts.prsAndBranches,
88
81
89
82
90
0 commit comments