Files
OldThink/Tools/dump_github_contributors.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

38 lines
905 B
PowerShell

#!/usr/bin/env pwsh
$scriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
. $(join-path $scriptDir contribs_shared.ps1)
function load_contribs([string] $repo)
{
$qParams = @{
"per_page" = 100
}
$url = "https://api.github.com/repos/{0}/contributors" -f $repo
$r = @()
while ($null -ne $url)
{
$resp = Invoke-WebRequest $url -Body $qParams
$url = $resp.RelationLink.next
$j = ConvertFrom-Json $resp.Content
$r += $j
}
return $r
}
$engineJson = load_contribs("space-wizards/RobustToolbox")
$contentJson = load_contribs("space-wizards/space-station-14")
($engineJson).login + ($contentJson).login `
| select -unique `
| Where-Object { -not $ignore[$_] }`
| ForEach-Object { if($replacements[$_] -eq $null){ $_ } else { $replacements[$_] }} `
| Sort-object `
| Join-String -Separator ", "