Update contributors scripts to do more stuff

This commit is contained in:
Pieter-Jan Briers
2022-03-18 20:32:16 +01:00
parent 8bf00b40cd
commit d0c0dfc1dc
2 changed files with 26 additions and 5 deletions

View File

@@ -6,16 +6,22 @@ param(
[Parameter(Mandatory=$true)]
[DateTime]$since,
[Nullable[DateTime]]$until,
[Parameter(Mandatory=$true)]
[string]$repo);
$r = @()
$qParams = @{
"since" = $since.ToString("o")
"since" = $since.ToString("o");
"per_page" = 100
}
if ($until -ne $null) {
$qParams["until"] = $until.ToString("o")
}
$url = "https://api.github.com/repos/{0}/commits" -f $repo
while ($null -ne $url)