Avoid redundant updates to GitHub credits

This commit is contained in:
Tobias Berger
2026-05-10 14:09:05 +02:00
parent 7abc7a7b66
commit dfc16b1a39
2 changed files with 10 additions and 8 deletions
+2
View File
@@ -9,6 +9,8 @@
$ignore = @{
"PJBot" = $true
"DeltaV-Bot" = $true # DeltaV GH bot
"pre-commit-ci[bot]" = $true
"github-actions[bot]" = $true
"ZDDM" = $true
"TYoung86" = $true
+4 -4
View File
@@ -14,7 +14,7 @@ function load_contribs([string] $repo)
# We use the ?anon=1 query param for reasons explained later.
$qParams = @{
"per_page" = 100
"anon" = 1
"anon" = true
}
$headers = @{
@@ -113,11 +113,11 @@ function load_contribs([string] $repo)
}
$engineJson = load_contribs("space-wizards/RobustToolbox")
$contentJson = load_contribs("DeltaV-Station/Delta-v-rebase")
$contentJson = load_contribs("DeltaV-Station/Delta-v")
($engineJson).login + ($contentJson).login `
| select -unique `
| Select-Object -CaseInsensitive -Unique `
| Where-Object { -not $ignore[$_] }`
| ForEach-Object { if($replacements[$_] -eq $null){ $_ } else { $replacements[$_] }} `
| Sort-object `
| Sort-object -CaseSensitive `
| Join-String -Separator ", "