Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Unify ignore/replacement lists for the two contrib ps1 scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed May 16, 2022
1 parent f223b8e commit b0e4fc4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Resources/Credits/GitHub.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20kdc, 4dplanner, aaronmell, Absolute-Potato, Acruid, actioninja, actually-reb, aeosynth, AJCM-git, Alainx277, ALMv1, AlphaQwerty, ancientpower, areitpog, artak10t, as334, asperger-sind, AugustEymann, avghdev, AzzyIsNotHere, BananaFlambe, BasedUser, BGare, bhespiritu, BingoJohnson, bloodrizer, BobdaBiscuit, boiled-water-tsar, Brian-Archambault, Bright0, brndd, bryce0110, BubblegumBlue, buletsponge, CakeQ, Capnsockless, Carou02, CatTheSystem, CC-4477, Centronias, chairbender, Charlese2, cheesePizza2, clement-or, clusterfack, clyfordv, Clyybber, ColdAutumnRain, collinlunn, ComicIronic, creadth, CrudeWax, CrzyPotato, Cyberboss, d34d10cc, DamianX, daniel-cr, Decappi, Delete69, DelleVelleD, Dezandor, DmitriyZodiak, DogZeroX, drongood12, DrSmugleaf, DTanxxx, DubiousDoggo, Efruit, ElectroJr, Elijahrane, elthundercloud, Emisse, EmoGarbage404, Ephememory, esguard, exp111, Fiftyllama, FirinMaLazors, Fishfish458, Fogapod, FoLoKe, Fortune117, Fouin, freeman2651, GalacticChimp, gbasood, Git-Nivrak, gituhabu, h3half, halworsen, Hardly3D, harikattar, HoofedEar, hubismal, Hugal31, iczero, ike709, Injazz, InquisitivePenguin, Insineer, j-giebel, Jackw2As, janekvap, Jaskanbe, JasperJRoth, JiimBob, JohnGinnane, johnku1, juliangiebel, JustinTether, JustinTrotter, KaiShibaa, kalanosh, keronshb, kira-er, Kmc2000, komunre, lajolico, Lamrr, lapatison, Leander-0, LetterN, LittleBuilderJane, localcc, lvvova1, lzimann, Macoron, ManelNavola, Markek1, Matz05, MaxNox7, MehimoNemo, MeltedPixel, MemeProof, metalgearsloth, michaelcooke, micheel665, Miniwoffer, Mirino97, mirrorcult, misnor, Mith-randalf, MLGTASTICa, Moneyl, moonheart08, Morb0, N3X15, namespace-Memory, NickPowers43, Nirnael, NIXC, nuke-haus, Nukeuler123, nullarmo, Pangogie, Partmedia, partyaddict, patrikturi, PaulRitter, Peptide90, peptron1, PetMudstone, Phantom-Lily, Pill-U, Pireax, PJB3005, Plasmaguy, plinyvic, pointer-to-null, ProfanedBane, PrPleGoo, psykzz, Putnam3145, Radosvik, Radrark, RedlineTriad, RednoWCirabrab, Rember, RemieRichards, remove32, RemTim, renodubois, retequizzle, Rich-Dunne, rneuser, Rohesie, rok-povsic, RomanNovo, Saakra, SamV522, SaphireLattice, ScalyChimp, scrato, ScumbagDog, Serkket, SethLafuente, sewerpig, ShadowCommander, shaeone, SignalWalker, Silvertorch5, sirsikes777, Snowni, SoulSloth, Soundwavesghost, Soupstraw, SpaceManiac, SplinterGP, spoogemonster, StanberyTrask, StrawberryMoses, StStevens, SweptWasTaken, Szunti, TaralGit, TemporalOroboros, tentekal, thatrandomcanadianguy, TheCze, TheDarkElites, theOperand, thevinter, TimrodDX, tkdrg, tmtmtl30, Tomeno, Tyler-IN, UKNOWH, UnderscoreX5, UristMcContributor, UristMcDorf, Venomii, Veritius, Visne, volundr-, vulppine, Watermelon914, weaversam8, Willhelm53, wixoaGit, WlarusFromDaSpace, wrexbe, WTCWR68, xRiriq, Ygg01, YotaXP, youarereadingthis, zach-hill, zamp, ZelteHonor, ZeroDayDaemon, ZeWaka, zionnBE, zlodo, ZNixian, Zth--, Zumorica, Zymem
20kdc, 4dplanner, aaronmell, Absolute-Potato, Acruid, actioninja, actually-reb, aeosynth, AJCM-git, Alainx277, ALMv1, AlphaQwerty, ancientpower, areitpog, artak10t, as334, asperger-sind, AugustEymann, avghdev, AzzyIsNotHere, BananaFlambe, BasedUser, BGare, bhespiritu, BingoJohnson, bloodrizer, BobdaBiscuit, boiled-water-tsar, Brian-Archambault, Bright0, brndd, bryce0110, BubblegumBlue, buletsponge, CakeQ, Capnsockless, Carou02, CatTheSystem, CC-4477, Centronias, chairbender, Charlese2, cheesePizza2, clement-or, clusterfack, clyfordv, Clyybber, ColdAutumnRain, collinlunn, ComicIronic, creadth, CrudeWax, CrzyPotato, Cyberboss, d34d10cc, Daemon, DamianX, daniel-cr, Decappi, Delete69, DelleVelleD, Dezandor, DmitriyZodiak, DogZeroX, drongood12, DrSmugleaf, DTanxxx, DubiousDoggo, Efruit, ElectroSR, elthundercloud, Emisse, EmoGarbage404, Ephememory, esguard, exp111, Fiftyllama, FirinMaLazors, Fishfish458, Fogapod, FoLoKe, Fortune117, Fouin, freeman2651, GalacticChimp, gbasood, Git-Nivrak, gituhabu, h3half, halworsen, Hardly3D, harikattar, HoofedEar, hubismal, Hugal31, iczero, ike709, Injazz, InquisitivePenguin, Insineer, j-giebel, Jackw2As, janekvap, Jaskanbe, JasperJRoth, JiimBob, JohnGinnane, johnku1, juliangiebel, JustinTether, JustinTrotter, KaiShibaa, kalanosh, keronshb, kira-er, Kmc2000, komunre, lajolico, Lamrr, lapatison, Leander-0, LetterN, LittleBuilderJane, localcc, lvvova1, lzimann, Macoron, ManelNavola, Markek1, Matz05, MaxNox7, MehimoNemo, MeltedPixel, MemeProof, metalgearsloth, michaelcooke, micheel665, Miniwoffer, Mirino97, mirrorcult, misnor, Mith-randalf, MLGTASTICa, Moneyl, moony, Morb0, N3X15, namespace-Memory, NickPowers43, Nirnael, NIXC, nuke-haus, Nukeuler123, nullarmo, Pangogie, Partmedia, partyaddict, patrikturi, PaulRitter, Peptide90, peptron1, PetMudstone, Phantom-Lily, Pill-U, Pireax, PJB3005, Plasmaguy, plinyvic, pointer-to-null, ProfanedBane, PrPleGoo, psykzz, Putnam3145, Radosvik, Radrark, Rane, RedlineTriad, RednoWCirabrab, Rember, RemieRichards, remove32, RemTim, renodubois, retequizzle, Rich-Dunne, rneuser, Rohesie, rok-povsic, RomanNovo, Saakra, SamV522, SaphireLattice, ScalyChimp, scrato, ScumbagDog, Serkket, SethLafuente, sewerpig, ShadowCommander, shaeone, SignalWalker, Silvertorch5, sirsikes777, Snowni, SoulSloth, Soundwavesghost, Soupstraw, SpaceManiac, SplinterGP, spoogemonster, StanberyTrask, StrawberryMoses, StStevens, SweptWasTaken, Szunti, TaralGit, TemporalOroboros, tentekal, thatrandomcanadianguy, TheCze, TheDarkElites, theOperand, thevinter, TimrodDX, tkdrg, tmtmtl30, Tomeno, Tyler-IN, UKNOWH, UnderscoreX5, UristMcContributor, UristMcDorf, Venomii, Veritius, Visne, volundr-, vulppine, Watermelon914, weaversam8, Willhelm53, wixoaGit, WlarusFromDaSpace, wrexbe, WTCWR68, xRiriq, Ygg01, YotaXP, youarereadingthis, zach-hill, zamp, ZelteHonor, ZeWaka, zionnBE, zlodo, ZNixian, Zth--, Zumorica, Zymem
12 changes: 12 additions & 0 deletions Tools/contribs_shared.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$replacements = @{
"moonheart08" = "moony"
"Elijahrane" = "Rane"
"ZeroDayDaemon" = "Daemon"
"ElectroJr" = "ElectroSR"
}

