Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions public/buildTreeV2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,13 @@ function Build-HubbersTreeV2 {
$heads = @()
$tree = @{}

# Find all the heads of the treed
$ceo = $hubbers.Values | Where-Object { $_.manager -eq $_.github_login }

if($null -ne $ceo){
$heads += $ceo
}
# Find all the heads of the tree
# nodes where the manager is themselves
$heads += $hubbers.Values | Where-Object { $_.manager -eq $_.github_login }
# $heads += $hubbers.Values | Where-Object { $_.manager -eq $null }

$moreheads = $Hubbers.Keys | where-object {
# $h = $hubbersRawList.$_.github_login
$mh = $hubbers.$_.manager

$null -eq $hubbers.$mh
}

Expand Down
Loading