Skip to content

Commit

Permalink
fix: Fix bug where the org repo count is counted twice (#120)
Browse files Browse the repository at this point in the history
Signed-off-by: Yoriyasu Yano <430092+yorinasub17@users.noreply.github.com>
  • Loading branch information
yorinasub17 committed Oct 18, 2023
1 parent 9eecd93 commit 30fafc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fskconfig/loader_github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ function validateRepoLimits(

let existingRepoCount = 0;
for (const k in ghorg.subscription.repoCount) {
existingRepoCount += ghorg.subscription.repoCount[k];
if (k !== ghorg.name) {
existingRepoCount += ghorg.subscription.repoCount[k];
}
}
const totalRepoCount = configRepoCount + existingRepoCount;
if (totalRepoCount > maybeLimit) {
Expand Down

0 comments on commit 30fafc1

Please sign in to comment.