2020-10-10 12:03:47 +02:00
|
|
|
#!/usr/bin/env pwsh
|
|
|
|
|
|
|
|
|
|
[cmdletbinding()]
|
|
|
|
|
|
|
|
|
|
param(
|
|
|
|
|
[Parameter(Mandatory=$true)]
|
2022-03-18 20:32:16 +01:00
|
|
|
[DateTime]$since,
|
2020-10-10 12:03:47 +02:00
|
|
|
|
2022-03-18 20:32:16 +01:00
|
|
|
[Nullable[DateTime]]$until);
|
2020-10-10 12:03:47 +02:00
|
|
|
|
2022-03-18 20:32:16 +01:00
|
|
|
$replacements = @{
|
2022-03-24 14:08:09 -05:00
|
|
|
"moonheart08" = "moony",
|
|
|
|
|
"Elijahrane" = "Rane",
|
2022-03-30 00:06:08 -05:00
|
|
|
"ZeroDayDaemon" = "Daemon",
|
|
|
|
|
"ElectroJr" = "ElectroSR"
|
2022-03-18 20:32:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$ignore = @{
|
|
|
|
|
"PJBot" = $true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$engine = & "$PSScriptRoot\dump_commits_since.ps1" -repo space-wizards/RobustToolbox -since $since -until $until
|
|
|
|
|
$content = & "$PSScriptRoot\dump_commits_since.ps1" -repo space-wizards/space-station-14 -since $since -until $until
|
|
|
|
|
|
|
|
|
|
$contribs = ($content + $engine) `
|
2020-10-10 12:03:47 +02:00
|
|
|
| Select-Object -ExpandProperty author `
|
|
|
|
|
| Select-Object -ExpandProperty login -Unique `
|
2022-03-18 20:32:16 +01:00
|
|
|
| Where-Object { -not $ignore[$_] }
|
|
|
|
|
| ForEach-Object { $replacements[$_] ?? $_ }
|
2020-10-10 12:03:47 +02:00
|
|
|
| Sort-Object `
|
|
|
|
|
| Join-String -Separator ", "
|
2022-03-18 20:32:16 +01:00
|
|
|
|
|
|
|
|
Write-Host $contribs
|
2022-03-24 14:08:09 -05:00
|
|
|
Write-Host "Total commit count is $($engine.Length + $content.Length)"
|