Skip to content

Commit 6e1e0e9

Browse files
JavierMatosDJavier Matos
and
Javier Matos
authored
fix generate stars script (#159)
Co-authored-by: Javier Matos <[email protected]>
1 parent 21336e2 commit 6e1e0e9

File tree

3 files changed

+51
-48
lines changed

3 files changed

+51
-48
lines changed

output.json

+24-24
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@
871871
}
872872
],
873873
"Features": [],
874-
"Stars": 12711
874+
"Stars": 12712
875875
},
876876
{
877877
"Name": "antlr4",
@@ -11512,7 +11512,7 @@
1151211512
}
1151311513
],
1151411514
"Features": [],
11515-
"Stars": 1263
11515+
"Stars": 1264
1151611516
},
1151711517
{
1151811518
"Name": "boost-phoenix",
@@ -16159,7 +16159,7 @@
1615916159
]
1616016160
}
1616116161
},
16162-
"Stars": 4551
16162+
"Stars": 4552
1616316163
},
1616416164
{
1616516165
"Name": "cgicc",
@@ -20993,7 +20993,7 @@
2099320993
}
2099420994
],
2099520995
"Features": [],
20996-
"Stars": 5588
20996+
"Stars": 5589
2099720997
},
2099820998
{
2099920999
"Name": "double-conversion",
@@ -21119,7 +21119,7 @@
2111921119
}
2112021120
],
2112121121
"Features": [],
21122-
"Stars": 6254
21122+
"Stars": 6255
2112321123
},
2112421124
{
2112521125
"Name": "drekar-launch-process-cpp",
@@ -21315,7 +21315,7 @@
2131521315
}
2131621316
],
2131721317
"Features": [],
21318-
"Stars": 5552
21318+
"Stars": 5551
2131921319
},
2132021320
{
2132121321
"Name": "dukglue",
@@ -21550,7 +21550,7 @@
2155021550
}
2155121551
],
2155221552
"Features": [],
21553-
"Stars": 7671
21553+
"Stars": 7672
2155421554
},
2155521555
{
2155621556
"Name": "easycl",
@@ -22313,7 +22313,7 @@
2231322313
}
2231422314
],
2231522315
"Features": [],
22316-
"Stars": 3494
22316+
"Stars": 3495
2231722317
},
2231822318
{
2231922319
"Name": "exiv2",
@@ -24422,7 +24422,7 @@
2442224422
}
2442324423
],
2442424424
"Features": [],
24425-
"Stars": 19365
24425+
"Stars": 19366
2442624426
},
2442724427
{
2442824428
"Name": "folly",
@@ -33083,7 +33083,7 @@
3308333083
"supports": "windows & !uwp"
3308433084
}
3308533085
},
33086-
"Stars": 55870
33086+
"Stars": 55869
3308733087
},
3308833088
{
3308933089
"Name": "imgui-node-editor",
@@ -36628,7 +36628,7 @@
3662836628
]
3662936629
}
3663036630
},
36631-
"Stars": 35125
36631+
"Stars": 35126
3663236632
},
3663336633
{
3663436634
"Name": "levmar",
@@ -38336,7 +38336,7 @@
3833638336
}
3833738337
],
3833838338
"Features": [],
38339-
"Stars": 4984
38339+
"Stars": 4985
3834038340
},
3834138341
{
3834238342
"Name": "libgcrypt",
@@ -42529,7 +42529,7 @@
4252942529
"zstd"
4253042530
],
4253142531
"Features": [],
42532-
"Stars": 12506
42532+
"Stars": 12507
4253342533
},
4253442534
{
4253542535
"Name": "libtar",
@@ -43158,7 +43158,7 @@
4315843158
"supports": "linux"
4315943159
}
4316043160
},
43161-
"Stars": 4994
43161+
"Stars": 4995
4316243162
},
4316343163
{
4316443164
"Name": "libusb-win32",
@@ -48242,7 +48242,7 @@
4824248242
}
4824348243
],
4824448244
"Features": [],
48245-
"Stars": 375
48245+
"Stars": 376
4824648246
},
4824748247
{
4824848248
"Name": "mecab",
@@ -48773,7 +48773,7 @@
4877348773
"Homepage": "https://github.com/lieff/minimp3",
4877448774
"License": "CC0-1.0",
4877548775
"Features": [],
48776-
"Stars": 1487
48776+
"Stars": 1489
4877748777
},
4877848778
{
4877948779
"Name": "minio-cpp",
@@ -52492,7 +52492,7 @@
5249252492
"description": "Disable POSIX API"
5249352493
}
5249452494
},
52495-
"Stars": 2203
52495+
"Stars": 2204
5249652496
},
5249752497
{
5249852498
"Name": "onnx",
@@ -57009,7 +57009,7 @@
5700957009
}
5701057010
],
5701157011
"Features": [],
57012-
"Stars": 0
57012+
"Stars": 7
5701357013
},
5701457014
{
5701557015
"Name": "pdcurses",
@@ -58934,7 +58934,7 @@
5893458934
"description": "Deprecated support for the Windows 7 platform -- may be removed at any time."
5893558935
}
5893658936
},
58937-
"Stars": 59687
58937+
"Stars": 59688
5893858938
},
5893958939
{
5894058940
"Name": "qca",
@@ -69932,7 +69932,7 @@
6993269932
]
6993369933
}
6993469934
},
69935-
"Stars": 58168
69935+
"Stars": 58169
6993669936
},
6993769937
{
6993869938
"Name": "tfhe",
@@ -71508,7 +71508,7 @@
7150871508
}
7150971509
],
7151071510
"Features": [],
71511-
"Stars": 1452
71511+
"Stars": 1453
7151271512
},
7151371513
{
7151471514
"Name": "uchardet",
@@ -71952,7 +71952,7 @@
7195271952
}
7195371953
],
7195471954
"Features": [],
71955-
"Stars": 1649
71955+
"Stars": 1650
7195671956
},
7195771957
{
7195871958
"Name": "usockets",
@@ -75524,7 +75524,7 @@
7552475524
}
7552575525
],
7552675526
"Features": [],
75527-
"Stars": 21578
75527+
"Stars": 21582
7552875528
},
7552975529
{
7553075530
"Name": "yato",
@@ -75647,7 +75647,7 @@
7564775647
}
7564875648
],
7564975649
"Features": [],
75650-
"Stars": 9746
75650+
"Stars": 9745
7565175651
},
7565275652
{
7565375653
"Name": "z4kn4fein-semver",

scripts/generateGitHubStars.js

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ async function getGitHubStars(octokit, url) {
1010
const githubUrl = 'https://github.com/';
1111
const regex = /^(?<owner>[a-zA-Z\d][a-zA-Z\d\.\-\_]+)\/(?<repo>[a-zA-Z\d][a-zA-Z\d\.\-\_]+).*$/;
1212

13+
// Remove .git extension from the URL if present
14+
url = url.replace(/\.git$/, '');
15+
1316
if (!url.startsWith(githubUrl)) return 0;
1417

1518
const [_, owner, repo] = regex.exec(url.substr(githubUrl.length)) ?? [];

0 commit comments

Comments
 (0)