Skip to content

Commit a291e9a

Browse files
author
Bastien Guerry
committed
src/consolidate-datacodegouvfr.clj: Let the score use stargazers_count
1 parent f8ee9d5 commit a291e9a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/consolidate-datacodegouvfr.clj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@
203203
10 medium
204204
1 low
205205
0)
206+
0)
207+
;; Does the repo have many star gazers?
208+
(if-let [s (:stargazers_count v)]
209+
(condp < s
210+
1000 high
211+
100 medium
212+
10 low
213+
0)
206214
0))))
207215

208216
;; Spit repositories.json

0 commit comments

Comments
 (0)