$ignore = @{
"PJBot" = $true
"ZDDM" = $true
"TYoung86" = $true
}
12 changes: 2 additions & 10 deletions Tools/dump_contributors_since.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,8 @@ param(

[Nullable[DateTime]]$until);

$replacements = @{
"moonheart08" = "moony"
"Elijahrane" = "Rane"
"ZeroDayDaemon" = "Daemon"
"ElectroJr" = "ElectroSR"
}

$ignore = @{
"PJBot" = $true
}
$scriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
. $(join-path $scriptDir contribs_shared.ps1)

$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
Expand Down
11 changes: 4 additions & 7 deletions Tools/dump_github_contributors.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/usr/bin/env pwsh

# TODO: This is definitely gonna stop being accurate when we get above 100 contributors on one of the repos.
$engineJson = (Invoke-WebRequest "https://api.github.com/repos/space-wizards/RobustToolbox/contributors?per_page=100").Content | convertfrom-json
$contentJson = (Invoke-WebRequest "https://api.github.com/repos/space-wizards/space-station-14/contributors?per_page=100").Content | convertfrom-json
$scriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
. $(join-path $scriptDir contribs_shared.ps1)

function load_contribs([string] $repo)
{
Expand Down Expand Up @@ -30,11 +29,9 @@ function load_contribs([string] $repo)
$engineJson = load_contribs("space-wizards/RobustToolbox")
$contentJson = load_contribs("space-wizards/space-station-14")

$scriptDir = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
$bad = get-content $(join-path $scriptDir "ignored_github_contributors.txt")

($engineJson).login + ($contentJson).login `
| select -unique `
| where { $bad -notcontains $_ } `
| Where-Object { -not $ignore[$_] }`
| ForEach-Object { if($replacements[$_] -eq $null){ $_ } else { $replacements[$_] }} `
| Sort-object `
| Join-String -Separator ", "
3 changes: 0 additions & 3 deletions Tools/ignored_github_contributors.txt

This file was deleted.

0 comments on commit b0e4fc4

Please sign in to comment.