Files
OldThink/Tools/dump_commits_since.ps1
Cinka f02cc9cb87
Some checks failed
Build & Test Map Renderer / build (ubuntu-latest) (push) Has been cancelled
Build & Test Debug / build (ubuntu-latest) (push) Has been cancelled
Check Merge Conflicts / Label (push) Has been cancelled
Test Packaging / Test Packaging (push) Has been cancelled
RGA schema validator / YAML RGA schema validator (push) Has been cancelled
Map file schema validator / YAML map schema validator (push) Has been cancelled
YAML Linter / YAML Linter (push) Has been cancelled
Build & Test Map Renderer / Build & Test Debug (push) Has been cancelled
Build & Test Debug / Build & Test Debug (push) Has been cancelled
Benchmarks / Run Benchmarks (push) Has been cancelled
Update Contrib and Patreons in credits / get_credits (push) Has been cancelled
Build & Publish Docfx / docfx (push) Has been cancelled
- fix: engine update fix
2026-02-01 14:47:44 +03:00

49 lines
709 B
PowerShell

#!/usr/bin/env pwsh
[cmdletbinding()]
param(
[Parameter(Mandatory=$true)]
[DateTime]$since,
[Nullable[DateTime]]$until,
[Parameter(Mandatory=$true)]
[string]$repo);
$r = @()
$page = 1
$qParams = @{
"since" = $since.ToString("o");
"per_page" = 100
"page" = $page
}
if ($until -ne $null) {
$qParams["until"] = $until.ToString("o")
}
$url = "https://api.github.com/repos/{0}/commits" -f $repo
while ($null -ne $url)
{
$resp = Invoke-WebRequest $url -UseBasicParsing -Body $qParams
if($resp.Content.Length -eq 2) {
break
}
$page += 1
$qParams["page"] = $page
$j = ConvertFrom-Json $resp.Content
$r += $j
}
return $r